Frame 1
function onResize() {
Resized();
}
function Resized() {
bg._y = Stage.height - 25;
}
_lockroot = true;
Stage.align = "TL";
Stage.scaleMode = "noScale";
Stage.addListener(this);
Resized();
txtLog._visible = false;
function onEnterFrame() {
bg.loadProgress.tick(_root.getBytesLoaded() / _root.getBytesTotal());
if ((_root._framesloaded >= 2) && (_root.getBytesLoaded() > 0)) {
delete onEnterFrame;
gotoAndStop (2);
}
}
stop();
Frame 2
stop();
createEmptyMovieClip("game", 0);
var lv = new LoadVars();
lv.onLoad = function (success) {
var _local3 = this.w1;
var _local5 = this.w2;
if (success) {
if (this.result) {
_root.bg.loadProgress.txtStatus.text = "error code:" + this.result;
} else {
d = _local3.substr(7);
var _local4 = d.split("/");
d = _local4[0];
System.security.allowInsecureDomain(d);
_mcLoader.loadClip(((((_local3 + "&wcc=") + escape(_local5)) + "&gid=10&rid=") + _root.rid) + (_root.debug ? ("&debug=" + _root.debug) : ""), _root.game);
}
} else {
_root.bg.loadProgress.txtStatus.text = "Unable to load game. Please notify www.casualcollective.com.";
txtLog._visible = true;
}
};
var sv = new LoadVars();
sv.url = _root._url;
sv.gid = 10;
sv.ref = "cc";
sv.v = 5;
sv.sendAndLoad("http://widget.casualcollective.com/load?r=" + random(1000000), lv, "POST");
var _mcLoader = new MovieClipLoader();
var _listener = new Object();
_mcLoader.addListener(_listener);
_listener.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
};
_listener.onLoadInit = function (target) {
_root.bg._visible = false;
};
_listener.onLoadError = function (target, errorCode, httpStatus) {
_root.bg.loadProgress.txtStatus.text = "Error:" + errorCode;
};
function APIInit() {
_root.kongregateServices.connect();
}
function APISaveScore(score) {
_root.kongregateScores.submit(score);
_root.HPScoreService.postScore(score, "");
}
function APISaveStat(n, v) {
_root.kongregateStats.submit(n, int(v));
}
function GetSharedObject(n) {
return(SharedObject.getLocal(n));
}
Symbol 7 MovieClip Frame 1
function tick(n) {
mcBar._width = n * 200;
txtStatus.text = ("Loading: " + int(n * 100)) + "%";
}
function Go() {
_visible = false;
}
var _speed = 0;