Frame 1
Stage.showMenu = false;
Frame 3
var loaded = getBytesLoaded();
var total = getBytesTotal();
var p = Math.round((loaded / total) * 100);
preloaderMask._yscale = p;
dressup_bg._xscale = p;
if (loaded < total) {
gotoAndPlay(_currentframe - 1);
}
Frame 13
var dressup = new DressUp(this.dressingRoom);
btRandomOutfit.onRelease = function () {
_root.dressup.randomOutfit();
};
btClear.onRelease = function () {
_root.dressup.clearOutfit();
};
Frame 26
stop();
Symbol 82 MovieClip [__Packages.DressUp] Frame 0
class DressUp
{
var mc, groups, items, filter_active, filter_over;
function DressUp (mc) {
this.mc = mc;
groups = {};
items = {};
filter_active = new flash.filters.GlowFilter(16777215, 1, 16, 16, 1, 3, false, false);
filter_over = new flash.filters.GlowFilter(0, 0.8, 16, 16, 1, 3, false, false);
addItem("headRedRibbon", "headRedRibbon", ["heads"]);
addItem("headClip", "headClip", ["heads"]);
addItem("veil", ["veil_behind", "veil"], ["heads"]);
addItem("gloves", "gloves");
addItem("blueSkirt", "blueSkirt", ["skirts", "jeans", "dresses"], ["greenShirt"]);
addItem("redSkirt", "redSkirt", ["skirts", "jeans", "dresses"], ["greenShirt"]);
addItem("jeans", "jeans", ["skirts", "jeans", "dresses"]);
addItem("greenShirt", "greenShirt", ["shirts", "dresses", "skirts"]);
addItem("brownShirt", "brownShirt", ["shirts", "dresses"]);
addItem("sailorShirt", "sailorShirt", ["shirts", "dresses"]);
addItem("weddingDress", "weddingDress", ["shirts", "dresses", "jeans", "skirts"]);
addItem("yellowDress", "yellowDress", ["shirts", "dresses", "jeans", "skirts"]);
addItem("brownHeels", "brownHeels", ["shoes"]);
addItem("whiteHeels", "whiteHeels", ["shoes"]);
addItem("sneakers", "sneakers", ["shoes"]);
addItem("blackHeels", "blackHeels", ["shoes"]);
addItem("shoesNSocks", "shoesNSocks", ["shoes"]);
addItem("goldenRings", "goldenRings", ["rings"]);
addItem("blueRings", "blueRings", ["rings"]);
addGroup("heads", ["headRedRibbon", "headClip", "veil"]);
addGroup("skirts", ["blueSkirt", "redSkirt"]);
addGroup("jeans", ["jeans"]);
addGroup("shirts", ["greenShirt", "brownShirt", "sailorShirt"]);
addGroup("dresses", ["weddingDress", "yellowDress"]);
addGroup("shoes", ["brownHeels", "whiteHeels", "sneakers", "blackHeels", "shoesNSocks"]);
addGroup("rings", ["goldenRings", "blueRings"]);
}
function addGroup(id, items) {
groups[id] = items;
}
function addItem(id, mcStrArr, hideGroups, hideItems) {
items[id] = {};
var _local2 = items[id];
if (typeof(mcStrArr) != "object") {
mcStrArr = [mcStrArr];
}
_local2.MCs = [];
var _local5 = 0;
while (_local5 < mcStrArr.length) {
_local2.MCs.push(mc[mcStrArr[_local5]]);
_local5++;
}
_local2.id = id;
_local2.mc = _local2.MCs[0];
_local2.btMC = mc._parent.buttons[mcStrArr[0]];
_local2.hideGroups = hideGroups;
_local2.hideItems = hideItems;
_local2.active = false;
_local2.btPosX = ((-mc._x) + mc._parent.buttons._x) + ((_local2.btMC._x * mc._parent.buttons._xscale) / 100);
_local2.btPosY = ((-mc._y) + mc._parent.buttons._y) + ((_local2.btMC._y * mc._parent.buttons._yscale) / 100);
_local2.dressedPosX = _local2.mc._x;
_local2.dressedPosY = _local2.mc._y;
_local2.btScale = (mc._parent.buttons._xscale * _local2.btMC._xscale) / 100;
_local2.dressedScale = mc._xscale;
var _local4 = _local2.btMC;
_local4.op = this;
_local4.itemID = id;
_local4.onRelease = function () {
this.op.toggleItem(this.itemID);
};
_local4.onRollOver = (_local4.onDragOver = function () {
this.op.overItemBt(this.itemID);
});
_local4.onRollOut = (_local4.onDragOut = function () {
this.op.outItemBt(this.itemID);
});
_local2.mc._visible = false;
for (_local5 in _local2.MCs) {
_local2.MCs[_local5]._visible = false;
}
}
function buttonizeItem(id) {
if (items[id].active) {
var _local2 = items[id].mc;
_local2.op = this;
_local2.itemID = id;
_local2.onRelease = function () {
this.op.toggleItem(this.itemID);
};
}
}
function unButtonizeItem(id) {
var _local2 = items[id].mc;
_local2.op = this;
_local2.itemID = id;
delete _local2.onRelease;
}
function toggleItem(id) {
var _local3 = items[id];
if (_local3.active) {
hideItem(id);
} else {
showItem(id, Key.isDown(17));
}
}
function showItem(id, overrideHide) {
var _local2 = items[id];
if (!overrideHide) {
for (var _local4 in _local2.hideItems) {
hideItem(_local2.hideItems[_local4]);
}
for (var _local4 in _local2.hideGroups) {
hideGroup(_local2.hideGroups[_local4]);
}
}
_local2.mc._visible = true;
for (var _local4 in _local2.MCs) {
_local2.MCs[_local4]._visible = true;
}
_local2.active = true;
hiliteItemBt(id);
for (var _local4 in _local2.MCs) {
animateIn(_local2.MCs[_local4], id);
}
}
function hideGroup(id) {
var _local2 = groups[id];
for (var _local3 in _local2) {
hideItem(_local2[_local3]);
}
}
function hideItem(id) {
var _local2 = items[id];
if (!_local2.active) {
return(0);
}
unButtonizeItem(id);
_local2.active = false;
unHiliteItemBt(id);
for (var _local4 in _local2.MCs) {
animateOut(_local2.MCs[_local4], id);
}
}
function animateIn(mc, id) {
var _local2 = items[id];
var _local3 = 20;
var _local8 = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Strong.easeOut, _local2.btPosX, _local2.dressedPosX, _local3, false);
var _local5 = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Strong.easeOut, _local2.btPosY, _local2.dressedPosY, _local3, false);
var _local7 = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Strong.easeOut, _local2.btScale, _local2.dressedScale, _local3 + 5, false);
var _local6 = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Strong.easeOut, _local2.btScale, _local2.dressedScale, _local3 + 5, false);
_local5 = new mx.transitions.Tween(mc, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, _local3, false);
var tmpop = this;
_local5.onMotionFinished = function () {
tmpop.buttonizeItem(id);
};
}
function animateOut(mc, id) {
var _local2 = items[id];
var _local3 = 20;
var _local8 = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Strong.easeOut, _local2.dressedPosX, _local2.btPosX, _local3, false);
var _local7 = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Strong.easeOut, _local2.dressedPosY, _local2.btPosY, _local3, false);
var _local6 = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Strong.easeOut, _local2.dressedScale, _local2.btScale, _local3 + 5, false);
var _local5 = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Strong.easeOut, _local2.dressedScale, _local2.btScale, _local3 + 5, false);
_local7 = new mx.transitions.Tween(mc, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, _local3, false);
}
function hiliteItemBt(id) {
var _local2 = items[id];
_local2.btMC.filters = [filter_active, filter_active, filter_active];
}
function unHiliteItemBt(id) {
var _local2 = items[id];
_local2.btMC.filters = [];
}
function overItemBt(id) {
var _local2 = items[id].btMC;
if (items[id].active) {
_local2.filters = [filter_active, filter_active, filter_active];
} else {
_local2.filters = [filter_active, filter_active];
}
_local2.filters.push(filter_over);
}
function outItemBt(id) {
var _local2 = items[id].btMC;
if (items[id].active) {
_local2.filters = [filter_active, filter_active, filter_active];
} else {
_local2.filters = [];
}
}
function randomOutfit() {
var _local2 = [];
for (var _local3 in items) {
_local2.push(items[_local3].id);
}
_local2 = mixArray(_local2);
for (var _local3 in _local2) {
if (random(2) == 1) {
showItem(_local2[_local3], Key.isDown(17));
} else {
hideItem(_local2[_local3]);
}
}
}
function mixArray(array) {
var _local3 = array.length;
var _local2 = array.slice();
var _local5;
var _local1;
var _local4;
_local1 = 0;
while (_local1 < _local3) {
_local4 = _local2[_local1];
_local5 = random(_local3);
_local2[_local1] = _local2[_local5];
_local2[_local5] = _local4;
_local1++;
}
return(_local2);
}
function clearOutfit() {
for (var _local2 in items) {
hideItem(items[_local2].id);
}
}
}
Symbol 83 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 84 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 85 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 86 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 87 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}