Frame 2
function goToSoap() {
_global.trackSite("click", "viewSoapSite");
_root.getURL("http://www.soap.com.au", "_blank");
}
function highQuality() {
_quality = "HIGH";
}
function lowQuality() {
_quality = "LOW";
}
stop();
var cm = new ContextMenu();
cm.hideBuiltInItems();
var cmItem1 = new ContextMenuItem("Game by Soap Creative", goToSoap);
var cmItem2 = new ContextMenuItem("High Quality", highQuality);
var cmItem3 = new ContextMenuItem("Low Quality", lowQuality);
cm.customItems = [cmItem1, cmItem2, cmItem3];
this.menu = cm;
onEnterFrame = function () {
var _local3 = _root.getBytesLoaded();
var _local2 = _root.getBytesTotal();
var _local4 = int((_local3 / _local2) * 100);
if (_local2 > 100) {
mask.middle._xscale = _local4;
mask.end._x = mask.middle._x + mask.middle._width;
if (_local2 == _local3) {
delete onEnterFrame;
gotoAndPlay ("gameIntro");
}
}
};
Frame 4
_quality = "HIGH";
var SOT = "classic_catch_1.1";
var so = SharedObject.getLocal(SOT, "/");
_global.SOD = so.data;
function startGame() {
nxtSec = "selectTeam";
backtoMain(nxtSec);
}
function challenge() {
nxtSec = "challengeFriend";
backtoMain(nxtSec);
}
function backtoMain(nxt) {
nxtSec = nxt;
gotoAndPlay(oldSec + "Out");
oldSec = nxtSec;
}
function viewHS() {
nxtSec = "highscores";
backtoMain(nxtSec);
}
function viewHelp() {
nxtSec = "instructions";
backtoMain(nxtSec);
}
function showPP() {
getURL ("http://www.ashesclashes.com/privacy_policy.html", "_blank");
}
function showTC() {
getURL ("http://www.ashesclashes.com/terms_conditions.html", "_blank");
}
_global.GAME = this;
_global.GAMEID = 66;
oldSec = "gameIntro";
_global.cuss_array = new Array("fuck", "cunt", "dick", "shit", "pussy", "kunt");
_global.check_cuss = function (word) {
word = word.toLowerCase();
if (word eq "") {
return("bad");
}
var _local1 = 0;
while (_local1 < cuss_array.length) {
if (word.indexOf(cuss_array[_local1].toLowerCase(), 0) > -1) {
return("bad");
}
_local1++;
}
};
_global.chkEmail = function (e) {
if (e.length > 7) {
if (e.indexOf("@") > 0) {
if ((((e.indexOf(" ") < 0) && (e.indexOf(",") < 0)) && (e.indexOf("'") < 0)) && (e.indexOf("\"") < 0)) {
if ((e.indexOf("@") + 1) < e.lastIndexOf(".")) {
if (e.indexOf("@") == e.lastIndexOf("@")) {
if (e.lastIndexOf(".") < (e.length - 1)) {
return(true);
}
}
}
}
}
}
return(false);
};
_global.chkWWW = function (e) {
var _local1 = e.toLowerCase();
if (_local1.indexOf("www.") == 0) {
_local1 = e.slice(4);
return(_local1);
}
return(_local1);
};
_global.makeKash = function (num) {
num = num + "";
numLength = num.length;
newNum = "";
if (numLength > 3) {
diff = numLength % 3;
i = 0;
while (i < numLength) {
if ((((i % 3) == diff) && (i != (numLength - 1))) && (i != 0)) {
newNum = newNum + ",";
}
newNum = newNum + num.charAt(i);
i++;
}
} else {
newNum = newNum + num;
}
return(newNum);
};
Frame 5
_global.trackingClientID = 18;
_global.trackingProjectID = 1;
_global.debugSiteStats = false;
_global.getTrackingSO = function () {
var _local2 = SharedObject.getLocal(_global.SOName, "/");
return(_local2);
};
_global.getTrackingSOData = function () {
return(getTrackingSO().data);
};
_global.siteStartTime = getTimer();
_global.siteEVTTime = getTimer();
_global.SOName = (("siteTrackingStats_" + trackingClientID) + "_") + trackingProjectID;
if (_global.getTrackingSO().data.userID == undefined) {
returnVisitor = 0;
_global.getTrackingSO().data.userID = random(9999999999);
} else {
returnVisitor = 1;
_global.getTrackingSO().data.userID = random(9999999999);
}
_global.trackSystemInfo = function () {
sendSystemInfoLV = new LoadVars();
var _local2 = _global.trackingClientID;
var _local3 = _global.trackingProjectID;
sendSystemInfoLV.clientId = _local2;
sendSystemInfoLV.projectId = _local3;
sendSystemInfoLV.version = System.capabilities.version;
sendSystemInfoLV.manufacturer = System.capabilities.manufacturer;
sendSystemInfoLV.os = System.capabilities.os;
sendSystemInfoLV.screenResolutionX = System.capabilities.screenResolutionX;
sendSystemInfoLV.screenResolutionY = System.capabilities.screenResolutionY;
sendSystemInfoLV.avHardwareDisable = System.capabilities.avHardwareDisable;
sendSystemInfoLV.pixelAspectRatio = System.capabilities.pixelAspectRatio;
sendSystemInfoLV.screenDPI = System.capabilities.screenDPI;
sendSystemInfoLV.language = System.capabilities.language;
sendSystemInfoLV.hasAudioEncoder = System.capabilities.hasAudioEncoder;
sendSystemInfoLV.hasVideoEncoder = System.capabilities.hasVideoEncoder;
sendSystemInfoLV.hasAccessibility = System.capabilities.hasAccessibility;
if (_url.substring(0, 4) == "http") {
sendSystemInfoLV.url = _url;
} else {
sendSystemInfoLV.url = "local";
}
sendSystemInfoLV.onLoad = function (success) {
if (_global.debugSiteStats) {
if (!success) {
}
}
};
sendSystemInfoLV.sendAndLoad("http://www.soap.com.au/php_dev/sitestats/usrinfo.php", sendSystemInfoLV, "POST");
sendRefererInfoLV = new LoadVars();
sendRefererInfoLV.clientid = _local2;
sendRefererInfoLV.projectid = _local3;
var _local4 = referer;
sendRefererInfoLV.referrer = referer;
sendRefererInfoLV.onLoad = function (success) {
if (_global.debugSiteStats) {
if (!success) {
}
}
};
sendRefererInfoLV.sendAndLoad("http://www.soap.com.au/php_dev/pgtrack/reftrack.php", sendRefererInfoLV, "POST");
};
_global.trackSite = function (actionType) {
var _local7 = _global.trackingClientID;
var _local8 = _global.trackingProjectID;
var _local5 = arguments;
_local5.shift();
var _local4 = 0;
switch (actionType) {
case "impression" :
break;
case "click" :
break;
case "over" :
break;
case "durationFromInit" :
_local4 = Math.ceil((getTimer() - _global.siteStartTime) / 1000);
break;
case "durationEvent" :
_local4 = Math.ceil((getTimer() - _global.siteEVTTime) / 1000);
break;
default :
actionType = "";
}
var _local6 = _local5.join(",");
sendTrackInfoLV = new LoadVars();
sendTrackInfoLV.return = returnVisitor;
sendTrackInfoLV.onLoad = function (success) {
if (_global.debugSiteStats) {
if (!success) {
}
}
};
sendTrackInfoLV.clientId = _local7;
sendTrackInfoLV.projectId = _local8;
sendTrackInfoLV.actionType = actionType;
sendTrackInfoLV.pageId = _local6;
sendTrackInfoLV.time = _local4;
sendTrackInfoLV.user = _global.getTrackingSOData().userID;
sendTrackInfoLV.sendAndLoad("http://www.soap.com.au/php_dev/pgtrack/pgtrack.php", sendTrackInfoLV, "POST");
if (_global.debugSiteStats) {
}
};
Frame 22
_global.trackSystemInfo();
_global.trackSite("click", "viewGame");
Frame 48
var soundManager = (new chris.AS2.SoundManager(this, 3));
soundManager.stopAll();
soundManager.singleSound("theme", 0, 50);
soundManager.singleSound("mainMenu", 1);
myTeam = undefined;
oldSec = "gameIntro";
Frame 89
stop();
Frame 109
gotoAndPlay(nxtSec);
Frame 116
_global.trackSite("click", "viewInstructions");
Frame 153
stop();
Frame 173
if (nxtSec == undefined) {
gotoAndPlay ("mainMenu");
} else {
gotoAndPlay(nxtSec);
}
Frame 181
_global.trackSite("click", "viewHighScores");
Frame 213
stop();
Frame 230
if (nxtSec == undefined) {
gotoAndPlay ("mainMenu");
} else {
gotoAndPlay(nxtSec);
}
Frame 235
_global.trackSite("click", "challengeFriend");
Frame 266
stop();
Frame 282
if (nxtSec == undefined) {
gotoAndPlay ("mainMenu");
} else {
gotoAndPlay(nxtSec);
}
Frame 293
function chooseTeam(t) {
myTeam = t;
gotoAndPlay ("selectTeamOut");
}
var myTeam = null;
Frame 303
pom.head.gotoAndStop("normal2");
Frame 321
stop();
Frame 346
if (myTeam != undefined) {
gotoAndPlay ("theGame");
} else {
gotoAndPlay ("mainMenu");
}
Frame 347
function control() {
main.control();
engine.render();
miniMap.control();
}
chris.physics.util.Graphics.main = world;
world._visible = false;
var engine = (new chris.physics.Engine(world));
chris.physics.Engine.setBounds(50, 0, world._width, 3000, 150);
var eventDispatcher = (new chris.AS2.EventDispatcher());
var ragdoll = new Ragdoll(chris.physics.Engine.maxX / 2, chris.physics.Engine.maxY - 272, world.objects);
var main = new Main(world, world.objects);
var scroller = (new chris.AS2.BitmapScroller(world.bitmap, Stage.width, Stage.height));
var replay = new ReplayManager();
var miniMap = new MiniMap(nav.tv.miniMap);
var metersArrow = nav.metersArrow;
main.setTarget(ragdoll.p0);
main.setArms(ragdoll.p14, ragdoll.p15);
miniMap.setTargets(main.target, main.ball);
ragdoll.changeType(myTeam);
Frame 348
stop();
_global.trackSite("impression", "newGame");
main.reset();
world._visible = true;
Frame 359
_global.trackSite("click", "submitScore");
oldSec = "submitScore";
Frame 390
stop();
Frame 406
if (nxtSec == undefined) {
gotoAndPlay ("mainMenu");
} else {
gotoAndPlay(nxtSec);
}
Symbol 6 MovieClip [particle] Frame 1
stop();
Symbol 12 MovieClip [metersArrow] Frame 1
#initclip 23
Object.registerClass("metersArrow", MetersArrow);
#endinitclip
Symbol 19 MovieClip [miniMap] Frame 1
#initclip 22
Object.registerClass("miniMap", MiniMap);
#endinitclip
Symbol 38 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut, dragOut) {
gotoAndPlay ("fade");
}
on (release) {
_global.trackSite("click", "viewSoapSite");
getURL ("http://www.soap.com.au", "_blank");
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 11
stop();
Symbol 573 MovieClip [__Packages.MiniMap] Frame 0
class MiniMap
{
var clip, w, h, p1, p2;
function MiniMap (clip) {
this.clip = clip;
w = clip._width;
h = clip._height;
}
function setTargets(p1, p2) {
this.p1 = p1;
this.p2 = p2;
}
function plot(p, mc) {
var _local3 = p.p.x / chris.physics.Engine.maxX;
var _local2 = p.p.y / chris.physics.Engine.maxY;
mc._x = _local3 * w;
mc._y = _local2 * h;
}
function control() {
plot(p1, clip.player);
plot(p2, clip.ball);
}
}
Symbol 574 MovieClip [__Packages.chris.physics.primitives.AbstractParticle] Frame 0
class chris.physics.primitives.AbstractParticle
{
var p, o, s, v, radius, bounce, friction, air, clip;
function AbstractParticle (x, y) {
p = new chris.physics.util.Vector(x, y);
o = new chris.physics.util.Vector(x, y);
s = new chris.physics.util.Vector(x, y);
v = new chris.physics.util.Vector(0, 0);
radius = 0;
bounce = -0.3;
friction = 0.3;
air = 1;
id++;
chris.physics.Engine.addParticle(this);
}
function verlet(dt) {
v.x = (chris.physics.Engine.damp.x * (p.x - o.x)) + (chris.physics.Engine.gravity.x * air);
v.y = (chris.physics.Engine.damp.y * (p.y - o.y)) + (chris.physics.Engine.gravity.y * air);
o.copy(p);
p.add(v);
}
function reset() {
p.copy(s);
o.copy(p);
}
function setForces(f, b, a) {
friction = f;
bounce = b;
air = a;
}
function velocity() {
var _local2 = p.subNew(o);
return(_local2.length());
}
function set(x, y) {
p.set(x, y);
o.copy(p);
}
function addGraphic(clip) {
this.clip = clip;
}
function toString() {
return((((((("x:" + p.x) + " y:") + p.y) + " vx:") + v.x) + " vy:") + v.y);
}
function render() {
clip._x = p.x;
clip._y = p.y;
}
static var id = 0;
}
Symbol 575 MovieClip [__Packages.chris.physics.util.Vector] Frame 0
class chris.physics.util.Vector
{
var x, y;
function Vector (px, py) {
x = px;
y = py;
}
function set(px, py) {
x = px;
y = py;
}
function copy(v) {
x = v.x;
y = v.y;
}
function copyNew() {
return(new chris.physics.util.Vector(x, y));
}
function dot(v) {
return((x * v.x) + (y * v.y));
}
function cross(v) {
return((x * v.y) - (y * v.x));
}
function add(v) {
x = x + v.x;
y = y + v.y;
return(this);
}
function addNew(v) {
return(new chris.physics.util.Vector(x + v.x, y + v.y));
}
function sub(v) {
x = x - v.x;
y = y - v.y;
return(this);
}
function subNew(v) {
return(new chris.physics.util.Vector(x - v.x, y - v.y));
}
function mult(s) {
x = x * s;
y = y * s;
return(this);
}
function minus(s) {
x = x - s;
y = y - s;
return(this);
}
function plus(s) {
x = x + s;
y = y + s;
return(this);
}
function multNew(s) {
return(new chris.physics.util.Vector(x * s, y * s));
}
function divide(s) {
x = x / s;
y = y / s;
return(this);
}
function distance(v) {
var _local3 = x - v.x;
var _local2 = y - v.y;
return(sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function radianBetween(v) {
var _local3 = v.x - x;
var _local2 = v.y - y;
return(atan2(_local2, _local3));
}
function degreeBetween(v) {
var _local3 = x - v.x;
var _local2 = y - v.y;
return((atan2(_local2, _local3) * 180) / Math.PI);
}
function radian() {
return(atan2(y, x));
}
function degree() {
return((atan2(y, x) * 180) / Math.PI);
}
function normalize() {
var _local2 = length();
x = x / _local2;
y = y / _local2;
return(this);
}
function unit() {
var _local2 = length();
return(new chris.physics.util.Vector((x = x / _local2), (y = y / _local2)));
}
function length() {
return(sqrt((x * x) + (y * y)));
}
function magnitude() {
return((x * x) + (y * y));
}
function project(b) {
var _local5 = dot(b);
var _local3 = b.magnitude();
var _local2 = new chris.physics.util.Vector(0, 0);
_local2.x = (_local5 / _local3) * b.x;
_local2.y = (_local5 / _local3) * b.y;
return(_local2);
}
function toString() {
return((("x:" + x) + " y:") + y);
}
static var sqrt = Math.sqrt;
static var atan2 = Math.atan2;
}
Symbol 576 MovieClip [__Packages.chris.physics.Engine] Frame 0
class chris.physics.Engine
{
static var particles, constraints, gravity, damp, pl, it, cl, enablePaint, originalGravity, originalDamp, minX, minY, maxX, maxY, ground;
function Engine (clip) {
particles = [];
constraints = [];
gravity = new chris.physics.util.Vector(0, 0);
damp = new chris.physics.util.Vector(0, 0);
setPaint(false);
setBounds(0, 0, Stage.width, Stage.height, 0);
setGravity(0, 1);
setDamp(1, 1);
setIterations(4);
}
function verlet() {
var _local1 = 0;
while (_local1 < pl) {
particles[int(_local1)].verlet();
_local1++;
}
}
function constrain() {
var _local2 = 0;
while (_local2 < it) {
var _local1 = 0;
while (_local1 < cl) {
constraints[int(_local1)].resolve();
_local1++;
}
_local2++;
}
}
function collision() {
var _local1 = 0;
while (_local1 < pl) {
var _local2 = particles[int(_local1)];
chris.physics.collision.CollisionManager.detectBounds(_local2);
_local1++;
}
}
function paint() {
var _local1 = 0;
while (_local1 < cl) {
var _local2 = constraints[int(_local1)];
_local2.render();
if (enablePaint) {
_local2.paint();
}
_local1++;
}
_local1 = 0;
while (_local1 < pl) {
var _local3 = particles[int(_local1)];
_local3.render();
_local1++;
}
}
function render() {
verlet();
constrain();
collision();
paint();
}
static function reset() {
var _local1 = 0;
while (_local1 < pl) {
particles[int(_local1)].reset();
_local1++;
}
gravity.copy(originalGravity);
damp.copy(originalDamp);
}
static function addConstraint(c) {
constraints.push(c);
cl = constraints.length;
}
static function addParticle(p) {
particles.push(p);
pl = particles.length;
}
static function setPaint(p) {
enablePaint = p;
}
static function setGravity(x, y) {
gravity.set(x, y);
originalGravity = gravity.copyNew();
}
static function setDamp(x, y) {
damp.set(x, y);
originalDamp = damp.copyNew();
}
static function setIterations(n) {
it = n;
}
static function setBounds(x1, y1, x2, y2, g) {
minX = x1;
minY = y1;
maxX = x2;
maxY = y2;
ground = g;
}
}
Symbol 577 MovieClip [__Packages.chris.physics.primitives.Particle] Frame 0
class chris.physics.primitives.Particle extends chris.physics.primitives.AbstractParticle
{
function Particle (x, y) {
super(x, y);
}
}
Symbol 578 MovieClip [__Packages.chris.physics.collision.CollisionManager] Frame 0
class chris.physics.collision.CollisionManager
{
function CollisionManager () {
}
static function detectBounds(p) {
var _local4 = chris.physics.Engine.minX + p.radius;
var _local3 = chris.physics.Engine.maxX - p.radius;
var _local2 = (chris.physics.Engine.maxY - chris.physics.Engine.ground) - p.radius;
if (p.p.x > _local3) {
p.p.x = _local3 - (p.v.x * p.bounce);
} else if (p.p.x < _local4) {
p.p.x = _local4 + (p.v.x * p.bounce);
}
if (p.p.y > _local2) {
p.p.y = _local2;
p.v.y = p.v.y * p.bounce;
p.o.y = p.p.y - p.v.y;
p.p.x = p.p.x - (p.v.x * p.friction);
}
}
}
Symbol 579 MovieClip [__Packages.chris.physics.constraints.Constraint] Frame 0
class chris.physics.constraints.Constraint
{
var p1, p2, stiffness, color, rest, line, clip;
function Constraint (p1, p2) {
this.p1 = p1;
this.p2 = p2;
p1.connection = p2;
p2.connection = p1;
stiffness = 0.5;
color = 16777215 /* 0xFFFFFF */;
rest = getRest(p1, p2);
id++;
line = chris.physics.util.Graphics.register("constraint " + id);
chris.physics.Engine.addConstraint(this);
}
function resolve() {
}
function paint() {
chris.physics.util.Graphics.clear(line);
chris.physics.util.Graphics.set(line, 0, color);
chris.physics.util.Graphics.vectorLine(line, p1.p, p2.p);
}
function setStiffness(s) {
stiffness = s;
}
function setRest(r) {
rest = r;
}
function getRest(p1, p2) {
var _local1 = p1.p.distance(p2.p);
return(_local1 * _local1);
}
function getDegree() {
return(p1.p.degreeBetween(p2.p));
}
function getRadian() {
return(p1.p.radianBetween(p2.p));
}
function addGraphic(clip) {
this.clip = clip;
}
function toString() {
return((("constraint - p1:" + p1) + ", p2:") + p2);
}
function render() {
clip._x = p1.p.x;
clip._y = p1.p.y;
clip._rotation = getDegree() + 90;
}
static var id = 0;
}
Symbol 580 MovieClip [__Packages.chris.physics.util.Graphics] Frame 0
class chris.physics.util.Graphics
{
static var main, graphic;
function Graphics () {
}
static function clear(clip) {
clip.clear();
}
static function register(id) {
var _local1 = main.createEmptyMovieClip(id + "_graphic", main.getNextHighestDepth());
graphic[id] = _local1;
return(_local1);
}
static function set(clip, thick, color) {
clip.lineStyle(thick, color);
}
static function vectorLine(clip, p1, p2) {
clip.moveTo(p1.x, p1.y);
clip.lineTo(p2.x, p2.y);
}
static function drawLine(clip, x, y, ex, ey) {
clip.moveTo(x, y);
clip.lineTo(ex, ey);
}
}
Symbol 581 MovieClip [__Packages.MetersArrow] Frame 0
class MetersArrow extends MovieClip
{
var title, arrow, _rotation;
function MetersArrow () {
super();
title = arrow.title;
}
function follow(a, d) {
title.text = int(d) + "m";
_rotation = a;
}
}
Symbol 582 MovieClip [__Packages.chris.AS2.SoundManager] Frame 0
class chris.AS2.SoundManager
{
var clip, layers, globalSound, sounds;
function SoundManager (clip, layers) {
this.clip = clip;
this.layers = layers;
init();
}
function init() {
globalSound = new Sound();
sounds = [];
var _local2 = 0;
while (_local2 < layers) {
sounds[_local2] = new Sound(clip.createEmptyMovieClip("sound" + _local2, _local2));
_local2++;
}
}
function singleSound(s, layer, vol) {
var _local2 = sounds[layer];
_local2.attachSound(s);
_local2.setVolume(vol || 100);
_local2.start();
return(_local2);
}
function loopSound(s, layer, vol) {
}
function stop(layer) {
sounds[layer].stop();
}
function stopAll() {
stopAllSounds();
}
function soundOn() {
globalSound.setVolume(100);
}
function soundOff() {
globalSound.setVolume(0);
}
function getSoundOn() {
return(globalSound.getVolume() > 0);
}
}
Symbol 583 MovieClip [__Packages.chris.AS2.EventDispatcher] Frame 0
class chris.AS2.EventDispatcher
{
var broadcastMessage;
function EventDispatcher () {
AsBroadcaster.initialize(this);
}
function broadcast(eventName) {
broadcastMessage.apply(this, arguments);
}
}
Symbol 584 MovieClip [__Packages.Ragdoll] Frame 0
class Ragdoll
{
var x, y, clip, p0, p1, p4, p5, p6, p7, p14, p15, p10, p11, p12, p13, p16, p17, s1, s2, s3, s4, b1, b2, b3, b4, b, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12;
function Ragdoll (x, y, clip) {
this.x = x;
this.y = y;
this.clip = clip;
initParticles();
initConstraints();
}
function initParticles() {
p0 = new chris.physics.primitives.RotationParticle(x, y);
p1 = new chris.physics.primitives.Particle(x, y + 45);
p4 = new chris.physics.primitives.Particle(x, y + 15);
p5 = new chris.physics.primitives.Particle(x, y + 15);
p6 = new chris.physics.primitives.Particle(x, y + 35);
p7 = new chris.physics.primitives.Particle(x, y + 35);
p14 = new chris.physics.primitives.Particle(x, y + 45);
p15 = new chris.physics.primitives.Particle(x, y + 45);
p10 = new chris.physics.primitives.Particle(x - 8, y + 82);
p11 = new chris.physics.primitives.Particle(x + 8, y + 82);
p12 = new chris.physics.primitives.Particle(x - 8, y + 110);
p13 = new chris.physics.primitives.Particle(x + 8, y + 110);
p16 = new chris.physics.primitives.Particle(x - 8, y + 118);
p17 = new chris.physics.primitives.Particle(x + 8, y + 118);
s1 = new chris.physics.primitives.StrictParticle(x - 24, y, p0);
s2 = new chris.physics.primitives.StrictParticle(x + 24, y, p0);
s3 = new chris.physics.primitives.StrictParticle(x - 8, y + 45, p0);
s4 = new chris.physics.primitives.StrictParticle(x + 8, y + 45, p0);
b1 = new chris.physics.primitives.Particle(x - 25, y + 10);
b2 = new chris.physics.primitives.Particle(x + 25, y + 10);
b3 = new chris.physics.primitives.Particle(x + 25, y + 50);
b4 = new chris.physics.primitives.Particle(x - 25, y + 50);
}
function initConstraints() {
var _local2 = new chris.physics.constraints.SpringConstraint(p0, b1);
_local2 = new chris.physics.constraints.SpringConstraint(p0, b2);
_local2 = new chris.physics.constraints.SpringConstraint(b1, b2);
_local2 = new chris.physics.constraints.SpringConstraint(b1, p1);
_local2 = new chris.physics.constraints.SpringConstraint(b2, p1);
_local2 = new chris.physics.constraints.SpringConstraint(b1, b3);
_local2 = new chris.physics.constraints.SpringConstraint(b2, b4);
_local2 = new chris.physics.constraints.SpringConstraint(b3, b4);
_local2 = new chris.physics.constraints.SpringConstraint(b3, p1);
_local2 = new chris.physics.constraints.SpringConstraint(b4, p1);
b = new chris.physics.constraints.SpringConstraint(p0, p1);
c1 = new chris.physics.constraints.StrictConstraint(s3, p10);
c2 = new chris.physics.constraints.StrictConstraint(s4, p11);
c3 = new chris.physics.constraints.SpringConstraint(p10, p12);
c4 = new chris.physics.constraints.SpringConstraint(p11, p13);
c5 = new chris.physics.constraints.StrictConstraint(s1, p4);
c6 = new chris.physics.constraints.StrictConstraint(s2, p5);
c7 = new chris.physics.constraints.SpringConstraint(p4, p6);
c8 = new chris.physics.constraints.SpringConstraint(p5, p7);
c9 = new chris.physics.constraints.SpringConstraint(p6, p14);
c10 = new chris.physics.constraints.SpringConstraint(p7, p15);
c11 = new chris.physics.constraints.SpringConstraint(p12, p16);
c12 = new chris.physics.constraints.SpringConstraint(p13, p17);
p0.addGraphic(clip.head);
p0.initRotation(0.2, 0.85);
b.addGraphic(clip.body);
c1.addGraphic(clip.leftLeg);
c2.addGraphic(clip.rightLeg);
c3.addGraphic(clip.leftKnee);
c4.addGraphic(clip.rightKnee);
c5.addGraphic(clip.leftArm);
c6.addGraphic(clip.rightArm);
c7.addGraphic(clip.leftElbow);
c8.addGraphic(clip.rightElbow);
c9.addGraphic(clip.leftHand);
c10.addGraphic(clip.rightHand);
c11.addGraphic(clip.leftFoot);
c12.addGraphic(clip.rightFoot);
}
function changeType(type) {
clip.type = type;
clip.leftArm.gotoAndStop(type);
clip.rightArm.gotoAndStop(type);
clip.body.gotoAndStop(type);
}
}
Symbol 585 MovieClip [__Packages.chris.physics.primitives.RotationParticle] Frame 0
class chris.physics.primitives.RotationParticle extends chris.physics.primitives.AbstractParticle
{
var k, i, r, rp, p, clip, connection;
function RotationParticle (x, y) {
super(x, y);
}
function initRotation(k, i) {
this.k = k;
this.i = i;
r = (rp = 0);
}
function render() {
clip._x = p.x;
clip._y = p.y;
var _local2 = p.degreeBetween(connection.p);
var _local3 = _local2;
if (_local2 < 0) {
_local2 = -_local2;
}
var _local4 = _local2 - rp;
r = (r * i) + (_local4 * k);
rp = rp + r;
clip._rotation = (_local3 + 90) + r;
}
}
Symbol 586 MovieClip [__Packages.chris.physics.primitives.StrictParticle] Frame 0
class chris.physics.primitives.StrictParticle extends chris.physics.primitives.AbstractParticle
{
var base, joint, p, angle, length;
function StrictParticle (x, y, base) {
super(x, y);
this.base = base;
joint = p.subNew(base.p);
angle = joint.radian();
length = joint.length();
}
function pin() {
var _local3 = base.p.radianBetween(base.connection.p) - (Math.PI/2);
var _local2 = angle + _local3;
var _local5 = length * Math.cos(_local2);
var _local4 = length * Math.sin(_local2);
p.set(base.p.x + _local5, base.p.y + _local4);
}
}
Symbol 587 MovieClip [__Packages.chris.physics.constraints.SpringConstraint] Frame 0
class chris.physics.constraints.SpringConstraint extends chris.physics.constraints.Constraint
{
var color, p1, p2, stiffness, rest;
function SpringConstraint (p1, p2) {
super(p1, p2);
color = 65280;
}
function resolve() {
var _local2 = p1.p.subNew(p2.p);
var _local3 = _local2.magnitude();
_local2.mult((rest / (_local3 + rest)) - stiffness);
p2.p.sub(_local2);
p1.p.add(_local2);
}
}
Symbol 588 MovieClip [__Packages.chris.physics.constraints.StrictConstraint] Frame 0
class chris.physics.constraints.StrictConstraint extends chris.physics.constraints.Constraint
{
var color, p1, p2, stiffness, rest;
function StrictConstraint (p1, p2) {
super(p1, p2);
color = 16711680 /* 0xFF0000 */;
}
function resolve() {
p1.pin();
var _local2 = p1.p.subNew(p2.p);
var _local3 = _local2.magnitude();
_local2.mult((rest / (_local3 + rest)) - stiffness);
p2.p.sub(_local2);
}
}
Symbol 589 MovieClip [__Packages.chris.AS2.BitmapScroller] Frame 0
class chris.AS2.BitmapScroller
{
var clip, w, h, main, side, vert;
function BitmapScroller (clip, w, h) {
this.clip = clip;
this.w = w;
this.h = h;
init();
}
function init() {
main = new flash.display.BitmapData(w, h, true, 0);
clip.attachBitmap(main, 0);
}
function clearEdges(vx, vy) {
var _local4 = 0;
side = ((vx > 0) ? (new flash.geom.Rectangle(0, 0, vx, h)) : (new flash.geom.Rectangle(w + vx, 0, -vx, h)));
vert = ((vy > 0) ? (new flash.geom.Rectangle(0, 0, w, vy)) : (new flash.geom.Rectangle(0, h + vy, w, -vy)));
main.fillRect(side, _local4);
main.fillRect(vert, _local4);
}
function clear() {
main.fillRect(main.rectangle, 0);
}
function scroll(target, m, vx, vy, bc, dc) {
main.colorTransform(main.rectangle, bc);
main.draw(target, m, dc);
main.scroll(vx, vy);
clearEdges(vx, vy);
}
}
Symbol 590 MovieClip [__Packages.ReplayManager] Frame 0
class ReplayManager
{
var events, current, playTime, callback;
function ReplayManager () {
events = [];
current = (playTime = 0);
}
function doEvent(frame) {
for (var _local8 in frame) {
var _local4 = frame[_local8];
var _local3 = _local4.clips;
var _local5 = _local4.positions;
for (var _local6 in _local3) {
var _local1 = _local3[_local6];
var _local2 = _local5[_local6];
_local1._x = _local2.x;
_local1._y = _local2.y;
_local1._rotation = _local2.r;
_local1.gotoAndStop(_local2.f);
}
}
}
function run() {
doEvent(events[current]);
_root.eventDispatcher.broadcast(callback);
current++;
if (current == events.length) {
end();
}
}
function addEvent(frame) {
events.push(frame);
}
function clear() {
clearInterval(playTime);
}
function reset() {
clear();
events = [];
_root.eventDispatcher.broadcast("reset");
}
function end() {
clear();
_root.nav.reset();
_root.nav.popup.success = true;
_root.nav.popup.gotoAndPlay("on");
}
function playback(time, func) {
clear();
callback = func;
current = 0;
playTime = setInterval(this, "run", time);
}
}
Symbol 591 MovieClip [__Packages.Main] Frame 0
class Main
{
var clip, player, sw, sh, game, radius, ground, bounces, ball, rv, o, v, fade, dither, target, arm1, arm2, launchTime, slowTime, caught, armCatch, launched, dragging, active, mouse, reaching;
function Main (clip, player) {
this.clip = clip;
this.player = player;
sw = Stage.width;
sh = Stage.height;
init();
}
function init() {
game = {success:false, catches:0, score:0, hiCatches:0, hiScore:0, slow:true, paused:false, highestCatch:0};
radius = clip.objects.ball._width / 2;
ground = chris.physics.Engine.maxY - chris.physics.Engine.ground;
bounces = 0;
ball = new chris.physics.primitives.CircleParticle((chris.physics.Engine.maxX / 2) - 100, ground - radius, radius);
ball.addGraphic(clip.objects.ball);
ball.setForces(0.3, -0.5, 0.3);
rv = new chris.physics.util.Vector(3, 3);
o = new chris.physics.util.Vector(0, 0);
v = new chris.physics.util.Vector(0, 0);
fade = new flash.geom.ColorTransform(1, 1, 1, 0.6, 0, 0, 0, 0);
dither = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, -100);
player.body.bodyClip.onPress = mx.utils.Delegate.create(this, select);
player.body.bodyClip.onRelease = (player.body.bodyClip.onReleaseOutside = mx.utils.Delegate.create(this, release));
player.body.bodyClip.useHandCursor = false;
_root.eventDispatcher.addListener(this);
}
function setTarget(p) {
target = p;
}
function setArms(p1, p2) {
arm1 = p1;
arm2 = p2;
}
function getBallHeight() {
var _local2 = ground - radius;
var _local3 = (_local2 - ball.p.y) / _local2;
return(int(_local3 * 70));
}
function clearIntervals() {
clearInterval(launchTime);
clearInterval(slowTime);
}
function action() {
var _local2 = ball.p.subNew(target.p);
_local2.add(ball.v);
_local2.normalize();
_local2.mult(5);
if (caught) {
ball.set(armCatch.p.x + armCatch.v.x, armCatch.p.y + armCatch.v.y);
} else if (launched) {
arm1.o.sub(_local2);
arm2.o.sub(_local2);
var _local5 = arm1.p.distance(ball.p);
var _local4 = arm2.p.distance(ball.p);
var _local3 = 60;
((_local5 < _local3) ? (success(arm1)) : (((_local4 < _local3) ? (success(arm2)) : null)));
}
scrollScreen();
}
function scrollScreen() {
var _local7 = (-target.p.x) + (sw / 2);
var _local6 = (-target.p.y) + (sh / 2);
var _local5 = chris.physics.Engine.maxX - (sw - 45);
var _local4 = chris.physics.Engine.maxY - sh;
clip._x = Math.min(0, Math.max(_local7, -_local5));
clip._y = Math.max(_local6, -_local4);
var _local3 = (clip._y + chris.physics.Engine.maxY) - sh;
drawBackground(_root.city, clip._x / 7, _local3 / 7, 7);
drawBackground(_root.houses, clip._x / 2, _local3 / 2, 2);
}
function drawBackground(mc, x, y) {
mc._x = x;
mc._y = y;
}
function release() {
dragging = false;
active = true;
}
function select() {
dragging = true;
}
function drag() {
var _local2 = mouse.subNew(target.p);
_local2.mult(0.8);
target.p.add(_local2);
target.o.copy(target.p);
target.air = 0.5;
}
function launchBall() {
clearInterval(launchTime);
var _local3 = new chris.physics.util.Vector(20 - (Math.random() * 40), 20 + (Math.random() * 25));
ball.reset();
ball.p.x = ball.p.x + _local3.x;
ball.p.y = ball.p.y - _local3.y;
_root.soundManager.singleSound("bat", 1);
launched = true;
}
function watch() {
clip.manShadow._x = target.p.x;
clip.manShadow._y = ground;
clip.ballShadow._x = ball.p.x;
clip.ballShadow._y = ground;
if (launched) {
var _local3 = target.p.y >= (ground - 100);
var _local4 = ((!caught) ? (ball.p.y >= (ground - radius)) : (_local3));
var _local6 = ((!caught) ? 1 : 30);
if (_local4) {
bounces++;
}
if (_local3 && (target.velocity() > 0)) {
player.head.gotoAndStop("crash" + player.type);
}
if (bounces > _local6) {
if (!caught) {
fail();
}
end();
_root.onEnterFrame = _root.control;
}
var _local11 = getNestedData(_root);
var _local9 = getNestedData(clip);
var _local8 = getNestedData(clip.objects);
_root.replay.addEvent([_local11, _local9, _local8]);
}
var _local7 = ball.p.degreeBetween(target.p);
var _local5 = ball.p.distance(target.p);
var _local10 = getBallHeight();
_root.metersArrow.follow(_local7, _local10);
_root.metersArrow._visible = (launched && (!caught)) && (_local5 > 250);
_root.nav.score.text = game.score;
_root.nav.catches.text = game.catches;
}
function getNestedData(mc) {
var _local2 = {clips:[], positions:[]};
for (var _local8 in mc) {
var _local1 = mc[_local8];
if ((typeof(_local1) == "movieclip") && (!_local1.skipReplay)) {
_local2.clips.push(_local1);
_local2.positions.push({x:_local1._x, y:_local1._y, r:_local1._rotation, f:_local1._currentframe});
}
}
return(_local2);
}
function drawTrails() {
clip.bitmap._x = -clip._x;
clip.bitmap._y = -clip._y;
v.set(clip._x - o.x, clip._y - o.y);
o.set(clip._x, clip._y);
var _local3 = new flash.geom.Matrix();
_local3.translate(clip._x, clip._y);
_root.scroller.scroll(clip.objects, _local3, v.x, v.y, fade, dither);
}
function replay() {
_root.soundManager.singleSound("replay", 1);
_root.onEnterFrame = null;
_root.scroller.clear();
_root.nav.reset();
_root.nav.replay.gotoAndStop("on");
_root.replay.playback(60, "drawTrails");
}
function toggleSlow(enable) {
if (game.paused) {
return(undefined);
}
game.slow = enable;
if (enable) {
_root.onEnterFrame = null;
slowTime = setInterval(_root, "control", 60);
} else {
clearIntervals();
_root.onEnterFrame = _root.control;
}
}
function unpause() {
clearIntervals();
_root.nav.replay.gotoAndStop("speed");
_root.success.gotoAndPlay(((bounces > 0) ? "oneHand" : "success"));
game.paused = false;
toggleSlow(game.slow);
}
function pause(time) {
clearIntervals();
game.paused = true;
_root.onEnterFrame = null;
slowTime = setInterval(this, "unpause", time);
action();
}
function end() {
launched = false;
clearIntervals();
player.head.gotoAndStop("normal" + player.type);
release();
_root.nav.reset();
_root.nav.popup.success = game.success;
_root.nav.popup.gotoAndPlay("on");
}
function success(a) {
var _local4 = getBallHeight();
caught = true;
game.catches++;
game.score = game.score + _local4;
game.success = true;
armCatch = a;
if (_local4 > game.highestCatch) {
game.highestCatch = _local4;
}
player.head.gotoAndStop("excited" + player.type);
_root.nav.tv._visible = false;
_root.nav.meters.text = _local4 + "m";
var _local3 = _root.so.data;
var _local5 = (_local3.score < game.score) || (_local3.score == null);
game.hiScore = (_local3.score = (_local5 ? (game.score) : (_local3.score)));
game.hiCatches = (_local3.catches = (_local5 ? (game.catches) : (_local3.catches)));
_root.so.flush();
if (bounces > 0) {
_root.soundManager.singleSound("oneHand", 1);
} else {
_root.soundManager.singleSound((((player.type == 1) && (Math.random() > 0.5)) ? "caughtAus" : ("caught" + random(7))), 1);
}
_root.soundManager.singleSound("appeal" + random(4), 2, 20);
pause(900);
}
function fail() {
game.success = false;
_root.nav.tv._visible = false;
_root.soundManager.singleSound(((Math.random() < 0.5) ? "dropped" : ("dropped" + player.type)), 1);
}
function newGame() {
game.score = (game.catches = 0);
_root.replay.reset();
}
function reset() {
_root.soundManager.stopAll();
_root.soundManager.singleSound("amb" + random(4), 2, 10);
if (game.catches > 0) {
if (Math.random() > 0.9) {
_root.soundManager.singleSound(((player.type == 1) ? "select1_0" : ("select2_" + random(5))), 1);
}
} else {
_root.soundManager.singleSound("begin" + random(4), 1);
}
clearIntervals();
chris.physics.Engine.reset();
_root.nav.reset();
_root.nav.tv._visible = true;
_root.scroller.clear();
launched = (dragging = (reaching = (caught = (active = false))));
game.success = false;
launchTime = setInterval(this, "launchBall", 1500);
bounces = 0;
player.head.gotoAndStop("normal" + player.type);
_root.onEnterFrame = _root.control;
scrollScreen();
}
function control() {
mouse = new chris.physics.util.Vector(clip._xmouse, clip._ymouse);
(active ? (action()) : ((dragging ? (drag()) : (target.reset()))));
((!game.paused) ? (watch()) : (eval (null)()));
}
}
Symbol 592 MovieClip [__Packages.chris.physics.primitives.CircleParticle] Frame 0
class chris.physics.primitives.CircleParticle extends chris.physics.primitives.AbstractParticle
{
var radius;
function CircleParticle (x, y, r) {
super(x, y);
radius = r;
}
}
Symbol 593 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 111 Button
on (release) {
_root.soundManager.soundOff();
gotoAndStop ("off");
}
Symbol 114 Button
on (release) {
_root.soundManager.soundOn();
gotoAndStop ("on");
}
Symbol 115 MovieClip Frame 1
stop();
gotoAndStop((_root.soundManager.getSoundOn() ? "on" : "off"));
Symbol 132 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
gotoAndPlay ("clickIT");
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 7
stop();
Symbol 133 MovieClip Frame 13
gotoAndStop (1);
Symbol 133 MovieClip Frame 53
stop();
GAME.challenge();
Symbol 138 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
gotoAndPlay ("clickIT");
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 7
stop();
Symbol 139 MovieClip Frame 13
gotoAndStop (1);
Symbol 139 MovieClip Frame 37
stop();
GAME.viewHS();
Symbol 148 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
gotoAndPlay ("clickIT");
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 7
stop();
Symbol 149 MovieClip Frame 13
gotoAndStop (1);
Symbol 149 MovieClip Frame 96
stop();
GAME.viewHelp();
Symbol 152 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
gotoAndPlay ("clickIT");
}
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 7
stop();
Symbol 169 MovieClip Frame 13
gotoAndStop (1);
Symbol 169 MovieClip Frame 64
stop();
GAME.startGame();
Symbol 176 Button
on (rollOver) {
gotoAndPlay ("on");
}
on (rollOut) {
gotoAndPlay ("off");
}
on (release) {
getURL ("http://www.ashesclashes.com/about.html", "_blank");
}
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 13
stop();
Symbol 178 MovieClip Frame 23
stop();
Symbol 183 Button
on (rollOver) {
gotoAndPlay ("on");
}
on (rollOut) {
gotoAndPlay ("off");
}
on (release) {
getURL ("http://www.ashesclashes.com/buy.html", "_blank");
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 13
stop();
Symbol 185 MovieClip Frame 22
stop();
Symbol 186 MovieClip Frame 26
stop();
Symbol 208 MovieClip Frame 131
_parent.gotoAndStop(2);
Symbol 214 Button
on (release) {
gotoAndStop (2);
}
Symbol 215 Button
on (release) {
gotoAndStop (3);
}
Symbol 219 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 99
dudeSilo.gotoAndStop(2);
Symbol 227 MovieClip Frame 138
_parent.gotoAndStop(3);
Symbol 229 Button
on (release) {
gotoAndStop (1);
}
Symbol 231 MovieClip Frame 129
_parent.gotoAndStop(1);
Symbol 233 MovieClip Frame 1
stop();
Symbol 235 Button
on (release) {
GAME.backtoMain();
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 5
stop();
Symbol 242 MovieClip Frame 1
n = Number(_name.substr(1, 1));
gotoAndPlay(n * 2);
Symbol 242 MovieClip Frame 18
gotoAndPlay (2);
Symbol 254 MovieClip Frame 1
stop();
Symbol 270 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent.chgDisplay(10);
}
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 6
stop();
Symbol 271 MovieClip Frame 13
gotoAndStop (1);
Symbol 273 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent.chgDisplay(-10);
}
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 7
stop();
Symbol 274 MovieClip Frame 14
gotoAndStop (1);
Symbol 277 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent.loadHS("today");
}
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 6
stop();
Symbol 280 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent.loadHS("alltime");
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 6
stop();
Symbol 282 MovieClip Frame 1
function loadHS(typ) {
clearList();
scoreOffset = 0;
HIS = new XML();
HIS.ignoreWhite = true;
HIS.onLoad = function (success) {
if (success) {
sortHIS(this, typ);
}
};
var _local3 = random(1000000000);
if (typ == "today") {
scoreType = "today";
today = "1";
} else {
scoreType = "alltime";
today = "0";
}
var _local2 = (((("http://www.soapcreative.com/highscoreengine/highscoreXML.php?gameid=" + GAMEID) + "&start=0&count=100&today=") + today) + "&cacheB=") + _local3;
HIS.load(_local2);
gotoAndStop ("loading");
}
function sortHIS(x, typ) {
var _local6 = x.firstChild.childNodes;
var _local7 = _local6.length;
HISA = new Array();
var _local1 = 0;
while (_local1 < _local7) {
var _local5 = _local6[_local1];
HISA[_local1] = new Array();
var _local2 = HISA[_local1];
var _local3 = _local5.attributes;
var _local4 = _local3.score;
_local2.score = makeKash(_local4);
_local2.name = _local3.pname.toUpperCase();
_local2.catches = _local3.miscellaneous1;
_local2.team = _local3.miscellaneous2;
_local1++;
}
delete HIS;
gotoAndPlay ("showList");
}
function chgDisplay(d) {
scoreOffset = scoreOffset + d;
makeLIST(scoreOffset);
}
function clearList() {
var i = 0;
while (i < 10) {
var mc = eval ("topList.item_" + i);
mc.stopTween();
mc.removeMovieClip();
i++;
}
}
function makeLIST(off) {
clearList();
if (off == 0) {
but_prev._visible = false;
} else {
but_prev._visible = true;
}
if ((off + 10) > (HISA.length - 1)) {
but_next._visible = false;
} else {
but_next._visible = true;
}
topList.item._visible = 0;
var _local7 = topList.item._x;
var _local1 = 0;
while (_local1 < 10) {
var _local2 = topList.item.duplicateMovieClip("item_" + _local1, _local1);
_local2._y = 0 + (35 * _local1);
var _local3 = _local1 + off;
var _local6 = HISA[_local3].name;
if (_local6 == undefined) {
_local2._visible = 0;
break;
}
_local2.name = HISA[_local3].name;
_local2.score = HISA[_local3].score;
_local2.catches = HISA[_local3].catches;
var _local5 = HISA[_local3].team;
if (_local5 == "uk") {
_local2.flags.gotoAndStop(2);
}
if (((_local1 + 1) + off) < 10) {
n = "0" + (_local1 + 1);
} else {
n = _local1 + 1;
n = n + off;
}
_local2.rank = n;
_local1++;
}
}
_global.trackSite("impression", "view_highscores");
Symbol 282 MovieClip Frame 13
loadHS();
stop();
Symbol 282 MovieClip Frame 16
play();
but_prev._visible = false;
if (scoreType == "alltime") {
alltimeToggle._visible = false;
todayToggle._visible = true;
} else {
alltimeToggle._visible = true;
todayToggle._visible = false;
}
Symbol 282 MovieClip Frame 17
makeLIST(0);
Symbol 282 MovieClip Frame 31
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 10
stop();
Symbol 291 MovieClip Frame 17
gotoAndStop (1);
Symbol 291 MovieClip Frame 31
stop();
Symbol 301 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent.chooseFlag("aus");
}
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 11
stop();
Symbol 303 MovieClip Frame 22
stop();
Symbol 303 MovieClip Frame 31
stop();
Symbol 303 MovieClip Frame 43
stop();
Symbol 303 MovieClip Frame 51
stop();
Symbol 306 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent.chooseFlag("uk");
}
Symbol 308 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent.chooseFlag("aus");
}
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 11
stop();
Symbol 309 MovieClip Frame 22
stop();
Symbol 309 MovieClip Frame 31
stop();
Symbol 309 MovieClip Frame 43
stop();
Symbol 309 MovieClip Frame 51
stop();
Symbol 316 Button
on (release) {
_parent.checkForm();
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 7
stop();
Symbol 321 Button
on (release) {
GAME.showPP();
}
Symbol 335 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_global.trackSite("click", "challenge_again");
_parent.gotoAndPlay("submitForm");
}
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 8
stop();
Symbol 336 MovieClip Frame 14
gotoAndStop (1);
Symbol 337 MovieClip Frame 1
function chooseFlag(t) {
if (t == "uk") {
flag_aus.gotoAndPlay("chooseOther");
flag_uk.gotoAndPlay("sel");
} else if (t == "aus") {
flag_uk.gotoAndPlay("chooseOther");
flag_aus.gotoAndPlay("sel");
}
supports = t;
}
function send_data() {
_global.trackSite("impression", "challenge_sent");
MF = new LoadVars();
MF.onLoad = function (success) {
if (success) {
gotoAndPlay ("done");
} else {
gotoAndPlay ("error");
}
};
a = 0;
MF.strName = firstname.text;
SOD.username = firstname.text;
MF.strEmail = useremail.text;
SOD.useremail = MF.strEmail;
MF.intScore = theScore;
MF.catches = theCatches;
MF.F_email_1 = F_email_1.text;
MF.F_name_1 = F_name_1.text;
gotoAndPlay ("sendForm");
}
function checkForm() {
errorB.gotoAndStop(1);
var _local1 = true;
errorA = new Array();
if ((firstname.text eq "") || (check_cuss(firstname.text) eq "bad")) {
_local1 = false;
fieldsA[0].bg.gotoAndPlay("error");
} else {
fieldsA[0].bg.gotoAndStop(1);
}
useremail.text = chkWWW(useremail.text);
if ((useremail.text eq "") || (!chkEmail(useremail.text))) {
_local1 = false;
fieldsA[1].bg.gotoAndPlay("error");
} else {
fieldsA[1].bg.gotoAndStop(1);
}
if ((F_email_1.text eq "") || (!chkEmail(F_email_1.text))) {
_local1 = false;
F_email_1.bg.gotoAndPlay("error");
} else {
F_email_1.bg.gotoAndStop(1);
}
if ((F_name_1.text eq "") || (check_cuss(F_name_1.text) eq "bad")) {
_local1 = false;
F_name_1.bg.gotoAndPlay("error");
} else {
F_name_1.bg.gotoAndStop(1);
}
if (supports == undefined) {
flag_aus.gotoAndPlay("error");
flag_uk.gotoAndPlay("error");
_local1 = false;
}
if (_local1) {
send_data();
} else {
errorB.gotoAndPlay(2);
}
}
stop();
if (SOD.username) {
firstname.text = SOD.username;
useremail.text = SOD.useremail;
}
theScore = SOD.score;
theCatches = SOD.catches;
sfocus = function () {
this.bg.gotoAndPlay(2);
};
kfocus = function () {
this.bg.gotoAndPlay("fade");
};
fieldsA = new Array(firstname, useremail, F_name_1, F_email_1);
email.restrict = "^ /!$%&*()=+";
F_email_1.restrict = "^ /!$%&*()=+";
var i = 0;
while (i < fieldsA.length) {
fieldsA[i].onSetFocus = sfocus;
fieldsA[i].onKillFocus = kfocus;
fieldsA[i].bg = eval (fieldsA[i] + "Box");
fieldsA[i].defaultTXT = fieldsA[i].text;
fieldsA[i].tabIndex = i + 1;
i++;
}
serverURL_uk = "http://www.soap.com.au/php_dev/sendfriend/classic_catch_challenge_uk.php";
serverURL_aus = "http://www.soap.com.au/php_dev/sendfriend/classic_catch_challenge_aus.php";
Symbol 337 MovieClip Frame 14
if (supports == "uk") {
MF.sendAndLoad(serverURL_uk, MF, "POST");
} else {
MF.sendAndLoad(serverURL_aus, MF, "POST");
}
Symbol 337 MovieClip Frame 15
a++;
if (a > 250) {
gotoAndStop ("error");
} else {
play();
}
Symbol 337 MovieClip Frame 16
gotoAndPlay(_currentframe - 1);
Symbol 337 MovieClip Frame 85
stop();
Symbol 360 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 3
_root.soundManager.singleSound("thud" + random(3), 1);
Symbol 384 MovieClip Frame 6
_root.soundManager.singleSound("thud" + random(3), 1);
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 24
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 24
stop();
Symbol 421 Button
on (rollOver) {
_root.soundManager.stop(1);
_root.soundManager.singleSound("select1_0", 1);
txtAussie.gotoAndPlay(2);
txtAussieShad.gotoAndPlay(2);
}
on (rollOut) {
txtAussie.gotoAndPlay("fade");
txtAussieShad.gotoAndPlay("fade");
}
on (release) {
chooseTeam(1);
}
Symbol 423 Button
on (rollOver) {
_root.soundManager.stop(1);
_root.soundManager.singleSound("select2_" + random(5), 1);
txtPom.gotoAndPlay(2);
txtPomShad.gotoAndPlay(2);
}
on (rollOut) {
txtPom.gotoAndPlay("fade");
txtPomShad.gotoAndPlay("fade");
}
on (release) {
chooseTeam(2);
}
Symbol 457 Button
on (release) {
_root.main.end();
_root.replay.end();
_root.gotoAndPlay("mainMenu");
}
Symbol 466 Button
on (release) {
_root.replay.reset();
}
Symbol 472 Button
on (release) {
_root.main.toggleSlow(!_root.main.game.slow);
gotoAndStop((_root.main.game.slow ? "on" : "off"));
}
Symbol 475 MovieClip Frame 9
stop();
gotoAndStop((_root.main.game.slow ? "on" : "off"));
Symbol 476 MovieClip Frame 1
stop();
Symbol 477 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent._parent.goFunc("instantReplay");
}
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 8
stop();
Symbol 481 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent._parent.goFunc("newBall");
}
Symbol 482 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 8
stop();
Symbol 487 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent._parent.goFunc("submitScore");
}
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 8
stop();
Symbol 491 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent._parent.goFunc("startAgain");
}
Symbol 492 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 8
stop();
Symbol 495 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_parent._parent.goFunc("mainMenu");
}
Symbol 496 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 8
stop();
Symbol 498 MovieClip Frame 110
stop();
Symbol 499 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 2
function goFunc(t) {
nxtFunc = t;
gotoAndPlay ("fade");
}
var nxtFunc;
chooseP.gotoAndStop((success ? 1 : 2));
Symbol 500 MovieClip Frame 12
stop();
Symbol 500 MovieClip Frame 28
switch (nxtFunc) {
case "instantReplay" :
_global.trackSite("click", "instantReplay");
_root.main.replay();
break;
case "newBall" :
_global.trackSite("click", "newBall");
_root.replay.reset();
break;
case "mainMenu" :
_global.trackSite("click", "mainMenu");
_root.gotoAndPlay("mainMenu");
break;
case "submitScore" :
_root.gotoAndPlay("submitScore");
break;
case "startAgain" :
_global.trackSite("click", "startAgain");
_root.main.newGame();
}
Symbol 501 MovieClip Frame 1
function reset() {
_root.success.gotoAndStop("off");
popup.gotoAndStop("off");
replay.gotoAndStop("off");
meters.text = "";
}
Symbol 516 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 1
stop();
var skipReplay = true;
Symbol 521 MovieClip Frame 2
title.gotoAndStop(1 + random(title._totalframes));
Symbol 521 MovieClip Frame 68
stop();
Symbol 521 MovieClip Frame 103
stop();
Symbol 521 MovieClip Frame 161
stop();
Symbol 524 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 14
stop();
Symbol 530 Button
on (release) {
GAME.showTC();
}
Symbol 537 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
getURL ("http://www.ashesclashes.com.au/about.html", "_blank");
}
Symbol 538 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 9
stop();
Symbol 543 Button
on (release) {
gotoAndPlay ("deactivate");
}
Symbol 545 Button
on (release) {
gotoAndPlay ("activate");
}
Symbol 547 MovieClip Frame 8
stop();
_parent.optin = "1";
Symbol 547 MovieClip Frame 15
stop();
_parent.optin = "0";
Symbol 551 Button
on (release) {
_parent.clickTICK(this);
}
Symbol 553 MovieClip Frame 1
stop();
active = "0";
Symbol 553 MovieClip Frame 9
stop();
active = "1";
Symbol 553 MovieClip Frame 16
stop();
active = "0";
Symbol 559 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_root.gotoAndPlay("mainMenu");
}
Symbol 560 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 7
stop();
Symbol 560 MovieClip Frame 13
gotoAndStop (1);
Symbol 562 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
_root.gotoAndPlay("theGame");
}
Symbol 563 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 7
stop();
Symbol 563 MovieClip Frame 13
gotoAndStop (1);
Symbol 565 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
GAME.challenge();
}
Symbol 566 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 7
stop();
Symbol 566 MovieClip Frame 13
gotoAndStop (1);
Symbol 567 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("fade");
}
on (release) {
GAME.viewHS();
}
Symbol 568 MovieClip Frame 1
stop();
Symbol 568 MovieClip Frame 7
stop();
Symbol 568 MovieClip Frame 13
gotoAndStop (1);
Symbol 572 MovieClip Frame 1
function chooseFlag(t) {
if (t == "uk") {
flag_aus.gotoAndPlay("chooseOther");
flag_uk.gotoAndPlay("sel");
} else if (t == "aus") {
flag_uk.gotoAndPlay("chooseOther");
flag_aus.gotoAndPlay("sel");
}
supports = t;
}
function clickTICK(mc) {
var _local2 = mc.active;
tickBoxA.gotoAndStop(1);
tickBoxB.gotoAndStop(1);
tickBoxC.gotoAndStop(1);
if (_local2 == "active") {
mc.gotoAndPlay("deactivate");
} else {
mc.gotoAndPlay("activate");
}
}
function send_data() {
MF = new LoadVars();
MF.onLoad = function (success) {
if (success) {
if (MF.result eq "yes") {
_global.trackSite("impression", "submit_score_success");
gotoAndPlay ("done");
} else if (MF.result eq "lower") {
_global.trackSite("impression", "submit_score_error");
gotoAndPlay ("lower");
}
} else {
gotoAndPlay ("error");
}
};
a = 0;
MF.intGameId = GAMEID;
MF.strName = firstname.text;
SOD.username = firstname.text;
MF.strEmail = useremail.text;
SOD.useremail = MF.strEmail;
MF.intScore = theScore;
MF.strMisc1 = theCatches;
MF.strMisc2 = supports;
MF.strMisc3 = country;
MF.strMisc4 = highestCatch;
MF.intOptIn = optin;
gotoAndPlay ("sendform");
}
function checkForm() {
countryBox.gotoAndStop(1);
var _local1 = true;
if ((firstname.text eq "") || (check_cuss(firstname.text) eq "bad")) {
_local1 = false;
fieldsA[0].bg.gotoAndPlay("error");
} else {
fieldsA[0].bg.gotoAndStop(1);
}
useremail.text = chkWWW(useremail.text);
if ((useremail.text eq "") || (!chkEmail(useremail.text))) {
_local1 = false;
fieldsA[1].bg.gotoAndPlay("error");
} else {
fieldsA[1].bg.gotoAndStop(1);
}
if (supports == undefined) {
flag_aus.gotoAndPlay("error");
flag_uk.gotoAndPlay("error");
_local1 = false;
}
if (((tickBoxA.active == "0") && (tickBoxB.active == "0")) && (tickBoxC.active == "0")) {
_local1 = false;
countryBox.gotoAndPlay("error");
} else if (tickBoxA.active == "1") {
country = "AUS";
} else if (tickBoxB.active == "1") {
country = "UK";
} else if (tickBoxC.active == "1") {
country = "OTH";
}
if (_local1) {
send_data();
} else {
errorB.gotoAndPlay(2);
}
}
stop();
optin = "1";
if (SOD.username) {
firstname.text = SOD.username;
useremail.text = SOD.useremail;
}
theScore = _root.main.game.score;
theCatches = _root.main.game.catches;
highestCatch = _root.main.game.highestCatch;
sfocus = function () {
this.bg.gotoAndPlay(2);
};
kfocus = function () {
this.bg.gotoAndPlay("fade");
};
fieldsA = new Array(firstname, useremail);
email.restrict = "^ /!$%&*()=+";
var i = 0;
while (i < fieldsA.length) {
fieldsA[i].onSetFocus = sfocus;
fieldsA[i].onKillFocus = kfocus;
fieldsA[i].bg = eval (fieldsA[i] + "Box");
fieldsA[i].defaultTXT = fieldsA[i].text;
fieldsA[i].tabIndex = i + 1;
i++;
}
serverURL = "http://www.soap.com.au/highscoreengine/portal.php";
Symbol 572 MovieClip Frame 14
MF.sendAndLoad(serverURL, MF, "POST");
Symbol 572 MovieClip Frame 15
a++;
if (a > 250) {
gotoAndStop ("error");
} else {
play();
}
Symbol 572 MovieClip Frame 16
gotoAndPlay(_currentframe - 1);
Symbol 572 MovieClip Frame 41
stop();
Symbol 572 MovieClip Frame 55
stop();
Symbol 572 MovieClip Frame 69
stop();