Frame 1
function itemHandler1(obj, item) {
getURL ("http://www.123peppy.com", "_blank");
}
var myMenu_cm = new ContextMenu();
myMenu_cm.hideBuiltInItems();
myMenu_cm.customItems.push(new ContextMenuItem("powered by www.123peppy.com", itemHandler1));
_root.menu = myMenu_cm;
this.onEnterFrame = function () {
my_mc._x = _xmouse;
my_mc._y = _ymouse;
};
Instance of Symbol 14 MovieClip in Frame 1
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
if (percent == undefined) {
percent = 0;
}
percent = percent - ((percent - ((loading / total) * 100)) * 0.25);
per = int(percent);
percentage.text = per + "%";
loadBar._width = per;
if (percent >= 100) {
_parent.gotoAndStop(2);
}
}
Instance of Symbol 82 MovieClip "my_mc" in Frame 1
onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Frame 2
function itemHandler1(obj, item) {
getURL ("http://www.123peppy.com", "_blank");
}
stop();
var myMenu_cm = new ContextMenu();
myMenu_cm.hideBuiltInItems();
myMenu_cm.customItems.push(new ContextMenuItem("powered by www.123peppy.com", itemHandler1));
_root.menu = myMenu_cm;
playbut.onPress = function () {
nextFrame();
};
w = Stage.width;
h = Stage.height + 100;
max_snowsize = 10;
snowflakes = 40;
init = function () {
i = 0;
while (i < snowflakes) {
t = attachMovie("snow", "snow" + i, i);
t._alpha = 50 + (Math.random() * 50);
t._x = (-(w * 0.5)) + (Math.random() * (1.5 * w));
t._y = (-(h * 0.5)) + (Math.random() * (1.5 * h));
t._xscale = (t._yscale = 50 + (Math.random() * (max_snowsize * 10)));
t.k = (Math.random() * 1.5) + 1;
t.wind = (Math.random() * 3.5) - 1.5;
t.onEnterFrame = mover;
i++;
}
};
mover = function () {
this._y = this._y + this.k;
this._x = this._x + this.wind;
if (this._y > (h + 10)) {
this._y = -20;
}
if (this._x > (w + 20)) {
this._x = (-(w * 0.5)) + (Math.random() * (1.5 * w));
this._y = -20;
} else if (this._x < -20) {
this._x = (-(w * 0.5)) + (Math.random() * (1.5 * w));
this._y = -20;
}
};
init();
Instance of Symbol 103 MovieClip "sun1" in Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation + 2;
}
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("f7c70f1f", this, 10301, true);
function itemHandler1(obj, item) {
getURL ("http://www.123peppy.com", "_blank");
}
function mover() {
this._x = (Math.cos(this.angle * 1) * 130) + centerX;
this._y = (Math.sin(this.angle * 1) * 130) + centerY;
this.angle = this.angle + this._parent._parent.speed;
}
function mover1() {
this._x = (Math.cos(this.angle * 1) * radiusX) + -90;
this._y = (Math.sin(this.angle * 1) * radiusY) + -90;
this.angle = this.angle + this._parent._parent.speed;
}
stop();
var myMenu_cm = new ContextMenu();
myMenu_cm.hideBuiltInItems();
myMenu_cm.customItems.push(new ContextMenuItem("powered by www.123peppy.com", itemHandler1));
_root.menu = myMenu_cm;
sun1.sun.onPress = function () {
var _local1 = new mx.transitions.Tween(dress_btn, "_x", mx.transitions.easing.Back.easeOut, -75, 58.4, 1, true);
_local1 = new mx.transitions.Tween(top_btn, "_x", mx.transitions.easing.Back.easeOut, -75, 58.4, 1, true);
_local1 = new mx.transitions.Tween(bottom_btn, "_x", mx.transitions.easing.Back.easeOut, -75, 58.4, 1, true);
_local1 = new mx.transitions.Tween(shoe_btn, "_x", mx.transitions.easing.Back.easeOut, -75, 58.4, 1, true);
_local1 = new mx.transitions.Tween(cap_btn, "_x", mx.transitions.easing.Back.easeOut, -75, 58.4, 1, true);
_local1 = new mx.transitions.Tween(ear_btn, "_x", mx.transitions.easing.Back.easeOut, 875, 743.2, 1, true);
_local1 = new mx.transitions.Tween(chain_btn, "_x", mx.transitions.easing.Back.easeOut, 875, 743.2, 1, true);
_local1 = new mx.transitions.Tween(reset_btn, "_x", mx.transitions.easing.Back.easeOut, 875, 743.2, 1, true);
_local1 = new mx.transitions.Tween(next_btn, "_x", mx.transitions.easing.Back.easeOut, 875, 743.2, 1, true);
_local1 = new mx.transitions.Tween(hair_btn, "_x", mx.transitions.easing.Back.easeOut, 875, 743.2, 1, true);
display._visible = false;
};
var db = true;
i = 1;
while (i < 10) {
eval ("dresspallete.p" + i).stop();
eval ("toppallete.p" + i).stop();
eval ("bottompallete.p" + i).stop();
eval ("shoepallete.p" + i).stop();
eval ("earpallete.p" + i).stop();
eval ("chainpallete.p" + i).stop();
eval ("cappallete.p" + i).stop();
i++;
}
dress_btn.onPress = function () {
if (db) {
i = 1;
while (i < 10) {
eval ("dresspallete.p" + i).gotoAndStop(1);
eval ("toppallete.p" + i).gotoAndStop(1);
eval ("bottompallete.p" + i).gotoAndStop(1);
eval ("shoepallete.p" + i).gotoAndStop(1);
eval ("earpallete.p" + i).gotoAndStop(1);
eval ("chainpallete.p" + i).gotoAndStop(1);
eval ("cappallete.p" + i).gotoAndStop(1);
i++;
}
var t1 = (new mx.transitions.Tween(dresspallete, "_x", mx.transitions.easing.Back.easeOut, -218.8, 242.3, 1, true));
var t2 = (new mx.transitions.Tween(toppallete, "_x", mx.transitions.easing.Back.easeOut, -500, -218.8, 1, true));
var t4 = (new mx.transitions.Tween(hairpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t1 = (new mx.transitions.Tween(bottompallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t2 = (new mx.transitions.Tween(cappallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t2 = (new mx.transitions.Tween(shoepallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t4 = (new mx.transitions.Tween(earpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
tb = true;
db = false;
bb = true;
hc = true;
cb = true;
sb = true;
eb = true;
t1.onMotionFinished = function () {
i = 1;
while (i <= 7) {
eval ("dresspallete.p" + i).play();
eval ("dresspallete.p" + i).onPress = function () {
dc = this._name.substr(1);
doll.dresses.gotoAndStop(dc);
doll.tops.gotoAndStop(1);
doll.bottoms.gotoAndStop(1);
};
i++;
}
};
} else {
var t1 = (new mx.transitions.Tween(dresspallete, "_x", mx.transitions.easing.Back.easeOut, 242.3, -218.8, 1, true));
db = true;
i = 1;
while (i <= 7) {
eval ("dresspallete.p" + i).gotoAndStop(1);
i++;
}
}
};
var tb = true;
top_btn.onPress = function () {
if (tb) {
i = 1;
while (i < 10) {
eval ("dresspallete.p" + i).gotoAndStop(1);
eval ("toppallete.p" + i).gotoAndStop(1);
eval ("bottompallete.p" + i).gotoAndStop(1);
eval ("shoepallete.p" + i).gotoAndStop(1);
eval ("earpallete.p" + i).gotoAndStop(1);
eval ("chainpallete.p" + i).gotoAndStop(1);
eval ("cappallete.p" + i).gotoAndStop(1);
i++;
}
var t2 = (new mx.transitions.Tween(toppallete, "_x", mx.transitions.easing.Back.easeOut, -218.8, 242.3, 1, true));
var t1 = (new mx.transitions.Tween(dresspallete, "_x", mx.transitions.easing.Back.easeOut, -500, -218.8, 1, true));
var t1 = (new mx.transitions.Tween(bottompallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t2 = (new mx.transitions.Tween(shoepallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t4 = (new mx.transitions.Tween(hairpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t2 = (new mx.transitions.Tween(cappallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t4 = (new mx.transitions.Tween(earpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t4 = (new mx.transitions.Tween(chainpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
chb = true;
db = true;
tb = false;
bb = true;
cb = true;
hc = true;
bb = true;
eb = true;
t2.onMotionFinished = function () {
i = 1;
while (i <= 7) {
eval ("toppallete.p" + i).play();
eval ("toppallete.p" + i).onPress = function () {
tc = this._name.substr(1);
tc = parseInt(tc);
tc = tc + 1;
doll.tops.gotoAndStop(tc);
doll.dresses.gotoAndStop(8);
};
i++;
}
};
} else {
var t2 = (new mx.transitions.Tween(toppallete, "_x", mx.transitions.easing.Back.easeOut, 242.3, -218.8, 1, true));
tb = true;
i = 1;
while (i <= 7) {
eval ("toppallete.p" + i).gotoAndStop(1);
i++;
}
}
};
var bb = true;
bottom_btn.onPress = function () {
if (bb) {
i = 1;
while (i < 10) {
eval ("dresspallete.p" + i).gotoAndStop(1);
eval ("toppallete.p" + i).gotoAndStop(1);
eval ("bottompallete.p" + i).gotoAndStop(1);
eval ("shoepallete.p" + i).gotoAndStop(1);
eval ("earpallete.p" + i).gotoAndStop(1);
eval ("chainpallete.p" + i).gotoAndStop(1);
eval ("cappallete.p" + i).gotoAndStop(1);
i++;
}
var t3 = (new mx.transitions.Tween(bottompallete, "_x", mx.transitions.easing.Back.easeOut, -218.8, 242.3, 1, true));
var t1 = (new mx.transitions.Tween(dresspallete, "_x", mx.transitions.easing.Back.easeOut, -500, -218.8, 1, true));
var t4 = (new mx.transitions.Tween(hairpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t2 = (new mx.transitions.Tween(toppallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t2 = (new mx.transitions.Tween(shoepallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t2 = (new mx.transitions.Tween(cappallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t4 = (new mx.transitions.Tween(earpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t4 = (new mx.transitions.Tween(chainpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
chb = true;
db = true;
tb = true;
bb = false;
cb = true;
hc = true;
sb = true;
eb = true;
t2.onMotionFinished = function () {
i = 1;
while (i < 9) {
eval ("bottompallete.p" + i).play();
eval ("bottompallete.p" + i).onPress = function () {
bc = this._name.substr(1);
bc = parseInt(bc);
bc = bc + 1;
doll.bottoms.gotoAndStop(bc);
doll.dresses.gotoAndStop(8);
};
i++;
}
};
} else {
var t2 = (new mx.transitions.Tween(bottompallete, "_x", mx.transitions.easing.Back.easeOut, 242.3, -218.8, 1, true));
bb = true;
i = 1;
while (i < 9) {
eval ("bottompallete.p" + i).gotoAndStop(1);
i++;
}
}
};
var sb = true;
shoe_btn.onPress = function () {
if (sb) {
i = 1;
while (i < 10) {
eval ("dresspallete.p" + i).gotoAndStop(1);
eval ("toppallete.p" + i).gotoAndStop(1);
eval ("bottompallete.p" + i).gotoAndStop(1);
eval ("shoepallete.p" + i).gotoAndStop(1);
eval ("earpallete.p" + i).gotoAndStop(1);
eval ("chainpallete.p" + i).gotoAndStop(1);
eval ("cappallete.p" + i).gotoAndStop(1);
i++;
}
var t4 = (new mx.transitions.Tween(shoepallete, "_x", mx.transitions.easing.Back.easeOut, -218.8, 242.3, 1, true));
var t3 = (new mx.transitions.Tween(bottompallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t1 = (new mx.transitions.Tween(dresspallete, "_x", mx.transitions.easing.Back.easeOut, -500, -218.8, 1, true));
var t4 = (new mx.transitions.Tween(hairpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t2 = (new mx.transitions.Tween(toppallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t4 = (new mx.transitions.Tween(cappallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t4 = (new mx.transitions.Tween(earpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t4 = (new mx.transitions.Tween(chainpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
chb = true;
db = true;
tb = true;
bb = true;
sb = false;
cb = true;
hc = true;
eb = true;
t2.onMotionFinished = function () {
i = 1;
while (i < 6) {
eval ("shoepallete.p" + i).play();
eval ("shoepallete.p" + i).onPress = function () {
sc = this._name.substr(1);
doll.shoes.gotoAndStop(sc);
};
i++;
}
};
} else {
var t2 = (new mx.transitions.Tween(shoepallete, "_x", mx.transitions.easing.Back.easeOut, 242.3, -218.8, 1, true));
sb = true;
i = 1;
while (i < 6) {
eval ("shoepallete.p" + i).gotoAndStop(1);
i++;
}
}
};
var cb = true;
cap_btn.onPress = function () {
if (cb) {
i = 1;
while (i < 10) {
eval ("dresspallete.p" + i).gotoAndStop(1);
eval ("toppallete.p" + i).gotoAndStop(1);
eval ("bottompallete.p" + i).gotoAndStop(1);
eval ("shoepallete.p" + i).gotoAndStop(1);
eval ("earpallete.p" + i).gotoAndStop(1);
eval ("chainpallete.p" + i).gotoAndStop(1);
eval ("cappallete.p" + i).gotoAndStop(1);
i++;
}
var t4 = (new mx.transitions.Tween(cappallete, "_x", mx.transitions.easing.Back.easeOut, -218.8, 242.3, 1, true));
var t4 = (new mx.transitions.Tween(shoepallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t4 = (new mx.transitions.Tween(chainpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t4 = (new mx.transitions.Tween(hairpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t3 = (new mx.transitions.Tween(bottompallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t1 = (new mx.transitions.Tween(dresspallete, "_x", mx.transitions.easing.Back.easeOut, -500, -218.8, 1, true));
var t2 = (new mx.transitions.Tween(toppallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t4 = (new mx.transitions.Tween(earpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
db = true;
chb = true;
tb = true;
bb = true;
sb = true;
cb = false;
eb = true;
hc = true;
t4.onMotionFinished = function () {
i = 1;
while (i < 6) {
eval ("cappallete.p" + i).play();
eval ("cappallete.p" + i).onPress = function () {
cc = this._name.substr(1);
doll.caps.gotoAndStop(cc);
};
i++;
}
};
} else {
var t2 = (new mx.transitions.Tween(cappallete, "_x", mx.transitions.easing.Back.easeOut, 242.3, -218.8, 1, true));
cb = true;
i = 1;
while (i < 6) {
eval ("cappallete.p" + i).gotoAndStop(1);
i++;
}
}
};
var eb = true;
ear_btn.onPress = function () {
if (eb) {
i = 1;
while (i < 10) {
eval ("dresspallete.p" + i).gotoAndStop(1);
eval ("toppallete.p" + i).gotoAndStop(1);
eval ("bottompallete.p" + i).gotoAndStop(1);
eval ("shoepallete.p" + i).gotoAndStop(1);
eval ("earpallete.p" + i).gotoAndStop(1);
eval ("chainpallete.p" + i).gotoAndStop(1);
eval ("cappallete.p" + i).gotoAndStop(1);
i++;
}
var t4 = (new mx.transitions.Tween(cappallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t4 = (new mx.transitions.Tween(earpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 583, 1, true));
var t4 = (new mx.transitions.Tween(hairpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t4 = (new mx.transitions.Tween(chainpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t4 = (new mx.transitions.Tween(shoepallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t3 = (new mx.transitions.Tween(bottompallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t1 = (new mx.transitions.Tween(dresspallete, "_x", mx.transitions.easing.Back.easeOut, -500, -218.8, 1, true));
var t2 = (new mx.transitions.Tween(toppallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
db = true;
tb = true;
bb = true;
sb = true;
cb = true;
chb = true;
hc = true;
eb = false;
t4.onMotionFinished = function () {
i = 1;
while (i < 6) {
eval ("earpallete.p" + i).play();
eval ("earpallete.p" + i).onPress = function () {
ec = this._name.substr(1);
doll.ears.gotoAndStop(ec);
};
i++;
}
};
} else {
var t2 = (new mx.transitions.Tween(earpallete, "_x", mx.transitions.easing.Back.easeOut, 583, 1200, 1, true));
eb = true;
i = 1;
while (i < 6) {
eval ("earpallete.p" + i).gotoAndStop(1);
i++;
}
}
};
var chb = true;
chain_btn.onPress = function () {
if (chb) {
i = 1;
while (i < 10) {
eval ("dresspallete.p" + i).gotoAndStop(1);
eval ("toppallete.p" + i).gotoAndStop(1);
eval ("bottompallete.p" + i).gotoAndStop(1);
eval ("shoepallete.p" + i).gotoAndStop(1);
eval ("earpallete.p" + i).gotoAndStop(1);
eval ("chainpallete.p" + i).gotoAndStop(1);
eval ("cappallete.p" + i).gotoAndStop(1);
i++;
}
var t4 = (new mx.transitions.Tween(chainpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 583, 1, true));
var t4 = (new mx.transitions.Tween(cappallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t4 = (new mx.transitions.Tween(earpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t4 = (new mx.transitions.Tween(hairpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t4 = (new mx.transitions.Tween(shoepallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t3 = (new mx.transitions.Tween(bottompallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t1 = (new mx.transitions.Tween(dresspallete, "_x", mx.transitions.easing.Back.easeOut, -500, -218.8, 1, true));
var t2 = (new mx.transitions.Tween(toppallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
db = true;
tb = true;
bb = true;
sb = true;
cb = true;
eb = true;
hc = true;
chb = false;
t4.onMotionFinished = function () {
i = 1;
while (i < 6) {
eval ("chainpallete.p" + i).play();
eval ("chainpallete.p" + i).onPress = function () {
chc = this._name.substr(1);
doll.chains.gotoAndStop(chc);
};
i++;
}
};
} else {
var t2 = (new mx.transitions.Tween(chainpallete, "_x", mx.transitions.easing.Back.easeOut, 583, 1200, 1, true));
chb = true;
i = 1;
while (i < 6) {
eval ("chainpallete.p" + i).gotoAndStop(1);
i++;
}
}
};
var hc = true;
hair_btn.onPress = function () {
if (hc) {
i = 1;
while (i < 10) {
eval ("dresspallete.p" + i).gotoAndStop(1);
eval ("toppallete.p" + i).gotoAndStop(1);
eval ("bottompallete.p" + i).gotoAndStop(1);
eval ("shoepallete.p" + i).gotoAndStop(1);
eval ("earpallete.p" + i).gotoAndStop(1);
eval ("chainpallete.p" + i).gotoAndStop(1);
eval ("cappallete.p" + i).gotoAndStop(1);
eval ("hairpallete.p" + i).gotoAndStop(1);
i++;
}
var t4 = (new mx.transitions.Tween(hairpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 583, 1, true));
var t4 = (new mx.transitions.Tween(cappallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t4 = (new mx.transitions.Tween(earpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t4 = (new mx.transitions.Tween(chainpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true));
var t4 = (new mx.transitions.Tween(shoepallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t3 = (new mx.transitions.Tween(bottompallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
var t1 = (new mx.transitions.Tween(dresspallete, "_x", mx.transitions.easing.Back.easeOut, -500, -218.8, 1, true));
var t2 = (new mx.transitions.Tween(toppallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true));
db = true;
tb = true;
bb = true;
sb = true;
cb = true;
eb = true;
chb = true;
hc = false;
t4.onMotionFinished = function () {
i = 1;
while (i < 6) {
eval ("hairpallete.p" + i).play();
eval ("hairpallete.p" + i).onPress = function () {
hc = this._name.substr(1);
doll.hairs.gotoAndStop(hc);
};
i++;
}
};
} else {
var t2 = (new mx.transitions.Tween(hairpallete, "_x", mx.transitions.easing.Back.easeOut, 583, 1200, 1, true));
hc = true;
i = 1;
while (i < 6) {
eval ("hairpallete.p" + i).gotoAndStop(1);
i++;
}
}
};
reset_btn.onPress = function () {
var _local1 = new mx.transitions.Tween(hairpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true);
_local1 = new mx.transitions.Tween(cappallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true);
_local1 = new mx.transitions.Tween(earpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true);
_local1 = new mx.transitions.Tween(chainpallete, "_x", mx.transitions.easing.Back.easeOut, 939.4, 1200, 1, true);
_local1 = new mx.transitions.Tween(shoepallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true);
var _local2 = new mx.transitions.Tween(bottompallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true);
var _local4 = new mx.transitions.Tween(dresspallete, "_x", mx.transitions.easing.Back.easeOut, -500, -218.8, 1, true);
var _local3 = new mx.transitions.Tween(toppallete, "_x", mx.transitions.easing.Back.easeOut, -500, -600, 1, true);
doll.dresses.gotoAndStop(1);
doll.tops.gotoAndStop(1);
doll.bottoms.gotoAndStop(1);
doll.chains.gotoAndStop(1);
doll.hairs.gotoAndStop(1);
doll.shoes.gotoAndStop(1);
doll.ears.gotoAndStop(1);
doll.shoes.gotoAndStop(1);
};
happy._visible = false;
balls._visible = false;
next_btn.onPress = function () {
happy._visible = true;
balls._visible = true;
chain_btn._visible = false;
next_btn._visible = false;
dress_btn._visible = false;
top_btn._visible = false;
bottom_btn._visible = false;
shoe_btn._visible = false;
cap_btn._visible = false;
ear_btn._visible = false;
reset_btn._visible = false;
hair_btn._visible = false;
doll._x = 546.6;
doll._y = 307.5;
playagain._visible = true;
dresspallete._visible = false;
toppallete._visible = false;
bottompallete._visible = false;
shoepallete._visible = false;
cappallete._visible = false;
earpallete._visible = false;
chainpallete._visible = false;
hairpallete._visible = false;
};
var numOfBalls = 5;
var radiusX = 90;
var radiusY = 90;
var centerX = 0;
var centerY = 130;
var speed = 0.02;
var i = 0;
var i1 = 0;
var j = 1;
var j1 = 1;
while (i < 10) {
t = eval ("balls.c" + j);
t.angle = i * 0.698131700797732;
j++;
i++;
t.onEnterFrame = mover;
}
while (i1 < 6) {
t1 = eval ("happy.h" + j1);
t1.angle = i1 * 1.25663706143592;
j1++;
i1++;
t1.onEnterFrame = mover1;
}
playagain._visible = false;
playagain.onPress = function () {
happy._visible = false;
balls._visible = false;
chain_btn._visible = true;
next_btn._visible = true;
dress_btn._visible = true;
top_btn._visible = true;
bottom_btn._visible = true;
shoe_btn._visible = true;
cap_btn._visible = true;
ear_btn._visible = true;
reset_btn._visible = true;
hair_btn._visible = true;
doll._x = 546.6;
doll._y = 307.5;
dresspallete._visible = true;
toppallete._visible = true;
bottompallete._visible = true;
shoepallete._visible = true;
cappallete._visible = true;
earpallete._visible = true;
chainpallete._visible = true;
hairpallete._visible = true;
playagain._visible = false;
};
logo_mc.onPress = function () {
getURL ("http://www.123peppy.com/", "_blank");
};
doll.onPress = function () {
startDrag (this);
};
doll.onRelease = function () {
stopDrag();
};
function decvol() {
((this._name.substr(0, 3) == "dec") ? (((snd <= 0) ? ((snd = 0)) : ((snd = snd - 5)))) : (((snd >= 100) ? ((snd = 100)) : ((snd = snd + 5)))));
bgsnd.setVolume(snd);
}
function sndstp() {
ply_btn.enabled = true;
bgsnd.stop();
}
var bgsnd = new Sound();
var snd = 50;
bgsnd.attachSound("bg");
bgsnd.setVolume(90);
ply_btn.enabled = false;
dec_vol.onPress = decvol;
inc_vol.onPress = decvol;
bgsnd.start(0, 100);
ply_btn.onPress = function () {
sndstp();
this.enabled = false;
bgsnd.start(0, 100);
bgsnd.onSoundComplete = function () {
bgsnd.start(0, 100);
};
};
stp_btn.onPress = sndstp;
w = Stage.width;
h = Stage.height + 100;
max_snowsize = 10;
snowflakes = 40;
init = function () {
i = 0;
while (i < snowflakes) {
t = attachMovie("snow", "snow" + i, i);
t._alpha = 50 + (Math.random() * 50);
t._x = (-(w * 0.5)) + (Math.random() * (1.5 * w));
t._y = (-(h * 0.5)) + (Math.random() * (1.5 * h));
t._xscale = (t._yscale = 50 + (Math.random() * (max_snowsize * 10)));
t.k = (Math.random() * 1.5) + 1;
t.wind = (Math.random() * 3.5) - 1.5;
t.onEnterFrame = mover;
i++;
}
};
mover = function () {
this._y = this._y + this.k;
this._x = this._x + this.wind;
if (this._y > (h + 10)) {
this._y = -20;
}
if (this._x > (w + 20)) {
this._x = (-(w * 0.5)) + (Math.random() * (1.5 * w));
this._y = -20;
} else if (this._x < -20) {
this._x = (-(w * 0.5)) + (Math.random() * (1.5 * w));
this._y = -20;
}
};
init();
Instance of Symbol 506 MovieClip "logo_mc" in Frame 3
on (press) {
getURL ("http://www.123peppy.com", "_blank");
}
Symbol 21 MovieClip Frame 1
var btsLoaded = 0;
var btsTotal;
onEnterFrame = function () {
btsLoaded = _root.getBytesLoaded();
btsTotal = _root.getBytesTotal();
_root.loader.bar._x = _root.loader.percentage.text * 1.5;
percentage.text = Math.round((btsLoaded / btsTotal) * 100);
kbts.text = (((btsLoaded / 1000).toString() + "kb / ") + (btsTotal / 1000).toString()) + "kb";
if (percentage.text >= 100) {
_root.gotoAndPlay(2);
_root.loader._alpha = _root.loader._alpha - 8;
_root.loader._xscale = _root.loader._xscale - 2;
_root.loader._yscale = _root.loader._yscale - 2;
_root.loader.label1._visible = false;
_root.loader.percentage._visible = false;
_root.loader.kbts._visible = false;
if (_root.loader._alpha < 0) {
_root.gotoAndPlay(2);
onEnterFrame = null;
}
} else {
_root.gotoAndStop(1);
}
};
Symbol 43 MovieClip Frame 1
function init() {
makeFloats(200);
}
function makeFloats(num) {
var _local1 = num;
i = 20;
while (i < _local1) {
attachMovie("particle", "p" + i, i);
i++;
}
}
init();
Symbol 73 MovieClip Frame 47
stop();
Symbol 82 MovieClip Frame 57
_root.stop();
Symbol 507 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 508 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 509 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 510 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 6
gotoAndStop (1);
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 9
gotoAndStop (1);
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 10
gotoAndStop (1);
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 9
gotoAndStop (1);
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 6
gotoAndStop (1);
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 5
gotoAndStop (1);
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 6
gotoAndStop (1);
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 6
gotoAndStop (1);
Symbol 343 MovieClip Frame 11
stop();
Symbol 345 MovieClip Frame 11
stop();
Symbol 347 MovieClip Frame 11
stop();
Symbol 349 MovieClip Frame 11
stop();
Symbol 353 MovieClip Frame 11
stop();
Symbol 355 MovieClip Frame 11
stop();
Symbol 357 MovieClip Frame 11
stop();
Symbol 359 MovieClip Frame 11
stop();
Symbol 361 MovieClip Frame 11
stop();
Symbol 364 MovieClip Frame 11
stop();
Symbol 366 MovieClip Frame 11
stop();
Symbol 368 MovieClip Frame 11
stop();
Symbol 370 MovieClip Frame 11
stop();
Symbol 372 MovieClip Frame 11
stop();
Symbol 376 MovieClip Frame 11
stop();
Symbol 379 MovieClip Frame 11
stop();
Symbol 382 MovieClip Frame 11
stop();
Symbol 385 MovieClip Frame 11
stop();
Symbol 388 MovieClip Frame 11
stop();
Symbol 392 MovieClip Frame 11
stop();
Symbol 395 MovieClip Frame 11
stop();
Symbol 398 MovieClip Frame 11
stop();
Symbol 401 MovieClip Frame 11
stop();
Symbol 404 MovieClip Frame 11
stop();
Symbol 408 MovieClip Frame 11
stop();
Symbol 410 MovieClip Frame 11
stop();
Symbol 412 MovieClip Frame 11
stop();
Symbol 414 MovieClip Frame 11
stop();
Symbol 416 MovieClip Frame 11
stop();
Symbol 418 MovieClip Frame 11
stop();
Symbol 420 MovieClip Frame 11
stop();
Symbol 425 MovieClip Frame 11
stop();
Symbol 427 MovieClip Frame 11
stop();
Symbol 429 MovieClip Frame 11
stop();
Symbol 431 MovieClip Frame 11
stop();
Symbol 433 MovieClip Frame 11
stop();
Symbol 435 MovieClip Frame 11
stop();
Symbol 437 MovieClip Frame 11
stop();
Symbol 441 MovieClip Frame 11
stop();
Symbol 443 MovieClip Frame 11
stop();
Symbol 445 MovieClip Frame 11
stop();
Symbol 447 MovieClip Frame 11
stop();
Symbol 449 MovieClip Frame 11
stop();
Symbol 451 MovieClip Frame 11
stop();
Symbol 453 MovieClip Frame 11
stop();
Symbol 455 MovieClip Frame 11
stop();