Frame 1
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__("611a1797", this, 10301, true);
stop();
var nowBtn = {hair:"", shirt:"", toy:"", head:"", shoes:"", tr:""};
_playbtn.onRelease = function () {
gotoAndStop ("main");
};
_morebtn.onRelease = function () {
getURL ("http://www.rainbowdressup.com", "_blank");
};
_addbtn.onRelease = function () {
getURL ("http://www.rainbowdressup.com/download-dressup-games.php", "_blank");
};
Frame 2
stop();
_donebtn.onRelease = function () {
gotoAndStop ("done");
};
_replaybtn.onRelease = function () {
gotoAndStop ("start");
};
Instance of Symbol 70 MovieClip in Frame 2
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}
Frame 3
stop();
_backbtn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 11 Button
on (release) {
getURL ("http://www.bonniegames.com", "_blank");
}
Symbol 174 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 175 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 176 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 177 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 178 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
function goFrame(mc, str) {
mc.onRelease = function () {
gotoAndStop(str);
};
}
function initNoneBtn(mc, babyMC, dressStr) {
mc.onRelease = function () {
var _local1 = new mx.transitions.Tween(babyMC, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 0.2, true);
_local1.onMotionFinished = function () {
babyMC.gotoAndStop("none");
dressStr = "none";
new mx.transitions.Tween(babyMC, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 0.2, true);
};
};
}
function initOneBtn(mc, str, babyMC, dressStr) {
mc.gotoAndStop(str);
var myDropFilter = (new flash.filters.DropShadowFilter(8));
myDropFilter.alpha = 0.8;
var myFilters1 = new Array();
myFilters1.push(myDropFilter);
mc.filters = myFilters1;
mc.onRollOver = function () {
this._alpha = 50;
};
mc.onRollOut = (mc.onReleaseOutside = function () {
this._alpha = 100;
});
mc.onRelease = function () {
var tween_handler = (new mx.transitions.Tween(babyMC, "_alpha", mx.transitions.easing.None.easeNone, 100, 0, 0.2, true));
tween_handler.onMotionFinished = function () {
if (_root[dressStr] == str) {
colorMC(mc);
babyMC.gotoAndStop("none");
_root[dressStr] = "none";
_root.nowBtn[dressStr] = "none";
} else {
babyMC.gotoAndStop(str);
_root[dressStr] = str;
var other = String(mc).substr(0, length(String(mc)) - 1);
var i = 1;
while (i < 8) {
if (eval (other + String(i)) != undefined) {
colorMC(eval (other + String(i)));
}
i++;
}
grayMC(mc);
_root.nowBtn[dressStr] = String(mc);
}
new mx.transitions.Tween(babyMC, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 0.2, true);
};
};
}
function grayMC(e) {
var _local3 = [0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0, 0, 0, 1, 0];
var _local4 = new flash.filters.ColorMatrixFilter(_local3);
var _local2 = new flash.filters.DropShadowFilter(8);
_local2.alpha = 0.8;
var _local1 = new Array();
_local1.push(_local4);
_local1.push(_local2);
e.filters = _local1;
}
function colorMC(e) {
var _local3 = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
var _local4 = new flash.filters.ColorMatrixFilter(_local3);
var _local2 = new flash.filters.DropShadowFilter(8);
_local2.alpha = 0.8;
var _local1 = new Array();
_local1.push(_local4);
_local1.push(_local2);
e.filters = _local1;
}
function setBtnGray(btn) {
for (var mc in this) {
if (mc.indexOf(btn)) {
grayMC(eval (btn));
}
}
}
stop();
goFrame(_hairbtn, "hair");
goFrame(_shirtbtn, "shirt");
goFrame(_trbtn, "tr");
goFrame(_headbtn, "head");
goFrame(_headbtn, "head");
goFrame(_toybtn, "toy");
goFrame(_shoesbtn, "shoes");
goFrame(_facebtn, "face");
gotoAndStop ("shirt");
Symbol 151 MovieClip Frame 2
function initheadBtn() {
initOneBtn(_headbtn1, "head1", _root._babymc._headmc, "head");
initOneBtn(_headbtn2, "head2", _root._babymc._headmc, "head");
initOneBtn(_headbtn3, "head3", _root._babymc._headmc, "head");
initOneBtn(_headbtn4, "head4", _root._babymc._headmc, "head");
initOneBtn(_headbtn5, "head5", _root._babymc._headmc, "head");
initOneBtn(_headbtn6, "head6", _root._babymc._headmc, "head");
}
initheadBtn();
setBtnGray(_root.nowBtn.head);
Symbol 151 MovieClip Frame 3
function inithairBtn() {
initOneBtn(_hairbtn1, "hair1", _root._babymc._hairmc, "hair");
initOneBtn(_hairbtn2, "hair2", _root._babymc._hairmc, "hair");
initOneBtn(_hairbtn3, "hair3", _root._babymc._hairmc, "hair");
initOneBtn(_hairbtn4, "hair4", _root._babymc._hairmc, "hair");
initOneBtn(_hairbtn5, "hair5", _root._babymc._hairmc, "hair");
initOneBtn(_hairbtn6, "hair6", _root._babymc._hairmc, "hair");
}
inithairBtn();
setBtnGray(_root.nowBtn.hair);
Symbol 151 MovieClip Frame 4
function initshirtBtn() {
initOneBtn(_shirtbtn1, "shirt1", _root._babymc._shirtmc, "shirt");
initOneBtn(_shirtbtn2, "shirt2", _root._babymc._shirtmc, "shirt");
initOneBtn(_shirtbtn3, "shirt3", _root._babymc._shirtmc, "shirt");
initOneBtn(_shirtbtn4, "shirt4", _root._babymc._shirtmc, "shirt");
initOneBtn(_shirtbtn5, "shirt5", _root._babymc._shirtmc, "shirt");
initOneBtn(_shirtbtn6, "shirt6", _root._babymc._shirtmc, "shirt");
}
initshirtBtn();
setBtnGray(_root.nowBtn.shirt);
Symbol 151 MovieClip Frame 5
function inittrBtn() {
initOneBtn(_trbtn1, "tr1", _root._babymc._trmc, "tr");
initOneBtn(_trbtn2, "tr2", _root._babymc._trmc, "tr");
initOneBtn(_trbtn3, "tr3", _root._babymc._trmc, "tr");
initOneBtn(_trbtn4, "tr4", _root._babymc._trmc, "tr");
initOneBtn(_trbtn5, "tr5", _root._babymc._trmc, "tr");
initOneBtn(_trbtn6, "tr6", _root._babymc._trmc, "tr");
}
inittrBtn();
setBtnGray(_root.nowBtn.tr);
Symbol 151 MovieClip Frame 6
function inittoyBtn() {
initOneBtn(_toybtn1, "toy1", _root._babymc._toymc, "toy");
initOneBtn(_toybtn2, "toy2", _root._babymc._toymc, "toy");
initOneBtn(_toybtn3, "toy3", _root._babymc._toymc, "toy");
initOneBtn(_toybtn4, "toy4", _root._babymc._toymc, "toy");
initOneBtn(_toybtn5, "toy5", _root._babymc._toymc, "toy");
initOneBtn(_toybtn6, "toy6", _root._babymc._toymc, "toy");
}
inittoyBtn();
setBtnGray(_root.nowBtn.toy);
Symbol 151 MovieClip Frame 7
function initshoesBtn() {
initOneBtn(_shoesbtn1, "shoes1", _root._babymc._shoesmc, "shoes");
initOneBtn(_shoesbtn2, "shoes2", _root._babymc._shoesmc, "shoes");
initOneBtn(_shoesbtn3, "shoes3", _root._babymc._shoesmc, "shoes");
initOneBtn(_shoesbtn4, "shoes4", _root._babymc._shoesmc, "shoes");
initOneBtn(_shoesbtn5, "shoes5", _root._babymc._shoesmc, "shoes");
initOneBtn(_shoesbtn6, "shoes6", _root._babymc._shoesmc, "shoes");
}
initshoesBtn();
setBtnGray(_root.nowBtn.shoes);
Symbol 151 MovieClip Frame 8
function initfaceBtn() {
initOneBtn(_facebtn1, "face1", _root._babymc._facemc, "face");
initOneBtn(_facebtn2, "face2", _root._babymc._facemc, "face");
initOneBtn(_facebtn3, "face3", _root._babymc._facemc, "face");
initOneBtn(_facebtn4, "face4", _root._babymc._facemc, "face");
initOneBtn(_facebtn5, "face5", _root._babymc._facemc, "face");
_facebtn3._lefteye.gotoAndStop(1);
_facebtn3._righteye.gotoAndStop(1);
_facebtn4._lefteye.gotoAndStop(1);
_facebtn4._righteye.gotoAndStop(1);
}
initfaceBtn();
setBtnGray(_root.nowBtn.face);
Symbol 173 Button
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}