Frame 1
currentDomain = _root._url.split("/");
currentDomain = currentDomain[2];
Frame 2
Stage.showMenu = false;
stop();
var getloadprogress;
onEnterFrame = function () {
loadprogress = (this.getBytesLoaded() / this.getBytesTotal()) * 100;
if (loadprogress >= 100) {
delete this.onEnterFrame;
play();
}
loading.progressbar._xscale = loadprogress;
};
Frame 9
function fadeInSound(sound, id) {
clearInterval(this[id]);
sound.start();
this[id] = setInterval(this, "fadeIn", 10, sound, id);
}
function fadeIn(sound, id) {
sound.setVolume(sound.getVolume() + 1);
if (sound.getVolume() >= soundVolume) {
clearInterval(this[id]);
}
}
function fadeOutSound(sound, id) {
clearInterval(this[id]);
this[id] = setInterval(this, "fadeOut", 10, sound, id);
}
function fadeOut(sound, id) {
sound.setVolume(sound.getVolume() - 1);
if (sound.getVolume() <= 0) {
clearInterval(this[id]);
sound.stop();
}
}
function playSoundLoop(sound, times) {
sound.setVolume(100);
sound.start(0, times);
}
function playSound(sound) {
sound.setVolume(100);
sound.start(0, 1);
}
var PATH = "http://www.robotjamgames.com/starlings/";
var GAMENAME = "starlings";
so = SharedObject.getLocal("starlings");
if (so.data.bestScore == undefined) {
so.data.bestScore = 0;
}
this.createEmptyMovieClip("soundholder1", 10000);
this.createEmptyMovieClip("soundholder2", 10001);
this.createEmptyMovieClip("soundholder3", 10002);
this.createEmptyMovieClip("soundholder2", 10003);
this.createEmptyMovieClip("soundholder3", 10004);
this.createEmptyMovieClip("cheerholder", 10005);
this.createEmptyMovieClip("swingholder", 10005);
loop1 = new Sound(soundholder1);
loop1.attachSound("loop1");
loop1.setVolume(0);
loop2 = new Sound(soundholder2);
loop2.attachSound("loop2");
loop2.setVolume(0);
loop3 = new Sound(soundholder3);
loop3.attachSound("loop3");
loop3.setVolume(0);
swing = new Sound(swingholder);
swing.attachSound("swing");
swing.setVolume(100);
cheer = new Sound(cheerholder);
cheer.attachSound("cheer");
cheer.setVolume(100);
var id1;
var id2;
var id3;
var id4;
var id5;
var soundVolume = 100;
fadeInSound(loop1, "id1");
loop1.onSoundComplete = function () {
loop1.start(0, 999);
};
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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__("56996170", this, 10301, true);
Frame 10
stop();
if (currentDomain == "www.robotjam.com") {
titleScreen.legitlogo._visible = false;
}
highScoreBox._visible = false;
playGame.onRelease = function () {
fadeOutSound(loop1, "id1");
gotoAndPlay ("fade");
};
instructions.onRelease = function () {
gotoAndPlay ("instructs");
};
sendtofriend.onRelease = function () {
gotoAndPlay ("send");
};
highScores.onRelease = function () {
gotoAndPlay ("highscores");
};
Frame 30
highScoreBox.sorry._visible = false;
highScoreBox._visible = true;
highScoreBox.loading.gotoAndPlay(1);
highScoreBox.loading._visible = true;
highScoreBox.yourBest = so.data.bestScore;
myVars = new LoadVars();
myVars.onLoad = function (success) {
if (success) {
highScoreBox.loading._visible = false;
LoadHighScores();
} else {
highScoreBox.sorry._visible = true;
}
};
rn = Math.round(Math.random() * 1000000);
myVars.load((PATH + "get_score.php?flash=1?game=") + GAMENAME, 0);
back.onPress = function () {
highScoreBox._visible = false;
gotoAndPlay ("options");
};
var scorePos = 0;
highScoreBox.scoreUp.onRelease = function () {
if (this._parent._parent.scorePos != 0) {
this._parent._parent.scorePos--;
this._parent._parent.LoadHighScores();
}
};
highScoreBox.scoreDown.onRelease = function () {
if (this._parent._parent.scorePos != 4) {
this._parent._parent.scorePos++;
this._parent._parent.LoadHighScores();
}
};
initialScores = function () {
var _local1 = 1;
while (_local1 <= 50) {
if (myVars["name" + _local1] == undefined) {
myVars["name" + _local1] = "none";
myVars["score" + _local1] = 0;
}
_local1++;
}
};
LoadHighScores = function () {
var _local1 = 1;
while (_local1 <= 10) {
initialScores();
highScoreBox["num" + _local1] = _local1 + (scorePos * 10);
highScoreBox["name" + _local1] = myVars["name" + ((scorePos * 10) + _local1)];
highScoreBox["score" + _local1] = myVars["score" + ((scorePos * 10) + _local1)];
_local1++;
}
};
stop();
Frame 46
stop();
back.onRelease = function () {
gotoAndPlay ("options");
};
Frame 62
stop();
back.onRelease = function () {
gotoAndPlay ("options");
};
Frame 87
stop();
Frame 96
stop();
var choice = 0;
yourScore.scoreText.text = score;
so.data.yourScore = score;
this.createEmptyMovieClip("highSender", this.getNextHighestDepth());
if (score > so.data.bestScore) {
trace("new best");
so.data.bestScore = score;
}
this.yourScore.submitCover.bestScore.text = so.data.bestScore;
yourScore.backMenu.onPress = function () {
play();
};
yourScore.submit._alpha = 50;
yourScore.submit.enabled = false;
yourScore.submit.onRelease = function () {
highSender.pass = "blobscores";
highSender.playerName = yourScore.nameText;
highSender.score = score;
highSender.gameName = GAMENAME;
highSender.loadVariables(PATH + "new_score.php", "POST");
choice = 1;
play();
};
onEnterFrame = function () {
if (yourScore.nameText != eval("NULL")) {
yourScore.submit._alpha = 100;
yourScore.submit.enabled = true;
}
};
fadeInSound(loop1, "id1");
fadeOutSound(loop2, "id2");
fadeOutSound(loop3, "id3");
Frame 100
MochiAd.showTimedAd({id:"2726466339f868e2", res:"610x550"});
Frame 103
if (choice == 0) {
gotoAndStop ("options");
} else {
gotoAndPlay ("highscores");
}
Symbol 9 Button
on (release) {
getURL ("http://www.robotjam.com/", "_blank");
}
Symbol 305 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = options.ad_msec;
delete options.ad_msec;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local15 = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = options.ad_msec;
delete options.ad_msec;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function load(options) {
var _local14 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local14);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.3";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(false);
}
if (_local7._mochiad_loaded) {
return(false);
}
var _local13 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local13);
var _local12 = _getRes(options);
options.res = (_local12[0] + "x") + _local12[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local11 = _local4.server;
delete _local4.server;
var _local10 = _local11.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local10);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local10);
}
}
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local10;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local11 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 81 MovieClip Frame 20
gotoAndPlay (2);
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 10
stop();
Symbol 113 Button
on (release) {
sendToFriend.loadVariables(_root.PATH + "starling_email.php", "POST");
sendemail._visible = false;
sendToFriend.gotoAndStop("sent");
}
Symbol 149 MovieClip Frame 21
gotoAndPlay ("hungry");
Symbol 149 MovieClip Frame 112
gotoAndPlay ("hungry");
Symbol 158 MovieClip Frame 1
this._visible = false;
stop();
Symbol 162 MovieClip Frame 6
stop();
Symbol 162 MovieClip Frame 9
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 25
gotoAndPlay (1);
Symbol 171 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 15
stop();
Symbol 207 MovieClip Frame 4
stop();
Symbol 208 MovieClip Frame 1
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 253 MovieClip Frame 21
gotoAndPlay ("hungry");
Symbol 253 MovieClip Frame 26
randBurp = Math.round(Math.random() * 2);
if (randBurp == 0) {
randBurp = 1;
}
gotoAndPlay("fed" + randBurp);
Symbol 253 MovieClip Frame 78
gotoAndPlay ("hungry");
Symbol 253 MovieClip Frame 131
gotoAndStop ("hungry");
Symbol 253 MovieClip Frame 152
gotoAndStop ("hungry");
Symbol 256 MovieClip Frame 1
hotSpot._alpha = 0;
Symbol 256 MovieClip Frame 12
stop();
Symbol 256 MovieClip Frame 25
stop();
Symbol 268 MovieClip Frame 1
hotSpot._alpha = 0;
Symbol 268 MovieClip Frame 12
stop();
Symbol 268 MovieClip Frame 25
stop();
Symbol 280 MovieClip Frame 1
hotSpot._alpha = 0;
Symbol 280 MovieClip Frame 12
stop();
Symbol 280 MovieClip Frame 25
stop();
Symbol 287 MovieClip Frame 1
stop();
var holes = 0;
this._parent.score = 0;
course1info.playCourse.onRelease = function () {
play();
};
_parent.fadeInSound(_parent.loop2, "id2");
_parent.playSound(_parent.cheer);
_parent.loop2.onSoundComplete = function () {
_parent.playSoundLoop(_parent.loop3, 1);
};
_parent.loop3.onSoundComplete = function () {
_parent.playSoundLoop(_parent.loop2, 4);
};
Symbol 287 MovieClip Frame 5
function newBlob() {
this["blob" + active].play();
active++;
this["blob" + active].play();
}
function newLevel() {
switch (holes) {
case 7 :
holes++;
shotSpeed = 65;
active = 1;
alienTest = 0;
alienCounter = 0;
alienPlay = Math.round(Math.random() * 300) + 200;
play();
break;
case 14 :
holes++;
shotSpeed = 40;
windBox._visible = true;
wind = true;
active = 1;
alienTest = 0;
alienCounter = 0;
alienPlay = Math.round(Math.random() * 300) + 200;
play();
break;
case 22 :
_parent.play();
break;
}
}
function resetValues(miss) {
ballShoot = 0;
calcWind();
pressed = 0;
windCounter = 0;
recordx = 0;
if (!miss) {
newBlob();
scoreCounter = 1000;
}
powerbar.gotoAndStop(1);
hitPlayer = 0;
ball.gotoAndPlay(2);
tested = 0;
ball._x = ballStartX;
ball._y = ballStartY;
ball._xscale = 180;
ball._yscale = 180;
ballShadow._x = shadowStartX;
ballShadow._y = shadowStartY;
ballShadow._yscale = 100;
ballShadow._xscale = 100;
ballShadow._alpha = 100;
points._x = this["blob" + active]._x + 10;
points._y = this["blob" + active]._y - 30;
scoreAnimPlay = 0;
newLevel();
}
function setStarlings() {
i = 1;
while (i <= 7) {
this["blob" + i].stop();
i++;
}
blob1.play();
}
function shadowMove() {
ballShadow._x = ball._x;
if (counter <= shotSpeed) {
ballShadow._y = (20 + ball._y) + (counter * SHADOWOFFSET);
} else {
ballShadow._y = ballShadow._y - 1;
}
}
function getHorizontal() {
if (arrow._currentframe <= 40) {
horizontalValue = 40 - arrow._currentframe;
} else if (arrow._currentframe > 40) {
horizontalValue = 40 - arrow._currentframe;
}
horizontalValue = horizontalValue * 6;
if (wind) {
horizontalValue = horizontalValue + windSpeed;
}
}
stop();
var horizontalValue = 0;
var verticalValue = 0;
var counter = 1;
var windCounter = 1;
var ballShoot = 0;
var pressed = 0;
var recordx = 0;
var windFrames = 1;
var STARTWIND = 600;
var WINDSTRENGTH = 200;
var SHADOWOFFSET = 1.8;
var ballStartX = ball._x;
var ballStartY = ball._y;
var shadowStartX = ballShadow._x;
var shadowStartY = ballShadow._y;
var shotCounter = 0;
var shotSpeed = 40;
var swapped = 0;
var active = 1;
var hitPlayer = 0;
var tested = 0;
var wind = false;
var scoreCounter = 1000;
var scoreAnimPlay = 0;
var alienTest = 0;
var alienCounter = 0;
var alienPlay = (Math.round(Math.random() * 300) + 200);
var bonusPlay = 0;
calcWind = function () {
windSpeed = (Math.round(Math.random() * WINDSTRENGTH) - (WINDSTRENGTH / 2)) * -1;
if (windSpeed <= 0) {
windBox.windDirection.gotoAndStop("left");
windBox.windSpeedText = windSpeed * -1;
} else {
windBox.windDirection.gotoAndStop("right");
windBox.windSpeedText = windSpeed;
}
};
easeInOutQuad = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
};
calcWind();
setStarlings();
windBox._visible = false;
points.stop();
onEnterFrame = function () {
if (!alienTest) {
alienCounter++;
if (alienCounter == alienPlay) {
alien._visible = true;
alien.play();
}
if (ball.hitTest(alien.alien.hotSpot)) {
alien.alien.body.mouth.gotoAndPlay("fed");
this._parent.score = this._parent.score + 5000;
bonusClip.play();
_parent.playSound(_parent.cheer);
bonusPlay = 1;
this._parent.scoreBox.scoreText.text = this._parent.score;
ball.gotoAndStop(1);
ballShadow._alpha = 0;
alienTest = 1;
}
if (alienCounter == (alienPlay + 300)) {
alienTest = 1;
}
}
scoreCounter = scoreCounter - 2;
tempMouse = this._xmouse;
arrow.gotoAndStop(Math.round(80 - (tempMouse / 7.6)));
if (!pressed) {
launch.onPress = function () {
if (!pressed) {
powerbar.play();
}
};
launch.onRelease = function () {
if (!pressed) {
shadowMove(counter, shotSpeed);
_parent.playSound(_parent.swing);
powerbar.stop();
verticalValue = -100 - (powerbar._currentframe * 20);
getHorizontal();
counter = 1;
ballShoot = 1;
pressed = 1;
}
};
}
if (ballShoot == 1) {
counter++;
shadowMove();
if (((counter > shotSpeed) && (ball.hitTest(this["blob" + active].hotSpot))) && (!tested)) {
tested = 1;
ball.play();
holes++;
scoreClip.play();
this["blob" + active].body.mouth.gotoAndPlay("fed");
ballShadow._alpha = 0;
}
if (tested == 1) {
hitPlayer++;
if (!scoreAnimPlay) {
scoreAnimPlay = 1;
this._parent.score = this._parent.score + scoreCounter;
this._parent.scoreBox.scoreText.text = this._parent.score;
points.pointsAnim.points.text = scoreCounter;
points.play();
}
if (hitPlayer == 30) {
resetValues(0);
}
}
if ((counter == (shotSpeed + 15)) && (!tested)) {
if (!bonusPlay) {
this["blob" + active].body.mouth.gotoAndPlay("miss");
missClip.play();
}
bonusPlay = 0;
resetValues(1);
}
if (counter < (shotSpeed + 15)) {
if (counter < shotSpeed) {
ball._xscale = easeInOutQuad(counter, 180, -100, shotSpeed);
ball._yscale = easeInOutQuad(counter, 180, -100, shotSpeed);
ballShadow._xscale = easeInOutQuad(counter, 100, -50, shotSpeed);
ballShadow._yscale = easeInOutQuad(counter, 100, -50, shotSpeed);
}
newy = easeInOutQuad(counter, ballStartY, verticalValue, shotSpeed);
newx = easeInOutQuad(counter, ballStartX, horizontalValue, 60);
ball._y = newy;
ball._x = newx;
}
}
};
Symbol 287 MovieClip Frame 11
stop();
course1info.playCourse.onRelease = function () {
scoreCounter = 1000;
play();
};
resetValues(1);
setStarlings();
Symbol 287 MovieClip Frame 17
stop();
Symbol 287 MovieClip Frame 23
stop();
course1info.playCourse.onRelease = function () {
scoreCounter = 1000;
play();
};
resetValues(1);
setStarlings();
Symbol 287 MovieClip Frame 29
stop();