I'm facing a sponsor request to integrate MochiBot (www.mochibot.com) tracking/analytics service to the FLA file of my game. Of course in MMF2 we can't edit the FLA file, so I'm wondering is there any way to have this done maybe through an extension (I'm able to pay a small sum for the development work)?

I know MochiAnalytics is usable through the Mochi extensions. However, some advertisers have centralized all their flash content tracking and analytics to the older MochiBot service.

Below is what I would need to achieve to monetize the game.

Anybody able to help?

Code:
ActionScript 3


Required MochiBot.as class file: MochiBot.zip
<http://www.mochibot.com/as3/MochiBot.zip>  // MochiBot.com -- Version 8
// Tested with Flash 9-10, ActionScript 3
MochiBot.track(this, "(id here)");


ActionScript 1 or 2


// MochiBot.com -- Version 8
// Tested with with Flash 5-8, ActionScript 1 and 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x,g,s,fv,sb,u,res,mb,mbc,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__("(id here)", this, 10301, true);

 

 

Add the MochiBot code into your FLA with the following steps:
1. Create a new layer and give it a layer name of "MochiBot". Make sure that
this new layer is in your main scene and not the preloader.
2. Select the first frame of the new MochiBot layer and paste the MochiBot
code into the Actions editor (click here for a screenshot
<https://www.mochibot.com/images/ss_install.jpg> ).