trace("[MochiAd] Couldn\'t load an ad, make sure your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
public static function showInterLevelAd(param1:Object) : void
{
var clip:Object = null;
var mc:MovieClip = null;
var chk:MovieClip = null;
var options:Object = param1;
var DEFAULTS:Object = {
"ad_timeout":2000,
"fadeout_time":250,
"regpt":"o",
"method":"showTimedAd",
"ad_started":function():void
{
if(this.clip is MovieClip)
{
this.clip.stop();
return;
}
throw new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.");
},
"ad_finished":function():void
{
if(this.clip is MovieClip)
{
this.clip.play();
return;
}
throw new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.");
trace("[MochiAd] Couldn\'t load an ad, make sure your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
public static function _parseOptions(param1:Object, param2:Object) : Object
{
var _loc4_:* = null;
var _loc5_:Array = null;
var _loc6_:Number = NaN;
var _loc7_:Array = null;
var _loc3_:Object = {};
for(_loc4_ in param2)
{
_loc3_[_loc4_] = param2[_loc4_];
}
if(param1)
{
for(_loc4_ in param1)
{
_loc3_[_loc4_] = param1[_loc4_];
}
}
if(_loc3_.clip == undefined)
{
throw new Error("MochiAd is missing the \'clip\' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite.");
throw new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.");
}
var depth:Number = options.depth;
delete options.depth;
var mc:MovieClip = createEmptyMovieClip(clip,"_mochiad",depth);
public static function showPreGameAd(param1:Object) : void
{
var clip:Object = null;
var mc:MovieClip = null;
var chk:MovieClip = null;
var complete:Boolean = false;
var unloaded:Boolean = false;
var sendHostProgress:Boolean = false;
var r:MovieClip = null;
var options:Object = param1;
var DEFAULTS:Object = {
"ad_timeout":3000,
"fadeout_time":250,
"regpt":"o",
"method":"showPreloaderAd",
"color":16747008,
"background":16777161,
"outline":13994812,
"no_progress_bar":false,
"ad_started":function():void
{
if(this.clip is MovieClip)
{
this.clip.stop();
return;
}
throw new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.");
},
"ad_finished":function():void
{
if(this.clip is MovieClip)
{
this.clip.play();
return;
}
throw new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.");
trace("[MochiAd] Couldn\'t load an ad, make sure your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software");