Frame 1
function loadGameServices(url) {
var _local3 = createEmptyMovieClip("gs_loader_mc", getNextHighestDepth());
var _local2 = new MovieClipLoader();
_local2.addListener(this);
_local2.loadClip(url, _local3);
}
function onLoadInit(mc) {
_root.gs_loaded = true;
gs_gameServices = new GameServices(gameServicesCallback);
gs_scoreSubmit = new GSScoreSubmit(gameServicesCallback);
gs_sendToFriend = new GSSendToFriend(stfCallback);
GameServices.initGameTracking(null, false);
trace((("Game Services module " + mtvnGSPath) + " loaded, GS ver=") + GameServices.getVersionString());
trace("BaseDir=" + GameServices.getBaseDir());
trace(showGSStartupInfo());
gotoAndPlay(g_startFrame);
}
function onLoadError(mc) {
trace("GS Load Failed");
gotoAndStop(g_loadFailed);
}
function stfCallback(action) {
trace("STF callback hit with " + action);
if (action == "nodata") {
stop();
} else if (action == "load") {
gotoAndStop ("ReceivedData");
} else {
gotoAndStop ("Result");
}
}
function gameServicesCallback(gsResponseInfo, whichCommand) {
var succeeded = (!gsResponseInfo.isError());
if (!succeeded) {
trace((("Error=" + gsResponseInfo.getErrorMessage()) + "; ") + gsResponseInfo.getExtendedInfo());
startupVars.text = (gsResponseInfo.getErrorMessage() + "; ") + gsResponseInfo.getExtendedInfo();
showData.text = (("Command " + whichCommand) + " failed: ") + gsResponseInfo.getErrorMessage();
} else {
switch (whichCommand) {
case "StartSession" :
_root.session_id = gsResponseInfo.message;
break;
case "SetUserScoreGetScores" :
case "SetUserScoreGetScoresUnauth" :
case "GetScoreRanks" :
case "GetScoreRanksUnauth" :
case "GetUserScoreRanks" :
case "GetUserRatingRanks" :
case "GetRatingRanks" :
var leaderboard = gsResponseInfo.results;
leaderBoardText = "";
if (leaderboard.length > 0) {
i = 0;
while (i < leaderboard.length) {
leaderBoardText = leaderBoardText + (((((_root.g_PagingScores * 10) + i) + 1) + ". ") + leaderboard[i].user_name);
leaderBoardText = leaderBoardText + ("\t\t" + leaderboard[i].score);
leaderBoardText = leaderBoardText + newline;
i++;
}
} else {
leaderBoardText = "There are no entries";
}
showData.text = leaderBoardText;
break;
case "SetUserScoreGetRank" :
case "SetUserScoreGetRankUnauth" :
case "GetSiteUserRank" :
var myRank = gsResponseInfo.outparams.user_rank;
showData.text = "Your rank is " + myRank;
break;
case "GetUserScore" :
var myScore = gsResponseInfo.results[0].score;
var myGameData = gsResponseInfo.results[0].game_data;
showData.text = (("Your score is " + myScore) + "\nThe game performance was ") + myGameData;
break;
case "GetRegistrationStatus" :
case "UserLogin" :
var userStatus = gsResponseInfo.results[0];
showData.text = (((((((("User " + userStatus.user_name) + " (id=") + userStatus.user_id) + ") created on ") + userStatus.date_created) + "\nLogged in ") + userStatus.login_count) + " times, last login on ") + userStatus.last_login;
GameServices.loadAvatar(1, _root, "myAvatar", _root.getNextHighestDepth());
break;
case "GetUserGameGroupExperiencePoints" :
case "GetUserGameExperiencePoints" :
case "GetUserSiteExperiencePoints" :
var points = gsResponseInfo.results[0].experience_points;
showData.text = ("You currently have " + points) + " experience points.";
break;
case "AcceptUserBuddy" :
case "AddUserBuddy" :
break;
case "GetUserBuddies" :
var buddies = gsResponseInfo.results;
buddiesText = "";
if (buddies.length > 0) {
i = 0;
while (i < buddies.length) {
buddiesText = (((((buddiesText + (i + 1)) + ". ") + buddies[i].user_name) + "\t\t") + buddies[i].buddy_user_id) + newline;
GameServices.loadAvatarForUser(buddies[i].buddy_user_id, 2, _root, "buddiesAvatar" + buddies[i].buddy_user_id, _root.getNextHighestDepth());
eval ("buddiesAvatar" + buddies[i].buddy_user_id)._y = (i * 20) + 50;
i++;
}
} else {
buddiesText = "There are no entries";
}
showData.text = buddiesText;
}
if (whichCommand.indexOf("SetUserScore") != -1) {
resultCode = gsResponseInfo.message;
if (resultCode == "UNCHANGED") {
startupVars.text = "You already have a better score.";
} else {
startupVars.text = "Score submitted!";
}
}
}
}
function showGSStartupInfo() {
gs_siteId = GameServices.getSiteId();
gs_sessionId = GameServices.getSessionId();
gs_playbackId = gs_sendToFriend.getPlaybackId();
return((((((((("Loaded from " + mtvnGSPath) + "; version ") + GameServices.getVersionString()) + "\nSiteId=") + gs_siteId) + "; SessionId=") + gs_sessionId) + "; PlaybackId=") + gs_playbackId);
}
var g_isDev = (_root.GSPath == null);
var mtvnGSPath = "gs1.swf";
var g_startFrame = "Menu";
var g_loadFailed = "GSLoadFailure";
var gs_gameServices = null;
var gs_scoreSubmit = null;
var gs_sendToFriend = null;
var gs_loaded = false;
if (g_isDev) {
_root.game_id = "6";
_root.site_id = "10";
_root.SubmitURL = "http://gs.mtv-q.mtvi.com/community.php";
_root.gs_key = "47aebc87c59723276c140e31e791a9e5";
} else {
mtvnGSPath = _root.GSPath + mtvnGSPath;
}
if (!_root.gs_loaded) {
trace("Loading GS from " + mtvnGSPath);
loadGameServices(mtvnGSPath);
}
_global.tUserName = "AAA";
GameServices.sendHit(GSGameTracking.LOAD, "Game Tracking Load Event");
stop();
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
Stage.showMenu = false;
Stage.scaleMode = "noScale";
fr.swapDepths(200010);
_global.r = this;
onEnterFrame = function () {
persen = Math.floor((this.getBytesLoaded() / this.getBytesTotal()) * 100);
};
Frame 2
var loadAmount = _totalframes;
onEnterFrame = function () {
if (_framesloaded == loadAmount) {
delete onEnterFrame;
r.udamusik = 0;
r.music = 1;
gotoAndPlay ("menu2");
} else {
persen = Math.floor((this.getBytesLoaded() / this.getBytesTotal()) * 100);
}
};
stop();
Frame 11
MovieClip.prototype.initballoon = function (tipe) {
var t = this;
if (tipe == 2) {
t.skadiv = 1.027;
t.iang = 3.5;
t.radius = 20;
t.radiusdiv = 1.01;
t.incradiv = 1.004;
} else {
t.skadiv = 1.02;
t.iang = 1.5;
t.radius = 20;
t.radiusdiv = 1.005;
t.incradiv = 1.002;
}
t.ska = 100;
t.x0 = t._x;
t.y0 = t._y;
t.a = 0;
t.udaswapdep = 0;
t.attacktime = 10;
t.clr = new Color(t);
t.bright = 50;
t.clr.setBrightness(t.bright);
t.onEnterFrame = function () {
var _local3 = (t.a * Math.PI) / 180;
t._x = t.x0 + (t.radius * Math.cos(_local3));
t._y = t.y0 + (t.radius * Math.sin(_local3));
t.a = t.a + t.iang;
t.ska = t.ska * t.skadiv;
if (t.ska > 7000) {
if (!t.udaswapdep) {
t.udaswapdep = 1;
t.swapDepths(t.dep + 5000);
r.ob.push(t);
} else {
t.attacktime--;
if (!t.attacktime) {
r.ob.removeValue(t);
t.blurx = 2;
}
if (t.attacktime < 0) {
t.radiusdiv = t.radiusdiv * t.incradiv;
var _local4 = new flash.filters.BlurFilter(t.blurx, t.blurx, 1);
t.blurx = t.blurx + 0.6;
t.filters = [_local4];
}
}
t.radius = t.radius * t.radiusdiv;
if ((((t._x < (-275 - t._width)) or (t._x > (275 + t._width))) or (t._y < (-275 - t._width))) or (t._y > (275 + t._width))) {
delete t.onEnterFrame;
r.bal.removeValue(t);
t.removeMovieClip();
}
} else {
t.radius = t.radius * t.radiusdiv;
}
t._xscale = (t._yscale = t.ska);
if (t.bright > 0) {
t.bright = t.bright - 0.2;
t.clr.setBrightness(t.bright);
}
var _local1 = 0;
while (_local1 < r.bal.length) {
if (r.bal[_local1] != t) {
if ((r.bal[_local1].ska > t.ska) and (r.bal[_local1].dep < t.dep)) {
t.swapDepths(r.bal[_local1]);
var _local2 = r.bal[_local1].dep;
r.bal[_local1].dep = t.dep;
t.dep = _local2;
}
}
_local1++;
}
};
};
MovieClip.prototype.girlfollow = function () {
var _local2 = this;
r.pressed = _local2;
_local2.follow = 1;
_local2._rotation = (_local2.ro = (_local2.ronow = 0));
r.free.removeValue(_local2);
};
MovieClip.prototype.initchute = function () {
var t = this;
t.attachMovie("parachute", "parachute", 100);
t.swapDepths(r.pd);
r.pd--;
t.ska = 100;
t.xs = 2 + (random(40) / 10);
t.ys = 2 + (random(40) / 10);
if (random(100) > 50) {
t.xs = -t.xs;
}
if (random(100) > 50) {
t.ys = -t.ys;
}
t.d = 15;
t.onEnterFrame = function () {
t._x = t._x + t.xs;
t._y = t._y + t.ys;
t.xs = t.xs * 1.4;
t.ys = t.ys * 1.4;
t.ska = t.ska * 1.1;
t._xscale = (t._yscale = t.ska);
t.d--;
if (t.d < -4) {
t.removeMovieClip();
}
};
};
MovieClip.prototype.jiggle = function (beginska) {
var t = this;
if (!beginska) {
beginska = 200;
}
t._xscale = (t._yscale = beginska);
t.ska = 100;
t.dx = 0;
t.dv = 0.5;
t.dvstep = 0.5;
t.onEnterFrame = function () {
t.dx = (t.dx * t.dvstep) + ((t.ska - t._xscale) * t.dv);
t._xscale = t._xscale + t.dx;
t._yscale = t._xscale;
};
};
MovieClip.prototype.initpopup = function (delay, distance, golabel) {
var t = this;
if (!delay) {
delay = 30;
}
if (!distance) {
distance = 20;
}
t.yy = t._y - distance;
t._alpha = 0;
var d = delay;
t.onEnterFrame = function () {
t._alpha = Math.min(100, t._alpha + 20);
t._y = Math.floor(t._y + ((t.yy - t._y) / 3));
d--;
if (!d) {
t.onEnterFrame = function () {
t._alpha = t._alpha - 20;
t._y = t._y - 3;
if (t._alpha <= 0) {
delete t.onEnterFrame;
if (!golabel) {
t.removeMovieClip();
} else {
t.gotoAndPlay(golabel);
}
}
};
}
};
t.stop();
};
MovieClip.prototype.make = function (id) {
switch (id) {
case 1 :
var _local1 = "balloon";
var _local3 = -175 + random(350);
var _local2 = -120 + random(240);
break;
case 2 :
_local1 = "balloon2";
_local3 = -175 + random(350);
_local2 = -120 + random(240);
}
m2.attachMovie(_local1, _local1 + r.od, r.od, {_x:_local3, _y:_local2, dep:r.od});
r.bal.push(m2[_local1 + r.od]);
r.od--;
};
MovieClip.prototype.cekhit = function () {
var _local8 = this;
var _local12 = 0;
var _local6 = 0;
while (_local6 < r.ob.length) {
var _local5 = r.ob[_local6];
var _local4 = (_local5._width / 2) + 10;
var _local3 = _local8._x - _local5._x;
if (Math.abs(_local3) < _local4) {
var _local2 = _local8._y - _local5._y;
if (Math.abs(_local2) < _local4) {
if (((_local3 * _local3) + (_local2 * _local2)) <= (_local4 * _local4)) {
var _local11 = Math.atan2(_local2, _local3);
var _local7 = 30 + random(20);
var _local10 = Math.cos(_local11) * _local7;
var _local9 = Math.sin(_local11) * _local7;
return({xs:_local10, ys:_local9, angle:_local11});
}
}
}
_local6++;
}
return(false);
};
MovieClip.prototype.initflav = function () {
var t = this;
t.pos = {xx:0, yy:0};
t.ro = (t.ronow = 0);
t.h1r = t.a.h1._rotation;
t.h2r = t.a.h2._rotation;
t.l1r = t.a.l1._rotation;
t.l2r = t.a.l2._rotation;
t.div = 4;
t.onEnterFrame = function () {
var _local6 = t._x;
var _local5 = t._y;
if (t.follow) {
var _local7 = t.following();
t._x = _local7.nx;
t._y = _local7.ny;
if (r.ghosting) {
hideghosts();
}
} else {
t.freefloat();
t.xs = t.xs * 0.8;
t.ys = t.ys * 0.8;
t._x = Math.max(-260, Math.min(260, t._x));
t._y = Math.max(-215, Math.min(215, t._y));
t.a.filters = [];
}
if (r.snap.length == 1) {
var _local4 = t.cekhit();
if (_local4) {
if (t.follow) {
t.follow = 0;
}
if (r.pressed == t) {
r.pressed = 0;
}
t.xs = _local4.xs;
t.ys = _local4.ys;
t.ro = 30 + random(30);
r.zhit.start();
if (r.ghosting) {
hideghosts();
}
}
}
if ((_local6 != t._x) or (_local5 != t._y)) {
var _local3 = t._x - _local6;
var _local2 = t._y - _local5;
var _local1 = 1;
while (_local1 < r.snap.length) {
r.snap[_local1]._x = r.snap[_local1]._x + _local3;
r.snap[_local1]._y = r.snap[_local1]._y + _local2;
_local1++;
}
}
ghosts._x = t._x;
ghosts._y = t._y;
t.shaking();
};
};
MovieClip.prototype.initgirl = function () {
var t = this;
t.pos = {};
t.div = 5;
t.ro = (t.ronow = (t.nocekclose = 0));
t.deplow = t.dep - 1000;
t.fist = getrandom("fisttype");
t.suit = getrandom("suittype");
t.bag = getrandom("bagtype");
t.hair = getrandom("hairtype");
t.snap = (t.follow = (hold1 = (hold2 = (hold3 = (hold4 = 0)))));
t.h1r = t.a.h1._rotation;
t.h2r = t.a.h2._rotation;
t.l1r = t.a.l1._rotation;
t.l2r = t.a.l2._rotation;
t.normalspeed = 1 + (0.1 * random(20));
t.normalspeed2 = t.normalspeed * t.normalspeed;
t.xs = 0.1 * random(20);
t.ys = 0.1 * random(20);
var blur1 = (new flash.filters.GlowFilter(16777215, 1, 5, 5, 5, 1, false, false));
var blur1b = (new flash.filters.GlowFilter(16757504, 1, 5, 5, 6, 1, false, false));
var blur2 = (new flash.filters.GlowFilter(16763904, 1, 5, 5, 5, 1, false, false));
var blur2b = (new flash.filters.GlowFilter(13369344, 1, 4, 4, 4, 1, false, false));
t.onEnterFrame = function () {
if (t.nocekclose > 0) {
t.nocekclose--;
}
if (!t.snap) {
if (t.follow) {
var _local1 = t.following();
var _local2 = false;
if (_local1.slow and (!t.nocekclose)) {
_local2 = cekclose(t);
}
if (_local2) {
_local1.nx = _local2.xx;
_local1.ny = _local2.yy;
t.a.filters = [blur2, blur2b];
} else {
t.a.filters = [blur1, blur1b];
}
t._x = _local1.nx;
t._y = _local1.ny;
} else {
t.freefloat();
t.a.filters = [];
}
} else {
t.a.filters = [];
}
var _local2 = t.cekhit();
if (_local2) {
unsnap(t);
if (t.follow) {
t.follow = 0;
}
if (r.pressed == t) {
r.pressed = 0;
}
t.xs = _local2.xs;
t.ys = _local2.ys;
t.ro = 30 + random(30);
r.zhit.start();
}
t.shaking();
};
};
MovieClip.prototype.initfist = function () {
this.gotoAndStop(this._parent._parent._parent.fist);
};
MovieClip.prototype.inithair = function () {
this.gotoAndStop(this._parent._parent.hair);
};
MovieClip.prototype.following = function () {
var _local2 = this;
var _local4 = true;
var _local6 = m2._xmouse;
var _local5 = m2._ymouse;
_local6 = _local2._x + ((_local6 - _local2._x) / _local2.div);
_local5 = _local2._y + ((_local5 - _local2._y) / _local2.div);
_local2.xs = _local6 - _local2._x;
_local2.ys = _local5 - _local2._y;
var _local3 = (_local2.xs * _local2.xs) + (_local2.ys * _local2.ys);
if (_local3 > 50) {
_local4 = false;
}
if (_local3 > r.maxspeed2) {
_local2.angle = Math.atan2(_local2.ys, _local2.xs);
_local2.xs = Math.cos(_local2.angle) * r.maxspeed;
_local2.ys = Math.sin(_local2.angle) * r.maxspeed;
_local6 = _local2._x + _local2.xs;
_local5 = _local2._y + _local2.ys;
}
return({nx:_local6, ny:_local5, slow:_local4});
};
MovieClip.prototype.freefloat = function () {
var _local2 = this;
if (((_local2.xs * _local2.xs) + (_local2.ys * _local2.ys)) > _local2.normalspeed2) {
_local2.xs = _local2.xs * 0.9;
_local2.ys = _local2.ys * 0.9;
}
_local2._x = _local2._x + _local2.xs;
_local2._y = _local2._y + _local2.ys;
if (_local2.ro) {
_local2.ronow = _local2.ronow + _local2.ro;
if (_local2.ronow > 360) {
_local2.ronow = _local2.ronow - 360;
}
_local2._rotation = _local2.ronow;
if (_local2.ro > 3) {
_local2.ro = _local2.ro * 0.95;
} else if (_local2.ronow <= 3) {
_local2._rotation = (_local2.ronow = (_local2.ro = 0));
}
}
if (_local2._x > r.xmax) {
_local2._x = r.xmin;
}
if (_local2._x < r.xmin) {
_local2._x = r.xmax;
}
if (_local2._y > r.ymax) {
_local2._y = r.ymin;
}
if (_local2._y < r.ymin) {
_local2._y = r.ymax;
}
};
MovieClip.prototype.cekclose = function (b) {
var _local4 = (xx = yy0);
var _local3 = 0;
while (_local3 < r.snap.length) {
var _local1 = r.snap[_local3];
if (Math.abs(b._x - _local1._x) < 34) {
if (Math.abs(b._y - _local1._y) < 34) {
if (!_local1.hold1) {
if (_local1.a.z1.hitTest(b.a.z4)) {
xx = _local1._x - r.spacing;
yy = _local1._y - r.spacing;
_local4 = 1;
}
}
if (!_local1.hold2) {
if (_local1.a.z2.hitTest(b.a.z3)) {
xx = _local1._x + r.spacing;
yy = _local1._y - r.spacing;
_local4 = 1;
}
}
if (!_local1.hold3) {
if (_local1.a.z3.hitTest(b.a.z2)) {
xx = _local1._x - r.spacing;
yy = _local1._y + r.spacing;
_local4 = 1;
}
}
if (!_local1.hold4) {
if (_local1.a.z4.hitTest(b.a.z1)) {
xx = _local1._x + r.spacing;
yy = _local1._y + r.spacing;
_local4 = 1;
}
}
}
}
_local3++;
}
if (_local4) {
return({xx:xx, yy:yy});
}
return(false);
};
MovieClip.prototype.ceklinks = function () {
var _local5 = 0;
while (_local5 < r.snap.length) {
r.snap[_local5].link = 0;
_local5++;
}
var _local4 = [];
var _local6 = [];
_local4.push(r.snap[0]);
r.snap[0].link = 1;
while (_local4.length > 0) {
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5 = 1;
while (_local5 <= 4) {
var _local1 = _local3["hold" + _local5];
if (_local1) {
if (!_local1.link) {
_local1.link = 1;
_local6.push(_local1);
}
}
_local5++;
}
_local2++;
}
_local4 = _local6.slice();
_local6 = [];
}
var _local7 = [];
_local5 = 0;
while (_local5 < r.snap.length) {
if (!r.snap[_local5].link) {
_local7.push(r.snap[_local5]);
}
_local5++;
}
unsnaplist(_local7);
};
MovieClip.prototype.unsnaplist = function (list) {
var _local1 = 0;
while (_local1 < list.length) {
unsnap(list[_local1]);
list[_local1].xs = 0.1 * (-20 + random(40));
list[_local1].ys = 0.1 * (-20 + random(40));
_local1++;
}
};
MovieClip.prototype.unsnap = function (a) {
if (a != r.snap[0]) {
a.snap = 0;
r.snap.removeValue(a);
a.swapDepths(a.dep);
r.free.push(a);
}
a.hold1.hold4 = (a.hold2.hold3 = (a.hold3.hold2 = (a.hold4.hold1 = 0)));
a.hold1 = (a.hold2 = (a.hold3 = (a.hold4 = 0)));
};
MovieClip.prototype.ceksnap = function (b) {
var _local4 = 0;
var _local3 = 0;
while (_local3 < r.snap.length) {
var _local1 = r.snap[_local3];
if (Math.abs(b._x - _local1._x) < 34) {
if (Math.abs(b._y - _local1._y) < 34) {
if (!_local1.hold1) {
if (_local1.a.z1.hitTest(b.a.z4)) {
b._x = _local1._x - r.spacing;
b._y = _local1._y - r.spacing;
_local1.hold1 = b;
b.hold4 = _local1;
b.pos.xx = _local1.pos.xx - 1;
b.pos.yy = _local1.pos.yy - 1;
_local4 = 1;
}
}
if (!_local1.hold2) {
if (_local1.a.z2.hitTest(b.a.z3)) {
b._x = _local1._x + r.spacing;
b._y = _local1._y - r.spacing;
_local1.hold2 = b;
b.hold3 = _local1;
b.pos.xx = _local1.pos.xx + 1;
b.pos.yy = _local1.pos.yy - 1;
_local4 = 1;
}
}
if (!_local1.hold3) {
if (_local1.a.z3.hitTest(b.a.z2)) {
b._x = _local1._x - r.spacing;
b._y = _local1._y + r.spacing;
_local1.hold3 = b;
b.hold2 = _local1;
b.pos.xx = _local1.pos.xx - 1;
b.pos.yy = _local1.pos.yy + 1;
_local4 = 1;
}
}
if (!_local1.hold4) {
if (_local1.a.z4.hitTest(b.a.z1)) {
b._x = _local1._x + r.spacing;
b._y = _local1._y + r.spacing;
_local1.hold4 = b;
b.hold1 = _local1;
b.pos.xx = _local1.pos.xx + 1;
b.pos.yy = _local1.pos.yy + 1;
_local4 = 1;
}
}
}
}
_local3++;
}
if (_local4) {
b.snap = 1;
b.xs = (b.ys = 0);
r.snap.push(b);
r.free.removeValue(b);
b.swapDepths(b.deplow);
return(_local4);
}
};
MovieClip.prototype.shaking = function () {
var _local2 = this;
if (!_local2.hold1) {
_local2.a.h1._rotation = _local2.h1r - random(10);
}
if (!_local2.hold2) {
_local2.a.h2._rotation = _local2.h2r + random(10);
}
if (!_local2.hold3) {
_local2.a.l1._rotation = _local2.l1r - random(10);
}
if (!_local2.hold4) {
_local2.a.l2._rotation = _local2.l2r + random(10);
}
};
MovieClip.prototype.energize = function (a) {
r.energy = Math.min(r.energymax, r.energy + a);
r.energy = Math.max(0, r.energy);
if (a > 0) {
r.zbonus.start();
} else {
r.zhit.start();
}
r.energybar.gotoAndPlay(1);
};
MovieClip.prototype.ceklimits = function () {
this.nx = Math.max(this.nx, r.xmin);
this.nx = Math.min(this.nx, r.xmax);
this.ny = Math.max(this.ny, r.ymin);
this.ny = Math.min(this.ny, r.ymax);
};
Array.prototype.removeElement = function (i) {
if (i == null) {
i = 0;
}
var _local4 = this[i];
var _local2 = i;
while (_local2 < (this.length - 1)) {
this[_local2] = this[_local2 + 1];
_local2++;
}
this.pop();
return(_local4);
};
Array.prototype.removeValue = function (a) {
var _local2 = 0;
while (_local2 < this.length) {
if (a == this[_local2]) {
this.removeElement(_local2);
}
_local2++;
}
};
Array.prototype.randomize = function () {
return(this.sort(function (a, b) {
return(((Math.floor(Math.random() * 2) == 0) ? 1 : -1));
}));
};
Array.prototype.copy = Array.prototype.slice;
Object.prototype.clone = function () {
if (this instanceof Array) {
var _local2 = [];
var _local3 = 0;
while (_local3 < this.length) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clone()) : (this[_local3]));
_local3++;
}
} else if ((this instanceof XML) || (this instanceof MovieClip)) {
var _local2 = null;
trace("Warning! Object.clone can not be used on MovieClip or XML objects");
} else {
var _local2 = {};
for (var _local3 in this) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clone()) : (this[_local3]));
}
}
return(_local2);
};
ASSetPropFlags(Object.prototype, ["clone"], 1);
MovieClip.prototype.fadescreen = function (speed) {
if (!speed) {
speed = 5;
}
r.createEmptyMovieClip("dark", 100001);
var d = r.dark;
d.speed = speed;
d.lineStyle(1, 0, 100);
d.beginFill(16777215, 100);
d.moveTo(-5000, -5000);
d.lineTo(5000, -5000);
d.lineTo(5000, 5000);
d.lineTo(-5000, 5000);
d.endFill();
d.onEnterFrame = function () {
d._alpha = d._alpha - d.speed;
if (d._alpha <= 0) {
d.removeMovieClip();
d.stop();
}
};
};
MovieClip.prototype.getrandom = function (aray) {
if (r.randomlisting.length > 0) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < r.randomlisting.length) {
if (r.randomlisting[_local1] == aray) {
_local3 = 1;
break;
}
_local1++;
}
if (!_local3) {
r.randomlisting.push(aray);
}
} else {
r.randomlisting = [];
r.randomlisting.push(aray);
}
if (r[aray + "getrandom"].length <= 0) {
r[aray + "getrandom"] = [];
r[aray + "getrandom"] = r[aray].clone();
r[aray + "getrandom"].randomize();
if (r[aray + "getrandom"].length > 1) {
if (r[aray + "lastpop"] == r[aray + "getrandom"][r[aray + "getrandom"].length - 1]) {
r[aray + "getrandom"].pop();
}
}
}
var _local4 = r[aray + "getrandom"].pop();
r[aray + "lastpop"] = _local4;
return(_local4);
};
MovieClip.prototype.resetrandom = function () {
if (r.randomlisting.length > 0) {
var _local1 = 0;
while (_local1 < r.randomlisting.length) {
r[r.randomlisting[_local1] + "getrandom"] = [];
r[r.randomlisting[_local1] + "lastpop"] = undefined;
_local1++;
}
}
};
MovieClip.prototype.findang = function (dx, dy) {
return(deg(Math.atan2(dy, dx)));
};
MovieClip.prototype.rad = function (qdeg) {
return(qdeg * (Math.PI/180));
};
MovieClip.prototype.deg = function (qrad) {
return(qrad * 57.2957795130823);
};
Color.prototype.setBrightness = function (value) {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
var trans = this.getTransform();
var percent = (Math.abs(value) / 100);
var brightnessColor = ((value > 0) ? 255 : 0);
with (trans) {
ra = ra - (ra * percent);
ga = ga - (ga * percent);
ba = ba - (ba * percent);
rb = rb + ((brightnessColor - rb) * percent);
gb = gb + ((brightnessColor - gb) * percent);
bb = bb + ((brightnessColor - bb) * percent);
}
this.setTransform(trans);
};
Color.prototype.resetColor = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
};
Sound.prototype.fade = function (fadeType, fadeDuration) {
this.fadeDuration = (fadeDuration * 1000) / 100;
this.fadeType = fadeType;
this.currentVolume = this.getVolume();
this.intID = setInterval(function (thisObj) {
thisObj.doFade(thisObj.fadeType);
}, this.fadeDuration, this);
this.doFade = function (fadeType) {
if (fadeType == "out") {
this.setVolume(this.currentVolume--);
if (this.getVolume() <= 0) {
clearInterval(this.intID);
}
} else if (fadeType == "in") {
this.setVolume(this.currentVolume++);
if (this.getVolume() >= 100) {
clearInterval(this.intID);
}
}
};
};
MovieClip.prototype.wait = function (delay) {
this.createEmptyMovieClip("wdl", 55555);
this.wdl.delay = delay;
this.wdl.onenterframe = function () {
this.delay--;
if (!this.delay) {
delete this.onenterframe;
this._parent.play();
this.removeMovieClip();
}
};
this.stop();
};
MovieClip.prototype.savecookie = function (vari, value) {
var _local1 = SharedObject.getLocal("lazcookie", "/");
_local1.data[vari] = value;
_local1.flush();
};
MovieClip.prototype.loadcookie = function (vari) {
var _local1 = SharedObject.getLocal("lazcookie", "/");
if (_local1.data[vari] != null) {
return(_local1.data[vari]);
}
return(false);
};
Frame 12
form1 = [{xx:-1, yy:-1}, {xx:1, yy:-1}, {xx:0, yy:-2}, {xx:2, yy:0}, {xx:-2, yy:0}];
form2 = [{xx:-1, yy:-1}, {xx:-1, yy:1}, {xx:1, yy:-1}, {xx:1, yy:1}, {xx:0, yy:-2}, {xx:0, yy:2}];
form3 = [{xx:1, yy:1}, {xx:-1, yy:1}, {xx:2, yy:0}, {xx:-2, yy:0}, {xx:-2, yy:2}, {xx:2, yy:2}, {xx:0, yy:2}];
form4 = [{xx:-1, yy:1}, {xx:2, yy:0}, {xx:1, yy:1}, {xx:-2, yy:0}, {xx:3, yy:-1}, {xx:-3, yy:-1}, {xx:-2, yy:2}, {xx:2, yy:2}];
form5 = [{xx:-1, yy:-1}, {xx:1, yy:-1}, {xx:0, yy:-2}, {xx:1, yy:1}, {xx:-1, yy:1}, {xx:-2, yy:2}, {xx:2, yy:2}, {xx:-3, yy:3}, {xx:3, yy:3}];
form6 = [{xx:1, yy:-1}, {xx:-1, yy:-1}, {xx:2, yy:-2}, {xx:-2, yy:-2}, {xx:1, yy:-3}, {xx:-1, yy:-3}, {xx:3, yy:-3}, {xx:-3, yy:-3}, {xx:2, yy:-4}, {xx:-2, yy:-4}];
form7 = [{xx:1, yy:-1}, {xx:2, yy:-2}, {xx:3, yy:-1}, {xx:-1, yy:-1}, {xx:-2, yy:-2}, {xx:-3, yy:-1}, {xx:-4, yy:0}, {xx:4, yy:0}, {xx:0, yy:-2}, {xx:5, yy:1}, {xx:-5, yy:1}];
form8 = [{xx:2, yy:0}, {xx:3, yy:-1}, {xx:4, yy:0}, {xx:-2, yy:0}, {xx:-3, yy:-1}, {xx:-4, yy:0}, {xx:-5, yy:1}, {xx:5, yy:1}, {xx:-1, yy:1}, {xx:1, yy:1}, {xx:5, yy:-1}, {xx:-5, yy:-1}];
form9 = [{xx:1, yy:-1}, {xx:-1, yy:-1}, {xx:0, yy:-2}, {xx:-2, yy:0}, {xx:-3, yy:-1}, {xx:-4, yy:-2}, {xx:2, yy:0}, {xx:3, yy:-1}, {xx:4, yy:-2}, {xx:5, yy:-3}, {xx:-5, yy:-3}, {xx:-6, yy:-4}, {xx:6, yy:-4}];
form10 = [{xx:-1, yy:1}, {xx:-2, yy:2}, {xx:-1, yy:3}, {xx:1, yy:1}, {xx:2, yy:2}, {xx:1, yy:3}, {xx:-1, yy:-1}, {xx:1, yy:-1}, {xx:-2, yy:-2}, {xx:2, yy:-2}, {xx:-1, yy:-3}, {xx:1, yy:-3}, {xx:0, yy:4}, {xx:0, yy:-4}];
form11 = [{xx:1, yy:1}, {xx:0, yy:2}, {xx:-1, yy:1}, {xx:-1, yy:3}, {xx:1, yy:3}, {xx:0, yy:4}, {xx:-1, yy:5}, {xx:1, yy:5}, {xx:0, yy:6}, {xx:2, yy:2}, {xx:2, yy:4}, {xx:3, yy:3}, {xx:-2, yy:2}, {xx:-2, yy:4}, {xx:-3, yy:3}];
form12 = [{xx:1, yy:1}, {xx:3, yy:-1}, {xx:2, yy:-2}, {xx:2, yy:2}, {xx:3, yy:1}, {xx:-1, yy:-1}, {xx:-2, yy:-2}, {xx:-3, yy:-1}, {xx:-4, yy:0}, {xx:1, yy:-1}, {xx:4, yy:0}, {xx:-1, yy:1}, {xx:-2, yy:2}, {xx:-3, yy:1}, {xx:0, yy:2}, {xx:0, yy:-2}];
form13 = [{xx:1, yy:1}, {xx:2, yy:2}, {xx:3, yy:1}, {xx:4, yy:0}, {xx:5, yy:1}, {xx:6, yy:2}, {xx:3, yy:3}, {xx:5, yy:3}, {xx:4, yy:4}, {xx:2, yy:0}, {xx:3, yy:-1}, {xx:4, yy:2}, {xx:5, yy:5}, {xx:6, yy:4}, {xx:7, yy:3}, {xx:1, yy:-1}, {xx:2, yy:-2}];
form14 = [{xx:1, yy:-1}, {xx:2, yy:-2}, {xx:-1, yy:-1}, {xx:-2, yy:-2}, {xx:-3, yy:-3}, {xx:-2, yy:-4}, {xx:3, yy:-3}, {xx:2, yy:-4}, {xx:-1, yy:-5}, {xx:0, yy:-6}, {xx:1, yy:-5}, {xx:1, yy:-7}, {xx:-1, yy:-7}, {xx:-2, yy:-8}, {xx:2, yy:-8}, {xx:-4, yy:-2}, {xx:4, yy:-2}, {xx:0, yy:-4}];
form15 = [{xx:1, yy:1}, {xx:1, yy:-1}, {xx:2, yy:-2}, {xx:2, yy:-4}, {xx:2, yy:0}, {xx:-1, yy:1}, {xx:-2, yy:0}, {xx:-1, yy:-1}, {xx:-2, yy:-2}, {xx:-2, yy:-4}, {xx:3, yy:-3}, {xx:-3, yy:-3}, {xx:1, yy:-5}, {xx:-1, yy:-5}, {xx:0, yy:2}, {xx:0, yy:-6}, {xx:3, yy:-1}, {xx:-3, yy:-1}, {xx:0, yy:-4}];
form16 = [{xx:1, yy:-1}, {xx:2, yy:-2}, {xx:-1, yy:-1}, {xx:-2, yy:-2}, {xx:3, yy:-3}, {xx:4, yy:-2}, {xx:-3, yy:-3}, {xx:-4, yy:-2}, {xx:5, yy:-1}, {xx:-5, yy:-1}, {xx:6, yy:-2}, {xx:7, yy:-1}, {xx:-6, yy:-2}, {xx:-7, yy:-1}, {xx:-8, yy:0}, {xx:8, yy:0}, {xx:-4, yy:0}, {xx:4, yy:0}, {xx:9, yy:1}, {xx:-9, yy:1}];
form17 = [{xx:1, yy:-1}, {xx:2, yy:-2}, {xx:3, yy:-1}, {xx:3, yy:1}, {xx:2, yy:2}, {xx:-1, yy:-1}, {xx:-2, yy:2}, {xx:-3, yy:1}, {xx:-2, yy:-2}, {xx:-3, yy:-1}, {xx:-1, yy:3}, {xx:1, yy:3}, {xx:-1, yy:-3}, {xx:1, yy:-3}, {xx:4, yy:0}, {xx:-4, yy:0}, {xx:5, yy:1}, {xx:-5, yy:1}, {xx:0, yy:4}, {xx:1, yy:5}, {xx:-1, yy:5}];
form18 = [{xx:1, yy:1}, {xx:-1, yy:1}, {xx:1, yy:-1}, {xx:-1, yy:-1}, {xx:-3, yy:-1}, {xx:-3, yy:1}, {xx:-4, yy:0}, {xx:3, yy:-1}, {xx:3, yy:1}, {xx:4, yy:0}, {xx:-1, yy:-3}, {xx:1, yy:-3}, {xx:0, yy:2}, {xx:-1, yy:3}, {xx:1, yy:3}, {xx:2, yy:-2}, {xx:-2, yy:-2}, {xx:-4, yy:-2}, {xx:4, yy:-2}, {xx:3, yy:-3}, {xx:-3, yy:-3}, {xx:0, yy:4}];
form19 = [{xx:2, yy:0}, {xx:3, yy:-1}, {xx:4, yy:-2}, {xx:-2, yy:0}, {xx:-3, yy:-1}, {xx:-2, yy:-2}, {xx:2, yy:-2}, {xx:-4, yy:-2}, {xx:3, yy:1}, {xx:4, yy:2}, {xx:-3, yy:1}, {xx:-4, yy:2}, {xx:-1, yy:1}, {xx:1, yy:1}, {xx:2, yy:2}, {xx:-2, yy:2}, {xx:-1, yy:-3}, {xx:1, yy:-3}, {xx:0, yy:-4}, {xx:-1, yy:3}, {xx:1, yy:3}, {xx:0, yy:4}, {xx:0, yy:-2}];
form20 = [{xx:1, yy:-1}, {xx:2, yy:-2}, {xx:3, yy:-1}, {xx:4, yy:0}, {xx:5, yy:-1}, {xx:6, yy:-2}, {xx:5, yy:-3}, {xx:4, yy:-4}, {xx:-1, yy:1}, {xx:-2, yy:2}, {xx:-3, yy:1}, {xx:-4, yy:0}, {xx:-5, yy:1}, {xx:-6, yy:2}, {xx:-5, yy:3}, {xx:-4, yy:4}, {xx:5, yy:-5}, {xx:6, yy:-6}, {xx:-5, yy:5}, {xx:-6, yy:6}, {xx:-7, yy:5}, {xx:-8, yy:4}, {xx:7, yy:-5}, {xx:8, yy:-4}];
levelmax = 20;
Frame 19
call("pro");
fadescreen();
r.level = (r.ang = 0);
r.udamusik = 0;
stop();
Frame 26
fadescreen();
stop();
Frame 45
startupVars.text = showGSStartupInfo();
if (!GameServices.sendHit(GSGameTracking.PLAY, "Game Tracking Play Event")) {
trace("PLAY failed");
} else {
trace("PLAY sent");
}
fadescreen(8);
gotoAndPlay ("start");
Frame 46
_global.m = this.map;
_global.m2 = this.map2;
_global.m3 = this.map3;
_global.m4 = this.map4;
m4.createEmptyMovieClip("ghosts", 100);
_global.ghosts = m4.ghosts;
_global.c = this.cloud;
_global.p = m.player;
delete onEnterFrame;
call("pro");
call("forms");
fadescreen();
if (!level) {
level = 1;
ang = 0;
}
leveltime = [0, 30, 40, 45, 45, 50, 50, 55, 55, 60, 60, 65, 65, 70, 70, 75, 75, 80, 80, 85, 85];
parachute = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24];
levelbg = [0, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 6, 7];
bballoon = [0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3];
balloonran = [];
var i = 0;
while (i < 10) {
if (i < bballoon[level]) {
balloonran.push(2);
} else {
balloonran.push(1);
}
i++;
}
onesec = 25;
waktu = (totalwaktu = leveltime[level] * onesec);
form = r["form" + r.level];
form.sortOn(["xx", "yy"], [Array.DESCENDING, Array.NUMERIC]);
totalgirl = form.length;
canpress = 1;
hairtype = [1, 2, 3, 4, 5, 6];
bagtype = [7];
fisttype = [1, 2, 3, 4, 5, 6];
suittype = [1];
nil = 1000;
pressed = 0;
spacing = 24;
ymin = -240;
ymax = 240;
xmin = -290;
xmax = 290;
maxspeed = 20;
maxspeed2 = maxspeed * maxspeed;
throwspeed = 30;
ghosting = 0;
formcomplete = 0;
cdelay = 1;
cd = 0;
cdep = 100;
popd = 100;
flavdep = 3000;
gd = 4100;
pd = 9100;
od = 2000;
d = (edelay = 100);
free = [];
snap = [];
ob = [];
bal = [];
finish = 0;
showdelay = 0;
resetrandom();
if (!r.udamusik) {
r.udamusik = 1;
stopAllSounds();
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["zYeah", "zWhaat", "zSir", "zFlavor", "zhit", "zbonus", "zchute", "zcomplete"];
var i = 0;
while (i < allsfx.length) {
r[allsfx[i]] = new Sound(sfx);
r[allsfx[i]].attachSound(allsfx[i]);
i++;
}
r.createEmptyMovieClip("sfx2", 60002);
r.zloop = new Sound(sfx2);
r.zloop.attachSound("zloop");
r.zloop.start(0, 99999);
r.createEmptyMovieClip("sfx3", 60003);
r.zwind = new Sound(sfx3);
r.zwind.attachSound("zwind");
r.zwind.start(0, 99999);
if (r.music) {
r.zhit.setVolume(100);
r.zwind.setVolume(100);
r.zloop.setVolume(0);
r.zloop.fade("in", 1);
} else {
r.zhit.setVolume(0);
r.zwind.setVolume(0);
r.zloop.setVolume(0);
}
}
clearVO = ["zSir", "zYeah", "zFlavor"];
m2.attachMovie("flav", "flav", flavdep, {_y:-40});
_global.flav = m2.flav;
r.snap.push(flav);
var i = 0;
while (i < totalgirl) {
m2.attachMovie("girl1", "girl1" + r.gd, r.gd, {_x:-275 + random(550), _y:-220 + random(440), dep:r.gd});
r.free.push(m2["girl1" + r.gd]);
r.gd++;
i++;
}
m3.attachMovie("levelinfo", "levelinfo", r.popd, {_x:275, _y:280});
r.popd++;
var i = 0;
while (i < r.form.length) {
var xx = (r.form[i].xx * r.spacing);
var yy = (r.form[i].yy * r.spacing);
ghosts.attachMovie("ghost", "ghost" + i, 100 + i, {_x:xx, _y:yy});
i++;
}
onEnterFrame = function () {
d--;
if (!d) {
d = edelay;
make(getrandom("balloonran"));
}
m._rotation = m._rotation + (0.05 + (0.01 * random(10)));
m._x = 275 + (0.1 * (-7 + random(14)));
m._y = 220 + (0.1 * (-7 + random(14)));
m2._x = 275 + (0.1 * (-4 + random(8)));
m2._y = 220 + (0.1 * (-4 + random(8)));
cd--;
if (cd < 0) {
cd = cdelay;
c.attachMovie("cloudy", "cloudy" + r.cdep, r.cdep, {_rotation:random(360)});
r.cdep++;
}
};
stop();
Instance of Symbol 295 MovieClip in Frame 46
onClipEvent (load) {
letterkeys = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
numberkeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
numpadkeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "Enter", "-", ".", "/"];
functionkeys = ["F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12"];
otherkeys = ["Space", "Page Up", "Page Down", "End", "Home", "Left", "Up", "Right", "Down"];
keypressed = "";
}
onClipEvent (keyDown) {
k = Key.getCode();
if ((k >= 65) and (k <= 90)) {
keyp = letterkeys[k - 65];
}
if ((k >= 48) and (k <= 57)) {
keyp = numberkeys[k - 48];
}
if ((k >= 96) and (k <= 111)) {
keyp = numpadkeys[k - 96];
}
if ((k >= 112) and (k <= 123)) {
keyp = functionkeys[k - 112];
}
if ((k >= 32) and (k <= 40)) {
keyp = otherkeys[k - 32];
}
if (k == 8) {
keyp = "BackSpace";
}
if (k == 9) {
keyp = "Tab";
}
if (k == 12) {
keyp = "Clear";
}
if (k == 13) {
keyp = "Enter";
}
if (k == 16) {
keyp = "Shift";
}
if (k == 17) {
keyp = "Control";
}
if (k == 18) {
keyp = "Alt";
}
if (k == 20) {
keyp = "Caps Lock";
}
if (k == 27) {
keyp = "Esc";
}
if (k == 45) {
keyp = "Insert";
}
if (k == 46) {
keyp = "Delete";
}
if (k == 47) {
keyp = "help";
}
if (k == 144) {
keyp = "Num Lock";
}
if (k == 186) {
keyp = ";:";
}
if (k == 187) {
keyp = "=+";
}
if (k == 189) {
keyp = "-_";
}
if (k == 191) {
keyp = "/?";
}
if (k == 192) {
keyp = "'@";
}
if (k == 219) {
keyp = "[{";
}
if (k == 220) {
keyp = "\\|";
}
if (k == 221) {
keyp = "]}";
}
keypressed = keypressed + keyp;
if ((substring(keypressed, keypressed.length - 2, 3)) == "BOI") {
r.gotoAndPlay("next");
keypressed = "";
} else if ((substring(keypressed, keypressed.length - 2, 3)) == "FIN") {
r.gotoAndPlay("end");
keypressed = "";
} else if ((substring(keypressed, keypressed.length - 2, 3)) == "WON") {
r.gotoAndPlay("win");
keypressed = "";
}
}
Frame 47
delete onEnterFrame;
fadescreen();
stop();
Frame 54
r.level++;
if (r.level > r.levelmax) {
gotoAndPlay ("win");
} else {
gotoAndPlay ("start");
}
Frame 60
delete onEnterFrame;
call("pro");
fadescreen(8);
d = 10;
onEnterFrame = function () {
d--;
if (!d) {
r.zYeah.start();
delete onEnterFrame;
}
};
stop();
Frame 72
delete onEnterFrame;
stop();
onEnterFrame = function () {
ScreenName.text = ScreenName.text.toUpperCase();
};
ScreenName.text = _global.tUserName;
if (!GameServices.sendHit(GSGameTracking.ZONECHANGE, "Game Tracking ZoneChange Event")) {
trace("ZONECHANGE failed");
} else {
trace("ZONECHANGE sent");
}
btn_submitScoreGetScores.onRelease = function () {
score = r.ang;
if (score > 0) {
var _local2 = 6;
if (_local2 > 0) {
var _local3 = GSScoreSubmit.setGameId(_local2);
if (!_local3) {
errorMsg.text = "That's a bad game id";
}
}
firstRank = 1;
if ((firstRank < 1) || (firstRank > 10000)) {
firstRank = 1;
}
numRanks = 10;
if ((numRanks < 1) || (numRanks > 1000)) {
numRanks = 25;
}
_global.tUserName = ScreenName.text;
if (ScreenName.text == "") {
ScreenName.text = "AAA";
_global.tUserName = ScreenName.text;
}
GSScoreSubmit.unauthSubmitScoreGetScores(score, score, "", ScreenName.text, firstRank, numRanks, 10, -1);
gotoAndPlay ("UnauthSubmitResults");
} else {
errorMsg.text = "Score not valid for submission";
}
};
Frame 87
delete onEnterFrame;
stop();
aa.high_score_title.text = "Today's Highscore Results";
var g_PagingScores = 0;
var g_LastPagingScores = 0;
var g_ScoresPerPage = 10;
var g_TimePeriodType = 10;
var g_TimePeriod = -1;
GSScoreSubmit.unauthLeaderBoard(g_PagingScores * g_ScoresPerPage, 10, g_TimePeriodType, g_TimePeriod);
if (!GameServices.sendHit(GSGameTracking.GAMEOVER, "Game Tracking Game Over Event")) {
trace("GAMEOVER failed");
} else {
trace("GAMEOVER sent");
}
GetUserScoreRanksToday_btn.onRelease = function () {
g_LastPagingScores = 0;
g_PagingScores = 0;
g_TimePeriodType = 10;
g_TimePeriod = -1;
trace(g_TimePeriod);
aa.high_score_title.text = "Today's Highscore Results";
GSScoreSubmit.unauthLeaderBoard(g_PagingScores * g_ScoresPerPage, 10, g_TimePeriodType, g_TimePeriod);
};
GetUserScoreRanksYesterday_btn.onRelease = function () {
g_LastPagingScores = 0;
g_PagingScores = 0;
g_TimePeriodType = 10;
g_TimePeriod = -2;
trace(g_TimePeriod);
aa.high_score_title.text = "Yesterday's Highscore Results";
GSScoreSubmit.unauthLeaderBoard(g_PagingScores * g_ScoresPerPage, 10, g_TimePeriodType, g_TimePeriod);
};
GetUserScoreRanksMonth_btn.onRelease = function () {
g_LastPagingScores = 0;
g_PagingScores = 0;
g_TimePeriodType = 30;
g_TimePeriod = -1;
trace(g_TimePeriod);
aa.high_score_title.text = "This Month's Highscore Results";
GSScoreSubmit.unauthLeaderBoard(g_PagingScores * g_ScoresPerPage, 10, g_TimePeriodType, g_TimePeriod);
};
GetUserScoreRanksWeek_btn.onRelease = function () {
g_LastPagingScores = 0;
g_PagingScores = 0;
g_TimePeriodType = 20;
g_TimePeriod = -1;
trace(g_TimePeriod);
aa.high_score_title.text = "This Week's Top Highscore Results";
GSScoreSubmit.unauthLeaderBoard(g_PagingScores * g_ScoresPerPage, 10, g_TimePeriodType, g_TimePeriod);
};
GetUserScoreRanksAllTime_btn.onRelease = function () {
g_PagingScores = 0;
g_TimePeriodType = 0;
g_TimePeriod = -1;
trace(g_TimePeriod);
aa.high_score_title.text = "All Time Highscore Results";
GSScoreSubmit.unauthLeaderBoard(g_PagingScores * g_ScoresPerPage, 10, g_TimePeriodType, g_TimePeriod);
};
RightArrow_mc.onRelease = function () {
g_LastPagingScores = g_PagingScores;
g_PagingScores = g_PagingScores + 1;
GSScoreSubmit.unauthLeaderBoard(g_PagingScores * g_ScoresPerPage, 10, g_TimePeriodType, g_TimePeriod);
};
LeftArrow_mc.onRelease = function () {
g_LastPagingScores = g_PagingScores;
g_PagingScores = g_PagingScores - 1;
if (g_PagingScores < 0) {
g_PagingScores = 0;
}
GSScoreSubmit.unauthLeaderBoard(g_PagingScores * g_ScoresPerPage, 10, g_TimePeriodType, g_TimePeriod);
};
Symbol 1 MovieClip [fadeout] Frame 1
vs = 5;
vol = r.zwind.getVolume();
if (vol > 0) {
onEnterFrame = function () {
vol = vol - vs;
if (vs > 0.5) {
vs = 0.95 * vs;
}
r.zwind.setVolume(vol);
if (vol <= 0) {
r.zwind.stop();
delete onEnterFrame;
}
};
}
Symbol 10 MovieClip Frame 1
onEnterFrame = function () {
_xscale = r.persen;
};
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 29 MovieClip [cloudy] Frame 6
this.removeMovieClip();
Symbol 31 MovieClip Frame 1
_visible = false;
Symbol 33 MovieClip Frame 1
_visible = false;
Symbol 40 MovieClip Frame 1
initfist();
Symbol 68 MovieClip Frame 1
inithair();
Symbol 70 MovieClip [girl1] Frame 1
initgirl();
Symbol 84 MovieClip [flav] Frame 1
initflav();
Symbol 87 MovieClip [balloon] Frame 1
initballoon();
Symbol 115 MovieClip Frame 1
gotoAndStop(r.level);
Symbol 116 MovieClip [levelinfo] Frame 1
ghosts._visible = true;
initpopup(80 + (r.level * 4), null, "begin");
Symbol 116 MovieClip [levelinfo] Frame 2
ghosts._visible = false;
r.timer.gotoAndStop(2);
r.drag.gotoAndPlay("l");
this.removeMovieClip();
Symbol 121 MovieClip [outoftime] Frame 1
initpopup(null, 50);
Symbol 124 MovieClip [allwhiteani] Frame 8
stop();
Symbol 129 MovieClip Frame 1
bonus = r.waktu * 20;
r.ang = r.ang + bonus;
a = "Time Bonus " + bonus;
stop();
Symbol 130 MovieClip [levelcleared] Frame 1
jiggle();
Symbol 130 MovieClip [levelcleared] Frame 25
ran = r.level % r.clearVO.length;
r[r.clearVO[ran]].start();
Symbol 130 MovieClip [levelcleared] Frame 60
onEnterFrame = function () {
_y = (_y - 3);
_alpha = (_alpha - 20);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
stop();
Symbol 179 MovieClip Frame 1
gotoAndStop(_parent.no);
Symbol 205 MovieClip Frame 1
gotoAndStop(_parent.no);
Symbol 206 MovieClip [parachute] Frame 1
no = getrandom("parachute");
onEnterFrame = function () {
_rotation = random(360);
};
Symbol 206 MovieClip [parachute] Frame 5
delete onEnterFrame;
_rotation = 0;
r.zchute.start();
Symbol 206 MovieClip [parachute] Frame 13
stop();
Symbol 209 MovieClip [heart] Frame 1
ys = -1 - (0.1 * random(40));
onEnterFrame = function () {
_y = (_y + ys);
if (_y < 0) {
this.removeMovieClip();
}
};
stop();
Symbol 212 MovieClip [balloon2] Frame 1
initballoon(2);
Symbol 220 Button
on (press) {
r.gotoAndStop("ins");
}
Symbol 223 Button
on (press) {
r.gotoAndPlay("UnauthSubmitResults");
}
Symbol 234 Button
on (release) {
System.security.allowDomain("cdn.gigya.com");
System.security.allowInsecureDomain("cdn.gigya.com");
var mcWF = _root.createEmptyMovieClip("Wildfire", _root.getNextHighestDepth());
mcWF._lockroot = true;
mcWF.ModuleID = "PostModule1";
var cfg = ((_root[mcWF.ModuleID] = {}));
cfg.width = "480";
cfg.height = "320";
cfg.widgetTitle = "Flavor of Love 3: Sky Romance";
cfg.partner = "166181";
cfg.CID = "FOL3SKY";
cfg.UIConfig = "<config><display showEmail=\"true\" showBookmark=\"true\" /><body font=\"Arial\"><background corner-roundness=\"10\" background-color=\"FFFFFF\" /><controls><snbuttons background-color=\"#FFD18D\" /></controls><texts color=\"#000000\" /></body></config>";
mcWF._x = (Stage.width - cfg.width) / 2;
mcWF._y = (Stage.height - cfg.height) / 2;
cfg.defaultContent = GameServices.generateEmbedCode("#000000");
mcWF.loadMovie("http://cdn.gigya.com/WildFire/swf/wildfire.swf", "get");
gotoAndStop (2);
}
Symbol 241 Button
on (release) {
mcWF.removeMovieClip();
gotoAndStop (1);
}
Symbol 242 MovieClip Frame 1
if (!xpos) {
xpos = _x;
ypos = _y;
}
_x = xpos;
_y = ypos;
stop();
Symbol 242 MovieClip Frame 2
_x = (Stage.width / 2);
_y = (Stage.height - 30);
stop();
Symbol 247 Button
on (press) {
r.gotoAndPlay("beginplaying");
}
Symbol 266 MovieClip Frame 1
hair = 6;
fist = 1;
Symbol 288 MovieClip Frame 1
gotoAndStop(r.levelbg[r.level]);
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
cd = (cekdelay = 10);
pressing = 0;
onMouseDown = function () {
pressing = 1;
};
onEnterFrame = function () {
if (r.formcomplete) {
delete onEnterFrame;
gotoAndPlay ("complete");
} else {
cd--;
if (pressing) {
delete onMouseDown;
gotoAndPlay ("press");
delete eval (undefined);
} else if (cd < 0) {
cd = cekdelay;
ceklinks();
}
if (r.snap[0].hitTest(r._xmouse, r._ymouse)) {
if (!r.snap[0].follow) {
if (!ghosts._visible) {
ghosts._visible = true;
}
}
} else if (ghosts._visible) {
ghosts._visible = false;
}
}
};
stop();
Symbol 293 MovieClip Frame 6
if (!r.pressed) {
var i = 0;
while (i < r.free.length) {
var it = r.free[i];
if (it.z.hitTest(m2._xmouse + 275, m2._ymouse + 220, 1)) {
it.girlfollow();
break;
}
i++;
}
if (!r.pressed) {
if (r.snap[0].z.hitTest(m2._xmouse + 275, m2._ymouse + 220, 1)) {
r.pressed = r.snap[0];
r.snap[0].follow = 1;
r.snap[0]._rotation = (r.snap[0].ro = (r.snap[0].ronow = 0));
} else {
var i = 0;
while (i < r.snap.length) {
var it = r.snap[i];
if (it.z.hitTest(m2._xmouse + 275, m2._ymouse + 220, 1)) {
unsnap(it);
it.nocekclose = 30;
it.girlfollow();
break;
}
i++;
}
}
}
} else {
r.pressed.follow = 0;
var res = ceksnap(r.pressed);
if (res) {
if ((r.snap.length - 1) == r.form.length) {
var temp = [];
var i = 1;
while (i < r.snap.length) {
temp.push({xx:r.snap[i].pos.xx, yy:r.snap[i].pos.yy});
i++;
}
temp.sortOn(["xx", "yy"], [Array.DESCENDING, Array.NUMERIC]);
var ok = true;
var i = 0;
while (i < temp.length) {
if ((temp[i].xx == r.form[i].xx) and (temp[i].yy == r.form[i].yy)) {
} else {
ok = false;
break;
}
i++;
}
if (ok) {
r.formcomplete = 1;
}
}
} else {
r.free.push(r.pressed);
}
r.pressed = 0;
}
gotoAndPlay ("l");
Symbol 293 MovieClip Frame 12
r.finish = 1;
r.ang = r.ang + (r.totalgirl * r.nil);
m3.attachMovie("levelcleared", "levelcleared", r.popd, {_x:275, _y:230});
r.popd++;
r.zcomplete.start();
d = 30;
onEnterFrame = function () {
d--;
if (!d) {
gotoAndPlay ("chute");
}
};
stop();
Symbol 293 MovieClip Frame 20
var list = r.snap.slice();
unsnaplist(list);
n = 0;
r.snap[0].initchute();
d = (delay = 6);
onEnterFrame = function () {
d--;
if (!d) {
d = delay + random(10);
r.free[n].initchute();
n++;
if (n > r.free.length) {
d = 30;
onEnterFrame = function () {
d--;
if (!d) {
r.gotoAndPlay("next");
}
};
}
}
};
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 2
onEnterFrame = function () {
if (!r.finish) {
r.waktu = Math.max(1, r.waktu - 1);
b._xscale = (r.waktu / r.totalwaktu) * 100;
if (r.waktu <= 1) {
d = 50;
m3.attachMovie("allwhiteani", "allwhiteani", r.popd, {_x:275, _y:220});
r.popd++;
m3.attachMovie("outoftime", "outoftime", r.popd, {_x:275, _y:240});
r.popd++;
r.pressed.follow = 0;
delete r.drag.onEnterFrame;
onEnterFrame = function () {
d--;
if (d == 40) {
r.zWhaat.start();
}
if (!d) {
r.gotoAndPlay("end");
}
};
}
}
};
stop();
Symbol 309 Button
on (release) {
r.music = 0;
r.zloop.setVolume(0);
r.zhit.setVolume(0);
r.zwind.setVolume(0);
gotoAndStop (2);
}
Symbol 313 Button
on (release) {
r.music = 1;
r.zloop.setVolume(100);
r.zhit.setVolume(100);
r.zwind.setVolume(100);
gotoAndStop (1);
}
Symbol 314 MovieClip Frame 1
if (r.music) {
stop();
} else {
gotoAndStop (2);
}
Symbol 357 Button
on (press) {
r.ang = 0;
r.udamusik = 0;
r.gotoAndPlay("beginplaying");
}
Symbol 360 Button
on (press) {
r.udamusik = 0;
r.gotoAndPlay("unauthScoreSubmit");
}
Symbol 364 MovieClip Frame 1
if (r.ang <= 0) {
gotoAndStop (2);
} else {
stop();
}
Symbol 365 MovieClip Frame 1
vs = 5;
vol = r.zloop.getVolume();
if (vol > 0) {
onEnterFrame = function () {
vol = vol - vs;
if (vs > 0.5) {
vs = 0.95 * vs;
}
r.zloop.setVolume(vol);
if (vol <= 0) {
r.zloop.stop();
delete onEnterFrame;
}
};
}
Symbol 368 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 10);
};
Symbol 369 MovieClip Frame 1
n = 1;
onEnterFrame = function () {
d--;
if (!d) {
d = 10 + random(10);
ska = 20 + random(80);
this.attachMovie("heart", "heart" + n, n, {_x:random(550), _y:480, _xscale:ska, _yscale:ska});
n++;
}
};
stop();
Symbol 372 Button
on (press) {
r.level = (r.ang = 0);
r.udamusik = 0;
r.gotoAndPlay("beginplaying");
}
Symbol 400 Button
on (press) {
r.gotoAndPlay("unauthScoreSubmit");
}
Symbol 425 Button
on (press) {
r.gotoAndPlay("menu2");
}