Frame 1
function checkLoad() {
var _local2 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
if ((_local2 == _local3) && (_local2 >= 1024)) {
clearInterval(checkLoadinterval);
_root.play();
}
}
loadpencil._visible = false;
stop();
checkLoadinterval = setInterval(checkLoad, 100);
Frame 3
function getDraw_Result() {
var _local5 = _root.d;
var _local9 = _root.t;
var _local10 = _root.u;
var _local6 = _root.bg;
var _local11 = _root.bgh;
var _local4 = _root.tv;
if (_root.bgh && (_root.bgh != "")) {
var _local7 = new Color(_root.holder.bgHex);
_local7.setRGB(_root.bgh);
_root.holder.bgHex._alpha = 100;
}
canvas_mc.gotoAndStop(_local6);
if (_local4 == "103") {
created_txt.text = "Created with RMD drawing tool (animated)";
if (s3baseURL) {
getRMDFile(((((s3baseURL + "") + Math.floor(_root.id / 1000)) + "/") + _root.id) + ".rmd");
} else {
getRMDFile(((("http://www.ratemydrawings.com/data" + _local5) + "") + _root.id) + ".rmd");
}
} else if (_local4 == "201") {
created_txt.text = "Created with RMD JavaDraw (non-animated)";
speed_mc._visible = false;
btn_pencil._visible = false;
replay_mc._visible = false;
var _local2 = new MovieClipLoader();
var _local8 = new Object();
_local2.addListener(_local8);
if (s3baseURL) {
_local2.loadClip(((((s3baseURL + "") + Math.floor(_root.id / 1000)) + "/") + _root.id) + ".jpg", holder.jpgHolder);
} else {
_local2.loadClip(((("http://www.ratemydrawings.com/data" + _local5) + "") + _root.id) + ".jpg", holder.jpgHolder);
}
_root._quality = "BEST";
_local2.onLoadInit = function (target_mc) {
loadanim._visible = false;
artistllink_btn._visible = true;
_root.thumb_mc._visible = false;
_root.jpgHolderBmp = new flash.display.BitmapData(target_mc._width, target_mc._height, true);
_root.jpgHolderBmp.draw(target_mc);
holder.jpgHolder.attachBitmap(_root.jpgHolderBmp, 1, "auto", true);
holder.fader.alphaTo(100, 0.5);
holder.fader.alphaTo(0, 4, "linear", 0.5);
};
_local2.onLoadProgress = function (mc, loadedBytes, totalBytes) {
var _local1 = (loadedBytes / totalBytes) * 100;
loadpencil.progress_mc._width = _local1;
if (_local1 < 100) {
loadpencil._visible = true;
} else {
loadpencil._visible = false;
}
};
_local2.onLoadError = function () {
errormsg._visible = true;
};
}
}
function getRMDFile(rmdurl) {
rmdLV.onLoad = function (success) {
if (success) {
_root.ddata = rmdLV.ddata;
getRMDFile_Result();
} else {
errormsg._visible = true;
}
};
rmdLV.onLoadError = function () {
errormsg._visible = true;
};
rmdLV.load(rmdurl);
}
function getRMDFile_Result() {
_root.lineArray = _root.ddata.split(" ");
tempArray = _root.lineArray[1].split(",");
if (tempArray[1].substr(0, 2) == "0x") {
testVersion = 8;
} else {
testVersion = tempArray[1].length;
}
_root.startAnimating(testVersion);
speed1_btn.enabled = (speed2_btn.enabled = (speed3_btn.enabled = (speed4_btn.enabled = true)));
speed_mc._alpha = 100;
}
function rotateHand(hX) {
var _local2 = back._width;
var _local1 = Math.floor((hX / back._width) * 100);
pencil._rotation = _local1;
}
function startAnimating(testVersion) {
loadanim._visible = false;
send_btn._visible = false;
print_btn._visible = false;
zoomin_btn._visible = false;
loadpencil._visible = true;
tools_mc._visible = true;
thumb_mc._visible = false;
startInterval();
}
function startInterval() {
clearInterval(_root.lineInterval);
var _local2 = 5;
if ((testVersion > 6) || (testVersion == undefined)) {
_root.lineInterval = setInterval(makeLines, _local2, lineArray);
} else {
_root.lineInterval = setInterval(makeLines2, _local2, lineArray);
}
}
function finishLines() {
clearInterval(_root.lineInterval);
replay_mc._visible = true;
artistllink_btn._visible = true;
btn_pencil._visible = true;
pencil._x = 700;
pencil._y = 500;
_quality = "BEST";
loadpencil._visible = false;
tools_mc._visible = false;
holder["lines" + lineGroup].cacheAsBitmap = true;
holder.cacheAsBitmap = true;
var _local2 = lineArray.length;
}
stop();
MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
if (timeSeconds < 0.001) {
timeSeconds = 2;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local9 = [prop];
var _local15 = [this[prop]];
var _local13 = [propDest];
} else {
var _local9 = [];
var _local15 = [];
var _local13 = [];
for (var _local41 in prop) {
_local15.push(this[prop[_local41]]);
}
for (var _local41 in prop) {
_local9.push(prop[_local41]);
}
for (var _local41 in propDest) {
_local13.push(propDest[_local41]);
}
}
var _local16 = false;
if (_root.__tweenController__ == undefined) {
var _local43 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local43.$_tweenPropList = new Array();
_local43.$_tTime = getTimer();
_local43.onEnterFrame = function () {
var _local6 = (this.$_tTime = getTimer());
var _local5 = 0;
while (_local5 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local5];
if ((_local3._timeStart + (_local3._delay * 1000)) <= _local6) {
if (_local3._propStart == undefined) {
if (_local3._prop.substr(0, 10) == "__special_") {
if (_local3._prop == "__special_mc_ra__") {
_local3._propStart = new Color(_local3._targ).getTransform().ra;
} else if (_local3._prop == "__special_mc_rb__") {
_local3._propStart = new Color(_local3._targ).getTransform().rb;
} else if (_local3._prop == "__special_mc_ga__") {
_local3._propStart = new Color(_local3._targ).getTransform().ga;
} else if (_local3._prop == "__special_mc_gb__") {
_local3._propStart = new Color(_local3._targ).getTransform().gb;
} else if (_local3._prop == "__special_mc_ba__") {
_local3._propStart = new Color(_local3._targ).getTransform().ba;
} else if (_local3._prop == "__special_mc_bb__") {
_local3._propStart = new Color(_local3._targ).getTransform().bb;
} else if (_local3._prop == "__special_mc_aa__") {
_local3._propStart = new Color(_local3._targ).getTransform().aa;
} else if (_local3._prop == "__special_mc_ab__") {
_local3._propStart = new Color(_local3._targ).getTransform().ab;
} else if (_local3._prop == "__special_text_r__") {
_local3._propStart = _local3._targ.textColor >> 16;
} else if (_local3._prop == "__special_text_g__") {
_local3._propStart = (_local3._targ.textColor & 65280) >> 8;
} else if (_local3._prop == "__special_text_b__") {
_local3._propStart = _local3._targ.textColor & 255;
} else if (_local3._prop == "__special_sound_volume__") {
_local3._propStart = _local3._targ.getVolume();
} else if (_local3._prop == "__special_sound_pan__") {
_local3._propStart = _local3._targ.getPan();
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
}
var _local7 = _local3._timeDest + (_local3._delay * 1000);
if (_local7 <= _local6) {
var _local4 = _local3._propDest;
} else {
var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local6 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
}
_local3._targ[_local3._prop] = _local4;
if (_local3._prop == "__special_mc_ra__") {
new Color(_local3._targ).setTransform({ra:_local4});
}
if (_local3._prop == "__special_mc_rb__") {
new Color(_local3._targ).setTransform({rb:_local4});
}
if (_local3._prop == "__special_mc_ga__") {
new Color(_local3._targ).setTransform({ga:_local4});
}
if (_local3._prop == "__special_mc_gb__") {
new Color(_local3._targ).setTransform({gb:_local4});
}
if (_local3._prop == "__special_mc_ba__") {
new Color(_local3._targ).setTransform({ba:_local4});
}
if (_local3._prop == "__special_mc_bb__") {
new Color(_local3._targ).setTransform({bb:_local4});
}
if (_local3._prop == "__special_mc_aa__") {
new Color(_local3._targ).setTransform({aa:_local4});
}
if (_local3._prop == "__special_mc_ab__") {
new Color(_local3._targ).setTransform({ab:_local4});
}
if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_b__")) {
_local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__;
}
if (_local3._prop == "__special_sound_volume__") {
_local3._targ.setVolume(_local4);
}
if (_local3._prop == "__special_sound_pan__") {
_local3._targ.setPan(_local4);
}
if (_local7 <= _local6) {
if (_local3._prop == "__special_mc_ra__") {
delete _local3._targ[_local3._prop];
}
if (_local3._prop == "__special_mc_rb__") {
delete _local3._targ[_local3._prop];
}
if (_local3._prop == "__special_mc_ga__") {
delete _local3._targ[_local3._prop];
}
if (_local3._prop == "__special_mc_gb__") {
delete _local3._targ[_local3._prop];
}
if (_local3._prop == "__special_mc_ba__") {
delete _local3._targ[_local3._prop];
}
if (_local3._prop == "__special_mc_bb__") {
delete _local3._targ[_local3._prop];
}
if (_local3._prop == "__special_mc_aa__") {
delete _local3._targ[_local3._prop];
}
if (_local3._prop == "__special_mc_ab__") {
delete _local3._targ[_local3._prop];
}
if (_local3._prop == "__special_text_b__") {
delete _local3._targ.__special_text_r__;
delete _local3._targ.__special_text_g__;
delete _local3._targ.__special_text_b__;
}
if (_local3._prop == "__special_sound_volume__") {
delete _local3._targ[_local3._prop];
}
this.$_tweenPropList.splice(_local5, 1);
_local5--;
_local3._targ.$_tweenCount--;
if (_local3._targ.$_tweenCount == 0) {
delete _local3._targ.$_tweenCount;
}
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local8 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local8, null);
_local8.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
if (this.$_tweenPropList.length == 0) {
this.removeMovieClip();
}
}
}
_local5++;
}
};
}
var _local7 = _root.__tweenController__.$_tweenPropList;
var _local10 = _root.__tweenController__.$_tTime;
for (var _local41 in _local15) {
if ((_local13[_local41] != undefined) && (!this.$_isTweenLocked)) {
if (this.$_tweenCount > 0) {
var _local5 = 0;
while (_local5 < _local7.length) {
if ((_local7[_local5]._targ == this) && (_local7[_local5]._prop == _local9[_local41])) {
if ((_local10 + (delay * 1000)) < _local7[_local5]._timeDest) {
_local7.splice(_local5, 1);
_local5--;
this.$_tweenCount--;
}
}
_local5++;
}
}
_local7.push({_prop:_local9[_local41], _targ:this, _propStart:undefined, _propDest:_local13[_local41], _timeStart:_local10, _timeDest:_local10 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _delay:delay, _callback:(_local16 ? undefined : (callback))});
this.$_tweenCount = ((this.$_tweenCount > 0) ? (this.$_tweenCount + 1) : 1);
_local16 = true;
}
}
ASSetPropFlags(this, "$_tweenCount", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sounf.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
}));
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () {
return(this.$_tweenCount);
}));
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
}));
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) {
var _local3 = _root.__tweenController__.$_tweenPropList;
switch (typeof(props)) {
case "string" :
props = [props];
case "object" :
for (var _local6 in props) {
for (var _local5 in _local3) {
if ((_local3[_local5]._targ == this) && (_local3[_local5]._prop == props[_local6])) {
_local3.splice(_local5, 1);
}
}
}
this.$_tweenCount = 0;
for (var _local5 in _local3) {
if (_local3[_local5]._targ == this) {
this.$_tweenCount++;
}
}
if (this.$_tweenCount == 0) {
delete this.$_tweenCount;
}
break;
default :
for (var _local5 in _local3) {
if (_local3[_local5]._targ == this) {
_local3.splice(_local5, 1);
}
}
delete this.$_tweenCount;
}
if (_local3.length == 0) {
_root.__tweenController__.removeMovieClip();
this.__tweenController_ADVhelper__.removeMovieClip();
}
}));
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = (TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local2 = propDest_color >> 16;
var _local4 = (propDest_color & 65280) >> 8;
var _local3 = propDest_color & 255;
if (typeof(this) == "movieclip") {
this.colorTransformTo(0, _local2, 0, _local4, 0, _local3, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
this.tween(["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local2, _local4, _local3], timeSeconds, animType, delay, callback, extra1, extra2);
}
});
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function (propDest_ra, propDest_rb, propDest_ga, propDest_gb, propDest_ba, propDest_bb, propDest_aa, propDest_ab, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween(["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [propDest_ra, propDest_rb, propDest_ga, propDest_gb, propDest_ba, propDest_bb, propDest_aa, propDest_ab], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local3 = _propStart;
var _local2 = _propDest - _propStart;
var _local4 = _timeDest - _timeStart;
var _local6 = _extra1;
var _local7 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local4) + _local3);
case "easeinquad" :
_local1 = _local1 / _local4;
return(((_local2 * _local1) * _local1) + _local3);
case "easeoutquad" :
_local1 = _local1 / _local4;
return((((-_local2) * _local1) * (_local1 - 2)) + _local3);
case "easeinoutquad" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local3);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local3);
case "easeincubic" :
_local1 = _local1 / _local4;
return((((_local2 * _local1) * _local1) * _local1) + _local3);
case "easeoutcubic" :
_local1 = (_local1 / _local4) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local3);
case "easeinoutcubic" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local3);
case "easeinquart" :
_local1 = _local1 / _local4;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local3);
case "easeoutquart" :
_local1 = (_local1 / _local4) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local3);
case "easeinoutquart" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local3);
case "easeinquint" :
_local1 = _local1 / _local4;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local3);
case "easeoutquint" :
_local1 = (_local1 / _local4) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local3);
case "easeinoutquint" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local3);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local4) * (Math.PI/2))) + _local2) + _local3);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local4) * (Math.PI/2))) + _local3);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local4) - 1)) + _local3);
case "easeinexpo" :
return(((_local1 == 0) ? (_local3) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local4) - 1))) + _local3)));
case "easeoutexpo" :
return(((_local1 == _local4) ? (_local3 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local4)) + 1)) + _local3)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local3);
}
if (_local1 == _local4) {
return(_local3 + _local2);
}
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local3);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local3);
case "easeincirc" :
_local1 = _local1 / _local4;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local3);
case "easeoutcirc" :
_local1 = (_local1 / _local4) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local3);
case "easeinoutcirc" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local3);
case "easeinelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / _local4;
if (_local1 == 1) {
return(_local3 + _local2);
}
if (!_local7) {
_local7 = _local4 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
_local1 = _local1 - 1;
return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local7))) + _local3);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / _local4;
if (_local1 == 1) {
return(_local3 + _local2);
}
if (!_local7) {
_local7 = _local4 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local3);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / (_local4 / 2);
if (_local1 == 2) {
return(_local3 + _local2);
}
if (!_local7) {
_local7 = _local4 * 0.45;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local7))) + _local3);
}
_local1 = _local1 - 1;
return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local3);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local4;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local3);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local4) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local3);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local3);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local3);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local4 - _local1, _local4, "easeOutBounce")) + _local3);
case "easeoutbounce" :
_local1 = _local1 / _local4;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local3);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local3);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local3);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local3);
case "easeinoutbounce" :
if (_local1 < (_local4 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local4, "easeInBounce") * 0.5) + _local3);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local4, _local4, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local3);
}
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
var v = new Vars();
var s3baseURL = "http://data.ratemydrawings.com/";
System.security.allowDomain("*");
System.security.loadPolicyFile(s3baseURL + "crossdomain.xml");
if (!tv) {
tv = 103;
}
artistllink_btn.onRelease = function () {
getURL (("http://www.ratemydrawings.com/user/" + u) + "/", "_blank");
};
rmd_btn.onRelease = function () {
getURL ("http://www.ratemydrawings.com/", "_blank");
};
rmd2_btn.onRelease = function () {
getURL ("http://www.ratemydrawings.com/", "_blank");
};
rmd3_btn.onRelease = function () {
getURL ("http://www.ratemydrawings.com/top-drawings/", "_blank");
};
rmd4_btn.onRelease = function () {
getURL ("http://www.ratemydrawings.com/chat/", "_blank");
};
var testVersion;
var animPaused = false;
var lineArray = [];
var i = 0;
var hiSpeedRedraw = false;
var linesPerHighspeed = 16;
var rmdLV = new LoadVars();
errormsg._visible = false;
errormsg2._visible = false;
artistllink_btn._visible = false;
loadanim._visible = false;
print_btn._visible = false;
send_btn._visible = false;
zoomin_btn._visible = false;
tools_mc._visible = false;
btn_pencil._visible = false;
replay_mc._visible = false;
speed1_btn.enabled = (speed2_btn.enabled = (speed3_btn.enabled = (speed4_btn.enabled = false)));
speed_mc._alpha = 40;
var airBlur = 10;
var filter = (new flash.filters.BlurFilter(airBlur, airBlur, 2));
var filterArray = new Array();
filterArray.push(filter);
var filter2 = (new flash.filters.BlurFilter(airBlur * 2, airBlur * 2, 2));
var filterArray2 = new Array();
filterArray2.push(filter2);
var airMCArray = new Array();
if (((!id) || (!u)) || (!t)) {
errormsg._visible = true;
errormsg.onRelease = function () {
getURL ("http://www.ratemydrawings.com", "_blank");
};
} else {
title_txt.htmlText = ((("<b>" + t) + " by ") + u) + "</b>";
}
tint_mc._width = title_txt.textWidth + 10;
makeLines = function (lineArray) {
var _local13 = lineArray.length;
if (_local13 < 3000) {
var _local14 = 300;
} else {
var _local14 = Math.ceil(_local13 / 15);
}
var _local15 = Math.floor((i / _local13) * 100);
loadpencil.progress_mc.gotoAndStop(_local15);
if (i <= _local13) {
lineGroup = Math.ceil(i / _local14);
if (lineGroup < 1) {
lineGroup = 1;
}
if (((i % _local14) == 1) && (lineGroup != 0)) {
holder["lines" + (lineGroup - 1)].cacheAsBitmap = true;
}
var _local8 = 1;
while (_local8 <= linesPerHighspeed) {
if ((_local8 == 1) || (((_local8 <= linesPerHighspeed) && (hiSpeedRedraw)) && (lineArray[i]))) {
holder["lines" + lineGroup].createEmptyMovieClip("line" + i, i + 1);
var _local11 = lineArray[i];
var _local10 = _local11.split("|");
var _local7 = _local10.length;
var _local2 = 0;
while (_local2 < (_local7 - 1)) {
pointArray = _local10[_local2].split(",");
if (_local2 == 1) {
holder["lines" + lineGroup]["line" + i].moveTo(pointArray[0], pointArray[1]);
} else if (_local2 == 0) {
var _local6 = pointArray[0];
var _local5 = pointArray[1];
var _local4 = pointArray[2];
var _local3 = pointArray[3];
var _local9 = _local4;
if ((_local7 == 4) && (_local4 == "l")) {
_local9 = "sl";
}
tools_mc.gotoAndStop(_local9);
if (_local3 == undefined) {
_local3 = 100;
}
if (_local4 == "f") {
holder["lines" + lineGroup]["line" + i].beginFill(_local5, _local3);
} else if (_local4 == "a") {
holder["lines" + lineGroup]["line" + i].filters = _root.filterArray;
holder["lines" + lineGroup]["line" + i].lineStyle(_local6, _local5, _local3);
} else {
holder["lines" + lineGroup]["line" + i].lineStyle(_local6, _local5, _local3);
}
} else if (_local2 == (_local7 - 2)) {
holder["lines" + lineGroup]["line" + i].lineTo(pointArray[0], pointArray[1]);
holder["lines" + lineGroup]["line" + i].endFill();
} else {
holder["lines" + lineGroup]["line" + i].lineTo(pointArray[0], pointArray[1]);
}
pencil._x = pointArray[0];
pencil._y = pointArray[1];
if ((i % 5) == 0) {
rotateHand(Number(pointArray[0]));
}
_local2++;
}
i++;
}
_local8++;
}
} else {
finishLines();
}
};
makeLines2 = function (lineArray) {
var _local7 = lineArray.length;
var _local6 = 200;
var _local8 = Math.floor((i / _local7) * 100);
loadpencil.progress_mc.gotoAndStop(_local8);
if (i < _local7) {
lineGroup = Math.ceil(i / _local6);
if (lineGroup < 1) {
lineGroup = 1;
}
if (((i % _local6) == 1) && (lineGroup > 1)) {
holder["lines" + (lineGroup - 1)].cacheAsBitmap = true;
}
holder["lines" + lineGroup].createEmptyMovieClip("line" + i, i + 1);
var _local9 = lineArray[i];
var _local4 = _local9.split("|");
var _local5 = _local4.length;
var _local2 = 0;
while (_local2 <= _local5) {
pointArray = _local4[_local2].split(",");
var _local3 = pointArray[4];
if (_local3 == undefined) {
_local3 = 1;
}
var _local1 = pointArray[5];
if (_local1 == undefined) {
_local1 = "0x000000";
}
holder["lines" + lineGroup]["line" + i].lineStyle(_local3, _local1);
holder["lines" + lineGroup]["line" + i].moveTo(pointArray[0], pointArray[1]);
holder["lines" + lineGroup]["line" + i].lineTo(pointArray[2], pointArray[3]);
pencil._x = pointArray[2];
pencil._y = pointArray[3];
if (_local2 == 0) {
rotateHand(Number(pointArray[2]));
}
_local2++;
}
i++;
} else {
finishLines();
}
};
setSpeed = function (newSpeed) {
rmdSpeed.data.speed = newSpeed;
rmdSpeed.flush();
_root.drawSpeed = newSpeed;
if (!animPaused) {
clearInterval(_root.lineInterval);
startAnimating(testVersion, true);
}
};
setPencil = function (vis) {
rmdSpeed.data.pencil = vis;
rmdSpeed.flush();
};
speed1_btn.onRelease = function () {
speed_mc.gotoAndStop(1);
setSpeed(50);
};
speed2_btn.onRelease = function () {
speed_mc.gotoAndStop(2);
setSpeed(20);
};
speed3_btn.onRelease = function () {
speed_mc.gotoAndStop(3);
setSpeed(1);
};
speed4_btn.onRelease = function () {
speed_mc.gotoAndStop(4);
setSpeed(0);
};
btn_pencil.onRelease = function () {
if (pencil._visible) {
pencil._visible = false;
this.gotoAndStop(2);
setPencil(false);
} else {
pencil._visible = true;
this.gotoAndStop(1);
setPencil(true);
}
};
replay_mc.onRelease = function () {
this._parent.i = 0;
this._parent.holder.lines1.unloadMovie();
this._parent.holder.lines2.unloadMovie();
this._parent.holder.lines3.unloadMovie();
this._parent.holder.lines4.unloadMovie();
this._parent.holder.lines5.unloadMovie();
this._parent.holder.lines6.unloadMovie();
this._parent.holder.lines7.unloadMovie();
this._parent.holder.lines8.unloadMovie();
this._parent.holder.lines9.unloadMovie();
this._parent.holder.lines10.unloadMovie();
this._parent.holder.lines11.unloadMovie();
this._parent.holder.lines12.unloadMovie();
this._parent.holder.lines13.unloadMovie();
this._parent.holder.lines14.unloadMovie();
this._parent.holder.lines15.unloadMovie();
this._parent.holder.lines16.unloadMovie();
this._parent.holder.lines17.unloadMovie();
this._parent.holder.lines18.unloadMovie();
this._parent.holder.lines19.unloadMovie();
this._parent.holder.lines20.unloadMovie();
_root.startAnimating(testVersion);
this._parent.loadpencil.playpause_btn.gotoAndStop("pa");
this._parent.animPaused = false;
artistllink_btn._visible = false;
};
send_btn.onRelease = function () {
getURL (((("mailto:?subject=Check out this awesome drawing&body=I found this on RateMyDrawings.com and thought you might be interested. Click this link to view the animated drawing http://www.ratemydrawings.com/drawings/" + _root.drawcat) + "/") + id) + ".html", "_blank");
};
tint_btn.onRelease = function () {
getURL ("http://www.ratemydrawings.com", "_blank");
};
zoomin_btn.onRelease = function () {
getURL ("javascript:zoomInDraw()");
};
zoomout1_btn.onRelease = (zoomout2_btn.onRelease = function () {
getURL ("javascript:zoomOutDraw()");
});
loadpencil.playpause_btn.onRelease = function () {
if (!this._parent._parent.animPaused) {
clearInterval(_root.lineInterval);
this.gotoAndStop("pl");
this._parent._parent.animPaused = true;
} else {
_root.startInterval();
this.gotoAndStop("pa");
this._parent._parent.animPaused = false;
}
};
loadThumb = function () {
if (s3baseURL) {
loadMovie (((((s3baseURL + "") + Math.floor(_root.id / 1000)) + "/thumb_") + _root.id) + ".jpg", _root.thumb_mc);
} else {
loadMovie (((("http://www.ratemydrawings.com/images/thumbs" + _root.d) + "") + _root.id) + ".jpg", _root.thumb_mc);
}
_root.thumb_mc._xscale = (_root.thumb_mc._yscale = 400);
_root.thumb_mc._alpha = 70;
};
if ((System.capabilities.playerType == "External") || (System.capabilities.playerType == "StandAlone")) {
error2 = true;
}
if (error2) {
errormsg2._visible = true;
errormsg2.onRelease = function () {
getURL ("http://www.ratemydrawings.com", "_blank");
};
} else {
loadThumb();
}
start_btn.onRelease = function () {
loadanim._visible = true;
this._visible = false;
if (error2) {
errormsg2._visible = true;
errormsg2.onRelease = function () {
getURL ("http://www.ratemydrawings.com", "_blank");
};
} else {
getDraw_Result();
}
};
Frame 4
_root.prevFrame();
Symbol 19 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 20480 MovieClip [__Packages.Vars] Frame 0
class Vars
{
function Vars () {
_root.id = 485692 /* 0x07693C */;
_root.u = "_critic_";
_root.d = "/2009/05/10/4856/";
_root.bgh = "0x4ab1dd";
_root.bg = "1";
_root.tv = 103;
_root.t = "Happy RMD Anniv. to rathian619";
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 1
stop();
_root.hand = "right";
Symbol 92 MovieClip Frame 1
stop();