Instance of Symbol 26 MovieClip in Frame 75
onClipEvent (load) {
n = random(33) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 26 MovieClip in Frame 75
onClipEvent (load) {
n = random(33) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 26 MovieClip in Frame 76
onClipEvent (load) {
n = random(33) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 26 MovieClip in Frame 76
onClipEvent (load) {
n = random(33) + 1;
this.gotoAndPlay(n);
}
Frame 109
stop();
loader_mc.onEnterFrame = function () {
var _local3 = this._parent;
var _local2 = _local3.getBytesLoaded() / _local3.getBytesTotal();
trace(_local2);
_local3.per = int(_local2 * 100);
this._xscale = int(_local2 * 100);
if (_local2 == 1) {
this.onEnterFrame = null;
_local3.nextFrame();
}
};
Instance of Symbol 26 MovieClip in Frame 109
onClipEvent (load) {
n = random(33) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 26 MovieClip in Frame 109
onClipEvent (load) {
n = random(33) + 1;
this.gotoAndPlay(n);
}
Frame 110
function start_link() {
gotoAndPlay (111);
trace("ok");
}
function domain_link() {
getURL ("http://www.i-dressup.com", "_blank");
trace("ok");
}
function sound_click() {
btn_sound = new Sound(this.btn_mc2);
btn_sound.attachSound("click");
btn_sound.setVolume(50);
btn_sound.start(0, 1);
}
stop();
begin_btn.onRelease = function () {
start_link();
};
begin_btn.onRollOver = function () {
this.gotoAndStop(2);
sound_click();
};
begin_btn.onRollOut = (begin_btn.onReleaseOutside = function () {
this.gotoAndStop(1);
});
domain_btn.onRelease = function () {
domain_link();
};
domain_btn.onRollOver = function () {
this.gotoAndStop(2);
sound_click();
};
domain_btn.onRollOut = (domain_btn.onReleaseOutside = function () {
this.gotoAndStop(1);
});
Frame 111
function saveit() {
mov = new Array();
frm = new Array();
vis = new Array();
for (var i in movarr) {
var tmpmc = eval ((mainmc + ".") + movarr[i]);
var hitmc = this.body;
if (tmpmc.hitTest(hitmc)) {
mov.push(new Array(movarr[i], int(tmpmc._x), int(tmpmc._y)));
}
}
for (var i in frmarr) {
var tmpmc = eval ((mainmc + ".") + frmarr[i]);
if (tmpmc._currentframe != 1) {
frm.push(new Array((mainmc + ".") + frmarr[i], tmpmc._currentframe));
}
}
for (var i in visarr) {
var tmpmc = eval ((mainmc + ".") + visarr[i]);
vis.push(new Array(visarr[i], tmpmc._visible));
}
savestr = (((("&mov=" + mov.join("|")) + "&frm=") + frm.join("|")) + "&vis=") + vis.join("|");
return(savestr);
}
_global.static_root_path = _level0.static_root_path;
_global.PHP_root_path = _level0.PHP_root_path;
loadMovieNum (_root.static_root_path + "control.swf", 10);
movarr = new Array();
for (var i in this) {
if ((typeof(this[i]) == "movieclip") and (this[i]._name.substr(0, 1) == "a")) {
movarr.push(this[i]._name);
}
}
frmarr = new Array("girl_mc", "top1_mc", "top2_mc", "top3_mc", "bot2_mc", "bot1_mc", "shoes_mc", "shoes2_mc", "jew01_mc", "jew02_mc", "cap_mc", "bag_mc", "jew05_mc", "jew04_mc", "jew03_mc", "glass_mc", "hair_mc");
visarr = new Array("girl_mc.model_body.underwear1_mc", "girl_mc.model_body.underwear2_mc");
hitmc = "body";
mainmc = "girl_mc";
function loadvar(str, act) {
var _local3 = new LoadVars();
_local3.onLoad = function (suc) {
_root[act](this);
};
_local3.load(str);
}
function checkToolbar() {
flash.external.ExternalInterface.call("checkToolbar", _level0.name);
}
function js2swfResult(res) {
_root.hasToolbar = res;
}
function joinBattle() {
if ((_root.hasToolbar == 1) || (_root.hasToolbar)) {
dg_join.install_toolbar._visible = false;
dg_join._visible = true;
} else {
dg_join.install_toolbar._visible = true;
dg_join._visible = true;
}
}
function installToolbar() {
getURL ("http://FreeiDressup.OurToolbar.com/exe");
}
function save2server() {
var _local3 = [];
var _local4 = diyItems.length;
var _local2 = 0;
while (_local2 < _local4) {
_local3.push((diyItems[_local2] + ",") + _root.model_mc[diyItems[_local2]]._currentframe);
_local2++;
}
var _local6 = _local3.join("|");
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
if (result_lv.res == "needlogin") {
} else {
dg_join._visible = false;
alert("Thanks for joining the battle.");
btn_battleNow.enabled = false;
btn_battleNow._alpha = 20;
}
} else {
alert("Error connecting to server.");
}
};
var _local5 = new LoadVars();
_local5.title = dg_join.title.text;
_local5.data = _local6;
_local5.sendAndLoad((_root.PHP_root_path + "battle_flash.php?job=save&game_id=") + game_id, result_lv, "POST");
}
function getRandomPlayer() {
loadvar((_root.PHP_root_path + "battle_flash.php?job=random&game_id=") + game_id, "getRandomPlayerOk");
}
function getRandomPlayerOk(res) {
var _local8 = res.listarr.split("#");
if ((_local8.length > 0) && (_local8[0].length > 0)) {
var _local2 = 0;
while (_local2 < 2) {
this["doll_thumb" + _local2]._visible = true;
var _local5 = _local8[_local2].split(";");
if (_local5[4].length > 2) {
var _local6 = _local5[4].split("|");
var _local7 = _local6.length;
var _local3 = 0;
while (_local3 < _local7) {
var _local4 = _local6[_local3].split(",");
this["doll_thumb" + _local2].model_mc[_local4[0]].gotoAndStop(_local4[1]);
_local3++;
}
this["doll_thumb" + _local2].tf.text = _local5[2];
this["doll_thumb" + _local2].btn_vote.battle_id = _local5[0];
this["doll_thumb" + _local2].btn_vote.enabled = true;
this["doll_thumb" + _local2].btn_vote._alpha = 100;
this["doll_thumb" + _local2].btn_vote.onRelease = function () {
this.enabled = false;
this._alpha = 20;
vote(this.battle_id);
};
}
_local2++;
}
}
}
function getTop20() {
loadvar((_root.PHP_root_path + "battle_flash.php?job=top&game_id=") + game_id, "getTop20Ok");
}
function goPage() {
var _local2 = 0;
while (_local2 < 8) {
top20["doll_thumb" + _local2]._visible = false;
_local2++;
}
var _local8 = top20Data.split("#");
if (curPage == 0) {
top20.btn_l.enabled = false;
top20.btn_l._alpha = 20;
} else if (curPage == (Math.ceil(_local8.length / 8) - 1)) {
top20.btn_r.enabled = false;
top20.btn_r._alpha = 20;
}
if (_local8.length < 9) {
top20.btn_r.enabled = false;
top20.btn_r._alpha = 20;
}
if ((_local8.length > 0) && (_local8[0].length > 0)) {
_local2 = 0;
while (_local2 < 8) {
if (_local8[_local2 + (curPage * 8)].length > 0) {
top20["doll_thumb" + _local2]._visible = true;
}
var _local5 = _local8[_local2 + (curPage * 8)].split(";");
if (_local5[4].length > 2) {
var _local6 = _local5[4].split("|");
var _local7 = _local6.length;
var _local3 = 0;
while (_local3 < _local7) {
var _local4 = _local6[_local3].split(",");
top20["doll_thumb" + _local2].model_mc[_local4[0]].gotoAndStop(_local4[1]);
_local3++;
}
top20["doll_thumb" + _local2].tf.text = _local5[2];
top20["doll_thumb" + _local2].tf2.text = _local5[3];
top20["doll_thumb" + _local2].btn_vote._visible = false;
top20["doll_thumb" + _local2].btn_vote.battle_id = _local5[0];
top20["doll_thumb" + _local2].btn_vote.onRelease = function () {
this.enabled = false;
this._alpha = 20;
this._parent.tf2.text = Number(this._parent.tf2.text) + 1;
vote(this.battle_id);
};
}
_local2++;
}
top20._visible = true;
} else {
alert("No data.");
}
}
function getTop20Ok(res) {
top20Data = res.listarr;
goPage();
}
function vote(bid) {
loadvar((_root.PHP_root_path + "battle_flash.php?job=vote&id=") + bid, "voteOk");
}
function voteOk() {
if (!top20._visible) {
getRandomPlayer();
}
}
function alert(str, act, vip) {
alertbox._x = Math.round((Stage.width - alertbox._width) / 2);
alertbox._y = 200;
alertbox.settext(str);
alertbox.backact = act;
alertbox.swarpDepth;
alertbox._visible = true;
if (vip) {
alertbox.gotoAndStop(2);
} else {
alertbox.gotoAndStop(1);
}
}
function hidealert() {
alertbox._visible = false;
}
System.security.allowDomain("*");
_root.model_mc = _root.girl_mc;
var game_id = _level0.id;
var diyItems = ["top1_mc", "top2_mc", "top3_mc", "bot2_mc", "bot1_mc", "shoes_mc", "shoes2_mc", "jew01_mc", "jew02_mc", "cap_mc", "bag_mc", "jew05_mc", "jew04_mc", "jew03_mc", "glass_mc", "hair_mc"];
_global.test = function (t, t2, t3) {
t = t + " ";
t2 = ((t2 == undefined) ? " " : (t2 + " "));
t3 = ((t3 == undefined) ? " " : (t3));
flash.external.ExternalInterface.call("console.log", t, t2, t3);
};
_root.hasToolbar = 0;
flash.external.ExternalInterface.addCallback("js2swf", null, js2swfResult);
var curPage = 0;
var top20Data;
var alertbox = this.createEmptyMovieClip("alertbox", 9998);
alertbox.loadMovie(_root.static_root_path + "alert.swf");
setTimeout(checkToolbar, 1000);
function bgSound() {
mySound3 = new Sound();
mySound3.attachSound("BG");
mySound3.start(0, 999);
mySound3.setVolume(100);
}
function end_btn_sound_fun() {
mySound3.stop();
}
function menu_btn() {
s2_sd();
var _local3 = _root.level;
var _local2 = _root;
if (_local3 == 1) {
go_x = new mx.transitions.Tween(_local2.menu_btn1, "_x", mx.transitions.easing.Strong.easeOut, girlMenu_x, girlMenu_xx, 20, false);
}
if (_local3 == 2) {
go_x1 = new mx.transitions.Tween(_local2.menu_btn1, "_x", mx.transitions.easing.Strong.easeOut, girlMenu_xx, girlMenu_x, 20, false);
go_x = new mx.transitions.Tween(_local2.menu_btn5, "_x", mx.transitions.easing.Strong.easeOut, girlMenu_x, girlMenu_xx, 20, false);
}
if (_local3 == 3) {
go_x = new mx.transitions.Tween(_local2.menu_btn3, "_x", mx.transitions.easing.Strong.easeOut, girlMenu_x, girlMenu_xx, 20, false);
go_x1 = new mx.transitions.Tween(_local2.menu_btn5, "_x", mx.transitions.easing.Strong.easeOut, girlMenu_xx, girlMenu_x, 20, false);
}
if (_local3 == 4) {
go_x = new mx.transitions.Tween(_local2.menu_btn4, "_x", mx.transitions.easing.Strong.easeOut, boyMenu_x, boyMenu_xx, 20, false);
go_x1 = new mx.transitions.Tween(_local2.menu_btn3, "_x", mx.transitions.easing.Strong.easeOut, boyMenu_xx, boyMenu_x, 20, false);
}
}
function menu_btn2() {
s2_sd();
var _local3 = _root.level;
var _local2 = _root;
if (_local3 == 1) {
go_x = new mx.transitions.Tween(_local2.menu_btn1, "_x", mx.transitions.easing.Strong.easeOut, girlMenu_x, girlMenu_xx, 20, false);
go_x1 = new mx.transitions.Tween(_local2.menu_btn5, "_x", mx.transitions.easing.Strong.easeOut, girlMenu_xx, girlMenu_x, 20, false);
}
if (_local3 == 2) {
go_x1 = new mx.transitions.Tween(_local2.menu_btn5, "_x", mx.transitions.easing.Strong.easeOut, girlMenu_x, girlMenu_xx, 20, false);
go_x = new mx.transitions.Tween(_local2.menu_btn3, "_x", mx.transitions.easing.Strong.easeOut, girlMenu_xx, girlMenu_x, 20, false);
}
if (_local3 == 3) {
go_x = new mx.transitions.Tween(_local2.menu_btn3, "_x", mx.transitions.easing.Strong.easeOut, boyMenu_x, boyMenu_xx, 20, false);
go_x1 = new mx.transitions.Tween(_local2.menu_btn4, "_x", mx.transitions.easing.Strong.easeOut, boyMenu_xx, boyMenu_x, 20, false);
}
if (_local3 == 4) {
go_x = new mx.transitions.Tween(_local2.menu_btn4, "_x", mx.transitions.easing.Strong.easeOut, boyMenu_x, boyMenu_xx, 20, false);
go_x1 = new mx.transitions.Tween(_local2.menu_btn3, "_x", mx.transitions.easing.Strong.easeOut, boyMenu_xx, boyMenu_x, 20, false);
}
}
function boyMove(n) {
var _local2 = _root;
if (n == 1) {
go_y = new mx.transitions.Tween(_local2.boy_mc, "_y", mx.transitions.easing.Strong.easeOut, boy_yy, boy_y, 20, false);
}
if (n == 2) {
go_y = new mx.transitions.Tween(_local2.boy_mc, "_y", mx.transitions.easing.Strong.easeOut, boy_y, boy_yy, 20, false);
}
}
function girlMove(n) {
var _local2 = _root;
if (n == 1) {
go_y = new mx.transitions.Tween(_local2.girl_mc, "_y", mx.transitions.easing.Strong.easeOut, girl_yy, girl_y, 20, false);
}
if (n == 2) {
go_y = new mx.transitions.Tween(_local2.girl_mc, "_y", mx.transitions.easing.Strong.easeOut, girl_y, girl_yy, 20, false);
}
}
function ok_fun() {
var _local2 = _root;
_local2.menu_btn3._x = girlMenu_x;
_local2.girl(-10, -580, 110);
}
function reset_fun() {
var _local2 = _root;
_local2.menu_btn1._x = girlMenu_x;
_local2.menu_btn5._x = girlMenu_x;
_local2.menu_btn3._x = boyMenu_x;
_local2.menu_btn4._x = boyMenu_x;
_local2.boy_mc._y = boy_yy;
_local2.girl_mc._y = boy_yy;
_local2.girl_mc._x = girl_xx;
}
function s1_sd() {
_root.bg1_sound = new Sound();
_root.bg1_sound.attachSound("s1");
_root.bg1_sound.start();
_root.bg1_sound.setVolume(100);
}
function s2_sd() {
_root.bg1_sound = new Sound();
_root.bg1_sound.attachSound("s2");
_root.bg1_sound.start();
_root.bg1_sound.setVolume(100);
}
function clear_ini() {
_root.girl_mc.top1_mc.gotoAndStop(1);
_root.girl_mc.top2_mc.gotoAndStop(1);
_root.girl_mc.top3_mc.gotoAndStop(1);
_root.girl_mc.bot2_mc.gotoAndStop(1);
_root.girl_mc.bot1_mc.gotoAndStop(1);
_root.girl_mc.shoes_mc.gotoAndStop(1);
_root.girl_mc.shoes2_mc.gotoAndStop(1);
_root.girl_mc.jew01_mc.gotoAndStop(1);
_root.girl_mc.jew02_mc.gotoAndStop(1);
_root.girl_mc.cap_mc.gotoAndStop(1);
_root.girl_mc.bag_mc.gotoAndStop(1);
_root.girl_mc.yatao_mc.gotoAndStop(1);
_root.girl_mc.jew05_mc.gotoAndStop(1);
_root.girl_mc.jew04_mc.gotoAndStop(1);
_root.girl_mc.jew03_mc.gotoAndStop(1);
_root.girl_mc.glass_mc.gotoAndStop(1);
_root.girl_mc.hair_mc.gotoAndStop(1);
_root.girl_mc.model_body.underwear1_mc._visible = true;
_root.girl_mc.model_body.underwear2_mc._visible = true;
var _local2 = 1;
while (_local2 < 25) {
_root["on_clothing" + _local2]._visible = true;
_root["on_clothing" + _local2] = undefined;
_local2++;
}
_local2 = 1;
while (_local2 < 6) {
_root.girl_mc["dress" + _local2].gotoAndStop(1);
_root.boy_mc["dress" + _local2].gotoAndStop(1);
_local2++;
}
}
function reset_one() {
for (var _local3 in _root.girl_mc) {
if (typeof(_root.girl_mc[_local3]) == "movieclip") {
_root.girl_mc[_local3].enabled = true;
if (_root.girl_mc[_local3]._name.substr(0, 6) == "dress1") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing1._visible = true;
_root.on_clothing1 = undefined;
};
}
if (_root.girl_mc[_local3]._name.substr(0, 6) == "dress2") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing2._visible = true;
_root.on_clothing2 = undefined;
};
}
if (_root.girl_mc[_local3]._name.substr(0, 6) == "dress3") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing3._visible = true;
_root.on_clothing3 = undefined;
};
}
if (_root.girl_mc[_local3]._name.substr(0, 6) == "dress4") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing4._visible = true;
_root.on_clothing4 = undefined;
};
}
if (_root.girl_mc[_local3]._name.substr(0, 6) == "dress5") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing5._visible = true;
_root.on_clothing5 = undefined;
};
}
if (_root.girl_mc[_local3]._name.substr(0, 4) == "top1") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing6._visible = true;
_root.on_clothing6 = undefined;
};
}
if (_root.girl_mc[_local3]._name.substr(0, 4) == "hair") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing8._visible = true;
_root.on_clothing8 = undefined;
};
}
if (_root.girl_mc[_local3]._name.substr(0, 5) == "glass") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing9._visible = true;
_root.on_clothing9 = undefined;
};
}
if (_root.girl_mc[_local3]._name.substr(0, 5) == "jew01") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing10._visible = true;
_root.on_clothing10 = undefined;
};
}
if (_root.girl_mc[_local3]._name.substr(0, 5) == "jew02") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing11._visible = true;
_root.on_clothing11 = undefined;
};
}
if (_root.girl_mc[_local3]._name.substr(0, 3) == "cap") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing12._visible = true;
_root.on_clothing12 = undefined;
};
}
if (_root.girl_mc[_local3]._name.substr(0, 5) == "jew03") {
_root.girl_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing13._visible = true;
_root.on_clothing13 = undefined;
};
}
}
}
for (var _local3 in _root.boy_mc) {
if (typeof(_root.boy_mc[_local3]) == "movieclip") {
_root.boy_mc[_local3].enabled = true;
if (_root.boy_mc[_local3]._name.substr(0, 5) == "dress2") {
_root.boy_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing14._visible = true;
_root.on_clothing14 = undefined;
};
}
if (_root.boy_mc[_local3]._name.substr(0, 5) == "dress4") {
_root.boy_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing15._visible = true;
_root.on_clothing15 = undefined;
};
}
if (_root.boy_mc[_local3]._name.substr(0, 5) == "dress5") {
_root.boy_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing16._visible = true;
_root.on_clothing16 = undefined;
};
}
if (_root.boy_mc[_local3]._name.substr(0, 4) == "top1") {
_root.boy_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing17._visible = true;
_root.on_clothing17 = undefined;
};
}
if (_root.boy_mc[_local3]._name.substr(0, 4) == "hair") {
_root.boy_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing19._visible = true;
_root.on_clothing19 = undefined;
};
}
if (_root.boy_mc[_local3]._name.substr(0, 5) == "glass") {
_root.boy_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing20._visible = true;
_root.on_clothing20 = undefined;
};
}
if (_root.boy_mc[_local3]._name.substr(0, 5) == "jew01") {
_root.boy_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing21._visible = true;
_root.on_clothing21 = undefined;
};
}
if (_root.boy_mc[_local3]._name.substr(0, 5) == "jew02") {
_root.boy_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing22._visible = true;
_root.on_clothing22 = undefined;
};
}
if (_root.boy_mc[_local3]._name.substr(0, 5) == "jew03") {
_root.boy_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing23._visible = true;
_root.on_clothing23 = undefined;
};
}
if (_root.boy_mc[_local3]._name.substr(0, 3) == "cap") {
_root.boy_mc[_local3].onRelease = function () {
this.gotoAndStop(1);
_root.on_clothing24._visible = true;
_root.on_clothing24 = undefined;
};
}
}
}
}
function third_ch_ini(_mc) {
for (var _local5 in _mc) {
if ((typeof(_mc[_local5]) == "movieclip") and (_mc[_local5]._name.substr(0, 1) == "a")) {
_mc[_local5].onRelease = function () {
s1_sd();
if ((((((this != _root.on_clothing1) and (this != _root.on_clothing2)) and (this != _root.on_clothing3)) and (this != _root.on_clothing4)) and (this != _root.on_clothing5)) and (this != _root.on_clothing6)) {
if (this._name.substr(0, 3) == "ag1") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing1 != undefined) {
_root.on_clothing1._visible = true;
_root.on_clothing1 = undefined;
}
this._visible = false;
_root.on_clothing1 = this;
_root.girl_mc.dress1.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "ag2") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing2 != undefined) {
_root.on_clothing2._visible = true;
_root.on_clothing2 = undefined;
}
this._visible = false;
_root.on_clothing2 = this;
_root.girl_mc.dress2.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "ag3") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing3 != undefined) {
_root.on_clothing3._visible = true;
_root.on_clothing3 = undefined;
}
this._visible = false;
_root.on_clothing3 = this;
_root.girl_mc.dress3.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "ag4") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing4 != undefined) {
_root.on_clothing4._visible = true;
_root.on_clothing4 = undefined;
}
this._visible = false;
_root.on_clothing4 = this;
_root.girl_mc.dress4.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "ag5") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing5 != undefined) {
_root.on_clothing5._visible = true;
_root.on_clothing5 = undefined;
}
this._visible = false;
_root.on_clothing5 = this;
_root.girl_mc.dress5.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "ag6") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing6 != undefined) {
_root.on_clothing6._visible = true;
_root.on_clothing6 = undefined;
}
this._visible = false;
_root.on_clothing6 = this;
_root.girl_mc.top1_mc.gotoAndStop(_local3);
_root.girl_mc.model_body.underwear1_mc._visible = false;
}
if (this._name.substr(0, 3) == "ag7") {
var _local3 = Number(this._name.substr(3, 2));
if (_root.on_clothing7 != undefined) {
_root.on_clothing7._visible = true;
_root.on_clothing7 = undefined;
}
_root.on_clothing7 = this;
_root.girl_mc.model_body.gotoAndStop(_local3);
_root.girl_mc.model_body2.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "ag8") {
var _local3 = Number(this._name.substr(3, 2));
if (_root.on_clothing8 != undefined) {
_root.on_clothing8._visible = true;
_root.on_clothing8 = undefined;
}
this._visible = false;
_root.on_clothing8 = this;
_root.girl_mc.hair_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "ag9") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing9 != undefined) {
_root.on_clothing9._visible = true;
_root.on_clothing9 = undefined;
}
this._visible = false;
_root.on_clothing9 = this;
_root.girl_mc.glass_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "agj") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing10 != undefined) {
_root.on_clothing10._visible = true;
_root.on_clothing10 = undefined;
}
this._visible = false;
_root.on_clothing10 = this;
_root.girl_mc.jew01_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "agx") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing11 != undefined) {
_root.on_clothing11._visible = true;
_root.on_clothing11 = undefined;
}
this._visible = false;
_root.on_clothing11 = this;
_root.girl_mc.jew02_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "agc") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing12 != undefined) {
_root.on_clothing12._visible = true;
_root.on_clothing12 = undefined;
}
this._visible = false;
_root.on_clothing12 = this;
_root.girl_mc.cap_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "agw") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing13 != undefined) {
_root.on_clothing13._visible = true;
_root.on_clothing13 = undefined;
}
this._visible = false;
_root.on_clothing13 = this;
_root.girl_mc.jew03_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "agk") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing14 != undefined) {
_root.on_clothing14._visible = true;
_root.on_clothing14 = undefined;
}
_root.on_clothing14 = this;
_root.girl_mc.hair_mc.hair.se.gotoAndStop(_local3);
}
if (this._name.substr(0, 3) == "agy") {
var _local3 = Number(this._name.substr(3, 2)) + 1;
if (_root.on_clothing15 != undefined) {
_root.on_clothing15._visible = true;
_root.on_clothing15 = undefined;
}
this._visible = false;
_root.on_clothing15 = this;
_root.girl_mc.yatao_mc.gotoAndStop(_local3);
}
}
};
}
}
}
function girl(x1, y1, s) {
if (this.girl_mc.x0 and this.girl_mc.y0) {
this.girl_mc._x = this.girl_mc.x0 + x1;
this.girl_mc._y = this.girl_mc.y0 + y1;
this.girl_mc._xscale = (this.girl_mc._yscale = s);
this.girl_mc._rotation = 0;
}
}
function clothing_visible() {
var _local2 = 1;
while (_local2 < 23) {
_root["on_clothing" + _local2]._visible = false;
_local2++;
}
}
function bg_sd() {
bg_sound = new Sound(this);
bg_sound.attachSound("sd_01");
bg_sound.setVolume(100);
bg_sound.start(0, 999);
}
function end_bg_sd() {
bg_sound.stop();
}
mymenu = new ContextMenu();
mymenu.hideBuiltInItems();
mymenu.builtInItems.print = true;
_root.menu = mymenu;
var level = 1;
var girlMenu_x = -355;
var boyMenu_x = 762;
var girlMenu_xx = 42;
var boyMenu_xx = 395;
var girl_y = 131;
var boy_y = 159.1;
var girl_yy = 666.5;
var boy_yy = 685.8;
var girl_x = 361.6;
var girl_xx = 411.7;
menu_btn();
girlMove(1);
reset_one();
girl(0, 0, 125);
clothing_visible();
sd_btn.onRelease = function () {
if (sd_no == true) {
end_bg_sd();
sd_no = false;
} else {
bg_sd();
sd_no = true;
}
};
end_bg_sd();
bg_sd();
Instance of Symbol 198 MovieClip "girl_mc" in Frame 111
onClipEvent (load) {
this.x0 = this._x;
this.y0 = this._y;
}
Instance of Symbol 253 MovieClip in Frame 111
onClipEvent (load) {
_parent.bgSound();
}
Frame 112
stop();
Frame 115
unloadMovieNum (10);
getRandomPlayer();
battle_open_btn._visible = false;
battle_bg.btnx.onRelease = function () {
battle_bg._visible = false;
vs_txt._visible = false;
doll_thumb0._visible = false;
doll_thumb1._visible = false;
battle_open_btn._visible = true;
};
battle_open_btn.onRelease = function () {
battle_bg._visible = true;
vs_txt._visible = true;
doll_thumb0._visible = true;
doll_thumb1._visible = true;
battle_open_btn._visible = false;
};
for (var i in _root.girl_mc) {
if (typeof(_root.girl_mc[i]) == "movieclip") {
girl_mc[i].enabled = false;
}
}
for (var i in _root.boy_mc) {
if (typeof(_root.boy_mc[i]) == "movieclip") {
_root.boy_mc[i].enabled = false;
}
}
_root.girl_mc.setMask(_root.mask_mc);
Symbol 358 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 359 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 360 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 361 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 1
stop();
Instance of Symbol 64 MovieClip in Symbol 65 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 65 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 65 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 69 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 69 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 69 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 71 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 71 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 71 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 1
stop();
Instance of Symbol 64 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 196 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 64 MovieClip in Symbol 196 MovieClip Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Symbol 197 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
_root.third_ch_ini(this);
Symbol 212 MovieClip Frame 1
_root.third_ch_ini(this);
Symbol 221 MovieClip Frame 1
_root.third_ch_ini(this);
Symbol 236 MovieClip Frame 12
stop();
Symbol 246 Button
on (release) {
getURL ("http://www.i-dressup.com", "_blank");
}
Symbol 250 Button
on (release) {
this.gotoAndStop(2);
_parent.end_btn_sound_fun();
}
Symbol 252 Button
on (release) {
this.gotoAndStop(1);
_parent.bgSound();
}
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 2
stop();
Symbol 259 Button
on (release) {
_root.level++;
trace(level);
menu_btn();
nextFrame();
}
Symbol 261 Button
on (release) {
level++;
menu_btn();
nextFrame();
}
Symbol 262 Button
on (release) {
level--;
menu_btn2();
prevFrame();
}
Symbol 264 Button
on (release) {
level--;
menu_btn2();
prevFrame();
}
Symbol 266 Button
on (release) {
ok_fun();
nextFrame();
}
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 2
stop();
Symbol 273 MovieClip Frame 3
stop();
Symbol 285 Button
on (release) {
clear_ini();
reset_fun();
gotoAndPlay (111);
}
Symbol 287 Button
on (release) {
bg_mc.play();
}
Symbol 306 MovieClip Frame 1
_visible = false;
Instance of Symbol 198 MovieClip "model_mc" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
this.x0 = this._x;
this.y0 = this._y;
}
Symbol 323 Button
on (release) {
_parent.save2server();
}
Symbol 327 Button
on (release) {
_visible = false;
}
Symbol 331 Button
on (release) {
_visible = false;
}
Symbol 338 Button
on (release) {
_parent._visible = false;
}
Symbol 339 Button
on (release) {
_parent._parent.installToolbar();
}
Symbol 340 MovieClip Frame 1
bg.useHandCursor = false;
Symbol 341 MovieClip Frame 1
nm.restrict = "A-Z a-z 0-9 - _ .";
_visible = false;
Symbol 343 Button
on (release) {
joinBattle();
}
Symbol 345 Button
on (release) {
getTop20();
}
Symbol 347 MovieClip Frame 1
bg.useHandCursor = false;
Symbol 351 Button
on (release) {
if (_parent.curPage > 0) {
_parent.curPage--;
_parent.goPage();
if (_parent.curPage == 0) {
btn_l.enabled = false;
btn_l._alpha = 20;
}
btn_r.enabled = true;
btn_r._alpha = 100;
}
}
Symbol 352 Button
on (release) {
if (_parent.curPage < 3) {
_parent.curPage++;
_parent.goPage();
if (_parent.curPage == 3) {
btn_r.enabled = false;
btn_r._alpha = 20;
}
btn_l.enabled = true;
btn_l._alpha = 100;
}
}
Symbol 356 Button
on (release) {
_visible = false;
}
Symbol 357 MovieClip Frame 1
_visible = false;