var _loc27_ = {clip:_root,ad_timeout:3000,fadeout_time:250,regpt:"o",method:"showPreloaderAd",color:16747008,background:16777161,outline:13994812,ad_started:function()
{
this.clip.stop();
},ad_finished:function()
{
this.clip.play();
}};
options = MochiAd._parseOptions(options,_loc27_);
var clip = options.clip;
var _loc23_ = 11000;
var _loc26_ = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if(!MochiAd.load(options))
{
options.ad_finished();
return undefined;
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function()
{
options.ad_finished();
};
var _loc14_ = MochiAd._getRes(options);
var _loc4_ = _loc14_[0];
var _loc13_ = _loc14_[1];
mc._x = _loc4_ * 0.5;
mc._y = _loc13_ * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait",3);
chk._x = _loc4_ * -0.5;
chk._y = _loc13_ * -0.5;
var _loc7_ = chk.createEmptyMovieClip("_mochiad_bar",4);
_loc7_._x = 10;
_loc7_._y = _loc13_ - 20;
var _loc22_ = options.color;
delete options.color;
var _loc19_ = options.background;
delete options.background;
var _loc24_ = options.outline;
delete options.outline;
var _loc5_ = _loc7_.createEmptyMovieClip("_outline",1);
_loc5_.beginFill(_loc19_);
_loc5_.moveTo(0,0);
_loc5_.lineTo(_loc4_ - 20,0);
_loc5_.lineTo(_loc4_ - 20,10);
_loc5_.lineTo(0,10);
_loc5_.lineTo(0,0);
_loc5_.endFill();
var _loc3_ = _loc7_.createEmptyMovieClip("_inside",2);
_loc3_.beginFill(_loc22_);
_loc3_.moveTo(0,0);
_loc3_.lineTo(_loc4_ - 20,0);
_loc3_.lineTo(_loc4_ - 20,10);
_loc3_.lineTo(0,10);
_loc3_.lineTo(0,0);
_loc3_.endFill();
_loc3_._xscale = 0;
var _loc6_ = _loc7_.createEmptyMovieClip("_outline",3);