Frame 1
MochiAd.showPreGameAd({id:"26ac2cdc692fe869", res:"640x480"});
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
stop();
Frame 2
_root.gotoAndPlay("logos");
Instance of Symbol 26 MovieClip in Frame 2
onClipEvent (enterFrame) {
myLoaded = Math.round(_root.getBytesLoaded());
myTotal = Math.round(_root.getBytesTotal());
myPercent = myLoaded / myTotal;
loadermask._width = myPercent * barra._width;
myPercent = Math.round(myPercent * 100);
percent.text = myPercent;
if (myLoaded == myTotal) {
}
}
Frame 4
stop();
Frame 5
stopAllSounds();
Frame 6
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__("b3795fa8", this, 10301, true);
var mouseListener = new Object();
mouseListener.onMouseWheel = function (wheelNum) {
if (_root.menu.zoombtn.enabled == true) {
z = 0;
if (wheelNum < 0) {
z = -5;
}
if (wheelNum > 0) {
z = 5;
}
if ((_root.menu.zfactor + z) > 100) {
_root.menu.zfactor = 100;
} else if ((_root.menu.zfactor + z) < 25) {
_root.menu.zfactor = 25;
} else {
_root.menu.zfactor = _root.menu.zfactor + z;
}
_root.menu.zoombtn._x = _root.menu.zoomrail._x + (((_root.menu.zfactor - 25) * _root.menu.zoomrail._width) / 75);
_root.sholder._xscale = _root.menu.zfactor;
_root.sholder._yscale = _root.menu.zfactor;
}
};
Mouse.addListener(mouseListener);
pars = new Array();
pars[1] = 4;
pars[2] = 7;
pars[3] = 8;
pars[4] = 5;
pars[5] = 3;
pars[6] = 7;
pars[7] = 6;
pars[8] = 9;
pars[9] = 14;
pars[10] = 5;
pars[11] = 9;
pars[12] = 9;
pars[13] = 10;
pars[14] = 10;
pars[15] = 10;
pars[16] = 8;
pars[17] = 15;
pars[18] = 11;
golf_cookie = SharedObject.getLocal("feronato");
if (golf_cookie.data.scores == undefined) {
golf_cookie.data.scores = new Array();
i = 1;
while (i < 19) {
golf_cookie.data.scores[i] = 0;
i++;
}
golf_cookie.data.currentstage = 0;
golf_cookie.data.laststage = 0;
golf_cookie.data.firststage = 0;
}
scores = new Array();
i = 1;
while (i < 19) {
scores[i] = golf_cookie.data.scores[i];
i++;
}
currentstage = golf_cookie.data.currentstage;
laststage = golf_cookie.data.laststage;
firststage = golf_cookie.data.firststage;
singlehole = false;
createEmptyMovieClip("snd1mc", _root.getNextHighestDepth());
createEmptyMovieClip("snd2mc", _root.getNextHighestDepth());
createEmptyMovieClip("snd3mc", _root.getNextHighestDepth());
createEmptyMovieClip("snd4mc", _root.getNextHighestDepth());
createEmptyMovieClip("snd5mc", _root.getNextHighestDepth());
createEmptyMovieClip("snd6mc", _root.getNextHighestDepth());
createEmptyMovieClip("snd7mc", _root.getNextHighestDepth());
tee = new Sound(snd1mc);
tee.attachSound("tee");
nottee = new Sound(snd2mc);
nottee.attachSound("nottee");
beamsound = new Sound(snd3mc);
beamsound.attachSound("beamsound");
zoomsound = new Sound(snd4mc);
zoomsound.attachSound("zooming");
fiusound = new Sound(snd5mc);
fiusound.attachSound("fiusound");
ambient = new Sound(snd6mc);
ambient.attachSound("funky");
ambient.setVolume(70);
musicvol = 70;
ambient2 = new Sound(this);
ambient2.attachSound("jazzy");
Frame 32
stop();
Frame 54
stop();
Frame 57
_root.ambient2.stop();
_root.ambient2.start(0, 999);
stop();
Frame 91
gotoAndPlay (144);
Frame 92
_root.chocho = true;
Frame 119
stop();
Frame 143
if (_root.chocho == true) {
gotoAndPlay (144);
} else {
_root.singlehole = false;
_root.gotoAndStop("mainmenu");
}
Frame 144
_root.menu.zoombtn.enabled = false;
_root.menu.resetglow._visible = true;
_root.menu.resetbutton._visible = false;
_root.menu.resetbutton.enabled = false;
_root.menu.holetext.text = _root.currentstage;
_root.menu.partext.text = _root.pars[_root.currentstage];
_root.createEmptyMovieClip("sholder", _root.getNextHighestDepth());
sholder.attachMovie("Level" + currentstage, "stage", getNextHighestDepth());
menu.swapDepths(sholder);
sholder._visible = false;
sholder.stage._x = sholder.stage._x - 320;
sholder.stage._y = sholder.stage._y - 240;
sholder._x = sholder._x + 320;
sholder._y = sholder._y + 240;
_root.sholder._xscale = 10;
_root.sholder._yscale = 10;
_root.sholder.stage.ball._visible = false;
playing = false;
_root.createEmptyMovieClip("popupholder", _root.getNextHighestDepth());
popupholder.attachMovie("popup" + currentstage, "popup", getNextHighestDepth());
_root.popupholder.swapDepths(_root.scoretable);
_root.popupholder._x = 320;
_root.popupholder._y = 215;
_root.strokecount = 0;
stop();
Instance of Symbol 583 MovieClip "menu" in Frame 144
onClipEvent (load) {
zfactor = 85;
zoom = false;
active = true;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
if (_root.sholder.stage.ball.stopd == false) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - (((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * zfactor) / 100) - 230) / 4);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - (((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * zfactor) / 100) + 240) / 4);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - (((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * zfactor) / 100) - 100) / 4);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - (((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * zfactor) / 100) + 150) / 4);
}
}
if (_root.sholder.stage.ball.pressed == false) {
if ((active == false) && (((downbtn.hitTest(_root._xmouse, _root._ymouse) || (upbtn.hitTest(_root._xmouse, _root._ymouse))) || (rightbtn.hitTest(_root._xmouse, _root._ymouse))) || (leftbtn.hitTest(_root._xmouse, _root._ymouse)))) {
active = false;
} else {
active = true;
}
upbtn._visible = true;
downbtn._visible = true;
leftbtn._visible = true;
rightbtn._visible = true;
} else {
active = false;
upbtn._visible = false;
downbtn._visible = false;
leftbtn._visible = false;
rightbtn._visible = false;
}
if (active == true) {
if (_root.sholder.stage.ball.pressed == false) {
if (upbtn.hitTest(_root._xmouse, _root._ymouse) || (Key.isDown(38))) {
_root.sholder.stage._y = _root.sholder.stage._y + ((((100 - zfactor) / 100) * 24) + 10);
}
if (downbtn.hitTest(_root._xmouse, _root._ymouse) || (Key.isDown(40))) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((100 - zfactor) / 100) * 24) + 10);
}
if (rightbtn.hitTest(_root._xmouse, _root._ymouse) || (Key.isDown(39))) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((100 - zfactor) / 100) * 24) + 10);
}
if (leftbtn.hitTest(_root._xmouse, _root._ymouse) || (Key.isDown(37))) {
_root.sholder.stage._x = _root.sholder.stage._x + ((((100 - zfactor) / 100) * 24) + 10);
}
}
}
if (zoom == true) {
zfactor = 25 + (75 * ((_root.menu.zoombtn._x - _root.menu.zoomrail._x) / _root.menu.zoomrail._width));
_root.sholder._xscale = zfactor;
_root.sholder._yscale = zfactor;
}
}
}
Frame 153
stop();
sholder._visible = true;
count = 0;
Instance of Symbol 584 MovieClip "blinker" in Frame 153
onClipEvent (load) {
_visible = false;
_root.menu.zoombtn.enabled = false;
}
onClipEvent (enterFrame) {
if (_root.count > 100) {
_root.ambient2.stop();
}
_root.count = _root.count + 4;
if (_root.count == 4) {
_root.zoomsound.start(0, 1);
}
if (((_root.sholder._xscale * 1.05) < 85) && (_root.count > 100)) {
_root.sholder._visible = true;
_root.sholder._xscale = _root.sholder._xscale * 1.05;
_root.sholder._yscale = _root.sholder._yscale * 1.05;
_root.menu.zoombtn._x = _root.menu.zoomrail._x + (((_root.sholder._xscale - 10) * _root.menu.zoomrail._width) / 90);
} else if (_root.count > 100) {
_root.sholder._xscale = 85;
_root.sholder._yscale = 85;
_root.menu.zoombtn.enabled = true;
_root.play();
}
}
Frame 163
stop();
_root.menu.zoombtn.enabled = true;
_root.sholder.stage.attachMovie("glower", "glower", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower._x = _root.sholder.stage.ball._x;
_root.sholder.stage.glower._y = _root.sholder.stage.ball._y;
Frame 173
stop();
ambient.start(0, 100);
playing = true;
_root.menu.resetglow._visible = false;
_root.menu.resetbutton._visible = true;
_root.menu.resetbutton.enabled = true;
Frame 183
playing = false;
_root.menu.upbtn._visible = false;
_root.menu.downbtn._visible = false;
_root.menu.leftbtn._visible = false;
_root.menu.rightbtn._visible = false;
_root.sholder.stage.ball._visible = false;
_root.currentstage = _root.currentstage + 1;
stop();
_root.ambient2.start(0, 999);
Instance of Symbol 641 MovieClip "scoretable" in Frame 183
onClipEvent (load) {
tablemc.playername.text = _root.playername;
format = new TextFormat();
this.swapDepths(_root.getNextHighestDepth());
i = _root.firststage;
while (i < (_root.currentstage - 1)) {
if (_root.scores[i] > 0) {
format.color = 16724736 /* 0xFF3300 */;
tablemc["holenum" + i].setTextFormat(format);
if (_root.scores[i] < 10) {
tablemc["score" + i].text = "+ " + _root.scores[i];
} else {
tablemc["score" + i].text = "+" + _root.scores[i];
}
}
if (_root.scores[i] < 0) {
format.color = 6749952 /* 0x66FF00 */;
tablemc["holenum" + i].setTextFormat(format);
if (_root.scores[i] > -10) {
tablemc["score" + i].text = "- " + Math.abs(_root.scores[i]);
} else {
tablemc["score" + i].text = "-" + Math.abs(_root.scores[i]);
}
}
if (_root.scores[i] == 0) {
format.color = 6750207 /* 0x66FFFF */;
tablemc["holenum" + i].setTextFormat(format);
tablemc["score" + i].text = " 0";
}
i++;
}
_root.scores[_root.currentstage - 1] = _root.strokecount - _root.pars[_root.currentstage - 1];
if (_root.scores[_root.currentstage - 1] > 0) {
format.color = 16724736 /* 0xFF3300 */;
tablemc["holenum" + (_root.currentstage - 1)].setTextFormat(format);
if (_root.scores[_root.currentstage - 1] < 10) {
tablemc["score" + (_root.currentstage - 1)].text = "+ " + _root.scores[_root.currentstage - 1];
} else {
tablemc["score" + (_root.currentstage - 1)].text = "+" + _root.scores[_root.currentstage - 1];
}
}
if (_root.scores[_root.currentstage - 1] < 0) {
format.color = 6749952 /* 0x66FF00 */;
tablemc["holenum" + (_root.currentstage - 1)].setTextFormat(format);
if (_root.scores[_root.currentstage - 1] > -10) {
tablemc["score" + (_root.currentstage - 1)].text = "- " + Math.abs(_root.scores[_root.currentstage - 1]);
} else {
tablemc["score" + (_root.currentstage - 1)].text = "-" + Math.abs(_root.scores[_root.currentstage - 1]);
}
}
if (_root.scores[_root.currentstage - 1] == 0) {
format.color = 6750207 /* 0x66FFFF */;
tablemc["holenum" + (_root.currentstage - 1)].setTextFormat(format);
tablemc["score" + (_root.currentstage - 1)].text = " 0";
}
i = _root.currentstage;
while (i < 19) {
tablemc["score" + i].text = "";
format.color = 6710886 /* 0x666666 */;
tablemc["holenum" + i].setTextFormat(format);
i++;
}
totalstrokes = 0;
totalscore = 0;
i = _root.firststage;
while (i < _root.currentstage) {
totalscore = totalscore + _root.scores[i];
i++;
}
if (totalscore > 0) {
if (totalscore < 10) {
tablemc.totalscore.text = "+ " + totalscore;
} else {
tablemc.totalscore.text = "+" + totalscore;
}
} else if (totalscore < 0) {
if (totalscore > -10) {
tablemc.totalscore.text = "- " + Math.abs(totalscore);
} else {
tablemc.totalscore.text = "-" + Math.abs(totalscore);
}
} else {
tablemc.totalscore.text = 0;
}
tablemc.totalscore.text = totalscore;
if (_root.currentstage > _root.laststage) {
tablemc.contbtn._visible = false;
tablemc.hiscorebtn._visible = true;
} else {
tablemc.contbtn._visible = true;
tablemc.hiscorebtn._visible = false;
}
i = 1;
while (i < 19) {
_root.golf_cookie.data.scores[i] = _root.scores[i];
i++;
}
_root.golf_cookie.data.currentstage = _root.currentstage;
if (_root.singlehole == true) {
tablemc.totalscore.text = "";
tablemc.contbtn._visible = false;
tablemc.hiscorebtn._visible = false;
i = _root.laststage;
_root.scores[i] = _root.strokecount - _root.pars[i];
if (_root.scores[i] > 0) {
format.color = 16724736 /* 0xFF3300 */;
tablemc["holenum" + i].setTextFormat(format);
if (_root.scores[i] < 10) {
tablemc["score" + i].text = "+ " + _root.scores[i];
} else {
tablemc["score" + i].text = "+" + _root.scores[i];
}
}
if (_root.scores[i] < 0) {
format.color = 6749952 /* 0x66FF00 */;
tablemc["holenum" + i].setTextFormat(format);
if (_root.scores[i] > -10) {
tablemc["score" + i].text = "- " + Math.abs(_root.scores[i]);
} else {
tablemc["score" + i].text = "-" + Math.abs(_root.scores[i]);
}
}
if (_root.scores[i] == 0) {
format.color = 6750207 /* 0x66FFFF */;
tablemc["holenum" + i].setTextFormat(format);
tablemc["score" + i].text = " 0";
}
}
_root.strokecount = 0;
i = 1;
while (i < 19) {
i++;
}
}
Symbol 12 Button
on (release) {
removeMovieClip(_root.popupholder);
_root.play();
}
Symbol 642 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.3");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local27);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
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.adLoaded = options.ad_loaded;
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) {
options.ad_failed();
_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 showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
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.adLoaded = options.ad_loaded;
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) {
options.ad_failed();
_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 showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_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 _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".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++;
}
}
if (_local4.id == "test") {
}
return(_local4);
}
}
Symbol 643 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 644 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 645 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 646 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 647 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 30 MovieClip Frame 40
if (Math.random() < 0.95) {
gotoAndPlay (1);
}
Symbol 30 MovieClip Frame 131
if (Math.random() > 0.5) {
gotoAndPlay (1);
}
Symbol 58 MovieClip Frame 26
gotoAndPlay(Math.round(Math.random() * 25));
Instance of Symbol 43 MovieClip in Symbol 59 MovieClip Frame 1
onClipEvent (load) {
var endsound = new Sound(this);
endsound.attachSound("beamsound");
var endsound2 = new Sound(applause);
endsound2.attachSound("applause");
done = false;
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
if (done == false) {
_root.sholder.stage.ball.endgame = true;
_root.sholder.stage.attachMovie("lightball", "lightball", _root.getNextHighestDepth());
_root.sholder.stage.lightball._x = _root.sholder.stage.ball._x;
_root.sholder.stage.lightball._y = _root.sholder.stage.ball._y;
lightning.stop();
endsound.setVolume(70);
endsound.setVolume(70);
endsound.start(0, 1);
endsound2.start(0, 1);
var ob = _root.sholder.stage.ball;
}
done = true;
ob.vx = 0;
ob.vy = 0;
ob.xgravity = 0;
ob.ygravity = 0;
_root.sholder.stage.ball._visible = false;
_root.sholder.stage.updateObject(ob);
}
}
Symbol 86 Button
on (press) {
_root.sholder.stage.ball.pressed = true;
}
on (release, releaseOutside) {
_root.sholder.stage.ball.pressed = false;
if (_root.sholder.stage.arrow.disableShot == false) {
_root.sholder.stage.ball.strikescount = _root.sholder.stage.ball.strikescount + 1;
_root.strokecount = _root.strokecount + 1;
_root.menu.stikestext.text = _root.sholder.stage.ball.strikescount;
_root.sholder.stage.ball.lstx = _root.sholder.stage.ball.p0.x;
_root.sholder.stage.ball.lsty = _root.sholder.stage.ball.p0.y;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel >= 30) {
vx = (30 * vx) / vel;
vy = (30 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
_root.sholder.stage.ball.vx = vx;
_root.sholder.stage.ball.vy = vy;
_root.tee.setVolume((Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2)) * 10) + 30);
_root.tee.start(0.75, 1);
_root.sholder.stage.ball.stopd = false;
_root.sholder.stage.ball.fuck = 3;
} else {
_root.nottee.setVolume(100);
_root.nottee.start(0, 1);
}
}
Symbol 95 MovieClip [Level1] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 33 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((_root.sholder.stage.ball._x + _root.sholder.stage._x) + 320, (_root.sholder.stage.ball._y + _root.sholder.stage._y) + 240)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 37 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.99;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.99;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 18 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 310.6;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.7;
bounc = 0.6;
W = 2291.7;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 483.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 398.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1205.7;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 612;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 61 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 496.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 552.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 952;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.7;
bounc = 0.6;
W = 1014.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.7;
bounc = 0.6;
W = 256.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 369.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.7;
bounc = 0.6;
W = 105.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 198;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 507.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 95 MovieClip [Level1] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 104 MovieClip [Level2] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 98 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 100 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0.8;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 37 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 647.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 270;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1011.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 412.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 738;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 677;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 948.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 337.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 138.7;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 231.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 104 MovieClip [Level2] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 110 MovieClip [Level3] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 106 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 1;
}
}
Instance of Symbol 33 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 108 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = -1;
}
}
Instance of Symbol 100 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 106 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 1;
}
}
Instance of Symbol 33 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 103 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 18 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 310.6;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 990.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 18 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 310.6;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 969.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 416.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 471.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 382.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1324.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 472.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1309.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 18 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 310.6;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 773.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 971.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 374.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 447;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 110 MovieClip [Level3] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 120 Button
on (release) {
removeMovieClip(_root.popupholder);
_root.play();
}
Symbol 147 MovieClip Frame 1
stop();
Symbol 170 MovieClip [lightball] Frame 65
_root.ambient.stop();
_root.ambient.setVolume(_root.musicvol);
removeMovieClip(this);
_root.gotoAndStop("endgame");
Symbol 171 MovieClip [glower] Frame 19
_root.sholder.stage.ball._visible = true;
_root.sholder.stage.ball._alpha = 25;
_root.sholder.stage.ball._xscale = 25;
_root.sholder.stage.ball._yscale = 25;
_root.sholder.stage.ball.pointer._visible = false;
Symbol 171 MovieClip [glower] Frame 27
_root.sholder.stage.ball._alpha = 40;
_root.sholder.stage.ball._xscale = 45;
_root.sholder.stage.ball._yscale = 45;
Symbol 171 MovieClip [glower] Frame 31
_root.sholder.stage.ball._alpha = 55;
_root.sholder.stage.ball._xscale = 65;
_root.sholder.stage.ball._yscale = 65;
Symbol 171 MovieClip [glower] Frame 34
_root.sholder.stage.ball._alpha = 70;
_root.sholder.stage.ball._xscale = 85;
_root.sholder.stage.ball._yscale = 85;
Symbol 171 MovieClip [glower] Frame 37
_root.sholder.stage.ball._alpha = 100;
_root.sholder.stage.ball._xscale = 100;
_root.sholder.stage.ball._yscale = 100;
_root.gotoAndPlay("startgame");
Symbol 171 MovieClip [glower] Frame 61
removeMovieClip(this);
Symbol 172 MovieClip [glower2] Frame 18
_root.sholder.stage.ball._visible = true;
_root.sholder.stage.ball.pointer._visible = false;
Symbol 172 MovieClip [glower2] Frame 27
_root.playing = true;
Symbol 172 MovieClip [glower2] Frame 59
_root.playing = true;
removeMovieClip(this);
Symbol 183 MovieClip [Level4] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 33 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 174 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 176 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 181 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = _root.sholder.stage.ball.vx / 5;
_root.sholder.stage.ball.xgravity = (-_root.sholder.stage.ball.vy) / 5;
}
}
Instance of Symbol 174 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 181 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = (-_root.sholder.stage.ball.vx) / 5;
_root.sholder.stage.ball.xgravity = _root.sholder.stage.ball.vy / 5;
}
}
Instance of Symbol 181 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = _root.sholder.stage.ball.vx / 5;
_root.sholder.stage.ball.xgravity = (-_root.sholder.stage.ball.vy) / 5;
}
}
Instance of Symbol 181 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = (-_root.sholder.stage.ball.vx) / 5;
_root.sholder.stage.ball.xgravity = _root.sholder.stage.ball.vy / 5;
}
}
Instance of Symbol 37 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1388.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 399.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 984.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 657.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1092.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 183 MovieClip [Level4] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 190 MovieClip [Level5] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 35 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 100 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.sholder.stage.ball.center)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 100 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 100 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 18 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 310.6;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 18 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 310.6;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 18 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 310.6;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1562.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1300.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 401.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 401.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 166.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 190 MovieClip [Level5] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 196 MovieClip [Level6] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 33 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 192 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 2;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 194 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if ((count > 100) && (count < 184)) {
_y = (_y - 5);
}
if ((count > 300) && (count < 384)) {
_y = (_y + 5);
}
if (count > 384) {
count = 0;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 100 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if ((count > 100) && (count < 184)) {
_y = (_y - 5);
}
if ((count > 300) && (count < 384)) {
_y = (_y + 5);
}
if (count > 384) {
count = 0;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if ((count > 100) && (count < 184)) {
_y = (_y - 5);
}
if ((count > 300) && (count < 384)) {
_y = (_y + 5);
}
if (count > 384) {
count = 0;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if ((count > 100) && (count < 184)) {
_y = (_y - 5);
}
if ((count > 300) && (count < 384)) {
_y = (_y + 5);
}
if (count > 384) {
count = 0;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 42 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 398.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 431.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 830.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 431.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 18 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 310.6;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 18 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 310.6;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 527.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 398.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 193.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 196 MovieClip [Level6] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 220 MovieClip Frame 13
gotoAndPlay(Math.round(Math.random() * 10));
Symbol 225 MovieClip Frame 1
stop();
Instance of Symbol 224 MovieClip in Symbol 225 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
count = 0;
}
onClipEvent (enterFrame) {
count = count + 0.5;
_root.sholder.stage.ball.lava.roller._rotation = _root.sholder.stage.ball.lava.roller._rotation + count;
_parent.sphere._rotation = _parent.sphere._rotation + (count / 2);
}
Symbol 225 MovieClip Frame 115
_root.sholder.stage.ball.vx = vx;
_root.sholder.stage.ball.vy = vy;
_root.sholder.stage.ball.xgravity = 0;
_root.sholder.stage.ball.ygravity = 0;
shot = true;
Instance of Symbol 224 MovieClip in Symbol 225 MovieClip Frame 115
onClipEvent (load) {
_visible = false;
count = 20;
}
onClipEvent (enterFrame) {
count = count - 0.5;
if (count > 0) {
_parent.sphere._rotation = _parent.sphere._rotation + count;
}
}
Symbol 225 MovieClip Frame 166
gotoAndStop (1);
shot = false;
Symbol 227 MovieClip [Level7] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 33 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 100 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 198 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 200 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 201 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 37 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 291.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 398.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 376.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 292.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 225 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
vx = 40;
vy = -5;
shot = false;
}
onClipEvent (enterFrame) {
if (this.sphere.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
dist = Math.sqrt(Math.pow(_root.sholder.stage.ball._y - _y, 2) + Math.pow(_root.sholder.stage.ball._x - _x, 2));
if (shot == false) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.6;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.6;
_root.sholder.stage.ball.ygravity = (-1.5 * (_root.sholder.stage.ball._y - _y)) / dist;
_root.sholder.stage.ball.xgravity = (-1.5 * (_root.sholder.stage.ball._x - _x)) / dist;
}
if (_currentframe <= 2) {
gotoAndPlay (2);
}
} else if (shot == false) {
gotoAndStop (1);
}
}
Instance of Symbol 103 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 563.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 336.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 595.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 550.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 696.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1099.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 508.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 226 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 226 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 42 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 80.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 226 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 225 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
vx = 0;
vy = -40;
shot = false;
}
onClipEvent (enterFrame) {
if (this.sphere.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
dist = Math.sqrt(Math.pow(_root.sholder.stage.ball._y - _y, 2) + Math.pow(_root.sholder.stage.ball._x - _x, 2));
if (shot == false) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.6;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.6;
_root.sholder.stage.ball.ygravity = (-1.5 * (_root.sholder.stage.ball._y - _y)) / dist;
_root.sholder.stage.ball.xgravity = (-1.5 * (_root.sholder.stage.ball._x - _x)) / dist;
}
if (_currentframe <= 2) {
gotoAndPlay (2);
}
} else if (shot == false) {
gotoAndStop (1);
}
}
Instance of Symbol 225 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
vx = 0;
vy = 40;
shot = false;
}
onClipEvent (enterFrame) {
if (this.sphere.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
dist = Math.sqrt(Math.pow(_root.sholder.stage.ball._y - _y, 2) + Math.pow(_root.sholder.stage.ball._x - _x, 2));
if (shot == false) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.6;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.6;
_root.sholder.stage.ball.ygravity = (-1.5 * (_root.sholder.stage.ball._y - _y)) / dist;
_root.sholder.stage.ball.xgravity = (-1.5 * (_root.sholder.stage.ball._x - _x)) / dist;
}
if (_currentframe <= 2) {
gotoAndPlay (2);
}
} else if (shot == false) {
gotoAndStop (1);
}
}
Instance of Symbol 225 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
vx = -40;
vy = 0;
shot = false;
}
onClipEvent (enterFrame) {
if (this.sphere.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
dist = Math.sqrt(Math.pow(_root.sholder.stage.ball._y - _y, 2) + Math.pow(_root.sholder.stage.ball._x - _x, 2));
if (shot == false) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.6;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.6;
_root.sholder.stage.ball.ygravity = (-1.5 * (_root.sholder.stage.ball._y - _y)) / dist;
_root.sholder.stage.ball.xgravity = (-1.5 * (_root.sholder.stage.ball._x - _x)) / dist;
}
if (_currentframe <= 2) {
gotoAndPlay (2);
}
} else if (shot == false) {
gotoAndStop (1);
}
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 227 MovieClip [Level7] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 234 MovieClip [Level8] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 35 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 229 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 100 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 230 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y + 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0.7;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y + 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -0.8;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y + 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y + 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y + 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 229 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -0.5;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 232 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 37 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 525.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 524.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 398.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 755.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 753;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 522.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 812.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 900.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1617;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 812.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 833;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 234 MovieClip [Level8] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 247 MovieClip [Level9] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 225 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
vx = -40;
vy = 0;
}
onClipEvent (enterFrame) {
if (this.sphere.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
dist = Math.sqrt(Math.pow(_root.sholder.stage.ball._y - _y, 2) + Math.pow(_root.sholder.stage.ball._x - _x, 2));
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.7;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.7;
_root.sholder.stage.ball.ygravity = (-4 * (_root.sholder.stage.ball._y - _y)) / dist;
_root.sholder.stage.ball.xgravity = (-4 * (_root.sholder.stage.ball._x - _x)) / dist;
if (_currentframe <= 2) {
gotoAndPlay (2);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 236 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 236 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 236 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 236 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 247 MovieClip [Level9] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 255 MovieClip [Level10] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 249 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 100) {
_x = (_x + 184);
}
if (count == 200) {
_y = (_y - 184);
}
if (count == 300) {
_y = (_y - 184);
}
if (count == 400) {
_x = (_x - 184);
}
if (count == 500) {
_y = (_y + 184);
}
if (count == 600) {
_y = (_y + 184);
count = 0;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = -1;
}
}
Instance of Symbol 251 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 100) {
_y = (_y - 184);
}
if (count == 200) {
_y = (_y - 184);
}
if (count == 300) {
_x = (_x - 184);
}
if (count == 400) {
_y = (_y + 184);
}
if (count == 500) {
_y = (_y + 184);
}
if (count == 600) {
_x = (_x + 184);
count = 0;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 1;
}
}
Instance of Symbol 229 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 100) {
_y = (_y - 184);
}
if (count == 200) {
_x = (_x - 184);
}
if (count == 300) {
_y = (_y + 184);
}
if (count == 400) {
_y = (_y + 184);
}
if (count == 500) {
_x = (_x + 184);
}
if (count == 600) {
_y = (_y - 184);
count = 0;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 230 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 100) {
_x = (_x - 184);
}
if (count == 200) {
_y = (_y + 184);
}
if (count == 300) {
_y = (_y + 184);
}
if (count == 400) {
_x = (_x + 184);
}
if (count == 500) {
_y = (_y - 184);
}
if (count == 600) {
_y = (_y - 184);
count = 0;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 249 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 100) {
_y = (_y + 184);
}
if (count == 200) {
_y = (_y + 184);
}
if (count == 300) {
_x = (_x + 184);
}
if (count == 400) {
_y = (_y - 184);
}
if (count == 500) {
_y = (_y - 184);
}
if (count == 600) {
_x = (_x - 184);
count = 0;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = -1;
}
}
Instance of Symbol 229 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 100) {
_y = (_y + 184);
}
if (count == 200) {
_x = (_x + 184);
}
if (count == 300) {
_y = (_y - 184);
}
if (count == 400) {
_y = (_y - 184);
}
if (count == 500) {
_x = (_x - 184);
}
if (count == 600) {
_y = (_y + 184);
count = 0;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 100) {
_y = (_y - 5.5);
} else {
count = 0;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 253 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 100) {
_y = (_y - 5.5);
} else {
count = 0;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1.5;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 106 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 1;
}
}
Instance of Symbol 33 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 100) {
_y = (_y - 5.5);
} else {
count = 0;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 103 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 59 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count > 100) {
_y = -1000;
_visible = false;
}
if (count > 200) {
_y = originy;
count = 0;
_visible = true;
}
}
Instance of Symbol 236 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 42 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 898.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 521.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 190.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 553.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 346.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 398.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 182.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1043.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 145.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1229.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 131.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 255 MovieClip [Level10] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 271 MovieClip [Level11] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 100 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
count = 0;
activate1 = false;
_root.sholder.stage.button1.glower._visible = false;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((activate1 == false) && (_root.sholder.stage.ball.walltype == 0.61)) {
activate1 = true;
_root.sholder.stage.button1.glower._visible = true;
}
if (activate1 == true) {
count = count + 0.5;
if (count < 100) {
_root.sholder.stage.button1.texter.text = Math.round(100 - count);
this._visible = true;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
} else {
_root.sholder.stage.button1.glower._visible = false;
count = 0;
activate1 = false;
this._visible = false;
_root.sholder.stage.button1.texter.text = 100;
}
} else if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 252 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 258 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 252 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 252 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 258 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
count = 0;
activate1 = false;
_root.sholder.stage.button2.glower._visible = false;
}
onClipEvent (enterFrame) {
if ((activate1 == false) && (_root.sholder.stage.ball.walltype == 0.62)) {
activate1 = true;
_root.sholder.stage.button2.glower._visible = true;
}
if (activate1 == true) {
count = count + 0.5;
if (count < 70) {
_root.sholder.stage.button2.texter.text = Math.round(70 - count);
this._visible = false;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
} else {
_root.sholder.stage.button2.glower._visible = false;
count = 0;
activate1 = false;
this._visible = true;
_root.sholder.stage.button2.texter.text = 70;
}
} else if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -4;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 236 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 252 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 260 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
count = 0;
activate1 = false;
_root.sholder.stage.button3.glower._visible = false;
}
onClipEvent (enterFrame) {
if ((activate1 == false) && (_root.sholder.stage.ball.walltype == 0.63)) {
_root.sholder.stage.ball.walltype = 0.6;
activate1 = true;
_root.sholder.stage.button3.glower._visible = true;
}
if (activate1 == true) {
count = count + 0.5;
if (count < 70) {
_root.sholder.stage.button3.texter.text = Math.round(70 - count);
this._visible = false;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
} else {
_root.sholder.stage.button3.glower._visible = false;
count = 0;
activate1 = false;
this._visible = true;
_root.sholder.stage.button3.texter.text = 70;
}
} else if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -4;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 238 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 486.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 174.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 269 MovieClip "button1" in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.97;
bounc = 0.61;
W = 90;
H = 27.9;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 429.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 217.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 680.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 500.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 248.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 989;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 178.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 269 MovieClip "button2" in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.97;
bounc = 0.62;
W = 90;
H = 27.9;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 167.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 460.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 229.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 269 MovieClip "button3" in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.97;
bounc = 0.63;
W = 90;
H = 27.9;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 61 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 449.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 271 MovieClip [Level11] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 275 MovieClip [Level12] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 33 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 269 MovieClip "button1" in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.97;
bounc = 0.61;
W = 90;
H = 27.9;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 253 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 253 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 100 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 100 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 18 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 310.6;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 18 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 310.6;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 98 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 253 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 274 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sholder.stage.ball.center) == false) {
count++;
if (count < 80) {
_x = (_x - 3);
}
if ((count > 80) && (count < 160)) {
_x = (_x + 3);
}
if (count > 160) {
count = 0;
}
}
}
Instance of Symbol 37 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 398.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 2630.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 2802.7;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.7;
bounc = 0.6;
W = 825.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.7;
bounc = 0.6;
W = 336.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 180.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.7;
bounc = 0.6;
W = 311.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.7;
bounc = 0.6;
W = 159.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 61 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
fric = 0.5;
bounc = 0.5;
W = 208.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 275 MovieClip [Level12] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 283 MovieClip [Level13] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = -1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = 1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 279 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 0;
_root.sholder.stage.ball.ygravity = 0;
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 277 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.xgravity = 1 * Math.sin((this._rotation / 180) * Math.PI);
_root.sholder.stage.ball.ygravity = -1 * Math.cos((this._rotation / 180) * Math.PI);
}
}
Instance of Symbol 37 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 262.1;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 176.3;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 150;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 55;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 283 MovieClip [Level13] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 295 MovieClip [Level14] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 285 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.95;
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 285 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.95;
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 287 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 289 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 33 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 103 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 270;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 270;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 292 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 294 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 103 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 270;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1253.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 412.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 103 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 270;
H = 13;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 181 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = (-0.5 * _root.sholder.stage.ball.vx) / 5;
_root.sholder.stage.ball.xgravity = (0.5 * _root.sholder.stage.ball.vy) / 5;
}
}
Instance of Symbol 37 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 181 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = (-0.6 * _root.sholder.stage.ball.vx) / 5;
_root.sholder.stage.ball.xgravity = (0.6 * _root.sholder.stage.ball.vy) / 5;
}
}
Instance of Symbol 181 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
count = 0;
activate1 = false;
_root.sholder.stage.button1.glower._visible = false;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((activate1 == false) && (_root.sholder.stage.ball.walltype == 0.61)) {
activate1 = true;
_root.sholder.stage.ball.walltype = 0.6;
_root.sholder.stage.button1.glower._visible = true;
}
if (activate1 == true) {
count = count + 0.5;
if (count < 25) {
_root.sholder.stage.button1.texter.text = Math.round(25 - count);
this._visible = true;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = (-0.5 * _root.sholder.stage.ball.vx) / 5;
_root.sholder.stage.ball.xgravity = (0.5 * _root.sholder.stage.ball.vy) / 5;
}
} else {
_root.sholder.stage.button1.glower._visible = false;
count = 0;
activate1 = false;
this._visible = false;
_root.sholder.stage.button1.texter.text = 25;
}
} else if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 238 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 37 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1253.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 130.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 181 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = (-0.5 * _root.sholder.stage.ball.vx) / 5;
_root.sholder.stage.ball.xgravity = (0.5 * _root.sholder.stage.ball.vy) / 5;
}
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Instance of Symbol 181 MovieClip in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = (0.45 * _root.sholder.stage.ball.vx) / 5;
_root.sholder.stage.ball.xgravity = (-0.45 * _root.sholder.stage.ball.vy) / 5;
}
}
Instance of Symbol 269 MovieClip "button1" in Symbol 295 MovieClip [Level14] Frame 1
onClipEvent (load) {
fric = 0.97;
bounc = 0.61;
W = 90;
H = 27.9;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Symbol 306 MovieClip [Level15] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 298 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 300 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = -2;
}
}
Instance of Symbol 33 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 226 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 302 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 304 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 1;
}
}
Instance of Symbol 35 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 368.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1456.7;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 337.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 152.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 309.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 278.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 314.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 558.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 61 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 88.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 61 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.3;
bounc = 0.3;
W = 282.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 1206.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 623.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 275.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 232.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 451.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 253.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 306 MovieClip [Level15] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 312 MovieClip [Level16] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 308 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 310 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 308 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 42 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 175.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.99;
bounc = 0.85;
W = 1148.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 187.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 175.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 666;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.99;
bounc = 0.85;
W = 1148.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 180.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.99;
bounc = 0.85;
W = 1148.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 180.8;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.99;
bounc = 0.85;
W = 1148.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.99;
bounc = 0.85;
W = 1148.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.99;
bounc = 0.85;
W = 559.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.99;
bounc = 0.85;
W = 1148.2;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 186.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.99;
bounc = 0.85;
W = 393.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 176.7;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 186.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 823.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 312 MovieClip [Level16] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Symbol 317 MovieClip [Level17] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 314 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
d = Math.sqrt(Math.pow(_root.sholder.stage.ball._x - _x, 2) + Math.pow(_root.sholder.stage.ball._y - _y, 2));
_root.sholder.stage.ball.ygravity = (_y - _root.sholder.stage.ball._y) / d;
_root.sholder.stage.ball.xgravity = (_x - _root.sholder.stage.ball._x) / d;
}
}
Instance of Symbol 315 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
var ob = _root.sholder.stage.ball;
ob.vx = 0;
ob.vy = 0;
ob.xgravity = 0;
ob.ygravity = 0;
ob.p0.x = _root.sholder.stage.ball.lstx;
ob.p0.y = _root.sholder.stage.ball.lsty;
_root.sholder.stage.ball._x = _root.sholder.stage.ball.lstx;
_root.sholder.stage.ball._y = _root.sholder.stage.ball.lsty;
_root.sholder.stage.updateObject(ob);
_root.sholder.stage.ball._xscale = 100;
_root.sholder.stage.ball._yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = _root.sholder.stage.ball.lstx;
_root.sholder.stage.glower2._y = _root.sholder.stage.ball.lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * zfactor) / 100) + 150);
}
i++;
}
}
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Instance of Symbol 37 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 189 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:0.9, f:0.9};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:0.3, f:0.3};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 317 MovieClip [Level17] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Symbol 322 MovieClip [Level18] Frame 1
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function updateVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function updateObject(v) {
v.p1 = {};
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
v.rx = -v.vy;
v.ry = v.vx;
v.lx = v.vy;
v.ly = -v.vx;
}
function findIntersection(v1, v2) {
var _local3 = {};
_local3.vx = v1.p1.x - v2.p0.x;
_local3.vy = v1.p1.y - v2.p0.y;
var _local7 = (_local3.vx * v2.dx) + (_local3.vy * v2.dy);
if (_local7 < 0) {
_root.cornet = true;
var _local6 = _local3;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local7 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local7 > 0) {
_root.cornet = true;
var _local6 = _local4;
} else {
_root.cornet = false;
var _local6 = projectVector(_local3, v2.lx, v2.ly);
}
}
return(_local6);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
cornet = false;
var vectors = 0;
v = new Array();
Instance of Symbol 33 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 319 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
count = 0;
activate1 = false;
_root.sholder.stage.button3.glower._visible = true;
_root.sholder.stage.button3.texter.text = "on";
this._visible = false;
}
onClipEvent (enterFrame) {
if ((activate1 == false) && (_root.sholder.stage.ball.walltype == 0.63)) {
activate1 = true;
_root.sholder.stage.button3.glower._visible = false;
_root.sholder.stage.button3.texter.text = "off";
}
if (activate1 == true) {
this._visible = false;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
} else {
this._visible = true;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = -0.8;
}
}
}
Instance of Symbol 226 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 229 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1.1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 35 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
count = 0;
originx = _x;
originy = _y;
}
onClipEvent (enterFrame) {
count++;
if (count < 234) {
_y = (_y - 5);
}
if (count > 234) {
count = 0;
_x = originx;
_y = originy;
}
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 252 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 174 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 181 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = _root.sholder.stage.ball.vx / 5;
_root.sholder.stage.ball.xgravity = (-_root.sholder.stage.ball.vy) / 5;
}
}
Instance of Symbol 35 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
count = 0;
activate1 = false;
_root.sholder.stage.button1.glower._visible = false;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((activate1 == false) && (_root.sholder.stage.ball.walltype == 0.61)) {
activate1 = true;
_root.sholder.stage.button1.glower._visible = true;
} else if ((activate1 == true) && (_root.sholder.stage.ball.walltype == 0.62)) {
activate1 = false;
_root.sholder.stage.button1.glower._visible = false;
}
if (activate1 == true) {
this._visible = true;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
} else {
this._visible = false;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
}
Instance of Symbol 100 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
count = 0;
activate1 = false;
_root.sholder.stage.button1.glower._visible = false;
_root.sholder.stage.button2.glower._visible = true;
this._visible = false;
_root.sholder.stage.button1.texter.text = "off";
_root.sholder.stage.button2.texter.text = "on";
}
onClipEvent (enterFrame) {
if ((activate1 == false) && (_root.sholder.stage.ball.walltype == 0.61)) {
activate1 = true;
_root.sholder.stage.button1.glower._visible = true;
_root.sholder.stage.button2.glower._visible = false;
_root.sholder.stage.button1.texter.text = "on";
_root.sholder.stage.button2.texter.text = "off";
} else if ((activate1 == true) && (_root.sholder.stage.ball.walltype == 0.62)) {
activate1 = false;
_root.sholder.stage.button1.glower._visible = false;
_root.sholder.stage.button2.glower._visible = true;
_root.sholder.stage.button1.texter.text = "off";
_root.sholder.stage.button2.texter.text = "on";
}
if (activate1 == true) {
this._visible = true;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
} else {
this._visible = false;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
}
Instance of Symbol 98 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
count = 0;
activate1 = false;
_root.sholder.stage.button1.glower._visible = false;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((activate1 == false) && (_root.sholder.stage.ball.walltype == 0.61)) {
activate1 = true;
_root.sholder.stage.button1.glower._visible = true;
} else if ((activate1 == true) && (_root.sholder.stage.ball.walltype == 0.62)) {
activate1 = false;
_root.sholder.stage.button1.glower._visible = false;
}
if (activate1 == true) {
this._visible = true;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = -1;
_root.sholder.stage.ball.xgravity = 0;
}
} else {
this._visible = false;
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 1;
_root.sholder.stage.ball.xgravity = 0;
}
}
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 531;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 412.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 295;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 665.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 410.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 697.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 315.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 679.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 294.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 289.4;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 340.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 174.3;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 37 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 554.7;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 692.9;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 706.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 238 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 426.6;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 233.7;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 225 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
vx = 25;
vy = 0;
shot = false;
}
onClipEvent (enterFrame) {
if (this.sphere.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
dist = Math.sqrt(Math.pow(_root.sholder.stage.ball._y - _y, 2) + Math.pow(_root.sholder.stage.ball._x - _x, 2));
if (shot == false) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.6;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.6;
_root.sholder.stage.ball.ygravity = (-1.5 * (_root.sholder.stage.ball._y - _y)) / dist;
_root.sholder.stage.ball.xgravity = (-1.5 * (_root.sholder.stage.ball._x - _x)) / dist;
}
if (_currentframe <= 2) {
gotoAndPlay (2);
}
} else if (shot == false) {
gotoAndStop (1);
}
}
Instance of Symbol 238 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 238 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 238 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-_rotation) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-_rotation) * Math.PI) / 180);
}
}
Instance of Symbol 242 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 90)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 90)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 135)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 135)) * Math.PI) / 180);
}
}
Instance of Symbol 240 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.vx = _root.sholder.stage.ball.vx * 0.99;
_root.sholder.stage.ball.vy = _root.sholder.stage.ball.vy * 0.99;
_root.sholder.stage.ball.ygravity = 1 * Math.cos(((-1 * (_rotation - 45)) * Math.PI) / 180);
_root.sholder.stage.ball.xgravity = 1 * Math.sin(((-1 * (_rotation - 45)) * Math.PI) / 180);
}
}
Instance of Symbol 37 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 246 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 554.7;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 226 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 226 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 320, (((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 240, true)) {
_root.sholder.stage.ball.ygravity = 0;
_root.sholder.stage.ball.xgravity = 0;
}
}
Instance of Symbol 63 MovieClip [trail] "trail" in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
if (_root.sholder.stage.ball.endgame == false) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if ((this._name == "trail") && (this._visible == true)) {
this._visible = false;
} else {
this._alpha = this._alpha - 15;
if (this._alpha <= 5) {
removeMovieClip(this);
}
}
}
Instance of Symbol 65 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.playing == true) {
corning = false;
var ob = _root.sholder.stage.ball;
_root.sholder.stage.updateObject(ob);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(ob, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if ((pen >= 0) && (_root.cornet == false)) {
corning = false;
_root.sholder.stage.ball.walltype = w.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (v.dx * pen);
ob.p1.y = ob.p1.y + (v.dy * pen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:v.lx, dy:v.ly, lx:v.dx, ly:v.dy, b:w.b, f:w.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
} else if ((pen >= 0) && (_root.cornet == true)) {
cw = w;
cv = v;
cpen = pen;
corning = true;
}
ob.p0 = ob.p1;
i++;
}
if (corning == true) {
_root.sholder.stage.ball.walltype = cw.b;
_root.sholder.stage.ball.bounce = true;
ob.p1.x = ob.p1.x + (cv.dx * cpen);
ob.p1.y = ob.p1.y + (cv.dy * cpen);
ob._x = ob.p1.x;
ob._y = ob.p1.y;
vbounce = {dx:cv.lx, dy:cv.ly, lx:cv.dx, ly:cv.dy, b:cw.b, f:cw.f};
vb = _root.sholder.stage.bounce(ob, vbounce);
ob.vx = vb.vx;
ob.vy = vb.vy;
ob.p0 = ob.p1;
}
}
}
Instance of Symbol 72 MovieClip "arrow" in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
disableShot = false;
myColor = new Color(_root.sholder.stage.arrow);
}
onClipEvent (enterFrame) {
disableShot = false;
if (_root.sholder.stage.ball.pressed) {
this._visible = true;
this._x = _root.sholder.stage.ball._x;
this._y = _root.sholder.stage.ball._y;
angle = (Math.atan2(_root.sholder.stage.ball._y - _root.sholder.stage._ymouse, _root.sholder.stage.ball._x - _root.sholder.stage._xmouse) * 180) / Math.PI;
_rotation = angle;
vx = (_root.sholder.stage.ball._x - _root.sholder.stage._xmouse) / 5;
vy = (_root.sholder.stage.ball._y - _root.sholder.stage._ymouse) / 5;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (vel < 30) {
arrowin._xscale = (vel / 30) * 100;
arrowin._yscale = ((arrowin._xscale / 100) * 50) + 50;
} else {
arrowin._xscale = 100;
arrowin._yscale = 100;
}
var ob = _root.sholder.stage.ball;
u = {p0:{x:ob.p0.x, y:ob.p0.y}, p1:{x:ob.p0.x + ((15 * vx) / vel), y:ob.p0.y + ((15 * vy) / vel)}, b:1, f:1};
_root.sholder.stage.updateVector(u, true);
var i = 1;
while (i < (_root.sholder.stage.vectors + 1)) {
w = _root.sholder.stage.v[i];
v = _root.sholder.stage.findIntersection(u, w);
v = _root.sholder.stage.updateVector(v, false);
pen = ob.r - v.len;
if (pen >= 0.01) {
disableShot = true;
}
i++;
}
if (disableShot == true) {
_alpha = 35;
} else {
_alpha = 65;
}
} else {
this._visible = false;
}
}
Instance of Symbol 94 MovieClip [ball] "ball" in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
soundtimer = 0;
endgame = false;
strikescount = 0;
walltype = 1;
xgravity = 0;
ygravity = 0;
vx = 0;
vy = 0;
r = 15;
b = 1;
f = 1;
bounce = false;
stopping = false;
stopd = false;
pressed = false;
p0 = {x:this._x, y:this._y};
ballbtn.enabled = false;
fuck = 0;
count = 0;
lstx = _x;
lsty = _y;
this.swapDepths(5000);
lastroll = 1;
}
onClipEvent (enterFrame) {
if (vx == 0) {
lava.roller._rotation = lava.roller._rotation + lastroll;
} else {
lastroll = vx / Math.abs(vx);
if (Math.abs(vx) > 1) {
lava.roller._rotation = lava.roller._rotation + vx;
} else {
lava.roller._rotation = lava.roller._rotation + lastroll;
}
}
count++;
if (count > 1000) {
count = 1;
}
if ((((this._y > _root.sholder.stage.sizer._height) || (this._y < (-_root.sholder.stage.sizer._height))) || (this._x > _root.sholder.stage.sizer._width)) or (this._x < (-_root.sholder.stage.sizer._width))) {
if (_xscale > 99) {
_root.fiusound.start(0, 1);
}
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_root.sholder.stage.trail._xscale = _root.sholder.stage.trail._xscale - 2;
_root.sholder.stage.trail._yscale = _root.sholder.stage.trail._yscale - 2;
if (_xscale < 10) {
vx = 0;
vy = 0;
xgravity = 0;
ygravity = 0;
p0.x = lstx;
p0.y = lsty;
_x = lstx;
_y = lsty;
_xscale = 100;
_yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.updateObject(this);
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = lstx;
_root.sholder.stage.glower2._y = lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * _root.menu.zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * _root.menu.zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * _root.menu.zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * _root.menu.zfactor) / 100) + 150);
}
i++;
}
}
}
if (_root.playing == true) {
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
ballbtn.enabled = false;
pointer._visible = false;
if (((bounce == true) && (stopping == true)) && (vel < 1)) {
pointer._visible = true;
stopd = true;
ballbtn.enabled = true;
} else {
stopd = false;
pressed = false;
}
stopping = false;
if (bounce == true) {
if ((stopd == false) && (fuck == false)) {
}
stopping = true;
bounce = false;
} else if (endgame == false) {
_x = (_x + vx);
_y = (_y + vy);
}
duplicateMovieClip (_root.sholder.stage.trail, "trail" + count, count + 1000);
_root.sholder.stage["trail" + count]._x = _x;
_root.sholder.stage["trail" + count]._y = _y;
vy = vy + ygravity;
vx = vx + xgravity;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
if (fuck == 0) {
if (vel >= 40) {
vx = (40 * vx) / vel;
vy = (40 * vy) / vel;
vel = Math.sqrt(Math.pow(vx, 2) + Math.pow(vy, 2));
}
if (vel > 15) {
r = vel + 1;
} else {
r = 15;
}
} else {
fuck = fuck - 1;
}
}
}
Instance of Symbol 269 MovieClip "button1" in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.97;
bounc = 0.61;
W = 90;
H = 27.9;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 269 MovieClip "button2" in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.97;
bounc = 0.62;
W = 90;
H = 27.9;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 269 MovieClip "button3" in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.97;
bounc = 0.63;
W = 90;
H = 27.9;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 315.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 42 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.6;
W = 122.1;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 60 MovieClip in Symbol 322 MovieClip [Level18] Frame 1
onClipEvent (load) {
fric = 0.9;
bounc = 0.9;
W = 963;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Symbol 336 MovieClip Frame 13
gotoAndPlay(Math.round(Math.random() * 10));
Instance of Symbol 347 MovieClip in Symbol 348 MovieClip [popup9] Frame 1
onClipEvent (load) {
fric = 0.6;
bounc = 0.45;
W = 143.5;
H = 18;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Instance of Symbol 357 MovieClip "button1" in Symbol 358 MovieClip [popup11] Frame 1
onClipEvent (load) {
fric = 0.97;
bounc = 0.61;
W = 90;
H = 27.9;
R = Math.sqrt(Math.pow(W / 2, 2) + Math.pow(H / 2, 2));
theta = -Math.atan(H / W);
angle = ((_rotation - 180) / 180) * Math.PI;
p1x = Math.round(this._x + (Math.cos(angle + theta) * R));
p1y = Math.round(this._y + (Math.sin(angle + theta) * R));
p2x = Math.round(this._x + (Math.cos((angle + Math.PI) - theta) * R));
p2y = Math.round(this._y + (Math.sin((angle + Math.PI) - theta) * R));
p3x = Math.round(this._x + (Math.cos((angle + Math.PI) + theta) * R));
p3y = Math.round(this._y + (Math.sin((angle + Math.PI) + theta) * R));
p4x = Math.round(this._x + (Math.cos(angle - theta) * R));
p4y = Math.round(this._y + (Math.sin(angle - theta) * R));
_root.sholder.stage.v[_root.sholder.stage.vectors + 1] = {p0:{x:p1x, y:p1y}, p1:{x:p2x, y:p2y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 2] = {p0:{x:p2x, y:p2y}, p1:{x:p3x, y:p3y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 3] = {p0:{x:p3x, y:p3y}, p1:{x:p4x, y:p4y}, b:bounc, f:fric};
_root.sholder.stage.v[_root.sholder.stage.vectors + 4] = {p0:{x:p4x, y:p4y}, p1:{x:p1x, y:p1y}, b:bounc, f:fric};
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 1], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 2], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 3], true);
_root.sholder.stage.updateVector(_root.sholder.stage.v[_root.sholder.stage.vectors + 4], true);
_root.sholder.stage.vectors = _root.sholder.stage.vectors + 4;
}
Symbol 380 Button
on (release, releaseOutside) {
_root.cool.b1.enabled = true;
_root.cool.b2.enabled = true;
_root.cool.b3.enabled = true;
_root.cool.b4.enabled = true;
_root.cool.b5.enabled = true;
_root.cool.resumebtn.enabled = true;
removeMovieClip(_root.instholder);
}
Symbol 416 MovieClip Frame 202
_root.play();
Symbol 432 MovieClip Frame 1
function LOGO_IN() {
var _local1 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Strong.easeIn, -75, 85, 12, false);
_local1.onMotionFinished = function () {
LOGO_SMASH();
var _local3 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Bounce.easeOut, 60, 85, 6, false);
var _local4 = new mx.transitions.Tween(AGlogo_mc, "_x", mx.transitions.easing.Bounce.easeOut, 30, 50, 6, false);
var _local2 = new mx.transitions.Tween(AGpresented_mc, "_y", mx.transitions.easing.Bounce.easeOut, 15, 25, 6, false);
var _local1 = new mx.transitions.Tween(AGpresented_mc, "_x", mx.transitions.easing.Bounce.easeOut, 110, 100, 6, false);
};
}
function LOGO_SMASH() {
AG_SMASH.start();
AGclick_btn._visible = true;
}
function AG_HOLD_COUNTER() {
if (AG_COUNT == AG_TIME) {
clearInterval(AG_HOLD_ID);
_level0.START_ping.broadcastMessage("presented");
this.unloadMovie();
_root.play();
} else {
AG_COUNT++;
}
}
_parent.stop();
var AG_SMASH = new Sound();
AG_SMASH.attachSound("Smash");
var AG_COUNT = 0;
var AG_TIME = 4;
var AG_HOLD_ID;
AG_HOLD_ID = setInterval(this, "AG_HOLD_COUNTER", 1000);
AGpresented_mc._alpha = 0;
AGclick_btn._visible = false;
AGlogo_mc._y = -70;
var AGpresented_IN = (new mx.transitions.Tween(AGpresented_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 12, false));
AGpresented_IN.onMotionFinished = function () {
LOGO_IN();
};
AGskip_btn.onRelease = function () {
AG_COUNT = AG_TIME;
AG_HOLD_COUNTER();
};
AGclick_btn.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
Symbol 441 Button
on (release, releaseOutside) {
if (nameinp.text != "") {
_parent.play();
}
}
Symbol 444 MovieClip Frame 38
if (Math.random() < 0.95) {
gotoAndPlay (1);
}
Symbol 445 Button
on (release, releaseOutside, keyPress "<Enter>") {
if (nameinp.text != "") {
_root.playername = nameinp.text;
_parent.play();
}
}
Symbol 446 MovieClip Frame 25
Selection.setFocus("_root.inputer.nameinp");
stop();
Symbol 455 Button
on (release, releaseOutside) {
_root.play();
}
Symbol 458 Button
on (release, releaseOutside) {
_root.singlehole = false;
_root.currentstage = 1;
_root.firststage = 1;
_root.laststage = 9;
_root.scores = new Array();
i = 1;
while (i < 19) {
_root.scores[i] = 0;
_root.golf_cookie.data.scores[i] = 0;
i++;
}
_root.strokecount = 0;
_root.golf_cookie.data.currentstage = _root.currentstage;
_root.golf_cookie.data.laststage = _root.laststage;
_root.golf_cookie.data.firststage = _root.firststage;
_root.play();
}
Symbol 461 Button
on (release, releaseOutside) {
_root.singlehole = false;
_root.currentstage = 10;
_root.firststage = 10;
_root.laststage = 18;
_root.scores = new Array();
i = 1;
while (i < 19) {
_root.scores[i] = 0;
_root.golf_cookie.data.scores[i] = 0;
i++;
}
_root.strokecount = 0;
_root.golf_cookie.data.currentstage = _root.currentstage;
_root.golf_cookie.data.laststage = _root.laststage;
_root.golf_cookie.data.firststage = _root.firststage;
_root.play();
}
Symbol 465 Button
on (release, releaseOutside) {
_root.singlehole = false;
_root.currentstage = 1;
_root.firststage = 1;
_root.laststage = 18;
_root.scores = new Array();
i = 1;
while (i < 19) {
_root.scores[i] = 0;
_root.golf_cookie.data.scores[i] = 0;
i++;
}
_root.strokecount = 0;
_root.golf_cookie.data.currentstage = _root.currentstage;
_root.golf_cookie.data.laststage = _root.laststage;
_root.golf_cookie.data.firststage = _root.firststage;
_root.play();
}
Symbol 469 Button
on (release, releaseOutside) {
_root.singlehole = true;
_root.gotoAndPlay("levelselect");
}
Symbol 472 Button
on (release, releaseOutside) {
b1.enabled = false;
b2.enabled = false;
b3.enabled = false;
b4.enabled = false;
b5.enabled = false;
_root.mmenu.resumebtn.enabled = false;
_root.createEmptyMovieClip("instholder", _root.getNextHighestDepth());
_root.instholder.attachMovie("instructions", "iii", _root.getNextHighestDepth());
_root.instholder._x = 320;
_root.instholder._y = 215;
}
Symbol 474 MovieClip Frame 105
_root.play();
Symbol 485 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
Symbol 493 MovieClip Frame 38
if (Math.random() < 0.95) {
gotoAndPlay (1);
}
Symbol 496 MovieClip Frame 38
if (Math.random() < 0.92) {
gotoAndPlay (1);
}
Symbol 499 MovieClip Frame 38
if (Math.random() < 0.94) {
gotoAndPlay (1);
}
Symbol 549 Button
on (release, releaseOutside) {
_root.chocho = false;
_root.play();
}
Symbol 551 Button
on (release, releaseOutside) {
_root.currentstage = levnum.text;
_root.laststage = levnum.text;
_root.scores = new Array();
i = 1;
while (i < 19) {
scores[i] = 0;
i++;
}
_root.strokecount = 0;
_root.play();
}
on (rollOver) {
format = new TextFormat();
format.color = 16776960 /* 0xFFFF00 */;
levnum.setTextFormat(format);
}
on (rollOut) {
format = new TextFormat();
format.color = 10053120 /* 0x996600 */;
levnum.setTextFormat(format);
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "1";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "2";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "3";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "4";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "5";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "6";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "7";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "8";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "9";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "10";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "11";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "12";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "13";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "14";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "15";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "16";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "17";
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
levnum.text = "18";
}
Symbol 559 Button
on (press) {
startDrag (musicvol, false, _root.menu.pausemenu.mmm.musicrail._x, _root.menu.pausemenu.mmm.musicrail._y, _root.menu.pausemenu.mmm.musicrail._x + _root.menu.pausemenu.mmm.musicrail._width, _root.menu.pausemenu.mmm.musicrail._y);
_root.menu.pausemenu.mmm.musicrail.dragging = true;
}
on (release, releaseOutside) {
_root.menu.pausemenu.mmm.musicrail.dragging = false;
stopDrag();
}
Symbol 565 Button
on (release, releaseOutside) {
_root.menu.pausemenu.play();
}
Symbol 569 Button
on (release, releaseOutside) {
_root.menu.pausemenu.exiting = true;
_root.menu.pausemenu.play();
}
Instance of Symbol 504 MovieClip "musicrail" in Symbol 570 MovieClip Frame 1
onClipEvent (load) {
dragging = false;
}
onClipEvent (enterFrame) {
if (dragging == true) {
vol = (100 * (_root.menu.pausemenu.mmm.musicvol._x - this._x)) / this._width;
if (vol < 0) {
vol = 0;
}
_root.musicvol = vol;
_root.ambient.setVolume(vol);
} else {
_root.menu.pausemenu.mmm.musicvol._x = _x + ((_root.ambient.getVolume() / 100) * _width);
_root.ambient.setVolume(_root.musicvol);
}
}
Symbol 571 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 2
_root.playing = false;
_root.menu.resetbutton.enabled = false;
_root.menu.resetbutton._visible = false;
_root.menu.zoombtn.enabled = false;
_root.menu.resetglow._visible = true;
_root.menu.upbtn._visible = false;
_root.menu.downbtn._visible = false;
_root.menu.leftbtn._visible = false;
_root.menu.rightbtn._visible = false;
Symbol 571 MovieClip Frame 19
_root.playing = false;
_root.menu.resetbutton.enabled = false;
_root.menu.resetbutton._visible = false;
_root.menu.zoombtn.enabled = false;
_root.menu.resetglow._visible = true;
_root.menu.upbtn._visible = false;
_root.menu.downbtn._visible = false;
_root.menu.leftbtn._visible = false;
_root.menu.rightbtn._visible = false;
Symbol 571 MovieClip Frame 21
stop();
Symbol 571 MovieClip Frame 36
if (_root.menu.pausemenu.exiting == false) {
_root.playing = true;
_root.menu.resetbutton.enabled = true;
_root.menu.resetbutton._visible = true;
_root.menu.zoombtn.enabled = true;
_root.menu.resetglow._visible = false;
_root.menu.upbtn._visible = true;
_root.menu.downbtn._visible = true;
_root.menu.leftbtn._visible = true;
_root.menu.rightbtn._visible = true;
} else {
stopAllSounds();
_root.gotoAndStop("mainmenu");
removeMovieClip(_root.menu);
removeMovieClip(this);
}
Symbol 573 Button
on (press) {
startDrag (zoombtn, false, _root.menu.zoomrail._x, _root.menu.zoomrail._y, _root.menu.zoomrail._x + _root.menu.zoomrail._width, _root.menu.zoomrail._y);
_root.menu.zoom = true;
}
on (release, releaseOutside) {
stopDrag();
_root.menu.zoom = false;
}
Symbol 578 Button
on (press) {
pausemenu.play();
}
Symbol 580 Button
on (press) {
var ob = _root.sholder.stage.ball;
ob.vx = 0;
ob.vy = 0;
ob.xgravity = 0;
ob.ygravity = 0;
ob.p0.x = _root.sholder.stage.ball.lstx;
ob.p0.y = _root.sholder.stage.ball.lsty;
_root.sholder.stage.ball._x = _root.sholder.stage.ball.lstx;
_root.sholder.stage.ball._y = _root.sholder.stage.ball.lsty;
_root.sholder.stage.updateObject(ob);
_root.sholder.stage.ball._xscale = 100;
_root.sholder.stage.ball._yscale = 100;
_root.sholder.stage.trail._xscale = 100;
_root.sholder.stage.trail._yscale = 100;
_root.sholder.stage.attachMovie("glower2", "glower2", getNextHighestDepth());
_root.beamsound.start(0, 1);
_root.sholder.stage.glower2._x = _root.sholder.stage.ball.lstx;
_root.sholder.stage.glower2._y = _root.sholder.stage.ball.lsty;
i = 0;
while (i < 10) {
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * zfactor) / 100) > 230) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * zfactor) / 100) - 230);
}
if ((((_root.sholder.stage._x + _root.sholder.stage.ball._x) * zfactor) / 100) < -240) {
_root.sholder.stage._x = _root.sholder.stage._x - ((((_root.sholder.stage.ball._x + _root.sholder.stage._x) * zfactor) / 100) + 240);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * zfactor) / 100) > 100) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * zfactor) / 100) - 100);
}
if ((((_root.sholder.stage._y + _root.sholder.stage.ball._y) * zfactor) / 100) < -150) {
_root.sholder.stage._y = _root.sholder.stage._y - ((((_root.sholder.stage.ball._y + _root.sholder.stage._y) * zfactor) / 100) + 150);
}
i++;
}
}
Instance of Symbol 571 MovieClip "pausemenu" in Symbol 583 MovieClip Frame 1
onClipEvent (load) {
exiting = false;
}
Instance of Symbol 577 MovieClip "upbtn" in Symbol 583 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 577 MovieClip "downbtn" in Symbol 583 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 577 MovieClip "leftbtn" in Symbol 583 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 577 MovieClip "rightbtn" in Symbol 583 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 584 MovieClip Frame 1
_root.sholder._visible = !_root.sholder._visible;
Symbol 584 MovieClip Frame 2
_root.sholder._visible = !_root.sholder._visible;
Symbol 584 MovieClip Frame 6
_root.sholder._visible = !_root.sholder._visible;
Symbol 584 MovieClip Frame 8
_root.sholder._visible = !_root.sholder._visible;
Symbol 584 MovieClip Frame 11
_root.sholder._visible = !_root.sholder._visible;
Symbol 584 MovieClip Frame 16
_root.sholder._visible = !_root.sholder._visible;
Symbol 584 MovieClip Frame 17
_root.sholder._visible = !_root.sholder._visible;
Symbol 584 MovieClip Frame 23
_root.sholder._visible = !_root.sholder._visible;
Symbol 584 MovieClip Frame 26
stop();
Symbol 634 Button
on (release, releaseOutside) {
_root.scoretable.play();
_root.gotoAndStop("popup");
}
Symbol 636 Button
on (release, releaseOutside) {
_root.scoretable.play();
_root.gotoAndStop("mainmenu");
removeMovieClip(_root.menu);
removeMovieClip(this);
}
Symbol 639 Button
on (release, releaseOutside) {
_root.scoretable.play();
_root.gotoAndStop("mainmenu");
removeMovieClip(_root.menu);
removeMovieClip(this);
}
Symbol 641 MovieClip Frame 22
stop();
removeMovieClip(_root.sholder.stage);
Symbol 641 MovieClip Frame 41
removeMovieClip(this);
removeMovieClip(_root.menu);