Frame 1
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.model_mc1;
var game_id = _level0.id;
var diyItems = ["dress1", "dress2", "dress3", "dress4", "dress5", "dress6", "dress7", "top1_mc", "top2_mc", "top3_mc", "bot1_mc", "bot2_mc", "shoes_mc", "shoes_mc2", "jew01_mc", "jew02_mc", "jew03_mc", "cap_mc", "bag_mc", "hair_mc", "waitao_mc", "yaodai_mc", "wazi_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, 500);
function addSound(clip, loops, volume) {
var _local1 = volume;
if (_local1 == undefined) {
_local1 = 100;
}
mySound = new Sound(createEmptyMovieClip(clip + "Sfx", getNextHighestDepth()));
mySound.setVolume(_local1);
mySound.attachSound(clip);
mySound.start(0, loops);
}
function bgSound() {
mySound3 = new Sound();
mySound3.attachSound("BG");
mySound3.start(0, 999);
mySound3.setVolume(100);
}
function end_btn_sound_fun() {
mySound3.stop();
}
function Mbtn_fun() {
for (var _local4 in this) {
if ((typeof(this[_local4]) == "movieclip") and (this[_local4]._name.substr(0, 1) == "M")) {
this[_local4].onPress = function () {
var _local3 = this._name.substr(4, 1);
_root.addSound("sd01");
_root.shan1.play();
_root.makeUp_fun(_local3, 1);
};
this[_local4].onRollOver = function () {
_root.addSound("sd03");
this.gotoAndStop(2);
};
this[_local4].onRollOut = function () {
this.gotoAndStop(1);
};
}
if ((typeof(this[_local4]) == "movieclip") and (this[_local4]._name.substr(0, 1) == "N")) {
this[_local4].onPress = function () {
var _local3 = this._name.substr(4, 1);
_root.addSound("sd01");
_root.shan2.play();
_root.makeUp_fun(_local3, 2);
};
this[_local4].onRollOver = function () {
_root.addSound("sd03");
this.gotoAndStop(2);
};
this[_local4].onRollOut = function () {
this.gotoAndStop(1);
};
}
}
}
function makeUp_fun(n, m) {
var _local3 = _root;
var _local2 = _local3["model_mc" + m]["dress" + n];
if (_local2._currentframe >= _totalframes) {
_local2.gotoAndStop(1);
} else {
_local2.nextFrame();
}
}
function gameStart() {
var _local3 = _root;
var _local5 = random(18) + 1;
var _local4 = random(5) + 1;
_local3.model_mc2.hair_mc.gotoAndStop(_local5);
_local3.model_mc2.dress7.gotoAndStop(_local4);
_local3.model_mc2.dress8.gotoAndStop(_local4);
girl1(0, 0, 200, _root.model_mc1);
girl2(0, 0, 200, _root.model_mc2);
Mbtn_fun();
third_ch_ini(this);
}
function girl1(x1, y1, s, _mc) {
if (_mc.x0 and _mc.y0) {
_mc._x = _mc.x0 + x1;
_mc._y = _mc.y0 + y1;
_mc._xscale = (_mc._yscale = s);
_mc._rotation = 0;
}
}
function girl2(x1, y1, s, _mc) {
if (_mc.x0 and _mc.y0) {
_mc._x = _mc.x0 + x1;
_mc._y = _mc.y0 + y1;
_mc._xscale = s * -1;
_mc._yscale = s * -1;
_mc._rotation = 0;
}
}
function third_ch_ini(_mc) {
var _loc2;
var _local4 = _mc;
for (var _local8 in _local4) {
if ((typeof(_local4[_local8]) == "movieclip") and (_local4[_local8]._name.substr(0, 1) == "a")) {
_local4[_local8].onPress = function () {
_root.addSound("sd01");
Mouse.show();
var _local4 = this._name.substr(1, 1);
var _local5 = this._name.substr(2);
var _local3;
this._visible = false;
_root.mc_drag = _root.attachMovie(("a" + _local4) + _local5, "mc", 1);
if (_local4 == "h") {
_local3 = 200;
} else {
_local3 = _root.scaleNo_dre;
}
_root.mc_drag._xscale = _local3;
_root.mc_drag._yscale = _local3;
_root.mc_drag._x = _root._xmouse;
_root.mc_drag._y = _root._ymouse;
_root.mc_drag._xscale = _root.mc_drag._xscale * _root.scaleB;
go_xscale = new mx.transitions.Tween(_root.mc_drag, "_xscale", mx.transitions.easing.Elastic.easeOut, 50 * _root.scaleB, _local3 * _root.scaleB, 20, false);
go_yscale = new mx.transitions.Tween(_root.mc_drag, "_yscale", mx.transitions.easing.Elastic.easeOut, 50 * _root.scaleB, _local3 * _root.scaleB, 20, false);
_root.mc_drag.startDrag();
};
_local4[_local8].onReleaseOutside = function () {
_root.mc_drag.removeMovieClip();
if ((((((this != _loc2.on_clothing1) and (this != _loc2.on_clothing2)) and (this != _loc2.on_clothing3)) and (this != _loc2.on_clothing4)) and (this != _loc2.on_clothing5)) and (this != _loc2.on_clothing6)) {
if (_root.model_mc1.hitTest(_xmouse, _ymouse)) {
_loc2 = _root.model_mc1;
} else if (_root.model_mc2.hitTest(_xmouse, _ymouse)) {
_loc2 = _root.model_mc2;
}
if (_loc2 != undefined) {
_root.addSound("sd02");
if (this._name.substr(0, 2) == "a1") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing1 != undefined) {
_loc2.on_clothing1._visible = true;
_loc2.on_clothing1 = undefined;
}
if (_loc2.on_clothing2 != undefined) {
_loc2.on_clothing2._visible = true;
_loc2.on_clothing2 = undefined;
_loc2.top2_mc.gotoAndStop(1);
}
if (_loc2.on_clothing3 != undefined) {
_loc2.on_clothing3._visible = true;
_loc2.on_clothing3 = undefined;
_loc2.bot1_mc.gotoAndStop(1);
}
if (_loc2.on_clothing4 != undefined) {
_loc2.on_clothing4._visible = true;
_loc2.on_clothing4 = undefined;
_loc2.top2_mc.gotoAndStop(1);
}
if (_loc2.on_clothing5 != undefined) {
_loc2.on_clothing5._visible = true;
_loc2.on_clothing5 = undefined;
_loc2.bot2_mc.gotoAndStop(1);
}
this._visible = false;
_loc2.on_clothing1 = this;
_loc2.top1_mc.gotoAndStop(_local3);
_loc2.top3_mc.gotoAndStop(1);
_loc2.dress7.underwear1_mc._visible = false;
_loc2.dress7.underwear2_mc._visible = false;
}
if (this._name.substr(0, 2) == "at") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing1 != undefined) {
_loc2.on_clothing1._visible = true;
_loc2.on_clothing1 = undefined;
}
if (_loc2.on_clothing2 != undefined) {
_loc2.on_clothing2._visible = true;
_loc2.on_clothing2 = undefined;
_loc2.top2_mc.gotoAndStop(1);
}
if (_loc2.on_clothing3 != undefined) {
_loc2.on_clothing3._visible = true;
_loc2.on_clothing3 = undefined;
_loc2.bot1_mc.gotoAndStop(1);
}
if (_loc2.on_clothing4 != undefined) {
_loc2.on_clothing4._visible = true;
_loc2.on_clothing4 = undefined;
_loc2.top2_mc.gotoAndStop(1);
}
if (_loc2.on_clothing5 != undefined) {
_loc2.on_clothing5._visible = true;
_loc2.on_clothing5 = undefined;
_loc2.bot2_mc.gotoAndStop(1);
}
this._visible = false;
_loc2.on_clothing1 = this;
_loc2.top3_mc.gotoAndStop(_local3);
_loc2.top1_mc.gotoAndStop(1);
_loc2.dress7.underwear1_mc._visible = false;
_loc2.dress7.underwear2_mc._visible = false;
}
if (this._name.substr(0, 2) == "a2") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing1 != undefined) {
_loc2.on_clothing1._visible = true;
_loc2.on_clothing1 = undefined;
_loc2.top1_mc.gotoAndStop(1);
_loc2.dress7.underwear2_mc._visible = true;
}
if (_loc2.on_clothing4 != undefined) {
_loc2.on_clothing4._visible = true;
_loc2.on_clothing4 = undefined;
_loc2.top3_mc.gotoAndStop(1);
_loc2.dress7.underwear2_mc._visible = true;
}
if (_loc2.on_clothing2 != undefined) {
_loc2.on_clothing2._visible = true;
_loc2.on_clothing2 = undefined;
}
this._visible = false;
_loc2.on_clothing2 = this;
_loc2.top2_mc.gotoAndStop(_local3);
_loc2.dress7.underwear1_mc._visible = false;
}
if (this._name.substr(0, 2) == "a3") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing1 != undefined) {
_loc2.on_clothing1._visible = true;
_loc2.on_clothing1 = undefined;
_loc2.top1_mc.gotoAndStop(1);
_loc2.dress7.underwear1_mc._visible = true;
}
if (_loc2.on_clothing3 != undefined) {
_loc2.on_clothing3._visible = true;
_loc2.on_clothing3 = undefined;
}
if (_loc2.on_clothing5 != undefined) {
_loc2.on_clothing5._visible = true;
_loc2.on_clothing5 = undefined;
_loc2.bot2_mc.gotoAndStop(1);
_loc2.dress7.underwear1_mc._visible = true;
}
_loc2.on_clothing3 = this;
_loc2.bot1_mc.gotoAndStop(_local3);
_loc2.dress7.underwear2_mc._visible = false;
}
if (this._name.substr(0, 2) == "a4") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing1 != undefined) {
_loc2.on_clothing1._visible = true;
_loc2.on_clothing1 = undefined;
_loc2.top1_mc.gotoAndStop(1);
_loc2.dress7.underwear2_mc._visible = true;
}
if (_loc2.on_clothing2 != undefined) {
_loc2.on_clothing2._visible = true;
_loc2.on_clothing2 = undefined;
_loc2.top2_mc.gotoAndStop(1);
_loc2.dress7.underwear2_mc._visible = true;
}
if (_loc2.on_clothing4 != undefined) {
_loc2.on_clothing4._visible = true;
_loc2.on_clothing4 = undefined;
}
this._visible = false;
_loc2.on_clothing4 = this;
_loc2.top3_mc.gotoAndStop(_local3);
_loc2.dress7.underwear1_mc._visible = false;
}
if (this._name.substr(0, 2) == "a5") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing1 != undefined) {
_loc2.on_clothing1._visible = true;
_loc2.on_clothing1 = undefined;
_loc2.top1_mc.gotoAndStop(1);
_loc2.dress7.underwear1_mc._visible = true;
}
if (_loc2.on_clothing5 != undefined) {
_loc2.on_clothing5._visible = true;
_loc2.on_clothing5 = undefined;
}
if (_loc2.on_clothing3 != undefined) {
_loc2.on_clothing3._visible = true;
_loc2.on_clothing3 = undefined;
_loc2.bot1_mc.gotoAndStop(1);
_loc2.dress7.underwear1_mc._visible = true;
}
this._visible = false;
_loc2.on_clothing5 = this;
_loc2.bot2_mc.gotoAndStop(_local3);
_loc2.dress7.underwear2_mc._visible = false;
}
if (this._name.substr(0, 2) == "a9") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing10 != undefined) {
_loc2.on_clothing10._visible = true;
_loc2.on_clothing10 = undefined;
}
this._visible = false;
_loc2.on_clothing10 = this;
_loc2.shoes_mc.gotoAndStop(_local3);
_loc2.shoes_mc2.gotoAndStop(1);
}
if (this._name.substr(0, 2) == "as") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing10 != undefined) {
_loc2.on_clothing10._visible = true;
_loc2.on_clothing10 = undefined;
}
this._visible = false;
_loc2.on_clothing10 = this;
_loc2.shoes_mc2.gotoAndStop(_local3);
_loc2.shoes_mc.gotoAndStop(1);
}
if (this._name.substr(0, 2) == "aj") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing5 != undefined) {
_loc2.on_clothing5._visible = true;
_loc2.on_clothing5 = undefined;
}
this._visible = false;
_loc2.on_clothing5 = this;
_loc2.jew01_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 2) == "a6") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing6 != undefined) {
_loc2.on_clothing6._visible = true;
_loc2.on_clothing6 = undefined;
}
this._visible = false;
_loc2.on_clothing6 = this;
_loc2.jew02_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 2) == "a7") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing7 != undefined) {
_loc2.on_clothing7._visible = true;
_loc2.on_clothing7 = undefined;
}
this._visible = false;
_loc2.on_clothing7 = this;
_loc2.bag_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 2) == "a8") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing8 != undefined) {
_loc2.on_clothing8._visible = true;
_loc2.on_clothing8 = undefined;
}
this._visible = false;
_loc2.on_clothing8 = this;
_loc2.cap_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 2) == "aw") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing9 != undefined) {
_loc2.on_clothing9._visible = true;
_loc2.on_clothing9 = undefined;
}
this._visible = false;
_loc2.on_clothing9 = this;
_loc2.waitao_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 2) == "ax") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing13 != undefined) {
_loc2.on_clothing13._visible = true;
_loc2.on_clothing13 = undefined;
}
this._visible = false;
_loc2.on_clothing13 = this;
_loc2.jew03_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 2) == "ag") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing11 != undefined) {
_loc2.on_clothing11._visible = true;
_loc2.on_clothing11 = undefined;
}
this._visible = false;
_loc2.on_clothing11 = this;
_loc2.glass_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 2) == "ay") {
var _local3 = Number(this._name.substr(2, 2)) + 1;
if (_loc2.on_clothing12 != undefined) {
_loc2.on_clothing12._visible = true;
_loc2.on_clothing12 = undefined;
}
this._visible = false;
_loc2.on_clothing12 = this;
_loc2.yaodai_mc.gotoAndStop(_local3);
}
if (this._name.substr(0, 2) == "ah") {
var _local3 = Number(this._name.substr(2, 2));
if (_loc2.on_clothing14 != undefined) {
_loc2.on_clothing14._visible = true;
_loc2.on_clothing14 = undefined;
}
this._visible = false;
_loc2.on_clothing14 = this;
_loc2.hair_mc.gotoAndStop(_local3);
}
_loc2 = undefined;
} else {
this._visible = true;
}
}
};
}
}
}
function reset_one(_mc) {
var _loc2 = _mc;
for (var _local2 in _loc2) {
if (typeof(_loc2[_local2]) == "movieclip") {
_loc2[_local2].enabled = true;
if (_loc2[_local2]._name.substr(0, 3) == "cap") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing8._visible = true;
_loc2.on_clothing8 = undefined;
};
}
if (_loc2[_local2]._name.substr(0, 4) == "top1") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing1._visible = true;
_loc2.on_clothing1 = undefined;
_loc2.dress7.underwear1_mc._visible = true;
_loc2.dress7.underwear2_mc._visible = true;
};
}
if (_loc2[_local2]._name.substr(0, 4) == "top3") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing1._visible = true;
_loc2.on_clothing1 = undefined;
_loc2.dress7.underwear1_mc._visible = true;
_loc2.dress7.underwear2_mc._visible = true;
};
}
if (_loc2[_local2]._name.substr(0, 4) == "top2") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing2._visible = true;
_loc2.on_clothing2 = undefined;
_loc2.dress7.underwear1_mc._visible = true;
};
}
if (_loc2[_local2]._name.substr(0, 4) == "bot1") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing3._visible = true;
_loc2.on_clothing3 = undefined;
_loc2.dress7.underwear2_mc._visible = true;
};
}
if (_loc2[_local2]._name.substr(0, 4) == "shoe") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing4._visible = true;
_loc2.on_clothing4 = undefined;
};
}
if (_loc2[_local2]._name.substr(0, 5) == "jew01") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing5._visible = true;
_loc2.on_clothing5 = undefined;
};
}
if (_loc2[_local2]._name.substr(0, 5) == "jew02") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing6._visible = true;
_loc2.on_clothing6 = undefined;
};
}
if (_loc2[_local2]._name.substr(0, 3) == "bag") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing7._visible = true;
_loc2.on_clothing7 = undefined;
};
}
if (_loc2[_local2]._name.substr(0, 5) == "waita") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing9._visible = true;
_loc2.on_clothing9 = undefined;
};
}
if (_loc2[_local2]._name.substr(0, 5) == "jew03") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing13._visible = true;
_loc2.on_clothing13 = undefined;
};
}
if (_loc2[_local2]._name.substr(0, 5) == "jew04") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing21._visible = true;
_loc2.on_clothing21 = undefined;
};
}
if (_loc2[_local2]._name.substr(0, 5) == "glass") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing11._visible = true;
_loc2.on_clothing11 = undefined;
};
}
if (_loc2[_local2]._name.substr(0, 5) == "yaoda") {
_loc2[_local2].onRelease = function () {
this.gotoAndStop(1);
_loc2.on_clothing12._visible = true;
_loc2.on_clothing12 = undefined;
};
}
}
}
}
function top_show_fun(nn) {
var _local3 = _root;
var _local4 = _root.menu_top.loadMc;
var _local2;
_local2 = _local4.attachMovie("top_show" + nn, "_mc", 1);
_local3.top_menu_load = _local2;
third_ch_ini(_local3.top_menu_load);
clothing_visible();
go_alpha = new mx.transitions.Tween(_local2, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 20, false);
}
function top_menu_move(z) {
var _local5 = _root;
var _local2 = _local5.top_menu_load;
if (z == 1) {
var _local3 = _local2._x;
var _local4 = _local2._x + 160;
if (_local3 < 0) {
go_x = new mx.transitions.Tween(_local2, "_x", mx.transitions.easing.Strong.easeOut, _local3, _local4, 20, false);
}
}
if (z == 2) {
var _local3 = _local2._x;
var _local4 = _local2._x - 160;
if (_local3 > (650 - _local2._width)) {
go_x = new mx.transitions.Tween(_local2, "_x", mx.transitions.easing.Strong.easeOut, _local3, _local4, 20, false);
}
}
}
function ok_fun() {
var _local3 = new Array();
_local3[0] = _root.model_mc1;
_local3[1] = _root.model_mc2;
var _local2 = 0;
while (_local2 < _local3.length) {
for (var _local4 in _local3[_local2]) {
if (typeof(_local3[_local2][_local4]) == "movieclip") {
_local3[_local2][_local4].enabled = false;
}
}
_local2++;
}
girl1(60, -220, 90, _root.model_mc1);
girl2(-100, -220, 90, _root.model_mc2);
gotoAndStop ("done");
}
function clothing_visible() {
var _local2 = 1;
while (_local2 < 23) {
_root.model_mc1["on_clothing" + _local2]._visible = false;
_root.model_mc2["on_clothing" + _local2]._visible = false;
_local2++;
}
}
function clear_ini() {
var _local3 = new Array();
_local3[0] = _root.model_mc1;
_local3[1] = _root.model_mc2;
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2].top1_mc.gotoAndStop(1);
_local3[_local2].top2_mc.gotoAndStop(1);
_local3[_local2].top3_mc.gotoAndStop(1);
_local3[_local2].bot2_mc.gotoAndStop(1);
_local3[_local2].bot1_mc.gotoAndStop(1);
_local3[_local2].shoes_mc.gotoAndStop(1);
_local3[_local2].shoes_mc2.gotoAndStop(1);
_local3[_local2].jew01_mc.gotoAndStop(1);
_local3[_local2].jew02_mc.gotoAndStop(1);
_local3[_local2].jew03_mc.gotoAndStop(1);
_local3[_local2].glass_mc.gotoAndStop(1);
_local3[_local2].yaodai_mc.gotoAndStop(1);
_local3[_local2].cap_mc.gotoAndStop(1);
_local3[_local2].bag_mc.gotoAndStop(1);
_local3[_local2].waitao_mc.gotoAndStop(1);
_local3[_local2].dress7.underwear1_mc._visible = true;
_local3[_local2].dress7.underwear2_mc._visible = true;
var _local4 = 1;
while (_local4 < 9) {
_local3[_local2]["dress" + _local4].gotoAndStop(1);
_local4++;
}
_local2++;
}
}
function clothing_skin() {
var _local2 = 1;
while (_local2 < 22) {
_root.model_mc1["on_clothing" + _local2]._visible = true;
_root.model_mc1["on_clothing" + _local2] = undefined;
_root.model_mc2["on_clothing" + _local2]._visible = true;
_root.model_mc2["on_clothing" + _local2] = undefined;
_local2++;
}
}
mymenu = new ContextMenu();
mymenu.hideBuiltInItems();
mymenu.builtInItems.print = true;
_root.menu = mymenu;
var mc_drag;
var top_menu_load;
var scaleNo_btn = 100;
var scaleNo_dre = 70;
var topShowNo = 1;
var body_no;
var body_choose;
var scaleB = 1;
Instance of Symbol 275 MovieClip "model_mc1" in Frame 1
onClipEvent (load) {
this.x0 = this._x;
this.y0 = this._y;
}
Instance of Symbol 275 MovieClip "model_mc2" in Frame 1
onClipEvent (load) {
this.x0 = this._x;
this.y0 = this._y;
trace(this._xscale);
trace(this._yscale);
}
Instance of Symbol 282 MovieClip in Frame 1
onClipEvent (load) {
_parent.bgSound();
}
Frame 2
stop();
gameStart();
Frame 3
stop();
girl1(90, -240, 70, _root.model_mc1);
girl2(-110, -240, 70, _root.model_mc2);
top_show_fun(topShowNo);
third_ch_ini(this);
reset_one(_root.model_mc1);
reset_one(_root.model_mc2);
Frame 4
getRandomPlayer();
stop();
ok_fun();
Symbol 18 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Instance of Symbol 135 MovieClip in Symbol 136 MovieClip [a601] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 136 MovieClip [a601] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 136 MovieClip [a601] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 138 MovieClip [a602] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 138 MovieClip [a602] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 138 MovieClip [a602] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 141 MovieClip [a603] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 141 MovieClip [a603] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 141 MovieClip [a603] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 145 MovieClip [a604] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 145 MovieClip [a604] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 145 MovieClip [a604] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Symbol 146 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 1
stop();
Instance of Symbol 135 MovieClip in Symbol 262 MovieClip [aj01] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 262 MovieClip [aj01] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 265 MovieClip [aj02] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 265 MovieClip [aj02] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 268 MovieClip [aj03] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 268 MovieClip [aj03] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 273 MovieClip [aj04] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 135 MovieClip in Symbol 273 MovieClip [aj04] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Symbol 274 MovieClip Frame 1
stop();
Symbol 279 Button
on (release) {
this.gotoAndStop(2);
_parent.end_btn_sound_fun();
}
Symbol 281 Button
on (release) {
this.gotoAndStop(1);
_parent.bgSound();
}
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
stop();
Symbol 436 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local3 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local3);
var _local4 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local4.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 437 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 _local6 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local5 = _local4.length;
var _local3 = 0;
while (_local3 < _local5) {
_local4[_local3][_local6].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 438 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));
}
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
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);
}
Symbol 439 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local5 = p / 4;
} else {
var _local5 = (p / 6.283185) * Math.asin(c / a);
}
t = t - 1;
return((((-a) * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * 6.283185) / p)) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local5 = p / 4;
} else {
var _local5 = (p / 6.283185) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * 6.283185) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local5 = p / 4;
} else {
var _local5 = (p / 6.283185) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * 6.283185) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * 6.283185) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 440 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 288 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 319 Button
on (press) {
nextFrame();
}
Symbol 339 Button
on (press) {
top_menu_move(2);
}
Symbol 340 Button
on (press) {
top_menu_move(1);
}
Symbol 344 Button
on (press) {
top_show_fun(1);
}
Symbol 346 Button
on (press) {
top_show_fun(2);
}
Symbol 348 Button
on (press) {
top_show_fun(3);
}
Symbol 367 Button
on (release) {
getURL ("http://www.i-dressup.com", "_self");
}
Symbol 372 MovieClip Frame 20
stop();
Symbol 376 Button
on (release) {
clear_ini();
clothing_skin();
gotoAndPlay (1);
}
Symbol 390 MovieClip Frame 1
_visible = false;
Instance of Symbol 275 MovieClip "model_mc" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.x0 = this._x;
this.y0 = this._y;
}
Symbol 401 Button
on (release) {
_parent.save2server();
}
Symbol 405 Button
on (release) {
_visible = false;
}
Symbol 409 Button
on (release) {
_visible = false;
}
Symbol 416 Button
on (release) {
_parent._visible = false;
}
Symbol 417 Button
on (release) {
_parent._parent.installToolbar();
}
Symbol 418 MovieClip Frame 1
bg.useHandCursor = false;
Symbol 419 MovieClip Frame 1
nm.restrict = "A-Z a-z 0-9 - _ .";
_visible = false;
Symbol 421 Button
on (release) {
joinBattle();
}
Symbol 423 Button
on (release) {
getTop20();
}
Symbol 425 MovieClip Frame 1
bg.useHandCursor = false;
Symbol 429 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 430 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 434 Button
on (release) {
_visible = false;
}
Symbol 435 MovieClip Frame 1
_visible = false;