Frame 1
function setLogo() {
logo.hold = false;
}
function ld_wait() {
this.onEnterFrame = function () {
if (bull1.clock.value == 0) {
delete this.onEnterFrame;
bull1.clock.unloadMovie();
_root.gotoAndStop("intro");
}
};
}
var core = (new uk.co.dronecorp.tween.TweenCore());
_global.root = this;
var mp = MovieClip.prototype;
mp.tween = function (args, typ, cb) {
root.core.addTween(this, args, typ, cb);
};
mp.wait = function (dur, cb) {
root.core.addTween(this, {}, ["dft", dur], cb);
};
mp.isTweening = function () {
return(root.core.isTweening(this));
};
delete mp;
uk.co.dronecorp.tween.TweenStore.bounce = com.robertpenner.easing.Bounce.easeOut;
uk.co.dronecorp.tween.TweenStore.back = com.robertpenner.easing.Back.easeOut;
uk.co.dronecorp.tween.TweenStore.linear = com.robertpenner.easing.Linear.easeNone;
uk.co.dronecorp.tween.TweenStore.quadInOut = com.robertpenner.easing.Quad.easeInOut;
var mp = MovieClip.prototype;
mp.toggle = function () {
uk.co.dronecorp.movieclip.MovieClip_.toggleVisible(this);
};
mp.remove = function () {
uk.co.dronecorp.movieclip.MovieClip_.remove(this);
};
mp.gotoPlay = function (frame) {
uk.co.dronecorp.movieclip.MovieClip_.gotoPlay(this, frame);
};
mp.gotoStop = function (frame) {
uk.co.dronecorp.movieclip.MovieClip_.gotoStop(this, frame);
};
delete mp;
var ty = logo._y;
logo.hold = true;
logo._y = -200;
logo.tween({_y:ty}, ["back", 1, 1], ["setLogo"]);
ty = bull1._y;
bull1._y = 600;
bull1.tween({_y:ty, _rotation:7}, ["back", 1, 1]);
this.onEnterFrame = function () {
var _local2 = 360 - ((this.getBytesLoaded() / this.getBytesTotal()) * 360);
bull1.clock.tween({value:_local2}, ["dft", 1.75]);
if (this.getBytesLoaded() == this.getBytesTotal()) {
ld_wait();
}
};
stop();
Frame 12
function resetMenu() {
bull1.onRollOut();
bull2.onRollOut();
bull3.onRollOut();
bull4.onRollOut();
}
function doSlate() {
if (!firstUse) {
firstUse = true;
logo.tween({_y:-200}, ["dft", 0.25]);
bull1.tween({_rotation:0, _x:155, _y:70}, ["dft", 0.5]);
bull4.tween({_rotation:0, _x:90, _y:157}, ["dft", 0.5]);
bull2.tween({_rotation:0, _x:155, _y:243}, ["dft", 0.5]);
bull3.tween({_rotation:0, _x:90, _y:330}, ["dft", 0.5]);
}
onSlate.tween({_y:30}, ["quadInOut", 1]);
offSlate.tween({_y:offSlate.oY}, ["quadInOut", 1]);
onSlate = ((onSlate == slate1) ? (slate2) : (slate1));
offSlate = ((offSlate == slate1) ? (slate2) : (slate1));
}
function setGame() {
onSlate.tween({_y:onSlate.oY}, ["dft", 1], ["onSlate.toggle"]);
offSlate.tween({_y:offSlate.oY}, ["dft", 1], ["offSlate.toggle"]);
bull1.tween({_rotation:0, _x:-220, _y:70}, ["dft", 0.5]);
bull4.tween({_rotation:0, _x:-220, _y:157}, ["dft", 0.5]);
bull2.tween({_rotation:0, _x:-220, _y:243}, ["dft", 0.5]);
bull3.tween({_rotation:0, _x:-220, _y:330}, ["dft", 0.5]);
}
bull1.txt.text = "PLAY";
bull2.txt.text = "WIN";
bull3.txt.text = "HI-SCORES";
bull4.txt.text = "HOW TO";
bull1.tween({_rotation:-7, _yscale:100, _xscale:100, _x:75, _y:275}, ["back", 0.5, 1]);
bull2.tween({_rotation:-7, _yscale:100, _xscale:100, _x:350, _y:290}, ["back", 0.5, 1]);
bull3.tween({_rotation:-4, _yscale:100, _xscale:100, _x:500, _y:340}, ["back", 0.5, 1]);
bull4.tween({_rotation:10, _yscale:100, _xscale:100, _x:200, _y:340}, ["back", 0.5, 1]);
slate1.oY = 420;
slate2.oY = -370;
onSlate = slate1;
offSlate = slate2;
bull1.onPress = function () {
doSlate();
setGame();
hold = false;
resetMenu();
firstUse = true;
gotoAndStop ("game");
if (_currentframe == 21) {
init();
}
};
bull2.onPress = function () {
if (hold != this) {
hold = this;
onSlate.gotoAndStop("prizes");
doSlate();
resetMenu();
}
};
bull3.onPress = function () {
if (hold != this) {
hold = this;
onSlate.gotoAndStop("hiScores");
doSlate();
resetMenu();
}
};
bull4.onPress = function () {
if (hold != this) {
hold = this;
onSlate.gotoAndStop("howTo");
doSlate();
resetMenu();
}
};
bull1.onRollOver = (bull2.onRollOver = (bull3.onRollOver = (bull4.onRollOver = function () {
if (hold != this) {
this.gotoAndPlay("aro");
}
})));
bull1.onRollOut = (bull2.onRollOut = (bull3.onRollOut = (bull4.onRollOut = function () {
if (hold != this) {
this.gotoAndStop("start");
}
})));
stop();
Frame 21
function circle(mc, rad, fill, stroke) {
with (mc) {
var x = 0;
var y = 0;
var radius = rad;
var theta = (Math.PI/4);
var ctrlRadius = (radius / Math.cos(theta / 2));
if (stroke) {
lineStyle(2, stroke);
}
beginFill(fill, 100);
moveTo(x + radius, y);
var angle = 0;
var i = 0;
while (i < 8) {
angle = angle + theta;
angleMid = angle - (theta / 2);
cx = x + (Math.cos(angleMid) * ctrlRadius);
cy = y + (Math.sin(angleMid) * ctrlRadius);
px = x + (Math.cos(angle) * radius);
py = y + (Math.sin(angle) * radius);
curveTo(cx, cy, px, py);
i++;
}
endFill();
}
}
function init() {
wind = 0;
camera = 0;
depth = 0;
clock.degrees = 0;
clock.fillClock();
var c = {rb:0, gb:0, bb:0};
var col = new Color(_root.bg);
col.setTransform(c);
var col = new Color(_root.base);
col.setTransform(c);
var col = new Color(_root.sky);
col.setTransform(c);
gameWon = false;
gameOn = false;
game = "";
girl_gfk._xscale = 20;
girl_gfk._x = girl._x;
light_gfk._x = 500 + (Math.random() * 1000);
light._x = light_gfk._x + 4;
thief._x = (thief2._x = (thief_gfk._x = 1000 + (Math.random() * 500)));
thief._x = thief._x + 8;
thief2._x = thief2._x + 2;
pint._x = (pint_gfk._x = thief._x + 300);
pint._x = pint._x + 4;
decks._x = (decks_gfk._x = 2300 + (Math.random() * 500));
decks._x = decks._x + 2;
dj._x = (dj2._x = (dj_gfk._x = decks._x - 300));
dj2._height = 80;
hits = {total:0};
score = 0;
scoreFld.txt.text = "0000";
trails.clear();
man._visible = true;
girl_gfk._visible = true;
dj_gfk.gotoAndStop(1);
pint_gfk.gotoAndStop(1);
thief_gfk.gotoAndStop(1);
light_gfk.gotoAndStop(1);
with (walls) {
floorY = 325;
fT = -200;
var fL = -100;
fR = 3000;
lineStyle(1, 16777215);
moveTo(fL, floorY);
lineTo(fL, floorY);
lineTo(fR, floorY);
moveTo(fL, fT);
lineTo(fL, fT);
lineTo(fR, fT);
moveTo(fR, fT);
lineTo(fR, floorY);
moveTo(fL, fT);
lineTo(fL, floorY);
}
light_gfk._y = fT + 20;
light._y = fT + 30;
lightHit = false;
bg._x = -500;
sky._y = -368;
sky._height = 369;
base._width = (sky._width = (bg._width = fR + 1000));
base._height = 300;
scoreFld._y = scoreFld._y - 200;
clock._y = clock._y - 200;
clock.tween({_y:clock._y + 200});
scoreFld.tween({_y:scoreFld._y + 200});
man._x = man._x - 600;
girl_gfk._x = girl_gfk._x + 600;
man.tween({_x:man._x + 600}, ["back", 1, 1]);
girl_gfk.tween({_x:girl_gfk._x - 600}, ["back", 1, 1]);
if (!targs_shown) {
targs_show1();
} else {
show_markers();
}
targ_light._alpha = (targ_decks._alpha = (targ_pint._alpha = 100));
targ_light._visible = (targ_decks._visible = (targ_pint._visible = true));
targ_light._xscale = (targ_light._yscale = (targ_pint._xscale = (targ_pint._yscale = (targ_decks._xscale = (targ_decks._yscale = 0)))));
}
function targs_show1() {
targs_shown = true;
intro_on = true;
_root.wait(1.75, ["tween", {_x:(-light._x) + 320, _y:(-light._y) + 200}, null, ["targs_show2"]]);
}
function targs_show2() {
_root.wait(1.75, ["tween", {_x:(-pint._x) + 320, _y:(-pint._y) + 200}, null, ["targs_show3"]]);
}
function targs_show3() {
_root.wait(1.75, ["tween", {_x:(-decks._x) + 320, _y:(-decks._y) + 200}, null, ["targs_return"]]);
}
function targs_return() {
_root.wait(1.75, ["tween", {_x:0, _y:0}, null, ["show_markers"]]);
}
function show_markers() {
intro_on = false;
targ_light.wait(0.75, [targ_light + ".tween", {_xscale:49.6, _yscale:49.6}, ["back", 1, 1]]);
targ_pint.wait(0.5, [targ_pint + ".tween", {_xscale:75.9, _yscale:75.9}, ["back", 1, 1]]);
targ_decks.wait(0.25, [targ_decks + ".tween", {_xscale:100, _yscale:100}, ["back", 1, 1]]);
}
function doScore(num, targ) {
if ((targ != undefined) && (!hits[targ + "hit"])) {
score = score + num;
hits[targ + "hit"] = true;
hits.total++;
if (hits.total == 3) {
doWin();
}
} else if (targ == undefined) {
score = score + num;
}
if (score < -1000) {
score = -1000;
}
scoreFld.txt.text = leadZero(score, 3);
}
function doWin() {
gameWon = true;
clock.stopClock();
bonus = 3000 - Math.round((clock.degrees / 360) * 3000);
}
function playAnim(arg, mc) {
if (hits[arg + "hit"]) {
return(undefined);
}
anims._x = ((arg == "win") ? (mc._x + 40) : (mc._x + 20));
anims._y = ((arg == "win") ? (mc._y - 53) : (mc._y + 50));
anims._xscale = (anims._yscale = 0);
anims.tween({_xscale:100, _yscale:100}, ["dft", 0.75]);
anims.gotoAndStop(arg);
}
function kiss() {
for (obj in aros) {
aros[obj].removeMovieClip();
}
girl_gfk._xscale = -20;
girl_gfk.tween({_x:200}, ["linear", 0.75], ["playAnim", "win", _root.man]);
}
function endGame() {
girl_gfk._visible = false;
man._visible = false;
slate1._visible = true;
slate2._visible = true;
onSlate.gotoAndStop("gameWin");
doSlate();
anims.tween({_xscale:0, _yscale:0}, ["dft", 0.75]);
bull2.wait(2, [bull2 + ".tween", {_rotation:0, _x:140, _y:130, _yscale:100, _xscale:100}, ["dft", 0.5]]);
bull3.wait(2, [bull3 + ".tween", {_rotation:0, _x:80, _y:230, _yscale:100, _xscale:100}, ["dft", 0.5]]);
bull1.wait(2, [bull1 + ".tween", {_rotation:0, _x:140, _y:330, _yscale:100, _xscale:100}, ["dft", 0.5]]);
}
init();
var mp = MovieClip.prototype;
mp.leadZero = function (num, unit) {
return(uk.co.dronecorp.string.String_.leadZero(num, unit));
};
delete mp;
stop();
Instance of Symbol 140 MovieClip "man" in Frame 21
on (press) {
if (_root.gameWon || (_root.intro_on)) {
return(undefined);
}
drag = true;
this.arm.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = this._x;
_root.sign._y = this._y - 65;
leng = 3;
radian = 0;
if (!_root.gameOn) {
_root.gameOn = true;
_root.clock.startClock(90);
}
}
onClipEvent (enterFrame) {
if (drag) {
ymo = (-_ymouse) - yzero;
xmo = (-_xmouse) - xzero;
if (xmo > 0) {
xmo = 0;
}
if (ymo < 0) {
ymo = 0;
}
radian = Math.atan2(-ymo, -xmo);
ang = (radian * 180) / 3.141593;
this.arm._rotation = ang;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
leng = Math.floor(power) + 2;
this.arm.gotoAndStop(leng);
}
}
on (release, releaseOutside) {
if (_root.gameWon || (_root.intro_on)) {
return(undefined);
}
drag = false;
this.arm.gotoAndStop(this.arm._totalframes);
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.depth++;
for (obj in _root.aros) {
delete _root.aros[obj].onEnterFrame;
}
var aro = _root.aros.attachMovie("arrow", "aro" + _root.depth, _root.depth);
aro._x = this._x + (Math.cos(radian) * 32);
aro._y = this._y + (Math.sin(radian) * 32);
aro.addx = addx;
aro.addy = addy;
aro.mydepth = _root.depth;
_root.sign._visible = false;
_root.sign._alpha = 0;
ang = 0;
power = 0;
}
Instance of Symbol 163 MovieClip "bad" in Frame 21
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 168 MovieClip "light_gfk" in Frame 21
onClipEvent (load) {
this.oY = this._y;
}
Symbol 11 MovieClip Frame 6
stop();
Symbol 13 MovieClip [arrow] Frame 1
function pan() {
if (_root.camera == mydepth) {
if (frag > 0) {
frag--;
rootaddx = (((-this._x) - _root._x) + 200) / 3;
rootaddy = (((-this._y) - _root._y) + 150) / 3;
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
} else if ((frag <= 0) && (frag > -50)) {
frag--;
rootaddx = (((-(_root.man._x + 30)) - _root._x) + 200) / 5;
rootaddy = (((-(_root.man._y - 102)) - _root._y) + 150) / 5;
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
} else if (_root.gameWon && (frag < -25)) {
delete this.onEnterFrame;
_root.kiss();
}
}
}
function endArrow(del) {
frag = del;
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
this.onEnterFrame = pan;
}
function badArrow() {
var _local3 = _root.bad;
_local3._visible = true;
_local3._x = this._x;
_local3._y = this._y - 10;
tween({}, null, [_local3 + ".toggle"]);
}
stop();
frag = 5;
_root.camera++;
divide = 8;
addx = addx / divide;
addy = addy / divide;
tempaddx = this._x;
tempaddy = this._y;
this.onEnterFrame = function () {
if (_root.camera == mydepth) {
frag--;
if (frag < 0) {
rootaddx = (((-this._x) - _root._x) + 200) / 3;
rootaddy = (((-this._y) - _root._y) + 150) / 3;
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
}
}
addy = addy + (_root.gravity / divide);
addx = addx + (_root.wind / divide);
this._rotation = (Math.atan2(addy, addx) * 180) / 3.141593;
oldX = this._x;
oldY = this._y;
i = 0;
while (i < divide) {
tempaddx = tempaddx + addx;
tempaddy = tempaddy + addy;
this._x = tempaddx;
this._y = tempaddy;
if (_root.pint.hitTest(this._x, this._y, false)) {
_root.playAnim("pint", this);
this.gotoAndStop(4);
endArrow(85);
_root.doScore(1000, "pint");
_root.thief_gfk.gotoAndStop("hit");
_root.pint_gfk.gotoAndStop("hit");
_root.targ_pint.wait(3.5, ["_root.targ_pint.tween", {_alpha:0}, null, ["_root.targ_pint.toggle"]]);
break;
}
if (_root.decks.hitTest(this._x, this._y, false)) {
_root.playAnim("decks", this);
this.gotoAndStop(4);
endArrow(85);
_root.doScore(1000, "decks");
_root.dj_gfk.gotoAndStop("hit");
_root.decks_gfk.gotoAndStop("hit");
_root.dj2._height = 100;
_root.targ_decks.wait(3.5, ["_root.targ_decks.tween", {_alpha:0}, null, ["_root.targ_decks.toggle"]]);
break;
}
if ((!_root.lightHit) && (_root.light.hitTest(this._x, this._y, false))) {
this.gotoAndStop(2);
endArrow(50);
_root.doScore(1000, "light");
_root.light_gfk.gotoAndStop("hit");
_root.lightHit = true;
this._visible = false;
this._y = _root.floorY - 220;
_root.light_gfk.gotoAndStop("hit");
var _local4 = {rb:-15, gb:-15, bb:-15};
var _local3 = new Color(_root.bg);
_local3.setTransform(_local4);
_local3 = new Color(_root.base);
_local3.setTransform(_local4);
_local3 = new Color(_root.sky);
_local3.setTransform(_local4);
trailsOff = true;
_root.light_gfk.tween({_y:330}, ["bounce", 1]);
_root.targ_light.wait(2, ["_root.targ_light.tween", {_alpha:0}, null, ["_root.targ_light.toggle"]]);
break;
}
if (_root.manHit.hitTest(this._x, this._y, false)) {
_root.scream_man.play();
endArrow(50);
this.gotoAndStop(3);
break;
}
if (_root.thief.hitTest(this._x, this._y, false) || (_root.thief2.hitTest(this._x, this._y, false))) {
_root.scream_man.play();
endArrow(50);
_root.doScore(-200);
this.gotoAndStop(3);
badArrow();
break;
}
if (_root.girl.hitTest(this._x, this._y, false)) {
_root.scream_girl.play();
_root.doScore(-400);
endArrow(50);
this.gotoAndStop(3);
badArrow();
break;
}
if (_root.dj.hitTest(this._x, this._y, false) || (_root.dj2.hitTest(this._x, this._y, false))) {
endArrow(50);
if (_root.dj_gfk._currentframe == 6) {
_root.scream_man.play();
}
_root.doScore(-200);
this.gotoAndStop(3);
badArrow();
break;
}
if (((this._y > _root.floorY) || (this._y < _root.fT)) || (this._x > _root.fR)) {
this.gotoAndStop(2);
endArrow(40);
break;
}
i++;
}
if (!trailsOff) {
_root.trails.lineStyle(0, 16777215, 50);
_root.trails.moveTo(oldX, oldY);
_root.trails.lineTo(this._x, this._y);
}
};
Symbol 13 MovieClip [arrow] Frame 2
stop();
Symbol 13 MovieClip [arrow] Frame 3
stop();
Symbol 13 MovieClip [arrow] Frame 4
stop();
Symbol 21 MovieClip [PieClock] Frame 1
#initclip 18
Object.registerClass("PieClock", PieClock);
#endinitclip
stop();
Symbol 37 MovieClip Frame 6
stop();
Symbol 38 MovieClip Frame 1
stop();
txt.autoSize = "left";
Instance of Symbol 21 MovieClip [PieClock] "clock" in Symbol 38 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
maxValue = 360;
value = 360;
}
Symbol 38 MovieClip Frame 13
stop();
Symbol 42 MovieClip Frame 1
o_sc = _xscale;
this.useHandCursor = false;
this.onRollOver = function () {
if (!hold) {
tween({_xscale:o_sc + 3, _yscale:o_sc + 3}, ["dft", 0.5]);
}
};
this.onRollOut = function () {
if (!hold) {
tween({_xscale:o_sc, _yscale:o_sc}, ["dft", 0.25]);
}
};
Symbol 211 MovieClip [__Packages.com.robertpenner.easing.Quad] Frame 0
class com.robertpenner.easing.Quad
{
function Quad () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((t * t) - 1)) + b);
}
t--;
return(((c / 2) * ((t * t) + 1)) + b);
}
}
Symbol 212 MovieClip [__Packages.uk.co.dronecorp.movieclip.MovieClip_] Frame 0
class uk.co.dronecorp.movieclip.MovieClip_
{
function MovieClip_ () {
}
static function remove(targ) {
targ.removeMovieClip();
targ.unloadMovie();
}
static function toggleVisible(targ) {
targ._visible = !targ._visible;
}
static function gotoPlay(targ, frame) {
if (!frame) {
targ.play();
}
targ.gotoAndPlay(frame);
}
static function gotoStop(targ, frame) {
if (!frame) {
targ.stop();
}
targ.gotoAndStop(frame);
}
}
Symbol 213 MovieClip [__Packages.com.robertpenner.easing.Back] Frame 0
class com.robertpenner.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
}
Symbol 214 MovieClip [__Packages.uk.co.dronecorp.tween.TweenCore] Frame 0
class uk.co.dronecorp.tween.TweenCore
{
var coreOn, twn_o, core_mc;
function TweenCore () {
coreOn = false;
twn_o = {};
init();
}
function init() {
core_mc = _root.createEmptyMovieClip("_core", 5000);
core_mc.targ = this;
}
function addTween(targ_mc, twns_o, typ_ar, cb_ar) {
if (!typ_ar) {
typ_ar = ["dft", uk.co.dronecorp.tween.TweenStore.dft_dur];
}
if (!cb_ar) {
cb_ar = null;
}
var _local14 = String(targ_mc);
var _local6 = {};
for (var _local7 in twns_o) {
_local6[_local7] = {b:targ_mc[_local7], e:twns_o[_local7], c:twns_o[_local7] - targ_mc[_local7]};
}
twn_o[_local14] = {id:_local14, mc:targ_mc, twns_o:_local6, t:getTimer(), d:typ_ar[1] * 1000, typ:typ_ar[0], a:typ_ar[2], p:typ_ar[3], cb_ar:cb_ar};
if (coreOn == false) {
commenceCore();
}
}
function commenceCore() {
core_mc.onEnterFrame = function () {
this.targ.procTweens();
};
coreOn = true;
}
function haltCore() {
delete core_mc.onEnterFrame;
coreOn = false;
}
function procTweens() {
var _local2 = 0;
for (var _local3 in twn_o) {
calcTween(twn_o[_local3]);
_local2++;
}
if (_local2 == 0) {
haltCore();
}
}
function calcTween(o) {
var _local5 = o.mc;
var _local4 = o.typ;
var _local3 = getTimer() - o.t;
if (_local3 >= o.d) {
_local3 = o.d;
}
for (var _local6 in o.twns_o) {
_local5[_local6] = uk.co.dronecorp.tween.TweenStore[_local4](_local3, o.twns_o[_local6].b, o.twns_o[_local6].c, o.d, o.a, o.p);
}
if (_local3 >= o.d) {
finishTween(o);
}
}
function finishTween(o) {
delete twn_o[String(o.mc)];
var cb = o.cb_ar;
if (typeof(cb[0]) == "function") {
cb[0](cb[1], cb[2], cb[3], cb[4], cb[5], cb[6], cb[7], cb[8]);
} else if (typeof(cb[0]) == "string") {
eval (cb[0])(cb[1], cb[2], cb[3], cb[4], cb[5], cb[6], cb[7], cb[8]);
} else {
cb[0][cb[1]](cb[2], cb[3], cb[4], cb[5], cb[6], cb[7], cb[8]);
}
}
function stopTween(mc) {
var _local2 = String(mc);
delete twn_o[_local2];
}
function killAll() {
for (var _local2 in twn_o) {
delete twn_o[_local2];
}
}
function isTweening(mc) {
var _local2 = String(mc);
if (twn_o[_local2]) {
return(true);
}
return(false);
}
}
Symbol 215 MovieClip [__Packages.uk.co.dronecorp.tween.TweenStore] Frame 0
class uk.co.dronecorp.tween.TweenStore
{
function TweenStore () {
}
static function setDefault(_df_twn, _df_dur) {
dft = _df_twn;
dft_dur = _df_dur;
}
static var dft = com.robertpenner.easing.Quad.easeOut;
static var dft_dur = 1;
}
Symbol 216 MovieClip [__Packages.com.robertpenner.easing.Linear] Frame 0
class com.robertpenner.easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOutIn(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 217 MovieClip [__Packages.com.robertpenner.easing.Bounce] Frame 0
class com.robertpenner.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 function easeOutIn(t, b, c, d) {
if (t < (d / 2)) {
return((easeOut(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeIn((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}
Symbol 218 MovieClip [__Packages.uk.co.dronecorp.string.String_] Frame 0
class uk.co.dronecorp.string.String_
{
function String_ () {
}
static function leadZero(num, unit) {
if (!unit) {
unit = 2;
}
if (num < 0) {
var _local5 = true;
num = Math.abs(num);
}
var _local2 = num.toString();
var _local1 = unit;
while (_local1 >= 0) {
_local2 = ((num < Math.pow(10, _local1)) ? ("0" + _local2) : (_local2));
_local1--;
}
if (_local5) {
_local2 = "-" + _local2;
}
return(_local2);
}
}
Symbol 14 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.1.78";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 15 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.1.78";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 16 MovieClip [__Packages.PieClock] Frame 0
class PieClock extends MovieClip
{
var createEmptyMovieClip, readOut, mask, boundingBox_mc, degrees, _colour, t1, onEnterFrame, callback;
function PieClock () {
super();
createChildren();
}
function createChildren() {
createEmptyMovieClip("readOut", 2);
readOut._rotation = -90;
createEmptyMovieClip("mask", 1);
readOut.setMask(mask);
mask._x = mask._x + ((mask._y = mask._y + ((readOut._x = readOut._x + ((readOut._y = readOut._y + 25))))));
fill_mask();
fill_readOut();
boundingBox_mc._visible = false;
}
function setSize(w, h, noEvent) {
mask._x = (readOut._x = w / 2);
mask._y = (readOut._y = h / 2);
mask._width = w;
mask._height = h;
readOut._xscale = mask._xscale;
readOut._yscale = mask._yscale;
}
function fill_mask() {
mask.clear();
var _local2 = new uk.co.dronecorp.drawing.Circle(mask, _radius);
}
function fill_readOut() {
if (_value >= _maxValue) {
_value = _maxValue;
}
degrees = (_value / _maxValue) * 360;
var _local3 = degrees * (Math.PI/180);
var _local5 = int(((_radius * 2) * Math.cos(_local3)) * 100) / 100;
var _local4 = int(((_radius * 2) * Math.sin(_local3)) * 100) / 100;
readOut.clear();
readOut.beginFill(Number(_colour));
readOut.moveTo(0, 0);
readOut.lineTo(_radius * 2, 0);
var _local2 = 1;
while (_local2 < 8) {
calcNode(_local2 * 45);
_local2++;
}
readOut.lineTo(_local5, _local4);
readOut.endFill();
}
function calcNode(deg) {
var _local2 = deg * (Math.PI/180);
var _local4 = int(((_radius * 2) * Math.cos(_local2)) * 100) / 100;
var _local3 = int(((_radius * 2) * Math.sin(_local2)) * 100) / 100;
if (degrees > deg) {
readOut.lineTo(_local4, _local3);
}
}
function startClock() {
t1 = getTimer();
onEnterFrame = procClock;
}
function getClock() {
var _local2 = getTimer();
var _local3 = _local2 - t1;
t1 = _local2;
return(_local3);
}
function procClock() {
_value = _value + (getClock() / 1000);
fill_readOut();
if (_value >= _maxValue) {
stopClock();
if (callback) {
callback();
}
}
}
function stopClock() {
delete onEnterFrame;
}
function get value() {
return(_value);
}
function set value(value) {
_value = value;
fill_readOut();
//return(this.value);
}
function get maxValue() {
return(_maxValue);
}
function set maxValue(maxValue) {
_maxValue = maxValue;
fill_readOut();
//return(this.maxValue);
}
function get colour() {
return(_colour);
}
function set colour(colour) {
_colour = colour;
fill_readOut();
//return(this.colour);
}
var _value = 0;
var _maxValue = 100;
var _radius = 25;
}
Symbol 22 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 23 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 24 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 25 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 26 MovieClip [__Packages.uk.co.dronecorp.drawing.Shape] Frame 0
class uk.co.dronecorp.drawing.Shape
{
var mc;
function Shape () {
}
function init(targ, args) {
mc = targ;
if (args.loc) {
x = args.loc[0];
y = args.loc[1];
}
if (args.strokeFill) {
stroke = args.strokeFill[0];
fill = args.strokeFill[1];
}
if (args.style) {
for (var _local3 in args.style) {
this[_local3] = args.style[_local3];
}
}
}
function draw() {
if (stroke) {
mc.lineStyle(stroke_W, stroke_C, stroke_A);
}
if (fill) {
mc.beginFill(fill_C, fill_A);
}
}
function endShape() {
mc.endFill();
}
var x = 0;
var y = 0;
var fill = true;
var fill_C = 65280;
var fill_A = 100;
var stroke = false;
var stroke_C = 65280;
var stroke_A = 100;
var stroke_W = 0;
}
Symbol 27 MovieClip [__Packages.uk.co.dronecorp.drawing.Circle] Frame 0
class uk.co.dronecorp.drawing.Circle extends uk.co.dronecorp.drawing.Shape
{
var radius, ctrlRadius, mc, x, y;
function Circle (targ, rad, args) {
super.init(targ, args);
radius = rad;
ctrlRadius = radius / Math.cos(theta / 2);
draw();
}
function draw() {
super.draw();
mc.moveTo(x + radius, y);
var _local3 = 0;
var _local5 = 0;
while (_local5 < 8) {
_local3 = _local3 + theta;
var _local4 = _local3 - (theta / 2);
var _local7 = x + (Math.cos(_local4) * ctrlRadius);
var _local6 = y + (Math.sin(_local4) * ctrlRadius);
var _local9 = x + (Math.cos(_local3) * radius);
var _local8 = y + (Math.sin(_local3) * radius);
mc.curveTo(_local7, _local6, _local9, _local8);
_local5++;
}
}
var theta = (Math.PI/4);
}
Symbol 45 MovieClip Frame 1
stop();
txt.autoSize = "left";
Symbol 45 MovieClip Frame 13
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 13
stop();
Symbol 99 Button
on (press) {
feedback = "Sending...";
_root.nam_sav = nam_txt.text;
_root.eml_sav = eml_txt.text;
var LV = new LoadVars();
LV.name = nam_txt.text;
LV.score = score;
LV.email = eml_txt.text;
LV.frnd_eml = frnd_eml.text;
LV.game = "na";
LV.signup = s_up;
LV.onLoad = function () {
_root.bull3.onRollOver();
_root.bull3.onPress();
};
var d = new Date();
var t = d.getTime();
LV.sendAndLoad("lib/scoreSubmit.php", LV, "post");
}
Symbol 106 MovieClip Frame 1
stop();
_parent[_name] = 0;
this.onPress = function () {
_parent[_name] = ((_currentframe == 1) ? 1 : 0);
play();
};
Symbol 106 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 1
stop();
frame = "howTo";
function validate(field) {
var _local9 = false;
if ((field.text == undefined) || (field.text == "")) {
return(_local9);
}
var _local7 = 0;
var _local4 = field.text;
var _local5 = _local4.length;
var _local8 = 0;
var _local6 = 0;
var _local2 = 0;
while (_local2 < _local5) {
var _local1 = _local4.charAt(_local2);
var _local3 = _local1.charCodeAt(0);
if (code_check(_local3) == true) {
_local7++;
}
if (_local1 == "@") {
_local8++;
}
if (_local1 == ".") {
_local6++;
}
_local2++;
}
if ((((((((_local5 > 5) && (_local7 == _local5)) && (_local8 == 1)) && (_local6 > 0)) && (_local4.charAt(0) != "@")) && (_local4.charAt(0) != ".")) && (_local4.charAt(_local5 - 1) != "@")) && (_local4.charAt(_local5 - 1) != ".")) {
_local9 = true;
}
return(_local9);
}
function code_check(code) {
if ((((((code == 45) || (code == 46)) || (code == 95)) || ((code > 47) && (code < 58))) || ((code > 63) && (code < 91))) || ((code > 96) && (code < 123))) {
return(true);
}
}
Symbol 114 MovieClip Frame 10
stop();
frame = "hiScores";
msg = "LOADING...";
var LV = new LoadVars();
LV.parent = this;
LV.onLoad = function () {
msg = "TOP STRONGBOW SNIPERS";
var _local2 = 1;
while (_local2 <= 10) {
this.parent["n" + _local2] = this["n" + _local2];
this.parent["t" + _local2] = this["t" + _local2];
_local2++;
}
};
var d = new Date();
var t = d.getTime();
LV.load("lib/getScores.php?t=" + t);
Symbol 114 MovieClip Frame 20
stop();
frame = "gameWin";
tScore = _root.score;
bonus = _root.bonus;
score = tScore + bonus;
nam_txt.onChanged = function () {
if (nam_txt.textWidth > (nam_txt._width - 5)) {
var _local1 = nam_txt.text;
nam_txt.text = _local1.substr(0, _local1.length - 1);
}
};
if (_root.nam_sav) {
nam_txt.text = _root.nam_sav;
}
if (_root.eml_sav) {
eml_txt.text = _root.eml_sav;
}
Symbol 114 MovieClip Frame 30
stop();
frame = "prizes";
Symbol 137 MovieClip Frame 21
_parent._rotation = (_parent._rotation + 90) / 2;
Symbol 137 MovieClip Frame 22
_parent._rotation = (_parent._rotation + 90) / 2;
Symbol 137 MovieClip Frame 23
_parent._rotation = (_parent._rotation + 90) / 2;
Symbol 137 MovieClip Frame 24
_parent._rotation = (_parent._rotation + 90) / 2;
Symbol 137 MovieClip Frame 25
_parent._rotation = 0;
_parent.gotoAndStop(1);
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 6
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 6
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 6
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 6
stop();
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 6
stop();
Symbol 170 MovieClip Frame 1
_alpha = 0;
Symbol 176 MovieClip Frame 1
createEmptyMovieClip("mask", 2);
createEmptyMovieClip("fill", 1);
fill.setMask(mask);
baseline._visible = (line._visible = false);
this.onEnterFrame = function () {
var a = ((-Math.round(_root.man.ang * 1000)) / 1000);
var p = ((Math.round(_root.man.power * 1000) / 1000) * 4);
this.ang.text = Math.round(a);
this.power.text = Math.round(p);
this.line._rotation = _root.man.ang;
this.line._xscale = p;
this.baseline._xscale = p;
pradian = (this.line._rotation * 3.141593) / 180;
px = (Math.cos(pradian) * p) * 2.5;
py = (Math.sin(pradian) * p) * 2.5;
tx = (Math.cos(pradian) * p) * 1.8;
ty = (Math.sin(pradian) * p) * 1.8;
this.power._x = tx;
this.power._y = ty - 13;
mask.clear();
_root.circle(mask, p * 1.75, 0);
with (fill) {
clear();
beginFill(0, 100);
moveTo(0, 0);
lineTo(px, py);
lineTo(baseline._width, 0);
lineTo(0, 0);
endFill();
}
this._alpha = Math.round(p);
if (isNaN(Math.round(p))) {
this._alpha = 0;
}
};
Symbol 179 MovieClip Frame 1
function fillClock() {
angle = degrees * (Math.PI/180);
X = int((radius * Math.cos(angle)) * 100) / 100;
Y = int((radius * Math.sin(angle)) * 100) / 100;
fill.clear();
fill.beginFill(16777215, 100);
fill.moveTo(0, 0);
fill.lineTo(radius, 0);
i = 1;
while (i < 8) {
calcNode(i * 45);
i++;
}
fill.lineTo(X, Y);
fill.endFill();
}
function calcNode(deg) {
var _local1 = deg * (Math.PI/180);
var _local3 = int((radius * Math.cos(_local1)) * 100) / 100;
var _local2 = int((radius * Math.sin(_local1)) * 100) / 100;
if (degrees > deg) {
fill.lineTo(_local3, _local2);
}
}
function startClock(dur) {
t1 = getTimer();
cTim = 0;
cDur = dur;
cAng = 360 / cDur;
this.onEnterFrame = procClock;
}
function getClock() {
var _local1 = getTimer();
var _local2 = _local1 - t1;
t1 = _local1;
return(_local2);
}
function procClock() {
cTim = cTim + (getClock() / 1000);
degrees = cTim * cAng;
if (cTim >= cDur) {
degrees = 360;
stopClock();
}
fillClock();
}
function stopClock() {
delete this.onEnterFrame;
}
this._rotation = -90;
radius = 51;
degrees = 0;
createEmptyMovieClip("mask", 2);
_root.circle(mask, radius / 2, 65280);
createEmptyMovieClip("fill", 1);
fill.setMask(mask);
createEmptyMovieClip("bg", 0);
_root.circle(bg, (radius / 2) + 4, 0);
_root.circle(bg, (radius / 2) - 1, 0, 16777215);
Symbol 189 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 85
stop();
_parent.gotoAndStop(1);
Symbol 205 MovieClip Frame 85
stop();
_parent.gotoAndStop(1);
Symbol 209 MovieClip Frame 85
stop();
_root.endGame();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 2
stop();
Symbol 210 MovieClip Frame 3
stop();
Symbol 210 MovieClip Frame 4
stop();