Frame 2
function _shareScoreHandler(mc, scoreText) {
var _local2 = flash.external.ExternalInterface.call("document.URL.toString");
if (_root.fb_local_connection) {
_root._shareScoreFB(scoreText);
} else if ((_local2 != null) && (_local2.indexOf("games2win.com") != -1)) {
_root._homeShareScoreFB(scoreText);
} else {
_root._alienShareScoreFB(scoreText);
}
}
function _homeShareScoreFB(scoreText) {
var _local1 = flash.external.ExternalInterface.available;
if (_local1) {
flash.external.ExternalInterface.call("g2wShareScore", scoreText);
} else {
getURL (("javascript:g2wShareScore('" + scoreText) + "')");
}
}
function _alienShareScoreFB(scoreText) {
getURL (_root.obj_game.facebookURL, "_blank");
}
function _shareScoreFB(scoreText) {
var _local3 = new LocalConnection();
var _local2 = _root.fb_local_connection;
_local3.send(_local2, "callFBJS", "g2wShareScore", [scoreText]);
}
function _playAgainHandler(mc) {
Stage.scaleMode = "showAll";
_root.g2w_playagain(true);
}
function _showGameVideo() {
var _local2 = flash.external.ExternalInterface.call("document.URL.toString");
if ((_local2 != null) && (_local2.indexOf("games2win.com") != -1)) {
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.call("createpop");
} else {
getURL ("javascript:createpop()");
}
} else {
getURL ((("http://www.games2win.com/videotutorial.html?url=" + _root.obj_game.videoID) + "&name=") + _root.obj_game._gameTitle, "_blank");
}
}
function _calculateScore(limits, score) {
var _local4 = false;
var _local1 = 0;
while (_local1 < (limits.length - 1)) {
if (score <= limits[_local1]) {
return(_local1);
}
_local1++;
}
return(limits.length - 1);
}
function _doGameOver(score, gamestate, showskip, delay) {
trace((((("CALLED : _doGameOver : score:" + score) + " gamestate:") + gamestate) + " showskip: ") + showskip);
clearInterval(_gameoverinterval);
if (delay == undefined) {
delay = 3000;
}
if ((score != undefined) and (gamestate != undefined)) {
_root.partner_score = score;
_root.obj_game._gstatus = gamestate;
_gameoverinterval = setInterval(attachGameOverMc, delay, showskip);
} else {
trace("Could Not Load GAMEOVER!!!");
}
}
function attachGameOverMc(showskip) {
stopAllSounds();
clearInterval(_gameoverinterval);
_root.__gameover_mc = _root.attachMovie("_g2w_gameover_mc", "mc_gameover", _root.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 2});
_root.__gameover_mc.showSkip = showskip;
}
function _showAssetPanels(mc) {
if (mc.gameState == "gameover") {
trace("gameState");
_root._initGameOver(mc);
} else {
_root._initGameCompleted(mc);
}
}
function g2w_playagain(resetlevel) {
_root.__gameover_mc.removeMovieClip();
_root.score = 0;
if (resetlevel) {
_root.game_mc.gotoAndStop("lblgameintro");
}
_root.myGame.gotoAndStop(1);
}
function g2w_skiplevel() {
_root.__gameover_mc.removeMovieClip();
_root.score = 0;
_root.level++;
_root.myGame.gotoAndStop(1);
}
var obj_game = new Array();
obj_game._host = "g2w";
obj_game._gameName = "hair_style_wonder_2";
obj_game._gameTitle = "Hair Style Wonder 2";
obj_game._g2wGameId = "1302";
obj_game._partnerGameId = "hairstylewonder2";
obj_game._gstatus = "gameover";
obj_game._googleText = "Hair Style Wonder 2";
obj_game._gameStageW = 650;
obj_game._gameStageH = 530;
obj_game._gameScoreOrder = "desc";
obj_game._gameResolution = (Stage.width + "x") + Stage.height;
obj_game.g2wBot = "";
obj_game.g2wBotId = 10301;
obj_game.videoID = "e1EP70HHs18";
obj_game.relatedGamesXML = "http://s1.inviziads.com/partner/g2w/related/gamemenu_tag_dress_up_humans.xml";
obj_game.relatedGamesTAG = "DRUH";
obj_game.facebookURL = "http://apps.facebook.com/hairstyle-wonders-tw/?utm_source=games2win&utm_medium=strip&utm_campaign=Referrers_hair-style-wonder-tw";
obj_game.inviziads = (((("http://s1.inviziads.com/lookup.html?g=" + obj_game._g2wGameId) + "&h=") + obj_game._host) + "&l=") + obj_game._gameLanguage;
obj_game.FBMsg = "is getting a sexy hairdo on Games2win's Hairstyle Wonders 2.Redo those tresses. Play the game.";
var obj_partner = new Array();
obj_partner.partner_name = "g2w";
obj_partner.partner_id = 1;
obj_partner.invalid_txt = "Invalid Nickname!";
obj_partner.show_submit = false;
obj_partner.submitURL = "/submit_score.asp";
obj_partner.top10URL = "/get_top_scorer.asp";
obj_partner.lblsubmit = "Enter your Games2win Nickname below";
obj_partner.show_g2w_slate = true;
obj_partner.show_register = true;
obj_partner.text_register = "Create Nickname";
obj_partner.url_register = "http://www.games2win.com/register.asp";
obj_partner.clickthru = "http://www.games2win.com/";
obj_partner._allowclick = true;
_initAssetsPanel = function (mcpath) {
Stage.scaleMode = "noScale";
Stage.align = "";
var _local2 = mcpath;
_local2.onEnterFrame = function () {
Stage.scaleMode = "noScale";
Stage.align = "";
};
_local2.overlay_btn.useHandCursor = false;
_local2.gameState = _root.obj_game._gstatus;
};
_initGameOver = function (mcpath) {
var _local2 = mcpath;
_local2.gotoAndStop("g2w_gameover");
if (_local2.showSkip) {
_local2.g2w_skipPanel.gotoAndStop("skip");
_local2.g2w_skipPanel.btn_nextLevel.onRelease = function () {
Stage.scaleMode = "showAll";
_root.g2w_skiplevel();
};
}
_local2.g2w_skipPanel.btn_playAgain.onRelease = function () {
Stage.scaleMode = "showAll";
_root.g2w_playagain();
};
};
_initGameCompleted = function (mcpath) {
var _local1 = mcpath;
_local1.gotoAndStop("g2w_gamecompleted");
};
var g2w_menu = new ContextMenu();
g2w_menu.hideBuiltInItems();
g2w_menu.customItems.push(new ContextMenuItem("Games2win.com", itemHandler));
itemHandler = function (obj, item) {
getURL (obj_partner.clickthru, "_blank");
};
this.menu = g2w_menu;
checkhost = function () {
trace("CALL CHECKHOST");
swfurl = this._url;
if (swfurl.indexOf("games2win.com") == -1) {
return(false);
}
return(true);
};
_trackClickThru = function (mc) {
if (obj_partner._allowclick) {
mc.hit_area.onRelease = function () {
getURL (obj_partner.clickthru, "_blank");
};
} else {
mc.hit_area.useHandCursor = false;
}
};
String.prototype.trim = function () {
var _local3 = 0;
var _local2 = this.length;
white = new Object();
white._32 = 1;
_local2--;
while (white["_" + ord(this.charAt(_local2))]) {
}
while (white["_" + ord(this.charAt(_local3++))]) {
}
return(this.slice(_local3 - 1, _local2 + 1));
};
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function playAgain() {
_root.g2w_playagain(false);
}
function restart() {
_root.g2w_playagain(true);
}
_root.playIntro = true;
_root.allSounds = new Sound();
_root.score = 0;
_root.timeScore = 0;
_root.levelScore = 0;
_root.isPause = false;
_root.maxLevels = 4;
_root.levelArray = new Array(1 + _root.maxLevels);
i = 0;
while (i < maxLevels) {
_root.levelArray[i] = "lbllevel" + (i + 1);
i++;
}
_root.levelArray[maxLevels] = "win";
_root.level = 1;
_root.playIntroSound = true;
_root.debug = false;
Frame 7
stop();
Frame 16
stop();
Frame 24
function createSoundInstance(soundName, soundLinkageName, loopable, passedVolume) {
soundHolderMc = soundMc.createEmptyMovieClip(soundName + "HolderMc", soundMc.getNextHighestDepth());
_root[soundName] = new Sound(soundHolderMc);
_root[soundName].attachSound(soundLinkageName);
_root[soundName + "Start"] = function () {
_root[soundName].setVolume(passedVolume);
_root[soundName].start();
if (loopable == true) {
toLoopSound = this[soundName];
_root[soundName].onSoundComplete = function () {
_root[soundName].start();
trace((("looped " + soundName) + "this") + _root[soundName].duration);
};
}
};
_root[soundName + "Stop"] = function () {
trace("stopping " + _root[soundName]);
_root[soundName].stop();
trace("stopped " + soundName);
};
}
_root.tabChildren = false;
stop();
stop();
_root.createEmptyMovieClip("soundMc", _root.getNextHighestDepth());
createSoundInstance("Intro", "intro", true, 100);
createSoundInstance("Lose", "loose", true, 100);
createSoundInstance("Lvl1", "lvl1", true, 100);
createSoundInstance("Lvl2", "lvl2", true, 100);
createSoundInstance("Lvl3", "lvl3", true, 100);
createSoundInstance("Win", "win", true, 100);
IntroStart();
Frame 34
function playLvlSnd(level) {
if (level == 1) {
stopAllSounds();
Lvl1Start();
}
if (level == 2) {
stopAllSounds();
Lvl2Start();
}
if (level == 3) {
stopAllSounds();
Lvl3Start();
}
if (level == lose) {
stopAllSounds();
LoseStart();
}
}
_root.tabChildren = false;
stop();
_root.myGame = _root.game_mc;
Symbol 1714 MovieClip Frame 1
function brain() {
create_assets(myself, _global.obj_iads.type);
switch (_global.obj_iads.type) {
case "FULL" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main);
break;
case "EMBED" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main.trgt_ads);
if (_global.obj_iads.link ne undefined) {
trgt_main.onRelease = function () {
getURL (_global.obj_iads.link, "_blank");
};
}
break;
case "NOOP" :
clearInterval(tint1);
Stage.scaleMode = "showAll";
_root.play();
break;
}
}
function get_iads() {
lv_iads = new XML();
lv_result = new XML();
lv_result.ignoreWhite = true;
lv_result.onLoad = function (success) {
if (success) {
parse_iads(lv_result);
} else {
Stage.scaleMode = "showAll";
_root.play();
}
};
lv_iads.sendAndLoad(adurl, lv_result, "POST");
}
function parse_iads(lv_result) {
_global.obj_iads = new Array();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes.length) {
if (lv_result.firstChild.childNodes[_local2].firstChild.nodeValue != null) {
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = lv_result.firstChild.childNodes[_local2].firstChild.nodeValue;
} else if (lv_result.firstChild.childNodes[_local2].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local4 = 0;
while (_local4 < lv_result.firstChild.childNodes[_local2].childNodes.length) {
_local5[lv_result.firstChild.childNodes[_local2].childNodes[_local4].nodeName] = lv_result.firstChild.childNodes[_local2].childNodes[_local4].firstChild.nodeValue;
_local4++;
}
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = _local5;
}
_local2++;
}
show_time = int(_global.obj_iads.t);
check_type();
}
function time_delay() {
var _local1 = 0;
tint1 = setInterval(timespam, 1000);
}
function timespam() {
tim++;
trace(((tim + " tim Tim") + " show_time") + show_time);
if (isNaN(tim)) {
clearInterval(tint1);
Stage.scaleMode = "showAll";
trace(Stage.scaleMode);
} else if (tim == show_time) {
clearInterval(tint1);
Stage.scaleMode = "showAll";
_root.play();
trace(Stage.scaleMode);
}
}
function create_assets(mc, _type) {
mc.createEmptyMovieClip("whitebg", 0);
whitebg.beginFill(16777215);
whitebg.moveTo(0, 0);
whitebg.lineTo(0, 0);
whitebg.lineTo(stageWidth, 0);
whitebg.lineTo(stageWidth, stageHeight + 20);
whitebg.lineTo(0, stageHeight + 20);
whitebg.endFill();
mc.createEmptyMovieClip("trgt_main", 4);
mcLoader = new MovieClipLoader();
mcLoader.addListener(mc);
if (_type != "FULL") {
mc.createEmptyMovieClip("square_mc", 5);
var _local4 = trgt_main.createEmptyMovieClip("trgt_ads", getNextHighestDepth());
var _local3 = new TextFormat();
_local3.align = "center";
_local3.font = "Verdana";
_local3.size = 10;
var _local2 = new TextFormat();
_local2.align = "right";
_local2.font = "Verdana";
_local2.size = 10;
_local2.underline = true;
mc.createTextField("h_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("b_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("m_txt", mc.getNextHighestDepth(), 0, 0, 120, 22);
b_txt.autoSize = true;
m_txt.autoSize = true;
b_txt.selectable = false;
h_txt.selectable = false;
m_txt.selectable = false;
m_txt.html = true;
b_txt.multiline = true;
b_txt.setNewTextFormat(_local3);
h_txt.autoSize = true;
h_txt.setNewTextFormat(_local3);
m_txt.setNewTextFormat(_local2);
h_txt.text = "";
mc.createEmptyMovieClip("progressBar", 500);
}
}
function onLoadInit(mc) {
time_delay();
ad_width = int(_global.obj_iads.x);
ad_height = int(_global.obj_iads.y);
h_txt.text = "Advertisement";
loadMessages();
progressBar.tim = show_time;
progressBar.width = _global.obj_iads.x;
progressBar.height = 15;
progressBar._x = 100;
progressBar._y = 100;
bar_mc = progressBar.createEmptyMovieClip("bar", 1);
box_mc = progressBar.createEmptyMovieClip("box", 2);
bar_mc.beginFill(26112);
bar_mc.moveTo(0, 0);
bar_mc.lineTo(1, 0);
bar_mc.lineTo(1, progressBar.height - 2);
bar_mc.lineTo(0, progressBar.height - 2);
bar_mc.lineTo(0, 0);
bar_mc.endFill();
bar_mc._x = 1.5;
bar_mc._y = 1.5;
box_mc.lineStyle(1, 3355443, 100, true, "none", "round", "miter", 1);
box_mc.lineTo(progressBar.width, 0);
box_mc.lineTo(progressBar.width, progressBar.height);
box_mc.lineTo(0, progressBar.height);
box_mc.lineTo(0, 0);
box_mc._x = 0;
box_mc._y = 0;
progressBar.start = function () {
game_fps = getFps();
maxw = this.width - 2;
this.ad = maxw / (this.tim + 1);
this.ad = this.ad / game_fps;
};
progressBar.start();
progressBar.onEnterFrame = function () {
this.start();
if (this.bar._width < (this.width - 2)) {
this.bar._width = this.bar._width + this.ad;
} else {
this.bar._width = this.width;
}
};
b_txt.text = "Note\rClicking on the above Ad won't interrupt your game.\rAd link opens in a new window.";
myself._y = b_txt._y - 10;
x = (stageWidth / 2) - (ad_width / 2);
y = (stageHeight / 2) - (ad_height / 2);
mc._x = x;
mc._y = y;
h_txt._x = (x + (ad_width / 2)) - (h_txt._width / 2);
h_txt._y = y - 20;
progressBar._x = (x + (ad_width / 2)) - (progressBar._width / 2);
progressBar._y = (y + 5) + ad_height;
myself.invizi_logo._alpha = 100;
myself.invizi_logo.swapDepths(myself.getNextHighestDepth());
myself.invizi_logo._x = int(progressBar._x);
myself.invizi_logo._y = int(progressBar._y + progressBar._height) + 5;
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 3;
myself.invizi_logo.onRelease = function () {
getURL ("http://www.inviziads.com/index.html?utm_source=4_1&utm_medium=logo&utm_content=default&utm_campaign=invizi", "_blank");
};
b_txt._x = (x + (ad_width / 2)) - (b_txt._width / 2);
b_txt._y = progressBar._y + 38;
square_mc.beginFill(16711680);
square_mc.moveTo(0, 0);
square_mc.lineTo(ad_width, 0);
square_mc.lineTo(ad_width, ad_height);
square_mc.lineTo(0, ad_height);
square_mc.lineTo(0, 0);
square_mc.endFill();
square_mc._x = x;
square_mc._y = y;
trgt_main.setMask(square_mc);
}
function loadMessages() {
lv_messages = new XML();
lv_messages.ignoreWhite = true;
lv_messages.onLoad = function (success) {
if (success) {
totalNodes = lv_messages.firstChild.childNodes.length;
ran = Math.floor(Math.random() * totalNodes);
if (lv_messages.firstChild.childNodes[ran].firstChild == undefined) {
m_txt.htmlText = "<font color='#0066CC'><a href='http://www.inviziads.com/adv-starter-pack.html' target='_blank'>Advertisers, try us out for US$250</a></font>";
} else {
m_txt.htmlText = ((("<font color='#0066CC'><a href='" + lv_messages.firstChild.childNodes[ran].attributes.link) + "' target='_blank'>") + lv_messages.firstChild.childNodes[ran].firstChild) + "</a></font>";
}
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 2;
} else {
m_txt.htmlText = "<font color='#0066CC'><a href='http://inviziads.com' target='_blank'>Advertisers, try us out for US$250</a></font>";
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 2;
}
};
lv_messages.load(messageURL);
}
function pushdata() {
holder.obj_iads = _global.obj_iads;
}
function startdatapush(mc) {
var _local2;
_local2 = setInterval(this, "pushdata", 10);
}
function check_type() {
if (_global.obj_iads.type eq "UPDATE") {
myself.createEmptyMovieClip("holder", 100);
var _local5 = _global.obj_iads.url;
obj_iads = _global.obj_iads;
var _local3 = new Object();
_local3.onLoadComplete = function (target_mc) {
};
var _local4 = new MovieClipLoader();
_local4.addListener(_local3);
_local4.loadClip(_global.obj_iads.url, holder);
} else {
brain();
}
clearInterval(this._parent._parent.int1);
}
function parse_xml(mydata) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < mydata.firstChild.childNodes.length) {
if (mydata.firstChild.childNodes[_local1].firstChild.nodeValue != null) {
_local4[mydata.firstChild.childNodes[_local1].nodeName] = mydata.firstChild.childNodes[_local1].firstChild.nodeValue;
} else if (mydata.firstChild.childNodes[_local1].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes[_local1].childNodes.length) {
_local4[lv_result.firstChild.childNodes[_local1].childNodes[_local2].nodeName] = mydata.firstChild.childNodes[_local1].childNodes[_local2].firstChild.nodeValue;
_local2++;
}
_local4[lv_result.firstChild.childNodes[_local1].nodeName] = _local5;
}
_local1++;
}
return(_local4);
}
function measureComScore() {
var _local1 = new LoadVars();
var _local2 = new LoadVars();
_local1.C1 = 7;
_local1.C2 = 5799339 /* 0x587DAB */;
_local1.C3 = 1;
var _local3 = "http://beacon.scorecardresearch.com/scripts/beacon.dll";
_local1.sendAndLoad(_local3, _local2, "GET");
_local2.onLoad = function (ok) {
if (ok) {
trace("Comscore Success");
} else {
trace("Comscore failed");
}
};
}
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
var time = 0;
var tim = 0;
var show_time = 0;
var tempo = 0;
var tint1;
var stageWidth = 0;
var stageHeight = 0;
getFps = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
this.onEnterFrame = function () {
game_fps = getFps();
if ((game_fps != 0) && (game_fps != undefined)) {
if (Stage.width > 0) {
stageWidth = Stage.width;
stageHeight = Stage.height;
get_iads();
this.onEnterFrame = null;
}
}
};
myself = this;
signal = true;
var purl = flash.external.ExternalInterface.call("document.URL.toString");
var hurl = escape(_root._url);
var adurl = "http://s1.inviziads.com/lookup.html?";
adurl = adurl + "g=1302";
adurl = adurl + "&h=g2w";
adurl = adurl + "&type=pre";
adurl = adurl + "&v=5_0";
adurl = adurl + ("&purl=" + escape(purl));
adurl = adurl + ("&hurl=" + hurl);
adurl = adurl + "&l=en";
var my_date = new Date();
adurl = adurl + ("&ts=" + my_date.getSeconds());
var messageURL = "http://s1.inviziads.com/template/invizi_messages.xml";
stop();
Stage.scaleMode = "noScale";
Stage.align = "TL";
if ((purl.indexOf(".games2win.com") == -1) && (hurl.indexOf(".games2win.com") == -1)) {
measureComScore();
}
_root.stop();
Symbol 17 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 32 MovieClip Frame 1
function chkTagCode(tag) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < xmlObj.games.menuitem.length) {
if ((xmlObj.games.menuitem[_local2].game_promo_tag.data == tag) && (xmlObj.games.menuitem[_local2].game_gameid.data != _root.obj_game._g2wGameId)) {
menuItems[_local3] = xmlObj.games.menuitem[_local2];
_local3++;
}
_local2++;
}
}
function populateBoxes() {
chkTagCode(_root.obj_game.relatedGamesTAG);
loadAnimation._visible = false;
num = 3;
var i = 0;
while (i < num) {
var j = ((menuItems.length - i) - 1);
var mc = eval ("game" + (i + 1));
if (menuItems[j].game_name.data != undefined) {
mc._visible = true;
var gn = menuItems[j].game_name.data;
var gd = menuItems[j].game_short_desc.data;
gd = gd.substr(0, 90) + "...";
mc.gamename.htmlText = gn;
mc.gameURL = ((((("http://games2win.com/" + menuItems[j].game_page.data) + "?utm_source=") + _root.obj_game.relatedGamesSLUG) + "_family&utm_medium=post_rolls&utm_content=") + _root.obj_game._gameName) + "&utm_campaign=related_games";
mc.imgholder.loadMovie(menuItems[j].game_thumbnail.data);
mc.invizibtn.onRelease = function () {
getURL (this._parent.gameURL, "_blank");
};
}
i++;
}
}
function handleLoad(success) {
if (success) {
xmlObj = (new it.sephiroth.XML2Object()).parseXML(dataObj);
populateBoxes();
}
}
_global.$createTweenController = function () {
var _local3 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local3.$_tweenPropList = new Array();
_local3.$_tTime = getTimer();
_local3.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, "$createTweenController", 1, 0);
_global.$removeTweenController = function () {
delete _root.__tweenController__.$_tweenPropList;
delete _root.__tweenController__.$_tTime;
delete _root.__tweenController__.onEnterFrame;
_root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, "$removeTweenController", 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) {
if (timeSeconds == undefined) {
timeSeconds = 0;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local7 = [prop];
var _local11 = [mtarget[prop]];
var _local9 = [propDest];
} else {
var _local7 = [];
var _local11 = [];
var _local9 = [];
for (var _local32 in prop) {
_local11.push(mtarget[prop[_local32]]);
}
for (var _local32 in prop) {
_local7.push(prop[_local32]);
}
for (var _local32 in propDest) {
_local9.push(propDest[_local32]);
}
}
var _local12 = false;
if (_root.__tweenController__ == undefined) {
_global.$createTweenController();
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local8 = _root.__tweenController__.$_tTime;
for (var _local32 in _local11) {
if ((_local9[_local32] != undefined) && (!mtarget.$_isTweenLocked)) {
if (mtarget.$_tweenCount > 0) {
var _local3 = 0;
while (_local3 < _local4.length) {
if ((_local4[_local3]._targ == mtarget) && (_local4[_local3]._prop == _local7[_local32])) {
if ((_local8 + (delay * 1000)) < _local4[_local3]._timeDest) {
_local4.splice(_local3, 1);
_local3--;
mtarget.$_tweenCount--;
}
}
_local3++;
}
}
_local4.push({_prop:_local7[_local32], _targ:mtarget, _propStart:undefined, _propDest:_local9[_local32], _timeStart:_local8, _timeDest:_local8 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _extras:extras, _delay:delay, _isPaused:false, _timePaused:0, _callback:(_local12 ? undefined : (callback))});
mtarget.$_tweenCount = ((mtarget.$_tweenCount > 0) ? (mtarget.$_tweenCount + 1) : 1);
_local12 = true;
}
}
ASSetPropFlags(mtarget, "$_tweenCount", 1, 0);
};
ASSetPropFlags(_global, "$addTween", 1, 0);
_global.$updateTweens = function () {
var _local8 = (this.$_tTime = getTimer());
var _local6 = 0;
while (_local6 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local6];
if (_local3._targ.toString() == undefined) {
this.$_tweenPropList.splice(_local6, 1);
_local6--;
} else if (((_local3._timeStart + (_local3._delay * 1000)) <= _local8) && (!_local3._isPaused)) {
if (_local3._propStart == undefined) {
if (_local3._prop.substr(0, 10) == "__special_") {
if (_local3._prop == "__special_mc_frame__") {
_local3._propStart = _local3._targ._currentframe;
} else if (_local3._prop == "__special_mc_ra__") {
_local3._propStart = new Color(_local3._targ).getTransform().ra;
} else if (_local3._prop == "__special_mc_rb__") {
_local3._propStart = new Color(_local3._targ).getTransform().rb;
} else if (_local3._prop == "__special_mc_ga__") {
_local3._propStart = new Color(_local3._targ).getTransform().ga;
} else if (_local3._prop == "__special_mc_gb__") {
_local3._propStart = new Color(_local3._targ).getTransform().gb;
} else if (_local3._prop == "__special_mc_ba__") {
_local3._propStart = new Color(_local3._targ).getTransform().ba;
} else if (_local3._prop == "__special_mc_bb__") {
_local3._propStart = new Color(_local3._targ).getTransform().bb;
} else if (_local3._prop == "__special_mc_aa__") {
_local3._propStart = new Color(_local3._targ).getTransform().aa;
} else if (_local3._prop == "__special_mc_ab__") {
_local3._propStart = new Color(_local3._targ).getTransform().ab;
} else if (_local3._prop == "__special_text_r__") {
_local3._propStart = _local3._targ.textColor >> 16;
} else if (_local3._prop == "__special_text_g__") {
_local3._propStart = (_local3._targ.textColor & 65280) >> 8;
} else if (_local3._prop == "__special_text_b__") {
_local3._propStart = _local3._targ.textColor & 255;
} else if (_local3._prop == "__special_sound_volume__") {
_local3._propStart = _local3._targ.getVolume();
} else if (_local3._prop == "__special_sound_pan__") {
_local3._propStart = _local3._targ.getPan();
} else if (_local3._prop == "__special_bst_t__") {
_local3._propStart = 0;
_local3._extras.__special_bst_ix__ = _local3._targ._x;
_local3._extras.__special_bst_iy__ = _local3._targ._y;
} else if (_local3._prop == "__special_blur_x__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_blur_y__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_color__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].color;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_glow_alpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].alpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_glow_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_distance__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].distance;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_angle__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].angle;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 45;
}
} else if (_local3._prop == "__special_bevel_highlightColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_bevel_highlightAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_shadowColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_shadowAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
}
var _local10 = _local3._timeDest + (_local3._delay * 1000);
if (_local10 <= _local8) {
var _local4 = _local3._propDest;
} else {
var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local8 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
}
_local3._targ[_local3._prop] = (_local3._extras.mustRound ? (Math.round(_local4)) : (_local4));
if (_local3._prop == "__special_mc_frame__") {
_local3._targ.gotoAndStop(Math.round(_local4));
} else if (_local3._prop == "__special_mc_ra__") {
new Color(_local3._targ).setTransform({ra:_local4});
} else if (_local3._prop == "__special_mc_rb__") {
new Color(_local3._targ).setTransform({rb:_local4});
} else if (_local3._prop == "__special_mc_ga__") {
new Color(_local3._targ).setTransform({ga:_local4});
} else if (_local3._prop == "__special_mc_gb__") {
new Color(_local3._targ).setTransform({gb:_local4});
} else if (_local3._prop == "__special_mc_ba__") {
new Color(_local3._targ).setTransform({ba:_local4});
} else if (_local3._prop == "__special_mc_bb__") {
new Color(_local3._targ).setTransform({bb:_local4});
} else if (_local3._prop == "__special_mc_aa__") {
new Color(_local3._targ).setTransform({aa:_local4});
} else if (_local3._prop == "__special_mc_ab__") {
new Color(_local3._targ).setTransform({ab:_local4});
}
if (_local3._prop == "__special_bst_t__") {
var _local7 = _local3._extras;
var _local9 = _global.findPointOnCurve(_local7.__special_bst_ix__, _local7.__special_bst_iy__, _local7.__special_bst_cx__, _local7.__special_bst_cy__, _local7.__special_bst_dx__, _local7.__special_bst_dy__, _local4);
if (_local3._extras.mustRound) {
_local3._targ._x = Math.round(_local9.x);
_local3._targ._y = Math.round(_local9.y);
} else {
_local3._targ._x = _local9.x;
_local3._targ._y = _local9.y;
}
}
if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_b__")) {
_local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__;
}
if (_local3._prop == "__special_sound_volume__") {
_local3._targ.setVolume(_local4);
}
if (_local3._prop == "__special_sound_pan__") {
_local3._targ.setPan(_local4);
}
if (_local3._prop == "__special_blur_x__") {
_global.$setFilterProperty(_local3._targ, "blur_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_blur_y__") {
_global.$setFilterProperty(_local3._targ, "blur_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_color__") {
_global.$setFilterProperty(_local3._targ, "glow_color", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_glow_alpha__") {
_global.$setFilterProperty(_local3._targ, "glow_alpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurX__") {
_global.$setFilterProperty(_local3._targ, "glow_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurY__") {
_global.$setFilterProperty(_local3._targ, "glow_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_strength__") {
_global.$setFilterProperty(_local3._targ, "glow_strength", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_distance__") {
_global.$setFilterProperty(_local3._targ, "bevel_distance", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_angle__") {
_global.$setFilterProperty(_local3._targ, "bevel_angle", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurX__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurY__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_strength__") {
_global.$setFilterProperty(_local3._targ, "bevel_strength", _local4, _local3._extras);
}
if (_local3._targ.onTweenUpdate != undefined) {
_local3._targ.onTweenUpdate(_local3._prop);
}
if (_local10 <= _local8) {
if (_local3._targ.onTweenComplete != undefined) {
_local3._targ.onTweenComplete(_local3._prop);
}
_global.$stopTween(_local3._targ, [_local3._prop], false);
_local6--;
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local11 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local11, null);
_local11.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
}
}
_local6++;
}
if (this.$_tweenPropList.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$updateTween", 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture) {
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local7;
for (var _local9 in _local4) {
_local7 = _local4[_local9]._prop;
var _local5 = 0;
while ((_local5 < props.length) || ((_local5 < 1) && (props == undefined))) {
if (((_local4[_local9]._targ == mtarget) && ((_local7 == props[_local5]) || (props == undefined))) && (wipeFuture || ((_local4[_local9]._timeDest + (_local4[_local9]._delay * 1000)) <= getTimer()))) {
switch (_local7) {
case "__special_mc_frame__" :
case "__special_mc_ra__" :
case "__special_mc_rb__" :
case "__special_mc_ga__" :
case "__special_mc_gb__" :
case "__special_mc_ba__" :
case "__special_mc_bb__" :
case "__special_mc_aa__" :
case "__special_mc_ab__" :
case "__special_sound_volume__" :
case "__special_bst_t__" :
delete mtarget[_local7];
break;
case "__special_text_b__" :
delete mtarget.__special_text_r__;
delete mtarget.__special_text_g__;
delete mtarget.__special_text_b__;
}
_local4.splice(_local9, 1);
}
_local5++;
}
}
if (props == undefined) {
delete mtarget.$_tweenCount;
} else {
mtarget.$_tweenCount = 0;
for (var _local9 in _local4) {
if (_local4[_local9]._targ == mtarget) {
mtarget.$_tweenCount++;
}
}
if (mtarget.$_tweenCount == 0) {
delete mtarget.$_tweenCount;
}
}
if (_local4.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$stopTween", 1, 0);
_global.$setFilterProperty = function (mtarget, propName, propValue, extras) {
var _local1;
var _local7 = false;
var _local3 = [];
_local1 = 0;
while (_local1 < mtarget.filters.length) {
_local3.push(mtarget.filters[_local1]);
_local1++;
}
if (propName.substr(0, 5) == "blur_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BlurFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_blur_quality__ != undefined) {
_local3[_local1].quality = extras.__special_blur_quality__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local9;
var _local8 = ((extras.__special_blur_quality__ == undefined) ? 2 : (extras.__special_blur_quality__));
if (propName == "blur_blurX") {
_local9 = new flash.filters.BlurFilter(propValue, 0, _local8);
}
if (propName == "blur_blurY") {
_local9 = new flash.filters.BlurFilter(0, propValue, _local8);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 5) == "glow_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.GlowFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_glow_quality__ != undefined) {
_local3[_local1].quality = extras.__special_glow_quality__;
}
if (extras.__special_glow_inner__ != undefined) {
_local3[_local1].inner = extras.__special_glow_inner__;
}
if (extras.__special_glow_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_glow_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_glow_quality__ == undefined) ? 2 : (extras.__special_glow_quality__));
var _local12 = ((extras.__special_glow_inner__ == undefined) ? false : (extras.__special_glow_inner__));
var _local10 = ((extras.__special_glow_knockout__ == undefined) ? false : (extras.__special_glow_knockout__));
if (propName == "glow_color") {
var _local9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_alpha") {
var _local9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurX") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurY") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _local8, _local12, _local10);
}
if (propName == "glow_strength") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _local8, _local12, _local10);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 6) == "bevel_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BevelFilter) {
_local3[_local1][propName.substr(6)] = propValue;
if (extras.__special_bevel_quality__ != undefined) {
_local3[_local1].quality = extras.__special_bevel_quality__;
}
if (extras.__special_bevel_type__ != undefined) {
_local3[_local1].inner = extras.__special_bevel_type__;
}
if (extras.__special_bevel_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_bevel_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_bevel_quality__ == undefined) ? 2 : (extras.__special_bevel_quality__));
var _local11 = ((extras.__special_bevel_type__ == undefined) ? "inner" : (extras.__special_bevel_type__));
var _local10 = ((extras.__special_bevel_knockout__ == undefined) ? false : (extras.__special_bevel_knockout__));
if (propName == "bevel_distance") {
var _local9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_angle") {
var _local9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurX") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurY") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _local8, _local11, _local10);
}
if (propName == "bevel_strength") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _local8, _local11, _local10);
}
_local3.push(_local9);
}
} else {
return(undefined);
}
mtarget.filters = _local3;
};
MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
}));
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.roundedTween = (TextField.prototype.roundedTween = (Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
}));
ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0);
ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
if (props != undefined) {
var _local4 = 1;
while (_local4 < arguments.length) {
props.push(arguments[_local4]);
_local4++;
}
}
_global.$stopTween(this, props, true);
}));
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.pauseTween = (TextField.prototype.pauseTween = (Sound.prototype.pauseTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local6 = 1;
while (_local6 < Arguments.length) {
props.push(Arguments[_local6]);
_local6++;
}
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local5;
for (var _local7 in _local4) {
if ((_local4[_local7]._targ == this) && (!_local4[_local7]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local6 in props) {
if (props[_local6] == _local4[_local7]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local4[_local7]._isPaused = true;
_local4[_local7]._timePaused = _root.__tweenController__.$_tTime;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0);
ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0);
ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0);
MovieClip.prototype.resumeTween = (TextField.prototype.resumeTween = (Sound.prototype.resumeTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local7 = 1;
while (_local7 < Arguments.length) {
props.push(Arguments[_local7]);
_local7++;
}
}
var _local3 = _root.__tweenController__.$_tweenPropList;
var _local5;
var _local6;
for (var _local8 in _local3) {
if ((_local3[_local8]._targ == this) && (_local3[_local8]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local7 in props) {
if (props[_local7] == _local3[_local8]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local3[_local8]._isPaused = false;
_local6 = _root.__tweenController__.$_tTime - _local3[_local8]._timePaused;
_local3[_local8]._timeStart = _local3[_local8]._timeStart + _local6;
_local3[_local8]._timeDest = _local3[_local8]._timeDest + _local6;
_local3[_local8]._timePaused = 0;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0);
ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0);
ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sound.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
}));
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () {
return(this.$_tweenCount);
}));
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
}));
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0);
MovieClip.prototype.resizeTo = (TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_width", "_height"], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "resizeTo", 1, 0);
ASSetPropFlags(TextField.prototype, "resizeTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
MovieClip.prototype.xScaleTo = (TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0);
MovieClip.prototype.yScaleTo = (TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
MovieClip.prototype.roundedSlideTo = (TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0);
MovieClip.prototype.xSlideTo = (TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0);
MovieClip.prototype.roundedXSlideTo = (TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0);
MovieClip.prototype.ySlideTo = (TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0);
MovieClip.prototype.roundedYSlideTo = (TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0);
MovieClip.prototype.bezierSlideTo = (TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0);
MovieClip.prototype.roundedBezierSlideTo = (TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_local3.mustRound = true;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
if (propDest_color == null) {
this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
var _local3 = propDest_color >> 16;
var _local5 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
this.colorTransformTo(0, _local3, 0, _local5, 0, _local4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = propDest_color >> 16;
var _local6 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
_global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local3, _local6, _local4], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
} else {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
MovieClip.prototype.blurTo = (TextField.prototype.blurTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__:arguments[0].quality});
} else {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__:arguments[1]});
}
});
ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "blurTo", 1, 0);
MovieClip.prototype.xyBlurTo = (TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0);
MovieClip.prototype.xBlurTo = (TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0);
MovieClip.prototype.yBlurTo = (TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0);
MovieClip.prototype.glowTo = (TextField.prototype.glowTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__:arguments[0].quality, __special_glow_inner__:arguments[0].inner, __special_glow_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__:arguments[4], __special_glow_inner__:arguments[5], __special_glow_knockout__:arguments[6]});
}
});
ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "glowTo", 1, 0);
MovieClip.prototype.xyGlowTo = (TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0);
MovieClip.prototype.xGlowTo = (TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0);
MovieClip.prototype.yGlowTo = (TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0);
MovieClip.prototype.bevelTo = (TextField.prototype.bevelTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__:arguments[0].quality, __special_bevel_type__:arguments[0].type, __special_bevel_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__:arguments[8], __special_bevel_type__:arguments[9], __special_bevel_knockout__:arguments[10]});
}
});
ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0);
MovieClip.prototype.xyBevelTo = (TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__:quality, __special_bevel_type__:type, __special_bevel_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
return({x:p1x + (t * (((2 * (1 - t)) * (cx - p1x)) + (t * (p2x - p1x)))), y:p1y + (t * (((2 * (1 - t)) * (cy - p1y)) + (t * (p2y - p1y))))});
};
ASSetPropFlags(_global, "findPointOnCurve", 1, 0);
_global.findTweenColor = function (objProp, tTime) {
var _local8 = objProp._propStart >> 16;
var _local4 = objProp._propDest >> 16;
var _local5 = (objProp._propStart >> 8) & 255;
var _local6 = (objProp._propDest >> 8) & 255;
var _local9 = objProp._propStart & 255;
var _local7 = objProp._propDest & 255;
var _local12 = Math.round(_global.findTweenValue(_local8, _local4, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local10 = Math.round(_global.findTweenValue(_local5, _local6, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local3 = Math.round(_global.findTweenValue(_local9, _local7, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
return(((_local12 << 16) + (_local10 << 8)) + _local3);
};
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local4 = _propStart;
var _local2 = _propDest - _propStart;
var _local3 = _timeDest - _timeStart;
var _local6 = _extra1;
var _local7 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local3) + _local4);
case "easeinquad" :
_local1 = _local1 / _local3;
return(((_local2 * _local1) * _local1) + _local4);
case "easeoutquad" :
_local1 = _local1 / _local3;
return((((-_local2) * _local1) * (_local1 - 2)) + _local4);
case "easeinoutquad" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local4);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local4);
case "easeoutinquad" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuad") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuad") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeincubic" :
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * _local1) + _local4);
case "easeoutcubic" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local4);
case "easeinoutcubic" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local4);
case "easeoutincubic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCubic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCubic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquart" :
_local1 = _local1 / _local3;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquart" :
_local1 = (_local1 / _local3) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local4);
case "easeinoutquart" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local4);
case "easeoutinquart" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuart") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuart") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquint" :
_local1 = _local1 / _local3;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquint" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local4);
case "easeinoutquint" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local4);
case "easeoutinquint" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuint") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuint") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local3) * (Math.PI/2))) + _local2) + _local4);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local3) * (Math.PI/2))) + _local4);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local3) - 1)) + _local4);
case "easeoutinsine" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutSine") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInSine") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinexpo" :
return(((_local1 == 0) ? (_local4) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local3) - 1))) + _local4)));
case "easeoutexpo" :
return(((_local1 == _local3) ? (_local4 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local3)) + 1)) + _local4)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local4);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local4);
case "easeoutinexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * ((-Math.pow(2, (-10 * _local1) / 1)) + 1)) + _local4);
}
return(((_local2 / 2) * (Math.pow(2, (10 * (_local1 - 2)) / 1) + 1)) + _local4);
case "easeincirc" :
_local1 = _local1 / _local3;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
case "easeoutcirc" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local4);
case "easeinoutcirc" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local4);
case "easeoutincirc" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCirc") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCirc") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
_local1 = _local1 - 1;
return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local4);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 == 2) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.45;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
}
_local1 = _local1 - 1;
return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local4);
case "easeoutinelastic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutElastic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInElastic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local4);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local4);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local4);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local4);
case "easeoutinback" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBack") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBack") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local3 - _local1, _local3, "easeOutBounce")) + _local4);
case "easeoutbounce" :
_local1 = _local1 / _local3;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local4);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local4);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local4);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local4);
case "easeinoutbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeInBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeoutinbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBounce") * 0.5) + (_local2 * 0.5)) + _local4);
}
trace(("MC TWEEN ### Error on transition: there's no \"" + _animType) + "\" animation type.");
return(0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
var xmlURL = ((_root.obj_game.relatedGamesXML + "?t=") + getTimer());
var xmlObj;
var menuItems = new Array();
var dataObj = new XML();
dataObj.ignoreWhite = true;
var sXML = xmlURL;
dataObj.onLoad = handleLoad;
dataObj.load(sXML);
Instance of Symbol 26 MovieClip "game1" in Symbol 32 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 26 MovieClip "game2" in Symbol 32 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 26 MovieClip "game3" in Symbol 32 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Symbol 57 MovieClip Frame 1
btn_shareScore.onRelease = function () {
_root._shareScoreHandler(this, _root.obj_game.FBMsg);
};
btn_videoTutorial.onRelease = function () {
_root._showGameVideo();
};
Symbol 59 MovieClip [_g2w_gameover_mc] Frame 1
stop();
_root._initAssetsPanel(this);
_root._showAssetPanels(this);
Symbol 59 MovieClip [_g2w_gameover_mc] Frame 2
stop();
Instance of Symbol 57 MovieClip "g2wExternalLinks" in Symbol 59 MovieClip [_g2w_gameover_mc] Frame 2
onClipEvent (load) {
if (_root.checkhost()) {
this._visible = false;
}
}
Symbol 59 MovieClip [_g2w_gameover_mc] Frame 3
stop();
btn_playAgain.onRelease = function () {
_root._playAgainHandler(this);
};
Symbol 62 MovieClip [brain_inviziads] Frame 1
function brain() {
create_assets(myself, _global.obj_iads.type);
switch (_global.obj_iads.type) {
case "FULL" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main);
break;
case "EMBED" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main.trgt_ads);
if (_global.obj_iads.link ne undefined) {
trgt_main.onRelease = function () {
getURL (_global.obj_iads.link, "_blank");
};
}
break;
case "NOOP" :
clearInterval(int1);
_root.play();
break;
}
}
function get_iads() {
lv_iads = new XML();
lv_result = new XML();
lv_result.ignoreWhite = true;
lv_result.onLoad = function (success) {
if (success) {
parse_iads(lv_result);
} else {
_root.play();
}
};
lv_iads.g = game_id;
lv_iads.h = "as";
lv_iads.sendAndLoad(_root.adurl, lv_result, "POST");
}
function parse_iads(lv_result) {
_global.obj_iads = new Array();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes.length) {
if (lv_result.firstChild.childNodes[_local2].firstChild.nodeValue != null) {
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = lv_result.firstChild.childNodes[_local2].firstChild.nodeValue;
} else if (lv_result.firstChild.childNodes[_local2].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local4 = 0;
while (_local4 < lv_result.firstChild.childNodes[_local2].childNodes.length) {
_local5[lv_result.firstChild.childNodes[_local2].childNodes[_local4].nodeName] = lv_result.firstChild.childNodes[_local2].childNodes[_local4].firstChild.nodeValue;
_local4++;
}
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = _local5;
}
_local2++;
}
show_time = int(_global.obj_iads.t);
check_type();
}
function time_delay() {
tim = 0;
int1 = setInterval(timespam, 1000);
}
function timespam() {
tim++;
if (tim == show_time) {
clearInterval(int1);
_root.play();
}
}
function create_assets(mc, _type) {
mc.createEmptyMovieClip("whitebg", 0);
whitebg.beginFill(16777215);
whitebg.moveTo(0, 0);
whitebg.lineTo(0, 0);
whitebg.lineTo(Stage.width, 0);
whitebg.lineTo(Stage.width, Stage.height + 20);
whitebg.lineTo(0, Stage.height + 20);
whitebg.endFill();
mc.createEmptyMovieClip("trgt_main", 4);
mcLoader = new MovieClipLoader();
mcLoader.addListener(mc);
if (_type != "FULL") {
mc.createEmptyMovieClip("square_mc", 5);
var _local4 = trgt_main.createEmptyMovieClip("trgt_ads", getNextHighestDepth());
var _local3 = new TextFormat();
_local3.align = "center";
_local3.font = "Verdana";
_local3.size = 10;
var _local2 = new TextFormat();
_local2.align = "right";
_local2.font = "Verdana";
_local2.size = 10;
_local2.underline = true;
mc.createTextField("h_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("b_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("m_txt", mc.getNextHighestDepth(), 0, 0, 120, 22);
b_txt.autoSize = true;
m_txt.autoSize = true;
b_txt.selectable = false;
h_txt.selectable = false;
m_txt.selectable = false;
m_txt.html = true;
b_txt.multiline = true;
b_txt.setNewTextFormat(_local3);
h_txt.autoSize = true;
h_txt.setNewTextFormat(_local3);
m_txt.setNewTextFormat(_local2);
loadMessages();
h_txt.text = "";
mc.createEmptyMovieClip("progressBar", 500);
}
}
function onLoadInit(mc) {
ad_width = int(_global.obj_iads.x);
ad_height = int(_global.obj_iads.y);
h_txt.text = "Advertisement";
progressBar.tim = show_time;
progressBar.width = _global.obj_iads.x;
progressBar.height = 15;
progressBar.start = function () {
game_fps = getFps();
maxw = this.width - 2;
this.ad = maxw / (this.tim + 1);
this.ad = this.ad / game_fps;
};
progressBar.onEnterFrame = function () {
if (this.bar._width < (this.width - 2)) {
this.bar._width = this.bar._width + this.ad;
} else {
this.bar._width = this.width;
}
};
progressBar._x = 100;
progressBar._y = 100;
bar_mc = progressBar.createEmptyMovieClip("bar", 1);
box_mc = progressBar.createEmptyMovieClip("box", 2);
bar_mc.beginFill(26112);
bar_mc.moveTo(0, 0);
bar_mc.lineTo(1, 0);
bar_mc.lineTo(1, progressBar.height - 2);
bar_mc.lineTo(0, progressBar.height - 2);
bar_mc.lineTo(0, 0);
bar_mc.endFill();
bar_mc._x = 1.5;
bar_mc._y = 1.5;
box_mc.lineStyle(1, 3355443, 100, true, "none", "round", "miter", 1);
box_mc.lineTo(progressBar.width, 0);
box_mc.lineTo(progressBar.width, progressBar.height);
box_mc.lineTo(0, progressBar.height);
box_mc.lineTo(0, 0);
box_mc._x = 0;
box_mc._y = 0;
progressBar.start();
b_txt.text = "Note\rClicking on the above Ad won't interrupt your game.\rAd link opens in a new window.\rThanks to our sponsors, we provide you free games to play.";
myself._y = b_txt._y - 10;
x = (Stage.width / 2) - (ad_width / 2);
y = (Stage.height / 2) - (ad_height / 2);
mc._x = x;
mc._y = y;
h_txt._x = (x + (ad_width / 2)) - (h_txt._width / 2);
h_txt._y = y - 20;
progressBar._x = (x + (ad_width / 2)) - (progressBar._width / 2);
progressBar._y = (y + 5) + ad_height;
myself.attachMovie("invizi_logo", "invizi_logo", this.getNextHighestDepth() + 100);
myself.invizi_logo.swapDepths(myself.getNextHighestDepth());
myself.invizi_logo._x = int(progressBar._x);
myself.invizi_logo._y = int(progressBar._y + progressBar._height) + 5;
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 3;
myself.invizi_logo.onRelease = function () {
getURL ("http://www.inviziads.com", "_blank");
};
b_txt._x = (x + (ad_width / 2)) - (b_txt._width / 2);
b_txt._y = progressBar._y + 38;
square_mc.beginFill(16711680);
square_mc.moveTo(0, 0);
square_mc.lineTo(ad_width, 0);
square_mc.lineTo(ad_width, ad_height);
square_mc.lineTo(0, ad_height);
square_mc.lineTo(0, 0);
square_mc.endFill();
square_mc._x = x;
square_mc._y = y;
trgt_main.setMask(square_mc);
}
function loadMessages() {
lv_messages = new XML();
lv_messages.onLoad = function (success) {
if (success) {
totalNodes = lv_messages.firstChild.childNodes.length;
ran = Math.floor(Math.random() * totalNodes);
trace(lv_messages.firstChild);
if (lv_messages.firstChild.childNodes[ran].firstChild == undefined) {
m_txt.htmlText = "<font color='#ff0000'><a href='http://www.inviziads.com/adv-starter-pack.html' target='_blank'>Advertisers, try us out for US$250</a></font>";
} else {
m_txt.htmlText = ((("<font color='#ff0000'><a href='" + lv_messages.firstChild.childNodes[ran].attributes.link) + "' target='_blank'>") + lv_messages.firstChild.childNodes[ran].firstChild) + "</a></font>";
}
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 2;
} else {
m_txt.htmlText = "<font color='#ff0000'><a href='http://www.inviziads.com/adv-starter-pack.html' target='_blank'>Advertisers, try us out for US$250</a></font>";
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 2;
}
};
lv_messages.load(_root.messageURL);
}
function pushdata() {
holder.obj_iads = _global.obj_iads;
}
function startdatapush(mc) {
var _local2;
_local2 = setInterval(this, "pushdata", 10);
}
function check_type() {
if (_global.obj_iads.type eq "UPDATE") {
myself.createEmptyMovieClip("holder", 100);
var _local4 = _global.obj_iads.url;
show_time = 15;
obj_iads = _global.obj_iads;
var _local2 = new Object();
_local2.onLoadComplete = function (target_mc) {
};
var _local3 = new MovieClipLoader();
_local3.addListener(_local2);
_local3.loadClip(_global.obj_iads.url, holder);
} else {
brain();
}
time_delay();
}
function parse_xml(mydata) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < mydata.firstChild.childNodes.length) {
if (mydata.firstChild.childNodes[_local1].firstChild.nodeValue != null) {
_local4[mydata.firstChild.childNodes[_local1].nodeName] = mydata.firstChild.childNodes[_local1].firstChild.nodeValue;
} else if (mydata.firstChild.childNodes[_local1].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes[_local1].childNodes.length) {
_local4[lv_result.firstChild.childNodes[_local1].childNodes[_local2].nodeName] = mydata.firstChild.childNodes[_local1].childNodes[_local2].firstChild.nodeValue;
_local2++;
}
_local4[lv_result.firstChild.childNodes[_local1].nodeName] = _local5;
}
_local1++;
}
return(_local4);
}
System.security.allowDomain("*");
getFps = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
this.onEnterFrame = function () {
game_fps = getFps();
if ((game_fps != 0) && (game_fps != undefined)) {
this.onEnterFrame = null;
}
};
myself = this;
signal = true;
if (_root.checkhost() == false) {
_root.stop();
var my_date = new Date();
_root.adurl = (_root.obj_game.inviziads + "&type=pre&ts=") + my_date.getSeconds();
_root.messageURL = "http://s1.inviziads.com/template/invizi_messages.xml";
get_iads();
} else {
_root.play();
}
Symbol 70 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 76 MovieClip [game_sound_ctrl] Frame 1
_gameSounds = new Sound();
var frame = "on";
changeVol = function (targetvol, step) {
this.onEnterFrame = function () {
var _local3 = _gameSounds.getVolume();
if ((step < 0) and (_local3 <= targetvol)) {
_local3 = targetvol;
delete this.onEnterFrame;
_root.so_sound = 1;
} else if ((step > 0) and (_local3 >= targetvol)) {
_local3 = targetvol;
delete this.onEnterFrame;
_root.so_sound = 0;
} else {
_gameSounds.setVolume(_local3 + step);
}
};
};
if (_root.so_sound == 1) {
frame = "off";
this.gotoAndPlay(frame);
}
this.onRelease = function () {
if (frame == "on") {
frame = "off";
} else {
frame = "on";
}
this.gotoAndPlay(frame);
};
Symbol 76 MovieClip [game_sound_ctrl] Frame 2
stop();
changeVol(100, 5);
Symbol 76 MovieClip [game_sound_ctrl] Frame 3
stop();
changeVol(0, -5);
Symbol 1711 MovieClip [__Packages.it.sephiroth.XML2Object] Frame 0
class it.sephiroth.XML2Object
{
var oXML;
function XML2Object () {
}
function get xml() {
return(oXML);
}
function parseXML(sFile) {
oResult = new Object();
oXML = sFile;
oResult = translateXML();
return(oResult);
}
function translateXML(from, path, name, position) {
var _local2;
var _local9;
var _local4;
var _local10;
if (path == undefined) {
path = this;
name = "oResult";
}
path = path[name];
if (from == undefined) {
from = new XML(xml.toString());
from.ignoreWhite = true;
}
if (from.hasChildNodes()) {
_local9 = from.childNodes;
if (position != undefined) {
_local10 = path;
path = path[position];
}
while (_local9.length > 0) {
_local4 = _local9.shift();
_local2 = _local4.nodeName;
if (_local2 != undefined) {
var _local5 = new Object();
_local5.attributes = _local4.attributes;
_local5.data = _local4.firstChild.nodeValue;
if (position != undefined) {
_local10 = path;
}
if (path[_local2] != undefined) {
if (path[_local2].__proto__ == Array.prototype) {
path[_local2].push(_local5);
name = _local4.nodeName;
position = path[_local2].length - 1;
} else {
var _local8 = path[_local2];
path[_local2] = new Array();
path[_local2].push(_local8);
path[_local2].push(_local5);
name = _local2;
position = path[_local2].length - 1;
}
} else {
path[_local2] = _local5;
name = _local2;
position = undefined;
}
}
if (_local4.hasChildNodes()) {
translateXML(_local4, path, name, position);
}
}
}
return(oResult);
}
var oResult = new Object();
}
Symbol 234 MovieClip Frame 45
stop();
Symbol 235 MovieClip Frame 205
stop();
_root.gotoAndStop("lblloader");
Symbol 247 Button
on (release) {
getURL ("http://www.games2win.com/?utm_source=game_strip&utm_medium=inviziads&utm_campaign=game_strip", "_blank");
}
Symbol 250 MovieClip Frame 1
stop();
System.security.allowDomain("*");
var GameURL = _root._url;
if ((GameURL.indexOf(".gangofgamers.com") != -1) || (GameURL.indexOf(".games2win.com") != -1)) {
mc_common._visible = false;
} else {
mc_common._visible = true;
var str = ((("http://s1.inviziads.com/lookup.html?type=strip&g=" + _root.obj_game._g2wGameId) + "&h=") + _root.obj_game._host);
loadMovie (str, this.loaderClip);
}
Symbol 258 MovieClip Frame 1
var total = _root.getBytesTotal();
var loaded = 0;
var percent = 0;
fill_mc._xscale = 0;
onEnterFrame = function () {
if (percent <= 100) {
loaded = _root.getBytesLoaded();
percent = Math.ceil((loaded / total) * 100);
fill_mc._xscale = percent;
trace((percent + " ") + fill_mc._xscale);
}
if (loaded >= total) {
_root.gotoAndStop("lblgameintro");
}
};
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
stop();
Symbol 297 Button
on (rollOver) {
insss_btn.useHandCursor = false;
}
Symbol 301 Button
on (release) {
_root.gotoAndStop("lblgame");
}
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 11
stop();
Symbol 332 Button
on (release) {
_parent.story_btn.enabled = true;
_parent.instructions_btn.enabled = true;
_parent.start_btn.enabled = true;
_parent.book_btn.enabled = true;
}
Symbol 355 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 355 MovieClip Frame 2
stop();
Symbol 355 MovieClip Frame 3
stop();
Symbol 355 MovieClip Frame 4
stop();
Symbol 355 MovieClip Frame 5
stop();
Symbol 355 MovieClip Frame 6
stop();
Symbol 358 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 358 MovieClip Frame 2
stop();
Symbol 358 MovieClip Frame 3
stop();
Symbol 358 MovieClip Frame 4
stop();
Symbol 358 MovieClip Frame 5
stop();
Symbol 358 MovieClip Frame 6
stop();
Symbol 362 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 362 MovieClip Frame 2
stop();
Symbol 362 MovieClip Frame 3
stop();
Symbol 362 MovieClip Frame 4
stop();
Symbol 362 MovieClip Frame 5
stop();
Symbol 362 MovieClip Frame 6
stop();
Symbol 366 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 366 MovieClip Frame 2
stop();
Symbol 366 MovieClip Frame 3
stop();
Symbol 366 MovieClip Frame 4
stop();
Symbol 366 MovieClip Frame 5
stop();
Symbol 366 MovieClip Frame 6
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 2
stop();
Symbol 367 MovieClip Frame 3
stop();
Symbol 367 MovieClip Frame 4
stop();
Symbol 370 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 370 MovieClip Frame 3
stop();
Symbol 370 MovieClip Frame 4
stop();
Symbol 370 MovieClip Frame 5
stop();
Symbol 370 MovieClip Frame 6
stop();
Symbol 374 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 374 MovieClip Frame 2
stop();
Symbol 374 MovieClip Frame 3
stop();
Symbol 374 MovieClip Frame 4
stop();
Symbol 374 MovieClip Frame 5
stop();
Symbol 374 MovieClip Frame 6
stop();
Symbol 377 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 377 MovieClip Frame 2
stop();
Symbol 377 MovieClip Frame 3
stop();
Symbol 377 MovieClip Frame 4
stop();
Symbol 377 MovieClip Frame 5
stop();
Symbol 377 MovieClip Frame 6
stop();
Symbol 381 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 381 MovieClip Frame 2
stop();
Symbol 381 MovieClip Frame 3
stop();
Symbol 381 MovieClip Frame 4
stop();
Symbol 381 MovieClip Frame 5
stop();
Symbol 381 MovieClip Frame 6
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 2
stop();
Symbol 382 MovieClip Frame 3
stop();
Symbol 382 MovieClip Frame 4
stop();
Symbol 386 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 386 MovieClip Frame 2
stop();
Symbol 386 MovieClip Frame 3
stop();
Symbol 386 MovieClip Frame 4
stop();
Symbol 386 MovieClip Frame 5
stop();
Symbol 386 MovieClip Frame 6
stop();
Symbol 389 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 389 MovieClip Frame 2
stop();
Symbol 389 MovieClip Frame 3
stop();
Symbol 389 MovieClip Frame 4
stop();
Symbol 389 MovieClip Frame 5
stop();
Symbol 389 MovieClip Frame 6
stop();
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 2
stop();
Symbol 391 MovieClip Frame 1
gotoAndStop(_root.globalMakeUp[0]);
hair_mc.gotoAndStop(_root.globalMakeUp[1]);
hair_mc.type_mc.gotoAndStop(_root.globalMakeUp[2]);
preventn_mc.gotoAndStop(_root.globalMakeUp[3]);
onEnterFrame = function () {
if (_root.globalMakeUp[0] == 3) {
if (_root.globalMakeUp[1] >= 2) {
_root.globalMakeUp[1] = 2;
}
}
};
stop();
Symbol 391 MovieClip Frame 2
stop();
Symbol 391 MovieClip Frame 3
stop();
Symbol 695 MovieClip Frame 1
stop();
Symbol 695 MovieClip Frame 2
_root.isPause = true;
Symbol 695 MovieClip Frame 5
_root.isPause = true;
Symbol 695 MovieClip Frame 40
_root.isPause = true;
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
close_btn.onRelease = function () {
gotoAndStop (1);
_root.isPause = false;
};
Symbol 695 MovieClip Frame 49
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
gotoAndStop (1);
_root.isPause = false;
};
Symbol 695 MovieClip Frame 58
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
gotoAndStop (1);
_root.isPause = false;
};
Symbol 695 MovieClip Frame 67
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
gotoAndStop (1);
_root.isPause = false;
};
Symbol 695 MovieClip Frame 76
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
gotoAndStop (1);
_root.isPause = false;
};
Symbol 695 MovieClip Frame 85
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
gotoAndStop (1);
_root.isPause = false;
};
Symbol 695 MovieClip Frame 94
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
gotoAndStop (1);
_root.isPause = false;
};
Symbol 695 MovieClip Frame 103
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
gotoAndStop (1);
_root.isPause = false;
};
Symbol 695 MovieClip Frame 112
stop();
Symbol 696 MovieClip Frame 2
stop();
start_btn.onRelease = function () {
_root.gotoAndStop("lblgame");
};
book_btn.onRelease = function () {
inbook_mc.gotoAndPlay(2);
};
instructions_btn.onRelease = function () {
if (INS_MC._currentframe eq 1) {
INS_MC.play();
}
};
Symbol 697 MovieClip Frame 1
gotoAndStop ("lblgameintro");
Symbol 697 MovieClip Frame 18
stop();
Symbol 697 MovieClip Frame 23
stop();
Symbol 784 MovieClip Frame 1
stop();
Symbol 784 MovieClip Frame 2
stop();
Symbol 784 MovieClip Frame 3
stop();
Symbol 784 MovieClip Frame 4
stop();
Symbol 799 MovieClip Frame 1
stop();
Symbol 799 MovieClip Frame 2
stop();
Symbol 799 MovieClip Frame 3
stop();
Symbol 799 MovieClip Frame 4
stop();
Symbol 804 MovieClip Frame 1
var levelWinArray = [7, 8, 9, 10];
var myColorTransform = {ra:100, rb:255, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0};
var myColorTransformO = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
onEnterFrame = function () {
if (_root.hairScr < levelWinArray[_root.level - 1]) {
var _local3 = new Color(this);
_local3.setTransform(myColorTransform);
} else {
var _local3 = new Color(this);
_local3.setTransform(myColorTransformO);
}
};
Symbol 805 MovieClip Frame 1
var total = 10;
var makeovrscore = 0;
fill_mc._xscale = 0;
var loaded = 0;
var percent = 0;
onEnterFrame = function () {
if (percent <= 100) {
_root.hairScr = ((_root.prevnScr + _root.hrStyleScr) + _root.clrScr) + _root.hairLengthScr;
makeovrscore = _root.hairScr;
loaded = makeovrscore;
percent = Math.ceil((loaded / total) * 100);
fill_mc._xscale = percent;
}
};
Symbol 806 MovieClip Frame 1
stop();
Symbol 806 MovieClip Frame 2
stop();
Symbol 806 MovieClip Frame 3
stop();
Symbol 806 MovieClip Frame 4
stop();
Symbol 811 MovieClip Frame 1
gotoAndStop(_root.level);
stop();
Symbol 811 MovieClip Frame 2
stop();
Symbol 811 MovieClip Frame 3
stop();
Symbol 811 MovieClip Frame 4
stop();
Symbol 812 MovieClip Frame 1
gotoAndStop(_root.level);
stop();
Symbol 812 MovieClip Frame 2
stop();
Symbol 812 MovieClip Frame 3
stop();
Symbol 812 MovieClip Frame 4
stop();
Symbol 817 MovieClip Frame 1
stop();
_root.FrameNo = 1;
_root.userArray[1] = _root.FrameNo;
Symbol 817 MovieClip Frame 2
stop();
_root.FrameNo = 2;
_root.userArray[1] = _root.FrameNo;
Symbol 817 MovieClip Frame 3
stop();
_root.FrameNo = 3;
_root.userArray[1] = _root.FrameNo;
Symbol 817 MovieClip Frame 4
stop();
_root.FrameNo = 4;
_root.userArray[1] = _root.FrameNo;
Symbol 817 MovieClip Frame 5
stop();
Symbol 884 MovieClip Frame 1
stop();
Symbol 884 MovieClip Frame 2
stop();
Symbol 884 MovieClip Frame 3
stop();
Symbol 884 MovieClip Frame 4
stop();
Symbol 886 MovieClip Frame 1
Symbol 894 MovieClip Frame 1
stop();
frm_mc.onRelease = function () {
if (_root.isPause == false) {
if (_parent.shampoo == false) {
_parent.allAnimation_mc.gotoAndStop(2);
gotoAndStop (2);
}
}
};
Symbol 894 MovieClip Frame 2
stop();
Symbol 905 MovieClip Frame 1
stop();
Symbol 905 MovieClip Frame 2
stop();
Symbol 927 MovieClip Frame 68
stop();
_parent._parent.shampoo = true;
Symbol 930 Button
on (rollOver) {
animation_btns.useHandCursor = false;
}
Symbol 946 MovieClip Frame 58
stop();
if (_parent._parent.conditioner == true) {
_parent._parent.jetShowr2 = true;
_parent._parent.baseHairFin_mc.gotoAndStop(3);
} else {
_parent._parent.washin = true;
_parent._parent.baseHairFin_mc.gotoAndStop(2);
}
_parent.gotoAndStop(1);
Symbol 956 MovieClip Frame 68
stop();
_parent._parent.conditioner = true;
Symbol 962 MovieClip Frame 55
stop();
_parent._parent.towel = true;
Symbol 978 MovieClip Frame 50
stop();
_parent._parent.reset_btn._alpha = 100;
_parent._parent.reset_btn.enabled = true;
_parent._parent.dryer = true;
_parent._parent.baseHairFin_mc.gotoAndStop(4);
_parent._parent.bgGlow_mc._visible = true;
_parent._parent.wigs_mc._visible = true;
_parent._parent.wigs_mc.gotoAndStop(2);
_parent.gotoAndStop(1);
Symbol 994 MovieClip Frame 38
stop();
Symbol 1000 MovieClip Frame 38
stop();
_parent._parent.comb = true;
trace((_parent._parent.comb + " ") + _parent._parent.straightenProsses);
if (_parent._parent.straightenProsses == 1) {
_parent._parent.straightenProsses = 2;
_parent.gotoAndStop(9);
}
Symbol 1018 MovieClip Frame 81
stop();
if (_parent._parent.updoProsses == 0) {
_parent._parent.straightenProsses = 1;
}
_parent._parent.hair_mc.gotoAndStop(5);
Symbol 1025 MovieClip Frame 33
stop();
Symbol 1026 MovieClip Frame 1
onEnterFrame = function () {
var _local2 = _root.hairColor;
gotoAndStop(_local2);
_root.userArray[2] = _currentframe;
if (_root.globalMakeUp[2] == _currentframe) {
_root.clrScr = 1;
} else {
_root.clrScr = 0;
}
};
stop();
Symbol 1026 MovieClip Frame 2
stop();
Symbol 1026 MovieClip Frame 3
stop();
Symbol 1026 MovieClip Frame 4
stop();
Symbol 1026 MovieClip Frame 5
stop();
Symbol 1026 MovieClip Frame 6
stop();
Symbol 1027 MovieClip Frame 1
onEnterFrame = function () {
var _local2 = _root.hairColor;
gotoAndStop(_local2);
_root.userArray[2] = _currentframe;
if (_root.globalMakeUp[2] == _currentframe) {
_root.clrScr = 1;
} else {
_root.clrScr = 0;
}
};
stop();
Symbol 1027 MovieClip Frame 2
stop();
Symbol 1027 MovieClip Frame 3
stop();
Symbol 1027 MovieClip Frame 4
stop();
Symbol 1027 MovieClip Frame 5
stop();
Symbol 1027 MovieClip Frame 6
stop();
Symbol 1028 MovieClip Frame 1
onEnterFrame = function () {
var _local2 = _root.hairColor;
gotoAndStop(_local2);
_root.userArray[2] = _currentframe;
if (_root.globalMakeUp[2] == _currentframe) {
_root.clrScr = 1;
} else {
_root.clrScr = 0;
}
};
stop();
Symbol 1028 MovieClip Frame 2
stop();
Symbol 1028 MovieClip Frame 3
stop();
Symbol 1028 MovieClip Frame 4
stop();
Symbol 1028 MovieClip Frame 5
stop();
Symbol 1028 MovieClip Frame 6
stop();
Symbol 1029 MovieClip Frame 1
onEnterFrame = function () {
var _local2 = _root.hairColor;
gotoAndStop(_local2);
_root.userArray[2] = _currentframe;
if (_root.globalMakeUp[2] == _currentframe) {
_root.clrScr = 1;
} else {
_root.clrScr = 0;
}
};
stop();
Symbol 1029 MovieClip Frame 2
stop();
Symbol 1029 MovieClip Frame 3
stop();
Symbol 1029 MovieClip Frame 4
stop();
Symbol 1029 MovieClip Frame 5
stop();
Symbol 1029 MovieClip Frame 6
stop();
Symbol 1030 MovieClip Frame 1
gotoAndStop(_root.FrameNo);
_parent._parent.HairType_mc.gotoAndStop(5);
onEnterFrame = function () {
_root.userArray[0] = 1;
if (_root.globalMakeUp[0] == 1) {
_root.hrStyleScr = 3.5;
} else {
_root.hrStyleScr = 0;
}
};
stop();
Symbol 1030 MovieClip Frame 2
stop();
Symbol 1030 MovieClip Frame 3
stop();
Symbol 1030 MovieClip Frame 4
stop();
Symbol 1040 MovieClip Frame 1
onEnterFrame = function () {
var _local2 = _root.preventionFrm + 1;
gotoAndStop(_local2);
_root.userArray[3] = _currentframe;
};
stop();
if (_root.level == 1) {
_root.prevnScr = 0.5;
} else {
_root.prevnScr = 0;
}
Symbol 1040 MovieClip Frame 2
stop();
if (_root.level == 3) {
_root.prevnScr = 0.5;
} else {
_root.prevnScr = 0;
}
Symbol 1040 MovieClip Frame 3
stop();
_root.prevnScr = 0;
Symbol 1040 MovieClip Frame 4
stop();
_root.prevnScr = 0;
Symbol 1040 MovieClip Frame 5
stop();
if (_root.level == 4) {
_root.prevnScr = 0.5;
} else {
_root.prevnScr = 0;
}
Symbol 1040 MovieClip Frame 6
stop();
if (_root.level == 2) {
_root.prevnScr = 0.5;
} else {
_root.prevnScr = 0;
}
Symbol 1040 MovieClip Frame 7
stop();
_root.prevnScr = 0;
Symbol 1051 MovieClip Frame 58
stop();
_parent._parent.rollers = true;
Symbol 1059 MovieClip Frame 1
frm_mc.onRelease = function () {
if (_root.isPause == false) {
if ((_parent.curlyProsses == 1) && (_parent.rollers == true)) {
_parent.allAnimation_mc.gotoAndStop(11);
_parent.curlyProsses++;
}
}
};
Symbol 1063 MovieClip Frame 40
stop();
_parent._parent.rollersBrush = true;
Symbol 1086 MovieClip Frame 77
stop();
_parent._parent.hair_mc.gotoAndStop(5);
_parent.gotoAndStop(13);
Symbol 1088 MovieClip Frame 1
onEnterFrame = function () {
var _local2 = _root.hairColor;
gotoAndStop(_local2);
_root.userArray[2] = _currentframe;
if (_root.globalMakeUp[2] == _currentframe) {
_root.clrScr = 1;
} else {
_root.clrScr = 0;
}
};
stop();
Symbol 1088 MovieClip Frame 2
stop();
Symbol 1088 MovieClip Frame 3
stop();
Symbol 1088 MovieClip Frame 4
stop();
Symbol 1088 MovieClip Frame 5
stop();
Symbol 1088 MovieClip Frame 6
stop();
Symbol 1089 MovieClip Frame 1
onEnterFrame = function () {
var _local2 = _root.hairColor;
gotoAndStop(_local2);
_root.userArray[2] = _currentframe;
if (_root.globalMakeUp[2] == _currentframe) {
_root.clrScr = 1;
} else {
_root.clrScr = 0;
}
};
stop();
Symbol 1089 MovieClip Frame 2
stop();
Symbol 1089 MovieClip Frame 3
stop();
Symbol 1089 MovieClip Frame 4
stop();
Symbol 1089 MovieClip Frame 5
stop();
Symbol 1089 MovieClip Frame 6
stop();
Symbol 1090 MovieClip Frame 1
onEnterFrame = function () {
var _local2 = _root.hairColor;
gotoAndStop(_local2);
_root.userArray[2] = _currentframe;
if (_root.globalMakeUp[2] == _currentframe) {
_root.clrScr = 1;
} else {
_root.clrScr = 0;
}
};
stop();
Symbol 1090 MovieClip Frame 2
stop();
Symbol 1090 MovieClip Frame 3
stop();
Symbol 1090 MovieClip Frame 4
stop();
Symbol 1090 MovieClip Frame 5
stop();
Symbol 1090 MovieClip Frame 6
stop();
Symbol 1091 MovieClip Frame 1
onEnterFrame = function () {
var _local2 = _root.hairColor;
gotoAndStop(_local2);
_root.userArray[2] = _currentframe;
if (_root.globalMakeUp[2] == _currentframe) {
_root.clrScr = 1;
} else {
_root.clrScr = 0;
}
};
stop();
Symbol 1091 MovieClip Frame 2
stop();
Symbol 1091 MovieClip Frame 3
stop();
Symbol 1091 MovieClip Frame 4
stop();
Symbol 1091 MovieClip Frame 5
stop();
Symbol 1091 MovieClip Frame 6
stop();
Symbol 1092 MovieClip Frame 1
gotoAndStop(_root.FrameNo);
onEnterFrame = function () {
_root.userArray[0] = 2;
if (_root.globalMakeUp[0] == 2) {
_root.hrStyleScr = 3.5;
} else {
_root.hrStyleScr = 0;
}
};
stop();
Symbol 1092 MovieClip Frame 2
stop();
Symbol 1092 MovieClip Frame 3
stop();
Symbol 1092 MovieClip Frame 4
stop();
Symbol 1108 MovieClip Frame 79
stop();
_parent.gotoAndStop(15);
Symbol 1123 MovieClip Frame 51
stop();
_parent._parent.hair_mc.gotoAndStop(5);
_parent.gotoAndStop(16);
Symbol 1124 MovieClip Frame 1
onEnterFrame = function () {
var _local2 = _root.hairColor;
gotoAndStop(_local2);
_root.userArray[2] = _currentframe;
if (_root.globalMakeUp[2] == _currentframe) {
_root.clrScr = 1;
} else {
_root.clrScr = 0;
}
};
stop();
Symbol 1124 MovieClip Frame 2
stop();
Symbol 1124 MovieClip Frame 3
stop();
Symbol 1124 MovieClip Frame 4
stop();
Symbol 1124 MovieClip Frame 5
stop();
Symbol 1124 MovieClip Frame 6
stop();
Symbol 1125 MovieClip Frame 1
onEnterFrame = function () {
var _local2 = _root.hairColor;
gotoAndStop(_local2);
_root.userArray[2] = _currentframe;
if (_root.globalMakeUp[2] == _currentframe) {
_root.clrScr = 1;
} else {
_root.clrScr = 0;
}
};
stop();
Symbol 1125 MovieClip Frame 2
stop();
Symbol 1125 MovieClip Frame 3
stop();
Symbol 1125 MovieClip Frame 4
stop();
Symbol 1125 MovieClip Frame 5
stop();
Symbol 1125 MovieClip Frame 6
stop();
Symbol 1126 MovieClip Frame 1
gotoAndStop(_root.FrameNo);
_parent._parent.HairType_mc.gotoAndStop(5);
onEnterFrame = function () {
_root.userArray[0] = 3;
if (_root.globalMakeUp[0] == 3) {
_root.hrStyleScr = 3.5;
} else {
_root.hrStyleScr = 0;
}
};
stop();
Symbol 1126 MovieClip Frame 2
stop();
Symbol 1127 MovieClip Frame 1
stop();
_parent.baseHairFin_mc._visible = true;
Symbol 1127 MovieClip Frame 2
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 3
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 4
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 5
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 6
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 7
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 8
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 9
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 10
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 11
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 12
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 13
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 14
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 15
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 16
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1127 MovieClip Frame 17
stop();
_parent.baseHairFin_mc._visible = false;
Symbol 1139 MovieClip Frame 1
frm_mc.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.straightenProsses == 0) && (_parent.comb == false)) && (_parent.dryer == true)) {
if (_parent.allAnimation_mc._currentframe == 1) {
_parent.curlyProsses = 2;
_parent.bgGlow_mc.gotoAndStop(1);
_parent.allAnimation_mc.gotoAndStop(8);
}
} else if ((_parent.updoProsses == 1) && (_parent.comb == true)) {
_parent.curlyProsses = 2;
_parent.updoProsses++;
_parent.spray = true;
_parent.bgGlow_mc.gotoAndStop(1);
_parent.allAnimation_mc.gotoAndStop(8);
}
}
};
Symbol 1141 MovieClip Frame 1
frm_mc.onRelease = function () {
if (_root.isPause == false) {
if ((_parent.straightenProsses == 1) && (_parent.dryer == true)) {
_parent.curlyProsses = 2;
_parent.bgGlow_mc.gotoAndStop(1);
_parent.allAnimation_mc.gotoAndStop(7);
} else if (_parent.allAnimation_mc._currentframe == 1) {
if (((_parent.updoProsses == 0) && (_parent.dryer == true)) && (_root.FrameNo <= 2)) {
_parent.curlyProsses = 2;
_parent.updoProsses++;
_parent.bgGlow_mc.gotoAndStop(1);
_parent.allAnimation_mc.gotoAndStop(7);
}
}
}
};
Symbol 1144 MovieClip Frame 1
frm_mc.onRelease = function () {
if (_root.isPause == false) {
if ((_parent.curlyProsses == 0) && (_parent.dryer == true)) {
_parent.bgGlow_mc.gotoAndStop(1);
_parent.allAnimation_mc.gotoAndStop(10);
_parent.curlyProsses++;
_parent.straightenProsses = 2;
_parent.updoProsses = 2;
}
}
};
Symbol 1146 MovieClip Frame 1
frm_mc.onRelease = function () {
if (_root.isPause == false) {
if ((_parent.curlyProsses == 1) && (_parent.rollers == true)) {
_parent.allAnimation_mc.gotoAndStop(11);
_parent.curlyProsses++;
_parent.straightenProsses = 2;
_parent.bgGlow_mc.gotoAndStop(1);
_parent.updoProsses = 2;
}
}
};
Symbol 1151 MovieClip Frame 1
stop();
hitCircl_mc.onRelease = function () {
if (_root.isPause == false) {
if ((_parent.shampoo == true) && (_parent.washin == false)) {
_parent.allAnimation_mc.gotoAndStop(3);
gotoAndStop (2);
} else if ((_parent.condition_mc._currentframe == 2) && (_parent.conditioner == true)) {
_parent.allAnimation_mc.gotoAndStop(3);
gotoAndStop (2);
}
}
};
Symbol 1151 MovieClip Frame 2
stop();
Symbol 1153 MovieClip Frame 1
stop();
hitCircl_mc.onRelease = function () {
if (_root.isPause == false) {
if ((_parent.washin == true) && (_parent.conditioner == false)) {
_parent.allAnimation_mc.gotoAndStop(4);
_parent.shower_mc.gotoAndStop(1);
gotoAndStop (2);
}
}
};
Symbol 1153 MovieClip Frame 2
stop();
Symbol 1156 MovieClip Frame 1
stop();
frm_mc.onRelease = function () {
if (_root.isPause == false) {
if (_parent.shampoo == false) {
_parent.allAnimation_mc.gotoAndStop(2);
gotoAndStop (2);
}
}
};
Symbol 1156 MovieClip Frame 2
stop();
Symbol 1161 MovieClip Frame 1
frm_mc.onRelease = function () {
if (_root.isPause == false) {
if ((_parent.curlyProsses == 2) && (_parent.rollersBrush == true)) {
_parent.allAnimation_mc.gotoAndStop(12);
_parent.curlyProsses++;
}
}
};
Symbol 1166 MovieClip Frame 1
frm_mc.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.spray == true) && (_parent.allAnimation_mc.iron_mc._currentframe != undefined)) && (_parent.allAnimation_mc.iron_mc._currentframe >= 70)) {
trace((_parent.spray + " kamal kamal kamal ") + _parent.allAnimation_mc.iron_mc._currentframe);
if (_parent.allAnimation_mc.straightHair_mc._currentframe <= 2) {
_parent.allAnimation_mc.gotoAndStop(14);
}
}
}
};
Symbol 1171 MovieClip Frame 1
this.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
_root.hairColor = 6;
}
}
};
this.onPress = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
_root.hairColor = 1;
}
}
};
Symbol 1174 MovieClip Frame 1
this.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
_root.hairColor = 2;
}
}
};
this.onPress = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
_root.hairColor = 1;
}
}
};
Symbol 1177 MovieClip Frame 1
this.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
_root.hairColor = 4;
}
}
};
this.onPress = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
_root.hairColor = 1;
}
}
};
Symbol 1182 MovieClip Frame 1
this.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
_root.hairColor = 3;
}
}
};
this.onPress = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
_root.hairColor = 1;
}
}
};
Symbol 1185 MovieClip Frame 1
this.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
_root.hairColor = 5;
}
}
};
this.onPress = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
_root.hairColor = 1;
}
}
};
Symbol 1188 MovieClip Frame 1
this.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
_root.hairColor = 1;
}
}
};
Symbol 1190 MovieClip Frame 1
stop();
hitCircl_mc.onRelease = function () {
if (_root.isPause == false) {
if ((_parent.jetShowr2 == true) && (_parent.towel == false)) {
_parent.allAnimation_mc.gotoAndStop(5);
gotoAndStop (2);
}
}
};
Symbol 1190 MovieClip Frame 2
stop();
Symbol 1193 MovieClip Frame 1
stop();
hitCircl_mc.onRelease = function () {
if (_root.isPause == false) {
if ((_parent.towel == true) && (_parent.dryer == false)) {
_parent.allAnimation_mc.gotoAndStop(6);
gotoAndStop (2);
}
}
};
Symbol 1193 MovieClip Frame 2
stop();
Symbol 1195 MovieClip Frame 1
var count = 0;
this.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
trace(_root.prevnScr + " scr");
count++;
if (count == 1) {
_root.preventionFrm = 4;
} else {
_root.preventionFrm = 0;
count = 0;
}
}
}
};
Symbol 1197 MovieClip Frame 1
var count = 0;
this.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
count++;
if (count == 1) {
_root.preventionFrm = 5;
} else {
_root.preventionFrm = 0;
count = 0;
}
}
}
};
Symbol 1199 MovieClip Frame 1
var count = 0;
this.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
count++;
if (count == 1) {
_root.preventionFrm = 2;
} else {
_root.preventionFrm = 0;
count = 0;
}
}
}
};
Symbol 1200 MovieClip Frame 1
var count = 0;
this.onRelease = function () {
if (_root.isPause == false) {
if (((_parent.allAnimation_mc._currentframe == 9) || (_parent.allAnimation_mc._currentframe == 13)) || (_parent.allAnimation_mc._currentframe == 16)) {
count++;
if (count == 1) {
_root.preventionFrm = 1;
} else {
_root.preventionFrm = 0;
count = 0;
}
}
}
};
Symbol 1202 MovieClip Frame 1
var hairCrntFrm;
this.onRelease = function () {
if (_root.isPause == false) {
if ((_parent.allAnimation_mc._currentframe == 1) && (_parent.dryer == true)) {
if (_parent.count <= 4) {
_parent.bgGlow_mc.gotoAndStop(1);
_parent.count++;
_parent.wigs_mc.gotoAndStop(_parent.count);
_parent.hair_mc.gotoAndStop(_parent.count - 1);
if (_parent.hair_mc._currentframe == _root.globalMakeUp[1]) {
_root.hairLengthScr = 5;
} else {
_root.hairLengthScr = 0;
}
}
if (_parent.hair_mc._currentframe != 1) {
if ((_parent.count - 1) == hairCrntFrm) {
_parent.wigs_mc.inHair_mc.gotoAndStop(2);
} else {
_parent.wigs_mc.inHair_mc.gotoAndStop(1);
}
}
}
}
};
onEnterFrame = function () {
hairCrntFrm = _parent.hair_mc._currentframe - 1;
};
Symbol 1203 MovieClip Frame 1
this.onRelease = function () {
if (_root.isPause == false) {
if ((_parent.allAnimation_mc._currentframe == 1) && (_parent.dryer == true)) {
_parent.bgGlow_mc.gotoAndStop(1);
if (_parent.count >= 3) {
_parent.count--;
_parent.wigs_mc.gotoAndStop(_parent.count);
_parent.hair_mc.gotoAndStop(_parent.count - 1);
if (_parent.hair_mc._currentframe == _root.globalMakeUp[1]) {
_root.hairLengthScr = 5;
} else {
_root.hairLengthScr = 0;
}
}
if (_parent.hair_mc._currentframe != 1) {
if ((_parent.count - 1) == hairCrntFrm) {
_parent.wigs_mc.inHair_mc.gotoAndStop(1);
} else {
_parent.wigs_mc.inHair_mc.gotoAndStop(1);
}
}
}
}
};
onEnterFrame = function () {
_parent.count = _parent.wigs_mc._currentframe;
hairCrntFrm = _parent.hair_mc._currentframe - 1;
};
Symbol 1210 MovieClip Frame 1
stop();
Symbol 1210 MovieClip Frame 2
stop();
Symbol 1211 MovieClip Frame 1
stop();
Symbol 1211 MovieClip Frame 2
stop();
Symbol 1220 MovieClip Frame 1
stop();
Symbol 1220 MovieClip Frame 2
stop();
Symbol 1220 MovieClip Frame 3
stop();
Symbol 1220 MovieClip Frame 4
stop();
Symbol 1220 MovieClip Frame 5
stop();
Symbol 1222 MovieClip Frame 1
stop();
Symbol 1222 MovieClip Frame 2
stop();
Symbol 1224 MovieClip Frame 1
stop();
Symbol 1224 MovieClip Frame 2
stop();
Symbol 1226 MovieClip Frame 1
stop();
Symbol 1226 MovieClip Frame 2
stop();
Symbol 1228 MovieClip Frame 1
stop();
Symbol 1228 MovieClip Frame 2
stop();
Symbol 1230 MovieClip Frame 1
stop();
Symbol 1230 MovieClip Frame 2
stop();
Symbol 1232 MovieClip Frame 1
stop();
Symbol 1232 MovieClip Frame 2
stop();
Symbol 1233 MovieClip Frame 1
stop();
Symbol 1233 MovieClip Frame 2
var xpos = inHair_mc._x;
var ypos = inHair_mc._y;
var frmNo = 0;
if (_parent.hair_mc._currentframe == _root.globalMakeUp[1]) {
_root.hairLengthScr = 5;
_parent.bgGlow_mc.gotoAndStop(1);
}
stop();
_root.FrameNo = 1;
Symbol 1233 MovieClip Frame 3
stop();
_root.FrameNo = 2;
Symbol 1233 MovieClip Frame 4
stop();
_root.FrameNo = 3;
Symbol 1233 MovieClip Frame 5
stop();
_root.FrameNo = 4;
Symbol 1243 MovieClip Frame 1
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function reset() {
_root.preventionFrm = 0;
_root.hairColor = 1;
_root.FrameNo = 1;
_root.hrStyleScr = 0;
_root.hairLengthScr = 0;
_root.clrScr = 0;
_root.prevnScr = 0;
curlyProsses = 0;
straightenProsses = 0;
updoProsses = 0;
comb = false;
rollersBrush = false;
rollers = false;
spray = false;
hair_mc.gotoAndStop(1);
wigs_mc.gotoAndStop(2);
bgGlow_mc.play();
allAnimation_mc.gotoAndStop(1);
_root.userArray = [0, 0, 0, 0];
}
var count = 2;
_root.isPause = false;
wigs_mc._visible = false;
bgGlow_mc._visible = false;
var spray = false;
_root.objectClip = "";
var shampoo = false;
var washin = false;
var conditioner = false;
var towel = false;
var dryer = false;
var counter = false;
var jetShowr2 = false;
_root.FrameNo = 1;
_root.preventionFrm = 0;
_root.hairColor = 1;
var curlyProsses = 0;
var straightenProsses = 0;
var updoProsses = 0;
var rollers = false;
var rollersBrush = false;
var comb = false;
_root.hairLengthScr = 0;
_root.hrStyleScr = 0;
_root.prevnScr = 0;
_root.clrScr = 0;
refGirlHalf_mc.gotoAndStop(_root.level);
refGirlFull_mc.gotoAndStop(_root.level);
fullGrlHair_mc.gotoAndStop(_root.level);
girl_mc.gotoAndStop(_root.level);
var makeUp = [randomRange(1, 3), randomRange(1, 4), randomRange(1, 6), randomRange(2, 7)];
_root.globalMakeUp = makeUp;
_root.userArray = [0, 0, 0, 0];
reset_btn._alpha = 30;
reset_btn.enabled = false;
reset_btn.onRelease = function () {
if (_root.isPause == false) {
if (dryer == true) {
reset();
}
}
};
done_btn.onRelease = function () {
trace("aaaa");
if (_root.isPause == false) {
if (bar_mc.loaded >= 7) {
_root.levelScore = 10000 + (500 * (_root.level - 1));
_root.score = _root.score + ((bar_mc.percent * 100) + _root.levelScore);
_root.myGame.gotoAndStop("levelComplete");
} else {
_root.myGame.gotoAndStop("gameOver");
}
}
};
book_btn.onRelease = function () {
if (_root.isPause == false) {
_root.isPause = true;
_parent.bk_mc._visible = true;
_parent.bk_mc.book_mc.gotoAndPlay(2);
}
};
_root.isPause = false;
var isVisible = false;
var tag;
_root.clip = "";
onEnterFrame = function () {
if (_root.isPause == false) {
for (p in this) {
if (this[p].hitTest(_xmouse, _ymouse, true)) {
if (this[p]._currentframe == 1) {
if (this[p].myName != undefined) {
if (!isVisible) {
_root.clip = this[p];
tag = this.attachMovie("tag", "taga", this.getNextHighestDepth());
tag._x = this[p]._x + this[p].xValue;
tag._y = this[p]._y + this[p].yValue;
tag.picName = this[p].myName;
isVisible = true;
}
}
}
} else if ((!_root.clip.hitTest(_xmouse, _ymouse, true)) && (_root.clip != "")) {
_root.clip = "";
tag.removeMovieClip();
isVisible = false;
}
}
}
};
Instance of Symbol 1139 MovieClip "iron_mc" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Straightening Iron";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1141 MovieClip "comb_mc" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Comb";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1144 MovieClip "roller_mc" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Rollers";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1146 MovieClip "rollerComb_mc" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Roller Comb";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1151 MovieClip "shower_mc" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Water Jet Shower";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1153 MovieClip "condition_mc" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Conditioner";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1156 MovieClip "shampoo_mc" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Volumizing shampoo";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1161 MovieClip "mousse_mc" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Mousse";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1166 MovieClip "spry_mc" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Spray";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1171 MovieClip in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dark Red";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1174 MovieClip in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dark Violet";
var xValue = 0;
var yValue = 20;
}
Instance of Symbol 1177 MovieClip in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Copper Blonde";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1182 MovieClip in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Mocha Brown";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1185 MovieClip in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Honey Blonde";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1188 MovieClip in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Blonde Dark Brown";
var xValue = 0;
var yValue = 20;
}
Instance of Symbol 1190 MovieClip "towel_mc" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dry Towel";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1193 MovieClip "dryer_mc" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Dryer";
var xValue = 0;
var yValue = 30;
}
Instance of Symbol 1195 MovieClip in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1197 MovieClip in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1199 MovieClip in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1200 MovieClip in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Jaw Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1242 MovieClip "book_btn" in Symbol 1243 MovieClip Frame 1
onClipEvent (load) {
var myName = "Tips & Tricks book";
var xValue = 0;
var yValue = 40;
}
Symbol 1250 Button
on (rollOver) {
bb.useHandCursor = false;
}
Symbol 1277 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1278 MovieClip Frame 1
stop();
Symbol 1280 MovieClip Frame 1
stop();
Symbol 1307 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1307 MovieClip Frame 2
stop();
Symbol 1307 MovieClip Frame 3
stop();
Symbol 1307 MovieClip Frame 4
stop();
Symbol 1307 MovieClip Frame 5
stop();
Symbol 1307 MovieClip Frame 6
stop();
Symbol 1312 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1312 MovieClip Frame 2
stop();
Symbol 1312 MovieClip Frame 3
stop();
Symbol 1312 MovieClip Frame 4
stop();
Symbol 1312 MovieClip Frame 5
stop();
Symbol 1312 MovieClip Frame 6
stop();
Symbol 1315 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1315 MovieClip Frame 2
stop();
Symbol 1315 MovieClip Frame 3
stop();
Symbol 1315 MovieClip Frame 4
stop();
Symbol 1315 MovieClip Frame 5
stop();
Symbol 1315 MovieClip Frame 6
stop();
Symbol 1319 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1319 MovieClip Frame 2
stop();
Symbol 1319 MovieClip Frame 3
stop();
Symbol 1319 MovieClip Frame 4
stop();
Symbol 1319 MovieClip Frame 5
stop();
Symbol 1319 MovieClip Frame 6
stop();
Symbol 1320 MovieClip Frame 1
stop();
Symbol 1320 MovieClip Frame 2
stop();
Symbol 1320 MovieClip Frame 3
stop();
Symbol 1320 MovieClip Frame 4
stop();
Symbol 1324 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1324 MovieClip Frame 2
stop();
Symbol 1324 MovieClip Frame 3
stop();
Symbol 1324 MovieClip Frame 4
stop();
Symbol 1324 MovieClip Frame 5
stop();
Symbol 1324 MovieClip Frame 6
stop();
Symbol 1328 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1328 MovieClip Frame 2
stop();
Symbol 1328 MovieClip Frame 3
stop();
Symbol 1328 MovieClip Frame 4
stop();
Symbol 1328 MovieClip Frame 5
stop();
Symbol 1328 MovieClip Frame 6
stop();
Symbol 1333 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1333 MovieClip Frame 2
stop();
Symbol 1333 MovieClip Frame 3
stop();
Symbol 1333 MovieClip Frame 4
stop();
Symbol 1333 MovieClip Frame 5
stop();
Symbol 1333 MovieClip Frame 6
stop();
Symbol 1337 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1337 MovieClip Frame 2
stop();
Symbol 1337 MovieClip Frame 3
stop();
Symbol 1337 MovieClip Frame 4
stop();
Symbol 1337 MovieClip Frame 5
stop();
Symbol 1337 MovieClip Frame 6
stop();
Symbol 1338 MovieClip Frame 1
stop();
Symbol 1338 MovieClip Frame 2
stop();
Symbol 1338 MovieClip Frame 3
stop();
Symbol 1338 MovieClip Frame 4
stop();
Symbol 1342 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1342 MovieClip Frame 2
stop();
Symbol 1342 MovieClip Frame 3
stop();
Symbol 1342 MovieClip Frame 4
stop();
Symbol 1342 MovieClip Frame 5
stop();
Symbol 1342 MovieClip Frame 6
stop();
Symbol 1346 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1346 MovieClip Frame 2
stop();
Symbol 1346 MovieClip Frame 3
stop();
Symbol 1346 MovieClip Frame 4
stop();
Symbol 1346 MovieClip Frame 5
stop();
Symbol 1346 MovieClip Frame 6
stop();
Symbol 1347 MovieClip Frame 1
stop();
Symbol 1347 MovieClip Frame 2
stop();
Symbol 1348 MovieClip Frame 1
gotoAndStop(_root.globalMakeUp[0]);
hair_mc.gotoAndStop(_root.globalMakeUp[1]);
hair_mc.type_mc.gotoAndStop(_root.globalMakeUp[2]);
preventn_mc.gotoAndStop(_root.globalMakeUp[3]);
onEnterFrame = function () {
if (_root.globalMakeUp[0] == 3) {
if (_root.globalMakeUp[1] >= 2) {
_root.globalMakeUp[1] = 2;
}
}
};
stop();
Symbol 1348 MovieClip Frame 2
stop();
Symbol 1348 MovieClip Frame 3
stop();
Symbol 1654 MovieClip Frame 1
_root.isPause = true;
Symbol 1654 MovieClip Frame 4
_root.isPause = true;
Symbol 1654 MovieClip Frame 39
_root.isPause = true;
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
close_btn.onRelease = function () {
_parent._parent.bk_mc._visible = false;
_root.isPause = false;
};
Symbol 1654 MovieClip Frame 48
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
_parent._parent.bk_mc._visible = false;
_root.isPause = false;
};
Symbol 1654 MovieClip Frame 57
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
_parent._parent.bk_mc._visible = false;
_root.isPause = false;
};
Symbol 1654 MovieClip Frame 66
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
_parent._parent.bk_mc._visible = false;
_root.isPause = false;
};
Symbol 1654 MovieClip Frame 75
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
_parent._parent.bk_mc._visible = false;
_root.isPause = false;
};
Symbol 1654 MovieClip Frame 84
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
_parent._parent.bk_mc._visible = false;
_root.isPause = false;
};
Symbol 1654 MovieClip Frame 93
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
_parent._parent.bk_mc._visible = false;
_root.isPause = false;
};
Symbol 1654 MovieClip Frame 102
stop();
next_btn.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
last_btn.onRelease = function () {
gotoAndStop(_currentframe - 9);
};
close_btn.onRelease = function () {
_parent._parent.bk_mc._visible = false;
_root.isPause = false;
};
Symbol 1654 MovieClip Frame 111
stop();
Symbol 1659 MovieClip Frame 1
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function reset() {
_root.preventionFrm = 0;
_root.hairColor = 1;
_root.FrameNo = 1;
_root.hrStyleScr = 0;
_root.hairLengthScr = 0;
_root.clrScr = 0;
_root.prevnScr = 0;
curlyProsses = 0;
straightenProsses = 0;
updoProsses = 0;
comb = false;
rollersBrush = false;
rollers = false;
hair_mc.gotoAndStop(1);
wigs_mc.gotoAndStop(2);
bgGlow_mc.play();
allAnimation_mc.gotoAndStop(1);
_root.userArray = [0, 0, 0, 0];
}
var count = 2;
bgGlow_mc._visible = false;
_root.isPause = false;
wigs_mc._visible = false;
var spray = false;
_root.objectClip = "";
var shampoo = false;
var washin = false;
var conditioner = false;
var towel = false;
var dryer = false;
var counter = false;
var jetShowr2 = false;
_root.FrameNo = 1;
_root.preventionFrm = 0;
_root.hairColor = 1;
var curlyProsses = 0;
var straightenProsses = 0;
var updoProsses = 0;
var rollers = false;
var rollersBrush = false;
var comb = false;
_root.hairLengthScr = 0;
_root.hrStyleScr = 0;
_root.prevnScr = 0;
_root.clrScr = 0;
refGirlHalf_mc.gotoAndStop(_root.level);
refGirlFull_mc.gotoAndStop(_root.level);
fullGrlHair_mc.gotoAndStop(_root.level);
girl_mc.gotoAndStop(_root.level);
var makeUp = [randomRange(1, 3), randomRange(1, 4), randomRange(1, 6), randomRange(2, 7)];
_root.globalMakeUp = makeUp;
_root.userArray = [0, 0, 0, 0];
reset_btn._alpha = 30;
reset_btn.enabled = false;
reset_btn.onRelease = function () {
if (dryer == true) {
reset();
}
};
done_btn.onRelease = function () {
if (_root.isPause == false) {
if (bar_mc.loaded >= 8) {
_root.levelScore = 10000 + (500 * (_root.level - 1));
_root.score = _root.score + ((bar_mc.percent * 100) + _root.levelScore);
_root.myGame.gotoAndStop("levelComplete");
} else {
_root.myGame.gotoAndStop("gameOver");
}
}
};
book_btn.onRelease = function () {
if (_root.isPause == false) {
_root.isPause = true;
_parent.bk_mc._visible = true;
_parent.bk_mc.book_mc.gotoAndPlay(1);
}
};
_root.isPause = false;
var isVisible = false;
var tag;
_root.clip = "";
onEnterFrame = function () {
if (_root.isPause == false) {
for (p in this) {
if (this[p].hitTest(_xmouse, _ymouse, true)) {
if (this[p].myName != undefined) {
if (this[p]._currentframe == 1) {
if (!isVisible) {
_root.clip = this[p];
tag = this.attachMovie("tag", "taga", this.getNextHighestDepth());
tag._x = this[p]._x + this[p].xValue;
tag._y = this[p]._y + this[p].yValue;
tag.picName = this[p].myName;
isVisible = true;
}
}
}
} else if ((!_root.clip.hitTest(_xmouse, _ymouse, true)) && (_root.clip != "")) {
_root.clip = "";
tag.removeMovieClip();
isVisible = false;
}
}
}
};
Instance of Symbol 1139 MovieClip "iron_mc" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Straightening Iron";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1141 MovieClip "comb_mc" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Comb";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1144 MovieClip "roller_mc" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Rollers";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1146 MovieClip "rollerComb_mc" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Roller Comb";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1151 MovieClip "shower_mc" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Water Jet Shower";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1153 MovieClip "condition_mc" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Conditioner";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1156 MovieClip "shampoo_mc" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Volumizing shampoo";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1161 MovieClip "mousse_mc" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Mousse";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1166 MovieClip "spry_mc" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Spray";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1171 MovieClip in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dark Red";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1174 MovieClip in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dark Violet";
var xValue = 0;
var yValue = 20;
}
Instance of Symbol 1177 MovieClip in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Copper Blonde";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1182 MovieClip in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Mocha Brown";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1185 MovieClip in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Honey Blonde";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1188 MovieClip in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Blonde Dark Brown";
var xValue = 0;
var yValue = 20;
}
Instance of Symbol 1190 MovieClip "towel_mc" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dry Towel";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1193 MovieClip "dryer_mc" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Dryer";
var xValue = 0;
var yValue = 30;
}
Instance of Symbol 1195 MovieClip in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1197 MovieClip in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1199 MovieClip in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1200 MovieClip in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Jaw Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1658 MovieClip in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Circle";
var xValue = 100;
var yValue = 10;
}
Instance of Symbol 1242 MovieClip "book_btn" in Symbol 1659 MovieClip Frame 1
onClipEvent (load) {
var myName = "Tips & Tricks book";
var xValue = 0;
var yValue = 40;
}
Symbol 1662 MovieClip Frame 1
gotoAndStop (2);
stop();
Symbol 1662 MovieClip Frame 2
stop();
Symbol 1662 MovieClip Frame 3
stop();
Symbol 1664 MovieClip Frame 1
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function reset() {
_root.preventionFrm = 0;
_root.hairColor = 1;
_root.FrameNo = 1;
_root.hrStyleScr = 0;
_root.hairLengthScr = 0;
_root.clrScr = 0;
_root.prevnScr = 0;
curlyProsses = 0;
straightenProsses = 0;
updoProsses = 0;
comb = false;
rollersBrush = false;
rollers = false;
hair_mc.gotoAndStop(1);
wigs_mc.gotoAndStop(2);
bgGlow_mc.play();
allAnimation_mc.gotoAndStop(1);
_root.userArray = [0, 0, 0, 0];
}
var count = 2;
bgGlow_mc._visible = false;
_root.isPause = false;
wigs_mc._visible = false;
var spray = false;
_root.objectClip = "";
var shampoo = false;
var washin = false;
var conditioner = false;
var towel = false;
var dryer = false;
var counter = false;
var jetShowr2 = false;
_root.FrameNo = 1;
_root.preventionFrm = 0;
_root.hairColor = 1;
var curlyProsses = 0;
var straightenProsses = 0;
var updoProsses = 0;
var rollers = false;
var rollersBrush = false;
var comb = false;
_root.hairLengthScr = 0;
_root.hrStyleScr = 0;
_root.prevnScr = 0;
_root.clrScr = 0;
refGirlHalf_mc.gotoAndStop(_root.level);
refGirlFull_mc.gotoAndStop(_root.level);
fullGrlHair_mc.gotoAndStop(_root.level);
girl_mc.gotoAndStop(_root.level);
var makeUp = [randomRange(1, 3), randomRange(1, 4), randomRange(1, 6), randomRange(2, 7)];
_root.hairObject = randomRange(2, 3);
trace(_root.hairObject + " objct");
_root.userArray = [0, 0, 0, 0];
reset_btn._alpha = 30;
reset_btn.enabled = false;
_root.globalMakeUp = makeUp;
reset_btn.onRelease = function () {
if (dryer == true) {
reset();
}
};
done_btn.onRelease = function () {
if (_root.isPause == false) {
if (bar_mc.loaded >= 9) {
_root.levelScore = 10000 + (500 * (_root.level - 1));
_root.score = _root.score + ((bar_mc.percent * 100) + _root.levelScore);
_root.myGame.gotoAndStop("levelComplete");
} else {
_root.myGame.gotoAndStop("gameOver");
}
}
};
book_btn.onRelease = function () {
if (_root.isPause == false) {
_root.isPause = true;
_parent.bk_mc._visible = true;
_parent.bk_mc.book_mc.gotoAndPlay(1);
}
};
_root.isPause = false;
var isVisible = false;
var tag;
_root.clip = "";
onEnterFrame = function () {
if (_root.isPause == false) {
for (p in this) {
if (this[p].hitTest(_xmouse, _ymouse, true)) {
if (this[p]._currentframe == 1) {
if (this[p].myName != undefined) {
if (!isVisible) {
_root.clip = this[p];
tag = this.attachMovie("tag", "taga", this.getNextHighestDepth());
tag._x = this[p]._x + this[p].xValue;
tag._y = this[p]._y + this[p].yValue;
tag.picName = this[p].myName;
isVisible = true;
}
}
}
} else if ((!_root.clip.hitTest(_xmouse, _ymouse, true)) && (_root.clip != "")) {
_root.clip = "";
tag.removeMovieClip();
isVisible = false;
}
}
}
};
Instance of Symbol 1139 MovieClip "iron_mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Straightening Iron";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1141 MovieClip "comb_mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Comb";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1144 MovieClip "roller_mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Rollers";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1146 MovieClip "rollerComb_mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Roller Comb";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1151 MovieClip "shower_mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Water Jet Shower";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1153 MovieClip "condition_mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Conditioner";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1156 MovieClip "shampoo_mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Volumizing shampoo";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1161 MovieClip "mousse_mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Mousse";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1166 MovieClip "spry_mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Spray";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1171 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dark Red";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1174 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dark Violet";
var xValue = 0;
var yValue = 20;
}
Instance of Symbol 1177 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Copper Blonde";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1182 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Mocha Brown";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1185 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Honey Blonde";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1188 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Blonde Dark Brown";
var xValue = 0;
var yValue = 20;
}
Instance of Symbol 1190 MovieClip "towel_mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dry Towel";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1193 MovieClip "dryer_mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Dryer";
var xValue = 0;
var yValue = 30;
}
Instance of Symbol 1195 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1197 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1199 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1200 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Jaw Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1658 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Circle";
var xValue = 100;
var yValue = 10;
}
Instance of Symbol 1242 MovieClip "book_btn" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
var myName = "Tips & Tricks book";
var xValue = 0;
var yValue = 40;
}
Symbol 1669 MovieClip Frame 1
gotoAndStop (3);
stop();
Symbol 1669 MovieClip Frame 2
stop();
Symbol 1669 MovieClip Frame 3
stop();
Symbol 1669 MovieClip Frame 4
stop();
Symbol 1671 MovieClip Frame 1
gotoAndStop (3);
stop();
Symbol 1671 MovieClip Frame 2
stop();
Symbol 1671 MovieClip Frame 3
stop();
Symbol 1671 MovieClip Frame 4
stop();
Symbol 1672 MovieClip Frame 1
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function reset() {
_root.preventionFrm = 0;
_root.hairColor = 1;
_root.FrameNo = 1;
_root.hrStyleScr = 0;
_root.hairLengthScr = 0;
_root.clrScr = 0;
_root.prevnScr = 0;
curlyProsses = 0;
straightenProsses = 0;
updoProsses = 0;
comb = false;
rollersBrush = false;
rollers = false;
hair_mc.gotoAndStop(1);
wigs_mc.gotoAndStop(2);
bgGlow_mc.play();
allAnimation_mc.gotoAndStop(1);
_root.userArray = [0, 0, 0, 0];
}
var count = 2;
bgGlow_mc._visible = false;
_root.isPause = false;
wigs_mc._visible = false;
var spray = false;
_root.objectClip = "";
var shampoo = false;
var washin = false;
var conditioner = false;
var towel = false;
var dryer = false;
var counter = false;
var jetShowr2 = false;
_root.FrameNo = 1;
_root.preventionFrm = 0;
_root.hairColor = 1;
var curlyProsses = 0;
var straightenProsses = 0;
var updoProsses = 0;
var rollers = false;
var rollersBrush = false;
var comb = false;
_root.hairLengthScr = 0;
_root.hrStyleScr = 0;
_root.prevnScr = 0;
_root.clrScr = 0;
refGirlHalf_mc.gotoAndStop(_root.level);
refGirlFull_mc.gotoAndStop(_root.level);
fullGrlHair_mc.gotoAndStop(_root.level);
girl_mc.gotoAndStop(_root.level);
var makeUp = [randomRange(1, 3), randomRange(1, 4), randomRange(1, 6), randomRange(2, 7)];
_root.globalMakeUp = makeUp;
_root.userArray = [0, 0, 0, 0];
reset_btn._alpha = 30;
reset_btn.enabled = false;
reset_btn.onRelease = function () {
if (dryer == true) {
reset();
}
};
done_btn.onRelease = function () {
if (_root.isPause == false) {
if (bar_mc.loaded >= 10) {
_root.levelScore = 10000 + (500 * (_root.level - 1));
_root.score = _root.score + ((bar_mc.percent * 100) + _root.levelScore);
_root.myGame.gotoAndStop("win");
} else {
_root.myGame.gotoAndStop("gameOver");
}
}
};
book_btn.onRelease = function () {
if (_root.isPause == false) {
_root.isPause = true;
_parent.bk_mc._visible = true;
_parent.bk_mc.book_mc.gotoAndPlay(1);
}
};
_root.isPause = false;
var isVisible = false;
var tag;
_root.clip = "";
onEnterFrame = function () {
if (_root.isPause == false) {
for (p in this) {
if (this[p].hitTest(_xmouse, _ymouse, true)) {
if (this[p]._currentframe == 1) {
if (this[p].myName != undefined) {
if (!isVisible) {
_root.clip = this[p];
tag = this.attachMovie("tag", "taga", this.getNextHighestDepth());
tag._x = this[p]._x + this[p].xValue;
tag._y = this[p]._y + this[p].yValue;
tag.picName = this[p].myName;
isVisible = true;
}
}
}
} else if ((!_root.clip.hitTest(_xmouse, _ymouse, true)) && (_root.clip != "")) {
_root.clip = "";
tag.removeMovieClip();
isVisible = false;
}
}
}
};
Instance of Symbol 1139 MovieClip "iron_mc" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Straightening Iron";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1141 MovieClip "comb_mc" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Comb";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1144 MovieClip "roller_mc" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Rollers";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1146 MovieClip "rollerComb_mc" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Roller Comb";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1151 MovieClip "shower_mc" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Water Jet Shower";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1153 MovieClip "condition_mc" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Conditioner";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1156 MovieClip "shampoo_mc" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Volumizing shampoo";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1161 MovieClip "mousse_mc" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Mousse";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1166 MovieClip "spry_mc" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Spray";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1171 MovieClip in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dark Red";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1174 MovieClip in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dark Violet";
var xValue = 0;
var yValue = 20;
}
Instance of Symbol 1177 MovieClip in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Copper Blonde";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1182 MovieClip in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Mocha Brown";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1185 MovieClip in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Honey Blonde";
var xValue = -10;
var yValue = 20;
}
Instance of Symbol 1188 MovieClip in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Blonde Dark Brown";
var xValue = 0;
var yValue = 20;
}
Instance of Symbol 1190 MovieClip "towel_mc" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Dry Towel";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1193 MovieClip "dryer_mc" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Dryer";
var xValue = 0;
var yValue = 30;
}
Instance of Symbol 1195 MovieClip in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1197 MovieClip in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1199 MovieClip in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1200 MovieClip in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Hair Jaw Clip";
var xValue = -10;
var yValue = 30;
}
Instance of Symbol 1658 MovieClip in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Circle";
var xValue = 100;
var yValue = 10;
}
Instance of Symbol 1242 MovieClip "book_btn" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
var myName = "Tips & Tricks book";
var xValue = 0;
var yValue = 40;
}
Symbol 1679 MovieClip Frame 1
stop();
if (_root.level >= _root.maxLevels) {
gotoAndStop (2);
}
Symbol 1685 MovieClip Frame 1
stop();
Symbol 1685 MovieClip Frame 2
stop();
Symbol 1685 MovieClip Frame 3
stop();
Symbol 1685 MovieClip Frame 4
stop();
Symbol 1687 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1687 MovieClip Frame 2
stop();
Symbol 1687 MovieClip Frame 3
stop();
Symbol 1687 MovieClip Frame 4
stop();
Symbol 1687 MovieClip Frame 5
stop();
Symbol 1687 MovieClip Frame 6
stop();
Symbol 1688 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1688 MovieClip Frame 2
stop();
Symbol 1688 MovieClip Frame 3
stop();
Symbol 1688 MovieClip Frame 4
stop();
Symbol 1688 MovieClip Frame 5
stop();
Symbol 1688 MovieClip Frame 6
stop();
Symbol 1689 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1689 MovieClip Frame 2
stop();
Symbol 1689 MovieClip Frame 3
stop();
Symbol 1689 MovieClip Frame 4
stop();
Symbol 1689 MovieClip Frame 5
stop();
Symbol 1689 MovieClip Frame 6
stop();
Symbol 1690 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1690 MovieClip Frame 2
stop();
Symbol 1690 MovieClip Frame 3
stop();
Symbol 1690 MovieClip Frame 4
stop();
Symbol 1690 MovieClip Frame 5
stop();
Symbol 1690 MovieClip Frame 6
stop();
Symbol 1691 MovieClip Frame 1
stop();
Symbol 1691 MovieClip Frame 2
stop();
Symbol 1691 MovieClip Frame 3
stop();
Symbol 1691 MovieClip Frame 4
stop();
Symbol 1692 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1692 MovieClip Frame 2
stop();
Symbol 1692 MovieClip Frame 3
stop();
Symbol 1692 MovieClip Frame 4
stop();
Symbol 1692 MovieClip Frame 5
stop();
Symbol 1692 MovieClip Frame 6
stop();
Symbol 1693 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1693 MovieClip Frame 2
stop();
Symbol 1693 MovieClip Frame 3
stop();
Symbol 1693 MovieClip Frame 4
stop();
Symbol 1693 MovieClip Frame 5
stop();
Symbol 1693 MovieClip Frame 6
stop();
Symbol 1694 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1694 MovieClip Frame 2
stop();
Symbol 1694 MovieClip Frame 3
stop();
Symbol 1694 MovieClip Frame 4
stop();
Symbol 1694 MovieClip Frame 5
stop();
Symbol 1694 MovieClip Frame 6
stop();
Symbol 1695 MovieClip Frame 1
onEnterFrame = function () {
};
stop();
Symbol 1695 MovieClip Frame 2
stop();
Symbol 1695 MovieClip Frame 3
stop();
Symbol 1695 MovieClip Frame 4
stop();
Symbol 1695 MovieClip Frame 5
stop();
Symbol 1695 MovieClip Frame 6
stop();
Symbol 1696 MovieClip Frame 1
stop();
Symbol 1696 MovieClip Frame 2
stop();
Symbol 1696 MovieClip Frame 3
stop();
Symbol 1696 MovieClip Frame 4
stop();
Symbol 1697 MovieClip Frame 1
stop();
Symbol 1697 MovieClip Frame 2
stop();
Symbol 1697 MovieClip Frame 3
stop();
Symbol 1700 MovieClip Frame 1
stop();
if (_root.level == 1) {
_root.prevnScr = 1;
} else {
_root.prevnScr = 0;
}
Symbol 1700 MovieClip Frame 2
stop();
Symbol 1700 MovieClip Frame 3
stop();
_root.prevnScr = 0;
Symbol 1700 MovieClip Frame 4
stop();
_root.prevnScr = 0;
Symbol 1700 MovieClip Frame 5
stop();
Symbol 1700 MovieClip Frame 6
stop();
if (_root.level == 2) {
_root.prevnScr = 1;
} else {
_root.prevnScr = 0;
}
Symbol 1700 MovieClip Frame 7
stop();
_root.prevnScr = 0;
Symbol 1709 MovieClip Frame 1
inPref_mc._visible = false;
girl_mc.gotoAndStop(_root.level);
prev.gotoAndStop(_root.level);
finalHair_mc.gotoAndStop(_root.userArray[0]);
finalHair_mc.hair_mc.gotoAndStop(_root.userArray[1]);
finalHair_mc.hair_mc.type_mc.gotoAndStop(_root.userArray[2]);
usrPrevention_mc.gotoAndStop(_root.userArray[3]);
if ((_root.level == 3) || (_root.level == 4)) {
prev._visible = false;
inPref_mc._visible = true;
}
Symbol 1709 MovieClip Frame 44
stop();
next_btn.onRelease = function () {
trace(_root.levelArray[int(_root.level)]);
_root.myGame.gotoAndStop(_root.levelArray[int(_root.level)]);
};
Symbol 1710 MovieClip Frame 1
gotoAndStop(_root.levelArray[_root.level - 1]);
Symbol 1710 MovieClip Frame 13
stop();
_root.playLvlSnd(1);
_root.level = 1;
Instance of Symbol 1655 MovieClip "bk_mc" in Symbol 1710 MovieClip Frame 13
onClipEvent (load) {
this._visible = true;
}
Symbol 1710 MovieClip Frame 19
stop();
_root.playLvlSnd(2);
_root.level = 2;
Symbol 1710 MovieClip Frame 26
stop();
_root.playLvlSnd(3);
_root.level = 3;
Symbol 1710 MovieClip Frame 34
stop();
_root.playLvlSnd(2);
_root.level = 4;
Symbol 1710 MovieClip Frame 41
stop();
_root.playLvlSnd(lose);
var gameOverframes = 2;
_root.level = 1;
_root._doGameOver(_root.score, "gamecomplete", false, 3000);
Symbol 1710 MovieClip Frame 48
stop();
_root.playLvlSnd(lose);
var gameOverframes = 2;
if (_root.level >= _root.maxLevels) {
_root._doGameOver(_root.score, "gameover", false, 3000);
} else {
_root._doGameOver(_root.score, "gameover", true, 3000);
}
Symbol 1710 MovieClip Frame 58
stop();
_root.playLvlSnd(lose);