Frame 1
function setDress(arrName, arrPos) {
if (arrName == dressTop) {
top_mc.gotoAndStop(arrPos + 1);
if (dress_clr != undefined) {
top_clr.setRGB(dress_clr);
}
arrName.count = arrPos;
data_top = arrPos;
}
if (arrName == dressSkirt) {
skirt_mc.gotoAndStop(arrPos + 1);
if (dress_clr != undefined) {
skirt_clr.setRGB(dress_clr);
}
arrName.count = arrPos;
data_skirt = arrPos;
}
if (arrName == dressShoes) {
shoes_mc.gotoAndStop(arrPos + 1);
if (accent_clr != undefined) {
shoes_clr.setRGB(accent_clr);
}
arrName.count = arrPos;
data_shoes = arrPos;
}
if (arrName == dressColor) {
top_clr = new Color(top_mc.fill_mc);
skirt_clr = new Color(skirt_mc.fill_mc);
glove_clr = new Color(accessory5_mc.fill_mc);
dress_clr = "0x" + dressColor_hex[arrPos];
top_clr.setRGB("0x" + dressColor_hex[arrPos]);
skirt_clr.setRGB("0x" + dressColor_hex[arrPos]);
glove_clr.setRGB("0x" + dressColor_hex[arrPos]);
arrName.count = arrPos;
data_dress_clr = arrPos;
}
if (arrName == dressAccent) {
shoes_clr = new Color(shoes_mc.fill_mc);
shoes_clr.setRGB("0x" + dressAccent_hex[arrPos]);
handbag_clr = new Color(accessory1_mc.fill_mc);
handbag_clr.setRGB("0x" + dressAccent_hex[arrPos]);
accent_clr = "0x" + dressAccent_hex[arrPos];
arrName.count = arrPos;
data_dress_accent = arrPos;
}
}
function hideDress() {
top_mc._visible = (skirt_mc._visible = (shoes_mc._visible = 0));
}
function showDress() {
top_mc._visible = (skirt_mc._visible = (shoes_mc._visible = 1));
}
function setBody(arrName, arrPos) {
topX = 391;
skirtX = 343;
if (arrName == bodyType) {
body_mc.gotoAndStop(arrPos + 1);
if (skin_clr != undefined) {
body_clr.setRGB(skin_clr);
face_clr.setRGB(skin_clr);
}
if (arrPos == 1) {
if (top_mc._xscale != 92) {
top_mc._xscale = (skirt_mc._xscale = 92);
top_mc._x = top_mc._x - 4;
skirt_mc._x = skirt_mc._x - 8;
}
} else {
top_mc._xscale = (skirt_mc._xscale = 82.7);
top_mc._x = topX;
skirt_mc._x = skirtX;
}
arrName.count = arrPos;
data_body = arrPos;
}
if (arrName == bodyColor) {
body_clr = new Color(body_mc.fill_mc);
face_clr = new Color(body_mc.face_mc);
skin_clr = "0x" + bodyColor_hex[arrPos];
body_clr.setRGB("0x" + bodyColor_hex[arrPos]);
face_clr.setRGB("0x" + bodyColor_hex[arrPos]);
arrName.count = arrPos;
data_body_clr = arrPos;
}
}
function setHairstyle(arrName, arrPos) {
if (arrName == hairStyle) {
hair_mc.gotoAndStop(arrPos + 1);
if (hair_clr != undefined) {
style_clr.setRGB(hair_clr);
}
arrName.count = arrPos;
data_hairstyle = arrPos;
}
if (arrName == hairColor) {
style_clr = new Color(hair_mc.fill_mc);
hair_clr = "0x" + hairColor_hex[arrPos];
style_clr.setRGB("0x" + hairColor_hex[arrPos]);
arrName.count = arrPos;
data_hair_clr = arrPos;
}
}
function setAccessory(arrPos, bool) {
data_accessory = new Array();
this[("accessory" + (arrPos + 1)) + "_mc"].isVisible = bool;
i = 0;
while (i < accessory.length) {
if (this[("accessory" + (i + 1)) + "_mc"].isVisible == 0) {
this[("accessory" + (i + 1)) + "_mc"]._alpha = 0;
} else {
this[("accessory" + (i + 1)) + "_mc"]._alpha = 100;
}
data_accessory[i] = this[("accessory" + (i + 1)) + "_mc"].isVisible;
i++;
}
}
function hideAccessories() {
i = 0;
while (i < accessory.length) {
if (this[("accessory" + (i + 1)) + "_mc"].isVisible == undefined) {
this[("accessory" + (i + 1)) + "_mc"].isVisible = 0;
}
this[("accessory" + (i + 1)) + "_mc"]._alpha = 0;
i++;
}
}
function showAccessories() {
i = 0;
while (i < accessory.length) {
if (this[("accessory" + (i + 1)) + "_mc"].isVisible == 1) {
this[("accessory" + (i + 1)) + "_mc"]._alpha = 100;
}
i++;
}
}
function setCorsage(arrPos) {
corsage_mc.isVisible = 1;
corsage_mc._alpha = 100;
corsage_mc.gotoAndStop(arrPos + 1);
corsage.count = arrPos;
data_corsage = arrPos;
}
function hideCorsage() {
corsage_mc.isVisible = 0;
corsage_mc._alpha = 0;
}
function setInitDress() {
setBody(bodyType, 0);
setBody(bodyColor, 1);
setDress(dressTop, 0);
setDress(dressSkirt, 0);
setDress(dressShoes, 0);
setDress(dressColor, 0);
setDress(dressShoes, 0);
setDress(dressColor, 0);
setDress(dressAccent, 0);
setHairstyle(hairStyle, 3);
setHairstyle(hairColor, 0);
setCorsage(0);
hideCorsage();
hideAccessories();
}
function resetMe() {
setInitDress();
hideDress();
hideAccessories();
dress_so.clear();
}
function saveMe() {
dress_so.data.dtop = data_top;
dress_so.data.skirt = data_skirt;
dress_so.data.shoes = data_shoes;
dress_so.data.dress_clr = data_dress_clr;
dress_so.data.dress_accent = data_dress_accent;
dress_so.data.body = data_body;
dress_so.data.body_clr = data_body_clr;
dress_so.data.hairstyle = data_hairstyle;
dress_so.data.hair_clr = data_hair_clr;
dress_so.data.accessory = data_accessory;
dress_so.data.corsage = data_corsage;
promKey = (((((((((((((data_top.toString() + data_skirt.toString()) + data_shoes.toString()) + data_dress_clr.toString()) + data_dress_accent.toString()) + "-") + data_body.toString()) + data_body_clr.toString()) + "-") + data_hairstyle.toString()) + data_hair_clr.toString()) + "-") + data_accessory.join("")) + "-") + data_corsage.toString();
}
function initMe() {
hideDress();
hideAccessories();
if (dress_so.data.dtop != undefined) {
this.data_top = dress_so.data.dtop;
showDress();
} else {
this.data_top = 0;
}
if (dress_so.data.skirt != undefined) {
this.data_skirt = dress_so.data.skirt;
showDress();
} else {
this.data_skirt = 0;
}
if (dress_so.data.shoes != undefined) {
this.data_shoes = dress_so.data.shoes;
showDress();
} else {
this.data_shoes = 0;
}
if (dress_so.data.dress_clr != undefined) {
this.data_dress_clr = dress_so.data.dress_clr;
showDress();
} else {
this.data_dress_clr = 0;
}
if (dress_so.data.dress_accent != undefined) {
this.data_dress_accent = dress_so.data.dress_accent;
} else {
this.data_dress_accent = 0;
}
if (dress_so.data.body != undefined) {
this.data_body = dress_so.data.body;
} else {
this.data_body = 0;
}
if (dress_so.data.body_clr != undefined) {
this.data_body_clr = dress_so.data.body_clr;
} else {
this.data_body_clr = 1;
}
if (dress_so.data.hairstyle != undefined) {
this.data_hairstyle = dress_so.data.hairstyle;
} else {
this.data_hairstyle = 3;
}
if (dress_so.data.hair_clr != undefined) {
this.data_hair_clr = dress_so.data.hair_clr;
} else {
this.data_hair_clr = 0;
}
if (dress_so.data.corsage != undefined) {
this.data_corsage = dress_so.data.corsage;
} else {
this.data_corsage = 0;
}
if (dress_so.data.accessory != undefined) {
this.data_accessory = dress_so.data.accessory;
i = 0;
while (i < data_accessory.length) {
this[("accessory" + (i + 1)) + "_mc"].isVisible = data_accessory[i];
i++;
}
} else {
data_accessory = new Array();
i = 0;
while (i < accessory.length) {
this[("accessory" + (i + 1)) + "_mc"].isVisible == 0;
this[("accessory" + (i + 1)) + "_mc"]._alpha = 0;
data_accessory[i] = this[("accessory" + (i + 1)) + "_mc"].isVisible;
i++;
}
}
setBody(bodyType, data_body);
setBody(bodyColor, data_body_clr);
setDress(dressTop, data_top);
setDress(dressSkirt, data_skirt);
setDress(dressShoes, data_shoes);
setDress(dressColor, data_dress_clr);
setDress(dressAccent, data_dress_accent);
setHairstyle(hairStyle, data_hairstyle);
setHairstyle(hairColor, data_hair_clr);
setCorsage(data_corsage);
i = 0;
while (i < accessory.length) {
if (this[("accessory" + (i + 1)) + "_mc"].isVisible == undefined) {
hideAccessories();
} else if (this[("accessory" + (i + 1)) + "_mc"].isVisible == 0) {
this[("accessory" + (i + 1)) + "_mc"]._alpha = 0;
} else {
this[("accessory" + (i + 1)) + "_mc"].isVisible = 1;
this[("accessory" + (i + 1)) + "_mc"]._alpha = 100;
}
i++;
}
clearAllText();
}
function initFriend() {
var _local4 = key.split("-");
var _local3 = _local4[0].split("");
setDress(dressTop, parseInt(_local3[0]));
setDress(dressSkirt, parseInt(_local3[1]));
setDress(dressShoes, parseInt(_local3[2]));
setDress(dressColor, parseInt(_local3[3]));
setDress(dressAccent, parseInt(_local3[4]));
var _local5 = _local4[1].split("");
setBody(bodyType, parseInt(_local5[0]));
setBody(bodyColor, parseInt(_local5[1]));
var _local7 = _local4[2].split("");
setHairstyle(hairStyle, parseInt(_local7[0]));
setHairstyle(hairColor, parseInt(_local7[1]));
var _local2 = _local4[3].split("");
if ((_local2 != undefined) || (_local2 != "undefined")) {
i = 0;
while (i < _local2.length) {
if (_local2[i] == 0) {
this[("accessory" + (i + 1)) + "_mc"].isVisible = 0;
this[("accessory" + (i + 1)) + "_mc"]._alpha = 0;
} else {
this[("accessory" + (i + 1)) + "_mc"].isVisible = 1;
this[("accessory" + (i + 1)) + "_mc"]._alpha = 100;
}
i++;
}
} else {
hideAccessories();
}
var _local6 = parseInt(_local4[4]);
setCorsage(_local6);
}
bodyType = new Array("Curvy", "Plump", "Athletic", "Thin");
bodyColor = new Array("Pink", "Beige", "Olive", "Brown");
bodyColor_hex = new Array("E8C7B7", "D8AC81", "BC8F63", "9B6D42");
dressTop = new Array("Strapless", "Poofy shoulders", "Short-sleeve", "Halter strap", "Floral print", "Beaded");
dressSkirt = new Array("Sleek gown", "Poofy tulle", "Taffeta poofy", "Sexy slit", "Short sassy", "Feather trim");
dressShoes = new Array("Shoes 1", "Shoes 2", "Shoes 3", "Shoes 4");
dressColor = new Array("Light Blue", "Pink", "Grey", "Purple", "Orange", "Dark Blue", "Green", "Cream", "Red");
dressColor_hex = new Array("71BADD", "F79F9F", "737373", "8761DA", "EE8335", "677CC2", "A6BC25", "F5FCD1", "BC4834");
dressAccent = new Array("Blue", "Pink", "Grey", "Green", "Gold", "Red");
dressAccent_hex = new Array("3E8697", "E09D85", "9B9B9B", "999933", "D29E3E", "FB7575");
hairStyle = new Array("Hair Up 1", "Hair Up 2", "Hair Up 3", "Medium Long", "Naturally long 1", "Naturally long 2");
hairColor = new Array("Brunette", "Black", "Platinum Blonde", "Dark Blonde", "Red");
hairColor_hex = new Array("7C4A27", "333333", "FEF4AB", "F9CC68", "993300");
accessory = new Array("Clutch Handbag", "Tiara crown", "Diamond necklace", "Diamond bracelet", "Long gloves");
corsage = new Array("Corsage 1", "Corsage 2", "Corsage 3", "Corsage 4", "Corsage 5", "Corsage 6");
var dress_so = SharedObject.getLocal("dressSO");
dress_so.flush();
Frame 2
var l = getBytesLoaded();
var t = getBytesTotal();
var perc = ((l / t) * 100);
preloader_mc.iFill._yscale = 100 - perc;
if (perc >= 100) {
if ((key != undefined) && (key.length > 1)) {
gotoAndStop ("pickup");
} else {
gotoAndStop ("intro");
}
} else {
play();
}
Frame 3
gotoAndPlay (2);
Frame 4
stop();
setInitDress();
start_btn.onRelease = function () {
introAnimation_mc.gotoAndPlay("outro");
};
Frame 5
stop();
transition_mc.gotoAndPlay(1);
initFriend();
start_btn.onRelease = function () {
key = "";
gotoAndPlay (1);
};
Frame 6
function activateStepButtons() {
step1_btn.onRelease = function () {
gotoAndStop ("step1");
};
step2_btn.onRelease = function () {
gotoAndStop ("step2");
};
step3_btn.onRelease = function () {
gotoAndStop ("step3");
};
step4_btn.onRelease = function () {
gotoAndStop ("step4");
};
step5_btn.onRelease = function () {
gotoAndStop ("step5");
};
step6_btn.onRelease = function () {
gotoAndStop ("step6");
};
}
stop();
transition_mc.gotoAndPlay(1);
initMe();
hideDress();
hideAccessories();
hideCorsage();
if (initialized != true) {
step1_btn.enabled = false;
step2_btn.enabled = false;
step3_btn.enabled = false;
step4_btn.enabled = false;
step5_btn.enabled = false;
step6_btn.enabled = false;
initialized = true;
}
next_btn.onRelease = function () {
step1_btn.enabled = true;
saveMe();
nextFrame();
};
activateStepButtons();
bodyPrev_btn.onRelease = function () {
bodyType.count--;
if (bodyType.count < 0) {
bodyType.count = bodyType.length - 1;
}
setBody(bodyType, bodyType.count);
};
bodyNext_btn.onRelease = function () {
bodyType.count++;
if ((bodyType.count > (bodyType.length - 1)) || (bodyType.count == undefined)) {
bodyType.count = 0;
}
setBody(bodyType, bodyType.count);
};
tonePrev_btn.onRelease = function () {
bodyColor.count--;
if (bodyColor.count < 0) {
bodyColor.count = bodyColor.length - 1;
}
setBody(bodyColor, bodyColor.count);
};
toneNext_btn.onRelease = function () {
bodyColor.count++;
if ((bodyColor.count > (bodyColor.length - 1)) || (bodyColor.count == undefined)) {
bodyColor.count = 0;
}
setBody(bodyColor, bodyColor.count);
};
Frame 7
stop();
transition_mc.gotoAndPlay(1);
showDress();
hideAccessories();
hideCorsage();
activateStepButtons();
next_btn.onRelease = function () {
step2_btn.enabled = true;
saveMe();
nextFrame();
};
showDress();
topPrev_btn.onRelease = function () {
dressTop.count--;
if (dressTop.count < 0) {
dressTop.count = dressTop.length - 1;
}
setDress(dressTop, dressTop.count);
};
topNext_btn.onRelease = function () {
dressTop.count++;
if ((dressTop.count > (dressTop.length - 1)) || (dressTop.count == undefined)) {
dressTop.count = 0;
}
setDress(dressTop, dressTop.count);
};
skirtPrev_btn.onRelease = function () {
dressSkirt.count--;
if (dressSkirt.count < 0) {
dressSkirt.count = dressSkirt.length - 1;
}
setDress(dressSkirt, dressSkirt.count);
};
skirtNext_btn.onRelease = function () {
dressSkirt.count++;
if ((dressSkirt.count > (dressSkirt.length - 1)) || (dressSkirt.count == undefined)) {
dressSkirt.count = 0;
}
setDress(dressSkirt, dressSkirt.count);
};
dressColorPrev_btn.onRelease = function () {
dressColor.count--;
if (dressColor.count < 0) {
dressColor.count = dressColor.length - 1;
}
setDress(dressColor, dressColor.count);
};
dressColorNext_btn.onRelease = function () {
dressColor.count++;
if ((dressColor.count > (dressColor.length - 1)) || (dressColor.count == undefined)) {
dressColor.count = 0;
}
setDress(dressColor, dressColor.count);
};
shoePrev_btn.onRelease = function () {
dressShoes.count--;
if (dressShoes.count < 0) {
dressShoes.count = dressShoes.length - 1;
}
setDress(dressShoes, dressShoes.count);
};
shoeNext_btn.onRelease = function () {
dressShoes.count++;
if ((dressShoes.count > (dressShoes.length - 1)) || (dressShoes.count == undefined)) {
dressShoes.count = 0;
}
setDress(dressShoes, dressShoes.count);
};
shoeColorPrev_btn.onRelease = function () {
dressAccent.count--;
if (dressAccent.count < 0) {
dressAccent.count = dressAccent.length - 1;
}
setDress(dressAccent, dressAccent.count);
};
shoeColorNext_btn.onRelease = function () {
dressAccent.count++;
if ((dressAccent.count > (dressAccent.length - 1)) || (dressAccent.count == undefined)) {
dressAccent.count = 0;
}
setDress(dressAccent, dressAccent.count);
};
Frame 8
stop();
transition_mc.gotoAndPlay(1);
activateStepButtons();
showDress();
hideAccessories();
hideCorsage();
next_btn.onRelease = function () {
transition_mc.gotoAndPlay(1);
step3_btn.enabled = true;
saveMe();
nextFrame();
};
hairstylePrev_btn.onRelease = function () {
hairStyle.count--;
if (hairStyle.count < 0) {
hairStyle.count = hairStyle.length - 1;
}
setHairstyle(hairStyle, hairStyle.count);
};
hairstyleNext_btn.onRelease = function () {
hairStyle.count++;
if ((hairStyle.count > (hairStyle.length - 1)) || (hairStyle.count == undefined)) {
hairStyle.count = 0;
}
setHairstyle(hairStyle, hairStyle.count);
};
hairColorPrev_btn.onRelease = function () {
hairColor.count--;
if (hairColor.count < 0) {
hairColor.count = hairColor.length - 1;
}
setHairstyle(hairColor, hairColor.count);
};
hairColorNext_btn.onRelease = function () {
hairColor.count++;
if ((hairColor.count > (hairColor.length - 1)) || (hairColor.count == undefined)) {
hairColor.count = 0;
}
setHairstyle(hairColor, hairColor.count);
};
Frame 9
stop();
transition_mc.gotoAndPlay(1);
activateStepButtons();
showDress();
showAccessories();
hideCorsage();
next_btn.onRelease = function () {
step4_btn.enabled = true;
saveMe();
nextFrame();
};
accessoryCount = 0;
accessoriesPrev_btn.onRelease = function () {
accessoryCount--;
if (accessoryCount < 0) {
accessoryCount = accessoryPreview_mc._totalframes - 1;
}
accessoryPreview_mc.gotoAndStop(accessoryCount + 1);
};
accessoriesNext_btn.onRelease = function () {
accessoryCount++;
if (accessoryCount > (accessoryPreview_mc._totalframes - 1)) {
accessoryCount = 0;
}
accessoryPreview_mc.gotoAndStop(accessoryCount + 1);
};
addAccessory_btn.onRelease = function () {
setAccessory(accessoryCount, 1);
};
deleteAccessory_btn.onRelease = function () {
setAccessory(accessoryCount, 0);
};
Frame 10
stop();
transition_mc.gotoAndPlay(1);
activateStepButtons();
showDress();
showAccessories();
hideCorsage();
next_btn.onRelease = function () {
step5_btn.enabled = true;
saveMe();
nextFrame();
};
corsageCount = 0;
corsage_mc._alpha = 100;
corsagePrev_btn.onRelease = function () {
corsageCount--;
if (corsageCount < 0) {
corsageCount = corsagePreview_mc._totalframes - 1;
}
corsagePreview_mc.gotoAndStop(corsageCount + 1);
setCorsage(corsageCount);
};
corsageNext_btn.onRelease = function () {
corsageCount++;
if (corsageCount > (corsagePreview_mc._totalframes - 1)) {
corsageCount = 0;
}
corsagePreview_mc.gotoAndStop(corsageCount + 1);
setCorsage(corsageCount);
};
Frame 11
stop();
transition_mc.gotoAndPlay(1);
activateStepButtons();
showDress();
showAccessories();
corsage_mc._alpha = 100;
step6_btn.enabled = true;
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 2
stop();
Symbol 47 MovieClip Frame 3
stop();
Symbol 47 MovieClip Frame 4
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 3
stop();
Symbol 149 MovieClip Frame 4
stop();
Symbol 149 MovieClip Frame 5
stop();
Symbol 149 MovieClip Frame 6
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 12
stop();
Symbol 183 Button
on (press) {
gotoAndPlay ("begin");
}
Symbol 187 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 96
figureAnim_mc.accessory1_mc._visible = 0;
figureAnim_mc.accessory2_mc._visible = 0;
figureAnim_mc.accessory3_mc._visible = 0;
figureAnim_mc.accessory4_mc._visible = 0;
figureAnim_mc.accessory5_mc._visible = 0;
figureAnim_mc.corsage_mc._visible = 0;
Symbol 191 MovieClip Frame 112
figureAnim_mc.accessory1_mc._visible = 0;
figureAnim_mc.accessory2_mc._visible = 0;
figureAnim_mc.accessory3_mc._visible = 0;
figureAnim_mc.accessory4_mc._visible = 0;
figureAnim_mc.accessory5_mc._visible = 0;
figureAnim_mc.corsage_mc._visible = 0;
Symbol 191 MovieClip Frame 124
figureAnim_mc.accessory1_mc._visible = 0;
figureAnim_mc.accessory2_mc._visible = 0;
figureAnim_mc.accessory3_mc._visible = 0;
figureAnim_mc.accessory4_mc._visible = 0;
figureAnim_mc.accessory5_mc._visible = 0;
figureAnim_mc.corsage_mc._visible = 0;
Symbol 191 MovieClip Frame 136
figureAnim_mc.accessory1_mc._visible = 0;
figureAnim_mc.accessory2_mc._visible = 0;
figureAnim_mc.accessory3_mc._visible = 0;
figureAnim_mc.accessory4_mc._visible = 0;
figureAnim_mc.accessory5_mc._visible = 0;
figureAnim_mc.corsage_mc._visible = 0;
Symbol 191 MovieClip Frame 156
figureAnim_mc.top_mc.gotoAndStop(2);
figureAnim_mc.skirt_mc.gotoAndStop(2);
figureAnim_mc.shoes_mc.gotoAndStop(2);
Symbol 191 MovieClip Frame 162
figureAnim_mc.top_mc.gotoAndStop(3);
figureAnim_mc.skirt_mc.gotoAndStop(3);
figureAnim_mc.shoes_mc.gotoAndStop(3);
Symbol 191 MovieClip Frame 168
figureAnim_mc.top_mc.gotoAndStop(4);
figureAnim_mc.skirt_mc.gotoAndStop(4);
figureAnim_mc.shoes_mc.gotoAndStop(4);
Symbol 191 MovieClip Frame 174
figureAnim_mc.top_mc.gotoAndStop(5);
figureAnim_mc.skirt_mc.gotoAndStop(5);
figureAnim_mc.shoes_mc.gotoAndStop(1);
Symbol 191 MovieClip Frame 180
figureAnim_mc.top_mc.gotoAndStop(6);
figureAnim_mc.skirt_mc.gotoAndStop(6);
figureAnim_mc.shoes_mc.gotoAndStop(1);
Symbol 191 MovieClip Frame 202
figureAnim_mc.accessory1_mc._visible = 1;
figureAnim_mc.accessory2_mc._visible = 0;
figureAnim_mc.accessory3_mc._visible = 0;
figureAnim_mc.accessory4_mc._visible = 0;
figureAnim_mc.accessory5_mc._visible = 0;
figureAnim_mc.corsage_mc._visible = 0;
Symbol 191 MovieClip Frame 204
figureAnim_mc.accessory1_mc._visible = 1;
figureAnim_mc.accessory2_mc._visible = 1;
figureAnim_mc.accessory3_mc._visible = 0;
figureAnim_mc.accessory4_mc._visible = 0;
figureAnim_mc.accessory5_mc._visible = 0;
figureAnim_mc.corsage_mc._visible = 0;
Symbol 191 MovieClip Frame 206
figureAnim_mc.accessory1_mc._visible = 1;
figureAnim_mc.accessory2_mc._visible = 1;
figureAnim_mc.accessory3_mc._visible = 1;
figureAnim_mc.accessory4_mc._visible = 0;
figureAnim_mc.accessory5_mc._visible = 0;
figureAnim_mc.corsage_mc._visible = 0;
Symbol 191 MovieClip Frame 208
figureAnim_mc.accessory1_mc._visible = 1;
figureAnim_mc.accessory2_mc._visible = 1;
figureAnim_mc.accessory3_mc._visible = 1;
figureAnim_mc.accessory4_mc._visible = 1;
figureAnim_mc.accessory5_mc._visible = 0;
figureAnim_mc.corsage_mc._visible = 0;
Symbol 191 MovieClip Frame 210
figureAnim_mc.accessory1_mc._visible = 1;
figureAnim_mc.accessory2_mc._visible = 1;
figureAnim_mc.accessory3_mc._visible = 1;
figureAnim_mc.accessory4_mc._visible = 1;
figureAnim_mc.accessory5_mc._visible = 1;
figureAnim_mc.corsage_mc._visible = 0;
Symbol 191 MovieClip Frame 212
figureAnim_mc.accessory1_mc._visible = 1;
figureAnim_mc.accessory2_mc._visible = 1;
figureAnim_mc.accessory3_mc._visible = 1;
figureAnim_mc.accessory4_mc._visible = 1;
figureAnim_mc.accessory5_mc._visible = 1;
figureAnim_mc.corsage_mc._visible = 1;
Symbol 191 MovieClip Frame 283
stop();
Symbol 191 MovieClip Frame 310
stop();
_parent.resetMe();
_parent.gotoAndStop("step1");
Symbol 237 MovieClip Frame 58
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 298 Button
on (release) {
sendForm();
}
Symbol 319 Button
on (release) {
_parent.gotoAndPlay(1);
}
Symbol 321 MovieClip Frame 1
function init() {
Selection.setFocus(yourName);
yourName.tabIndex = 1;
yourEmail.tabIndex = 2;
friendsEmail.tabIndex = 3;
_focusrect = false;
spinner._visible = false;
_parent.saveMe();
}
function sendForm() {
new Color(yourNameMC).setRGB(0);
new Color(friendsEmailMC).setRGB(0);
if (!yourName.text.length) {
new Color(yourNameMC).setRGB(9906707);
Selection.setFocus(yourName);
} else if (((yourEmail.text.indexOf("@") == -1) || (yourEmail.text.indexOf(".") == -1)) || (yourEmail.text.length < 5)) {
new Color(yourEmailMC).setRGB(9906707);
Selection.setFocus(yourEmail);
} else if (((friendsEmail.text.indexOf("@") == -1) || (friendsEmail.text.indexOf(".") == -1)) || (friendsEmail.text.length < 5)) {
new Color(friendsEmailMC).setRGB(9906707);
Selection.setFocus(friendsEmail);
} else {
spinner._visible = true;
sendBtn.enabled = false;
yourName.enabled = false;
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
if (success) {
spinner._visible = false;
sendBtn._visible = false;
gotoAndPlay ("emailSent");
} else {
message("error");
}
};
var _local2 = new LoadVars();
_local2.yourName = yourName.text;
_local2.yourEmail = yourEmail.text;
_local2.friendsEmail = friendsEmail.text;
_local2.key = _parent.promKey;
_local2.sendAndLoad("/games/promdress/sendtofriend.php", _local3, "POST");
}
}
stop();
init();
Instance of Symbol 310 MovieClip "spinner" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 321 MovieClip Frame 2
stop();