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__("56742257", this, 10301, true);
stop();
var nowBtn = {head:"", dress:"", nose:"", tail:"", eyes:"", other:""};
_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");
};
Frame 3
stop();
_backbtn.onRelease = function () {
gotoAndStop ("main");
};
_morebtn.onRelease = function () {
getURL ("http://www.rainbowdressup.com", "_blank");
};
Instance of Symbol 126 MovieClip in Frame 3
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}
Symbol 12 Button
on (release) {
getURL ("http://www.titter.com", "_blank");
}
Symbol 129 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 130 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 131 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 132 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 133 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 21 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 1
function initNoneBtn(mc, dinosaurMC, dressStr) {
mc.onRelease = function () {
var _local1 = new mx.transitions.Tween(dinosaurMC, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 0.2, true);
_local1.onMotionFinished = function () {
dinosaurMC.gotoAndStop("none");
dressStr = "none";
new mx.transitions.Tween(dinosaurMC, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 0.2, true);
};
};
}
function initOneBtn(mc, str, dinosaurMC, 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 = this._alpha * 0.5;
};
mc.onRollOut = (mc.onReleaseOutside = function () {
this._alpha = this._alpha / 0.5;
});
mc.onRelease = function () {
if (dressStr == "tail") {
if (_root[dressStr] == str) {
colorMC(mc);
dinosaurMC.gotoAndStop("none");
_root[dressStr] = "none";
_root.nowBtn[dressStr] = "none";
} else {
dinosaurMC.gotoAndStop(str);
_root[dressStr] = str;
var other = String(mc).substr(0, length(String(mc)) - 1);
var i = 1;
while (i < 10) {
if (eval (other + String(i)) != undefined) {
colorMC(eval (other + String(i)));
}
i++;
}
grayMC(mc);
_root.nowBtn[dressStr] = String(mc);
}
} else {
var tween_handler = (new mx.transitions.Tween(dinosaurMC, "_alpha", mx.transitions.easing.None.easeNone, 100, 0, 0.2, true));
tween_handler.onMotionFinished = function () {
if (_root[dressStr] == str) {
colorMC(mc);
dinosaurMC.gotoAndStop("none");
_root[dressStr] = "none";
_root.nowBtn[dressStr] = "none";
} else {
dinosaurMC.gotoAndStop(str);
_root[dressStr] = str;
var other = String(mc).substr(0, length(String(mc)) - 1);
var i = 1;
while (i < 10) {
if (eval (other + String(i)) != undefined) {
colorMC(eval (other + String(i)));
}
i++;
}
grayMC(mc);
_root.nowBtn[dressStr] = String(mc);
}
new mx.transitions.Tween(dinosaurMC, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 0.6, 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();
Symbol 75 MovieClip Frame 2
function initdressBtn() {
initOneBtn(_dressbtn1, "dress1", _root._bobymc._dressmc, "dress");
initOneBtn(_dressbtn2, "dress2", _root._bobymc._dressmc, "dress");
initOneBtn(_dressbtn3, "dress3", _root._bobymc._dressmc, "dress");
initOneBtn(_dressbtn4, "dress4", _root._bobymc._dressmc, "dress");
initOneBtn(_dressbtn5, "dress5", _root._bobymc._dressmc, "dress");
initOneBtn(_dressbtn6, "dress6", _root._bobymc._dressmc, "dress");
}
initdressBtn();
setBtnGray(_root.nowBtn.dress);
Symbol 75 MovieClip Frame 3
function initeyesBtn() {
initOneBtn(_eyesbtn1, "eyes1", _root._bobymc._headmc._eyesmc._eyes, "eyes");
initOneBtn(_eyesbtn2, "eyes2", _root._bobymc._headmc._eyesmc._eyes, "eyes");
initOneBtn(_eyesbtn3, "eyes3", _root._bobymc._headmc._eyesmc._eyes, "eyes");
initOneBtn(_eyesbtn4, "eyes4", _root._bobymc._headmc._eyesmc._eyes, "eyes");
initOneBtn(_eyesbtn5, "eyes5", _root._bobymc._headmc._eyesmc._eyes, "eyes");
initOneBtn(_eyesbtn6, "eyes6", _root._bobymc._headmc._eyesmc._eyes, "eyes");
}
initeyesBtn();
setBtnGray(_root.nowBtn.eyes);
Symbol 75 MovieClip Frame 4
function initheadBtn() {
initOneBtn(_headbtn1, "head1", _root._bobymc._headmc._head, "head");
initOneBtn(_headbtn2, "head2", _root._bobymc._headmc._head, "head");
initOneBtn(_headbtn3, "head3", _root._bobymc._headmc._head, "head");
initOneBtn(_headbtn4, "head4", _root._bobymc._headmc._head, "head");
initOneBtn(_headbtn5, "head5", _root._bobymc._headmc._head, "head");
initOneBtn(_headbtn6, "head6", _root._bobymc._headmc._head, "head");
}
initheadBtn();
setBtnGray(_root.nowBtn.head);
Symbol 75 MovieClip Frame 5
function initnoseBtn() {
initOneBtn(_nosebtn1, "nose1", _root._bobymc._headmc._nosemc, "nose");
initOneBtn(_nosebtn2, "nose2", _root._bobymc._headmc._nosemc, "nose");
initOneBtn(_nosebtn3, "nose3", _root._bobymc._headmc._nosemc, "nose");
initOneBtn(_nosebtn4, "nose4", _root._bobymc._headmc._nosemc, "nose");
initOneBtn(_nosebtn5, "nose5", _root._bobymc._headmc._nosemc, "nose");
initOneBtn(_nosebtn6, "nose6", _root._bobymc._headmc._nosemc, "nose");
}
initnoseBtn();
setBtnGray(_root.nowBtn.nose);
Symbol 75 MovieClip Frame 6
function inittailBtn() {
initOneBtn(_tailbtn1, "tail1", _root._bobymc._tailmc._tail, "tail");
initOneBtn(_tailbtn2, "tail2", _root._bobymc._tailmc._tail, "tail");
initOneBtn(_tailbtn3, "tail3", _root._bobymc._tailmc._tail, "tail");
initOneBtn(_tailbtn4, "tail4", _root._bobymc._tailmc._tail, "tail");
initOneBtn(_tailbtn5, "tail5", _root._bobymc._tailmc._tail, "tail");
initOneBtn(_tailbtn6, "tail6", _root._bobymc._tailmc._tail, "tail");
}
inittailBtn();
setBtnGray(_root.nowBtn.tail);
Symbol 75 MovieClip Frame 7
function initotherBtn() {
initOneBtn(_otherbtn1, "other1", _root._bobymc._othermc, "other");
initOneBtn(_otherbtn2, "other2", _root._bobymc._othermc, "other");
initOneBtn(_otherbtn3, "other3", _root._bobymc._othermc, "other");
initOneBtn(_otherbtn4, "other4", _root._bobymc._othermc, "other");
initOneBtn(_otherbtn5, "other5", _root._bobymc._othermc, "other");
initOneBtn(_otherbtn6, "other6", _root._bobymc._othermc, "other");
}
initotherBtn();
setBtnGray(_root.nowBtn.other);
Symbol 79 MovieClip Frame 30
stop();
Symbol 82 MovieClip Frame 1
function goFrame(mc, str, tmc) {
mc.onRollOver = function () {
mc.gotoAndStop(2);
mc.Text.gotoAndStop(str);
};
mc.onRollOut = function () {
mc.gotoAndStop(1);
mc.Text.gotoAndStop("none");
};
mc.onRelease = function () {
mc.gotoAndStop(3);
tmc.gotoAndStop(str);
new mx.transitions.Tween(tmc, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 1, true);
};
}
stop();
goFrame(_dressbtn, "dress", _item);
goFrame(_eyesbtn, "eyes", _item);
goFrame(_headbtn, "head", _item);
goFrame(_tailbtn, "tail", _item);
goFrame(_nosebtn, "nose", _item);
goFrame(_otherbtn, "other", _item);