Combined Code
movieClip 7 mc_bigbang {
frame 1 {
var mcCanvas;
var bmpCanvas;
mcCanvas = this.createEmptyMovieClip('mcCanvas', this.getNextHighestDepth());
bmpCanvas = new flash.display.BitmapData(Stage.width, Stage.height, true, 0);
mcCanvas.attachBitmap(bmpCanvas, this.getNextHighestDepth());
this.attachMovie('mc_firework', 'mcFirework1', this.getNextHighestDepth());
this.attachMovie('mc_firework', 'mcFirework2', this.getNextHighestDepth());
this.attachMovie('mc_firework', 'mcFirework3', this.getNextHighestDepth());
this.attachMovie('mc_firework', 'mcFirework4', this.getNextHighestDepth());
this.attachMovie('mc_firework', 'mcFirework5', this.getNextHighestDepth());
onEnterFrame = function () {
if (fireaway == true) {
if (mcFirework1.timetolaunch == null) {
mcFirework1.setData(mcCanvas, bmpCanvas, 'gfx_firework', 0, 90);
}
if (mcFirework2.timetolaunch == null) {
mcFirework2.setData(mcCanvas, bmpCanvas, 'gfx_firework_blue', 20, 100);
}
if (mcFirework3.timetolaunch == null) {
mcFirework3.setData(mcCanvas, bmpCanvas, 'gfx_firework_green', 42, 105);
}
if (mcFirework4.timetolaunch == null) {
mcFirework4.setData(mcCanvas, bmpCanvas, 'gfx_firework_yellow', 50, 621);
}
if (mcFirework5.timetolaunch == null) {
mcFirework5.setData(mcCanvas, bmpCanvas, 'gfx_firework_purple', 56, 580);
}
bmpCanvas.fillRect(new flash.geom.Rectangle(0, 0, bmpCanvas.width, bmpCanvas.height), 0);
mcFirework1.drawParticles();
mcFirework2.drawParticles();
mcFirework3.drawParticles();
mcFirework4.drawParticles();
mcFirework5.drawParticles();
}
};
stop();
}
}
movieClip 8 mc_firework {
frame 1 {
function setData(mc, bmp, fire, col, sx) {
timetolaunch = col;
startx = sx;
posx = startx;
mcCanvas = mc;
bmpCanvas = bmp;
bmpFirework = flash.display.BitmapData.loadBitmap(fire);
speedx = Math.random() * 2 - 1;
time = 105 + Math.floor(Math.random() * 10) - 5;
}
function drawParticles() {
if (timetolaunch > 0) {
--timetolaunch;
return undefined;
}
if (pstate == 0) {
bmpCanvas.copyPixels(bmpFirework, new flash.geom.Rectangle(85, 16, 16, 16), new flash.geom.Point(posx, posy), bmpFirework, new flash.geom.Point(85, 16), true);
posx += speedx;
posy += speedy;
speedy += 0.15;
--time;
if (time == 0) {
particles = new Array();
var v3;
var v4;
var v1 = 0;
while (v1 < 100) {
v4 = Math.random() * 360 * Math.PI / 360;
v3 = Math.random() * 8 - 4;
particles.push(makeParticle(posx, posy, Math.cos(v4) * v3, Math.sin(v4) * v3, 50));
++v1;
}
pstate = 1;
time = 50;
}
} else {
if (pstate == 1) {
var v5 = 160 - Math.floor(time * 10 / 50) * 16;
var v1 = 0;
while (v1 < 100) {
var v2 = Math.floor(Math.random() * 2) * 16;
bmpCanvas.copyPixels(bmpFirework, new flash.geom.Rectangle(v5, v2, 16, 16), new flash.geom.Point(particles[v1].x, particles[v1].y), bmpFirework, new flash.geom.Point(v5, v2), true);
particles[v1].x += particles[v1].speedx;
particles[v1].y += particles[v1].speedy;
++v1;
}
--time;
if (time == 0) {
pstate = 0;
posx = startx;
posy = 300;
speedy = -10;
speedx = Math.random() * 2 - 1;
time = 105 + Math.floor(Math.random() * 10) - 5;
}
}
}
}
function makeParticle(px, py, sx, sy, life) {
return {'x': px, 'y': py, 'speedx': sx, 'speedy': sy, 'life': life};
}
var posx = 200;
var posy = 300;
var speedx = 2;
var speedy = -10;
var time = 105;
var pstate = 0;
var particles;
var startx = 0;
var timetolaunch;
var mcCanvas;
var bmpCanvas;
var bmpFirework;
}
}
movieClip 9 mc3D_square {
#initclip
Object.registerClass('mc3D_square', kage.classes.kage3d);
#endinitclip
frame 1 {
function onInitObject() {
pointsArray = [make3DPoint(2.932581, 0.111765, -68.79139000000001), make3DPoint(2.932581, 0.111765, 69.04139000000001), make3DPoint(-0.046501, -12.36373, -68.29139000000001), make3DPoint(-0.046501, -12.36373, 69.54139000000001), make3DPoint(-2.932581, 0.111765, -68.79139000000001), make3DPoint(-2.932581, 0.111765, 69.04139000000001), make3DPoint(0.046501, -12.36373, -68.29139000000001), make3DPoint(0.046501, -12.36373, 69.54139000000001), make3DPoint(-2.932581, 0.111765, 69.04139000000001), make3DPoint(65.04956, 0.111765, 69.04139000000001), make3DPoint(65.04956, 0.111765, -68.79139000000001), make3DPoint(2.932581, 0.111765, -68.79139000000001), make3DPoint(2.932581, 0.111765, 69.04139000000001), make3DPoint(88.28683, 0.08333400000000001, -68.875), make3DPoint(88.28683, 0.08333400000000001, 69.125), make3DPoint(53.2535, 0, -68.60833), make3DPoint(12.12017, 0, -68.74167), make3DPoint(17.12017, 0, -58.875), make3DPoint(47.78684, 0, -58.54167), make3DPoint(-65.04956, 0.111765, 69.04139000000001), make3DPoint(-65.04956, 0.111765, -68.79139000000001), make3DPoint(-2.932581, 0.111765, -68.79139000000001), make3DPoint(-88.28683, 0.08333400000000001, -68.875), make3DPoint(-88.28683, 0.08333400000000001, 69.125), make3DPoint(-53.2535, 0, -68.60833), make3DPoint(-12.12017, 0, -68.74167), make3DPoint(-17.12017, 0, -58.875), make3DPoint(-47.78684, 0, -58.54167), make3DPoint(-2.932581, 0.111765, 69.04139000000001), make3DPoint(-49.58966, 0.07451000000000001, 10.5137)];
faceArray = [{'points': [0, 2, 3], 'color': 1}, {'points': [0, 3, 1], 'color': 1}, {'points': [7, 6, 4], 'color': 1}, {'points': [5, 7, 4], 'color': 1}, {'points': [5, 1, 5], 'color': 1}, {'points': [9, 11, 12], 'color': 2}, {'points': [10, 9, 13], 'color': 2}, {'points': [9, 14, 13], 'color': 2}, {'points': [18, 10, 15], 'color': 2}, {'points': [9, 10, 18], 'color': 2}, {'points': [18, 17, 9], 'color': 2}, {'points': [9, 17, 11], 'color': 2}, {'points': [17, 16, 11], 'color': 2}, {'points': [17, 15, 16], 'color': 2}, {'points': [17, 18, 15], 'color': 2}, {'points': [22, 19, 20], 'color': 2}, {'points': [22, 23, 19], 'color': 2}, {'points': [24, 20, 27], 'color': 2}, {'points': [27, 20, 19], 'color': 2}, {'points': [21, 25, 26], 'color': 2}, {'points': [25, 24, 26], 'color': 2}, {'points': [24, 27, 26], 'color': 2}, {'points': [28, 21, 26], 'color': 2}, {'points': [8, 26, 27], 'color': 2}, {'points': [29, 19, 8], 'color': 2}, {'points': [27, 29, 8], 'color': 2}, {'points': [27, 19, 29], 'color': 2}];
}
function modifyModel(elevator, winglets) {
pointsArray[15].y = (elevator / 10) * __scale;
pointsArray[16].y = (elevator / 10) * __scale;
pointsArray[24].y = (elevator / 10) * __scale;
pointsArray[25].y = (elevator / 10) * __scale;
if (winglets == 1) {
pointsArray[13].x = 65 * __scale;
pointsArray[13].y = 23 * __scale;
pointsArray[14].x = 65 * __scale;
pointsArray[14].y = 23 * __scale;
pointsArray[22].x = -65 * __scale;
pointsArray[22].y = 23 * __scale;
pointsArray[23].x = -65 * __scale;
pointsArray[23].y = 23 * __scale;
} else {
pointsArray[13].x = 88 * __scale;
pointsArray[13].y = 0;
pointsArray[14].x = 88 * __scale;
pointsArray[14].y = 0;
pointsArray[22].x = -88 * __scale;
pointsArray[22].y = 0;
pointsArray[23].x = -88 * __scale;
pointsArray[23].y = 0;
}
}
onInitObject();
colorArray = [{'back': 4155525, 'front': 14674411}, {'back': 4155525, 'front': 14674411}, {'back': 5208213, 'front': 15727099}];
SetScale(0.95);
onInitObject();
rx = -0.24;
ry = -0.28;
rz = -3.1;
stop();
}
}
movieClip 10 mc3D_dart {
#initclip
Object.registerClass('mc3D_dart', kage.classes.kage3d);
#endinitclip
frame 1 {
function onInitObject() {
pointsArray = [make3DPoint(3, -0.45, -141.4), make3DPoint(3, -0.45, 142.1), make3DPoint(-3, -0.45, -141.4), make3DPoint(-3, -0.45, 142.1), make3DPoint(89, 0, -80.33334000000001), make3DPoint(89, 0, -141.5), make3DPoint(102.1667, 0, -113.1667), make3DPoint(102.1667, 0, -141.5), make3DPoint(-89, 0, -80.33334000000001), make3DPoint(-89, 0, -141.5), make3DPoint(-102.1667, 0, -113.1667), make3DPoint(-102.1667, 0, -141.5), make3DPoint(-3, -0.45, 142.1), make3DPoint(-78, 0, -141.45), make3DPoint(-70, 0, -130.7833), make3DPoint(-18.33333, 0, -130.1167), make3DPoint(-13, 0, -141.1167), make3DPoint(13, 0, -141.1167), make3DPoint(19.66667, 0, -130.45), make3DPoint(78, 0, -141.1167), make3DPoint(71, 0, -129.7833), make3DPoint(3, -0.45, -141.4), make3DPoint(3, -0.45, -141.4), make3DPoint(3, -0.45, 142.1), make3DPoint(0, -13.45, -141.4), make3DPoint(0, -13.45, -141.4), make3DPoint(0, -13.45, 142.1), make3DPoint(0, -13.45, 178.1), make3DPoint(-3, -0.45, -141.4), make3DPoint(-3, -0.45, -141.4), make3DPoint(-3, -0.45, 142.1)];
faceArray = [{'points': [4, 6, 5], 'color': 1}, {'points': [6, 7, 5], 'color': 1}, {'points': [9, 10, 8], 'color': 1}, {'points': [9, 11, 10], 'color': 1}, {'points': [8, 12, 9], 'color': 1}, {'points': [1, 4, 5], 'color': 1}, {'points': [18, 20, 19], 'color': 1}, {'points': [19, 17, 18], 'color': 1}, {'points': [20, 5, 19], 'color': 1}, {'points': [18, 17, 0], 'color': 1}, {'points': [15, 2, 16], 'color': 1}, {'points': [14, 15, 16], 'color': 1}, {'points': [16, 13, 14], 'color': 1}, {'points': [13, 9, 14], 'color': 1}, {'points': [15, 3, 2], 'color': 1}, {'points': [14, 3, 15], 'color': 1}, {'points': [3, 14, 9], 'color': 1}, {'points': [1, 5, 20], 'color': 1}, {'points': [20, 18, 1], 'color': 1}, {'points': [1, 18, 0], 'color': 1}, {'points': [24, 25, 22], 'color': 2}, {'points': [24, 22, 21], 'color': 2}, {'points': [22, 25, 26], 'color': 2}, {'points': [22, 26, 23], 'color': 2}, {'points': [26, 27, 23], 'color': 2}, {'points': [29, 25, 24], 'color': 2}, {'points': [28, 29, 24], 'color': 2}, {'points': [26, 25, 29], 'color': 2}, {'points': [30, 26, 29], 'color': 2}, {'points': [30, 27, 26], 'color': 2}];
}
function modifyModel(elevator, winglets) {
pointsArray[13].y = (elevator / 10) * __scale;
pointsArray[16].y = (elevator / 10) * __scale;
pointsArray[17].y = (elevator / 10) * __scale;
pointsArray[19].y = (elevator / 10) * __scale;
if (winglets == 1) {
pointsArray[6].x = 89 * __scale;
pointsArray[6].y = 13 * __scale;
pointsArray[7].x = 89 * __scale;
pointsArray[7].y = 13 * __scale;
pointsArray[10].x = -89 * __scale;
pointsArray[10].y = 13 * __scale;
pointsArray[11].x = -89 * __scale;
pointsArray[11].y = 13 * __scale;
} else {
pointsArray[6].x = 102.1667 * __scale;
pointsArray[6].y = 0;
pointsArray[7].x = 102.1667 * __scale;
pointsArray[7].y = 0;
pointsArray[10].x = -102.1667 * __scale;
pointsArray[10].y = 0;
pointsArray[11].x = -102.1667 * __scale;
pointsArray[11].y = 0;
}
}
onInitObject();
colorArray = [{'back': 4155525, 'front': 14674411}, {'back': 4155525, 'front': 14674411}, {'back': 5208213, 'front': 15727099}];
SetScale(0.8);
onInitObject();
rx = -0.24;
ry = -0.48;
rz = -3.1;
stop();
}
}
movieClip 11 mc3DEagle {
#initclip
Object.registerClass('mc3DEagle', kage.classes.kage3d);
#endinitclip
frame 1 {
function onInitObject() {
pointsArray = [make3DPoint(4, 0, -79), make3DPoint(4, 0, 0.5), make3DPoint(4, 0, 80), make3DPoint(0, -36.5, -73.5), make3DPoint(0, -23.5, 0.5), make3DPoint(0, -12, 81.5), make3DPoint(2, -10.41667, -46.83334), make3DPoint(2, -6.833334, 51.5), make3DPoint(-4, 0, -79), make3DPoint(-4, 0, 0.5), make3DPoint(-4, 0, 80), make3DPoint(-2, -10.41667, -46.83334), make3DPoint(-2, -6.833334, 51.5), make3DPoint(4, 0, -79), make3DPoint(4, 0, 0.5), make3DPoint(4, 0, 80), make3DPoint(18.83333, 0, 80.16667), make3DPoint(65, 0, -20), make3DPoint(65, 0, -79), make3DPoint(75.5, 0, -79), make3DPoint(79.5, 0, -51), make3DPoint(20.5, 0, -79), make3DPoint(49, 0, -79), make3DPoint(49, 0, -69), make3DPoint(20.5, 0, -69), make3DPoint(22.05556, 0, -10.63889), make3DPoint(-4, 0, -79), make3DPoint(-65, 0, -20), make3DPoint(-65, 0, -79), make3DPoint(-75.5, 0, -79), make3DPoint(-79.5, 0, -51), make3DPoint(-20.5, 0, -79), make3DPoint(-49, 0, -79), make3DPoint(-49, 0, -69), make3DPoint(-20.5, 0, -69), make3DPoint(-21.5, 0, 79.66667)];
faceArray = [{'points': [6, 3, 4], 'color': 0}, {'points': [6, 4, 1], 'color': 0}, {'points': [7, 5, 2], 'color': 0}, {'points': [7, 2, 1], 'color': 0}, {'points': [0, 3, 6], 'color': 0}, {'points': [0, 6, 1], 'color': 0}, {'points': [4, 7, 1], 'color': 0}, {'points': [4, 5, 7], 'color': 0}, {'points': [4, 3, 11], 'color': 0}, {'points': [9, 4, 11], 'color': 0}, {'points': [10, 5, 12], 'color': 0}, {'points': [9, 10, 12], 'color': 0}, {'points': [11, 3, 8], 'color': 0}, {'points': [9, 11, 8], 'color': 0}, {'points': [9, 12, 4], 'color': 0}, {'points': [12, 5, 4], 'color': 0}, {'points': [17, 20, 19], 'color': 1}, {'points': [19, 18, 17], 'color': 1}, {'points': [17, 18, 23], 'color': 1}, {'points': [18, 22, 23], 'color': 1}, {'points': [23, 22, 21], 'color': 1}, {'points': [21, 24, 23], 'color': 1}, {'points': [24, 17, 23], 'color': 1}, {'points': [24, 21, 13], 'color': 1}, {'points': [15, 25, 14], 'color': 1}, {'points': [15, 16, 25], 'color': 1}, {'points': [14, 25, 13], 'color': 1}, {'points': [25, 24, 13], 'color': 1}, {'points': [29, 30, 27], 'color': 1}, {'points': [27, 28, 29], 'color': 1}, {'points': [33, 28, 27], 'color': 1}, {'points': [33, 32, 28], 'color': 1}, {'points': [31, 32, 33], 'color': 1}, {'points': [33, 34, 31], 'color': 1}, {'points': [33, 27, 34], 'color': 1}, {'points': [26, 31, 34], 'color': 1}, {'points': [16, 17, 25], 'color': 1}, {'points': [25, 17, 24], 'color': 1}, {'points': [34, 9, 8], 'color': 1}, {'points': [9, 34, 27], 'color': 1}, {'points': [10, 9, 27], 'color': 1}, {'points': [35, 10, 27], 'color': 1}];
}
function modifyModel(elevator, winglets) {
pointsArray[21].y = elevator / 10;
pointsArray[22].y = elevator / 10;
pointsArray[31].y = elevator / 10;
pointsArray[32].y = elevator / 10;
if (winglets == 1) {
pointsArray[19].x = 65;
pointsArray[19].y = 10;
pointsArray[20].x = 65;
pointsArray[20].y = 10;
pointsArray[29].x = -65;
pointsArray[29].y = 10;
pointsArray[30].x = -65;
pointsArray[30].y = 10;
} else {
pointsArray[19].x = 75.5;
pointsArray[19].y = 0;
pointsArray[20].x = 79.5;
pointsArray[20].y = 0;
pointsArray[29].x = -75.5;
pointsArray[29].y = 0;
pointsArray[30].x = -79.5;
pointsArray[30].y = 0;
}
}
onInitObject();
colorArray = [{'back': 4155525, 'front': 14674411}, {'back': 5208213, 'front': 15727099}];
onInitObject();
rx = -0.24;
ry = -0.48;
rz = -3.1;
stop();
}
}
movieClip 15 mc_debug {
}
movieClip 17 ContentArea {
}
frame 1 {
var demomode;
var challengeID;
var challengeEmail;
var challReciever = new LoadVars();
var nullReciever = new LoadVars();
var challCheckup = false;
if (jid != null && jid != '') {
var dataSender = new LoadVars();
dataSender.id = jid;
dataSender.email = jemail;
challReciever.onLoad = function () {
if (challReciever.result == 0) {
challengeID = jid;
challengeEmail = jemail;
demomode = challReciever.demomode;
}
challCheckup = true;
};
dataSender.sendAndLoad('LoadChallenge.aspx', challReciever, 'POST');
} else {
challCheckup = true;
}
stop();
}
frame 1 {
var preloadDone = false;
mcLoader.onLoaded = function () {
preloadDone = true;
};
this.onEnterFrame = function () {
if (challCheckup && preloadDone) {
gotoAndPlay(3);
}
};
}
movieClip 25 {
}
movieClip 26 {
frame 1 {
var fadecounter = 0;
var fadedirection = false;
var onLoaded;
onEnterFrame = function () {
txtLoading._alpha = fadecounter;
if (fadedirection) {
fadecounter -= 10;
if (fadecounter == 0) {
fadedirection = false;
}
} else {
fadecounter += 10;
if (fadecounter == 100) {
fadedirection = true;
}
}
var v2 = _root.getBytesTotal();
var v3 = _root.getBytesLoaded();
if (v3 == v2) {
txtPercent.text = '100%';
mcLoadBar._width = 100;
onLoaded();
} else {
txtPercent.text = int((v3 / v2) * 100) + '%';
mcLoadBar._width = int((v3 / v2) * 100);
}
};
stop();
}
}
instance mcLoader of movieClip 26 {
}
movieClip 32 {
frame 1 {
_root.vol = 100;
_root.sfx_gui_click.setVolume(100);
_root.sfx_gui_slide.setVolume(100);
_root.sfx_challenge_come.setVolume(100);
_root.sfx_challenge_go_for_it.setVolume(100);
_root.sfx_challenge_i_love.setVolume(100);
_root.sfx_challenge_looser.setVolume(100);
_root.sfx_challenge_publik_sorl_loop.setVolume(100);
_root.sfx_challenge_publik_winner.setVolume(100);
_root.sfx_challenge_show_what.setVolume(100);
_root.sfx_challenge_speaker_heres_the_moment.setVolume(100);
_root.sfx_challenge_speaker_wait_and_see.setVolume(100);
_root.sfx_challenge_speaker_we_have_a_winner.setVolume(100);
_root.sfx_challenge_speaker_welcome.setVolume(100);
_root.sfx_title.setVolume(100);
onPress = function () {
var v1 = new LoadVars();
v1.cmd = 'off';
v1.sendAndLoad('Sound.aspx', v1, 'GET');
gotoAndPlay(2);
};
stop();
}
frame 2 {
_root.vol = 0;
_root.sfx_gui_click.setVolume(0);
_root.sfx_gui_slide.setVolume(0);
_root.sfx_challenge_come.setVolume(0);
_root.sfx_challenge_go_for_it.setVolume(0);
_root.sfx_challenge_i_love.setVolume(0);
_root.sfx_challenge_looser.setVolume(0);
_root.sfx_challenge_publik_sorl_loop.setVolume(0);
_root.sfx_challenge_publik_winner.setVolume(0);
_root.sfx_challenge_show_what.setVolume(0);
_root.sfx_challenge_speaker_heres_the_moment.setVolume(0);
_root.sfx_challenge_speaker_wait_and_see.setVolume(0);
_root.sfx_challenge_speaker_we_have_a_winner.setVolume(0);
_root.sfx_challenge_speaker_welcome.setVolume(0);
_root.sfx_title.setVolume(0);
onPress = function () {
var v1 = new LoadVars();
v1.cmd = 'on';
v1.sendAndLoad('Sound.aspx', v1, 'GET');
gotoAndPlay(1);
};
stop();
}
}
movieClip 42 {
frame 1 {
stop();
}
frame 20 {
stop();
}
}
movieClip 43 {
frame 1 {
butSolidLink.onPress = function () {
_root.getURL('solidworks.asp', '_blank');
};
}
}
instance mcBorder of movieClip 43 {
}
movieClip 46 {
}
movieClip 47 {
frame 1 {
stop();
}
frame 19 {
stop();
}
}
movieClip 401 __Packages.kage.classes.kage3d {
#initclip
if (!_global.kage) {
_global.kage = new Object();
}
if (!_global.kage.classes) {
_global.kage.classes = new Object();
}
if (!_global.kage.classes.kage3d) {
var v1 = function () {
super();
this.onEnterFrame = function () {
this.drawObject(this, Math.sin(this.anglez * Math.PI / 180) * 0.1);
this.anglez += 3;
};
};
kage.classes.kage3d = v1;
kage.classes.kage3d extends MovieClip;
var v2 = v1.prototype;
v2.initMe = function () {};
v2.make3DPointX = function (sz, sx, sy) {
return {'x': sx, 'y': sy, 'z': sz};
};
v2.SetScale = function (scale) {
this.__scale = scale;
};
v2.make3DPoint = function (sx, sy, sz) {
return {'x': sx * this.__scale, 'y': sy * this.__scale, 'z': sz * this.__scale};
};
v2.drawObject = function (tc, rotz) {
this.__targetmc = tc;
var v4 = this.Transform3DPointsTo2DPoints(this.pointsArray, {'x': this.rx, 'y': this.ry + rotz, 'z': this.rz + rotz * 0.5});
this.__targetmc.clear();
this.__targetmc.lineStyle(0, 0, 0);
this.sortArray = new Array(0);
var v3 = 0;
while (v3 < this.faceArray.length) {
this.sortArray.push({'pos': v3, 'z': (v4[this.faceArray[v3].points[0]].z + v4[this.faceArray[v3].points[1]].z + v4[this.faceArray[v3].points[2]].z) / 3});
++v3;
}
this.sortArray.sortOn('z', Array.NUMERIC);
var v5 = 0;
while (v5 < this.faceArray.length) {
v3 = this.sortArray[v5].pos;
var v2 = new Array();
v2.push(v4[this.faceArray[v3].points[0]]);
v2.push(v4[this.faceArray[v3].points[1]]);
v2.push(v4[this.faceArray[v3].points[2]]);
v2.sortOn('z', Array.NUMERIC);
this.drawGradientTriangle(new kage.classes.GradientPoint(v2[0].x, v2[0].y, 0, this.createColor(this.colorArray[this.faceArray[v3].color].back, this.colorArray[this.faceArray[v3].color].front, v2[0].z / 3 + 50)), new kage.classes.GradientPoint(v2[1].x, v2[1].y, 100 * (v2[1].z - v2[0].z) / (v2[2].z - v2[0].z), 0), new kage.classes.GradientPoint(v2[2].x, v2[2].y, 100, this.createColor(this.colorArray[this.faceArray[v3].color].back, this.colorArray[this.faceArray[v3].color].front, v2[2].z / 3 + 50)));
++v5;
}
};
v2.createColor = function (rgbDark, rgbLight, scale) {
if (scale > 100) {
scale = 100;
}
if (scale < 0) {
scale = 0;
}
var v3 = rgbDark >> 16;
var v4 = rgbDark >> 8 & 255;
var v2 = rgbDark & 255;
var v8 = rgbLight >> 16;
var v10 = rgbLight >> 8 & 255;
var v9 = rgbLight & 255;
v3 += Math.round((v8 - v3) * scale / 100);
v4 += Math.round((v10 - v4) * scale / 100);
v2 += Math.round((v9 - v2) * scale / 100);
var v5 = (v3 << 16) + (v4 << 8) + v2;
return v5;
};
v2.Transform3DPointsTo2DPoints = function (points, axisRotations) {
var v20 = [];
var v15 = Math.sin(axisRotations.x);
var v17 = Math.cos(axisRotations.x);
var v13 = Math.sin(axisRotations.y);
var v16 = Math.cos(axisRotations.y);
var v12 = Math.sin(axisRotations.z);
var v14 = Math.cos(axisRotations.z);
var v5;
var v4;
var v3;
var v10;
var v9;
var v11;
var v8;
var v19;
var v18;
var v6;
var v2 = points.length;
while (v2--) {
v5 = points[v2].x;
v4 = points[v2].y;
v3 = points[v2].z;
v10 = v17 * v4 - v15 * v3;
v9 = v15 * v4 + v17 * v3;
v8 = v16 * v9 - v13 * v5;
v11 = v13 * v9 + v16 * v5;
v19 = v14 * v11 - v12 * v10;
v18 = v12 * v11 + v14 * v10;
v6 = this.focalLength / (this.focalLength + v8) + 0.6;
v5 = v19 * v6;
v4 = v18 * v6;
v3 = -v8;
v20[v2] = this.make3DPoint(v5, v4, v3);
}
return v20;
};
v2.getHeight = function (x1, y1, x2, y2, x3, y3) {
var v3 = Math.sqrt(Math.pow(Math.abs(x2 - x1), 2) + Math.pow(Math.abs(y2 - y1), 2));
var v2 = Math.sqrt(Math.pow(Math.abs(x3 - x2), 2) + Math.pow(Math.abs(y3 - y2), 2));
var v1 = Math.sqrt(Math.pow(Math.abs(x1 - x3), 2) + Math.pow(Math.abs(y1 - y3), 2));
var v4 = 2 * Math.sqrt(((v3 + v2 + v1) / 2) * ((v3 + v2 + v1) / 2 - v3) * ((v3 + v2 + v1) / 2 - v2) * ((v3 + v2 + v1) / 2 - v1)) / v1;
if (isNaN(v4)) {
v4 = 0;
}
return v4;
};
v2.drawGradientTriangle = function (gp0, gp1, gp2) {
var v2 = [gp0, gp1, gp2];
v2.sortOn('ratio', Array.NUMERIC);
var v6 = flash.geom.Point.interpolate(v2[2], v2[0], (v2[1].ratio - v2[0].ratio) / (v2[2].ratio - v2[0].ratio));
var v4 = v2[2].subtract(v2[0]);
var v5 = Math.atan2(v6.x - v2[1].x, v2[1].y - v6.y);
var v3 = new flash.geom.Matrix();
v3.a = Math.cos(Math.atan2(v4.y, v4.x) - v5) * v4.length / 1638.4;
v3.rotate(v5);
v3.translate((v2[2].x + v2[0].x) / 2, (v2[2].y + v2[0].y) / 2);
this.beginGradientFill('linear', [v2[0].color, v2[2].color], [100, 100], [0, 255], v3);
this.moveTo(v2[2].x, v2[2].y);
this.lineTo(v2[0].x, v2[0].y);
this.lineTo(v2[1].x, v2[1].y);
this.lineTo(v2[2].x, v2[2].y);
this.endFill();
};
v2.createGradientFill = function (x1, y1, x2, y2, x3, y3) {
var v6 = Math.sqrt(Math.pow(Math.abs(x2 - x1), 2) + Math.pow(Math.abs(y2 - y1), 2));
if (Key.isDown(33)) {
++this.gz;
}
var v7 = this.getHeight(x2, y2, x3, y3, x1, y1);
var v11 = Math.atan(v6 / v7) + this.rz;
this.__targetmc.lineStyle(0, 16711680, 0);
var v2 = x1;
if (x2 < v2) {
v2 = x2;
}
if (x3 < v2) {
v2 = x3;
}
var v3 = y1;
if (y2 < v3) {
v3 = y2;
}
if (y3 < v3) {
v3 = y3;
}
this.__targetmc.lineStyle(10, 15727099, 100);
this.__targetmc.beginGradientFill('linear', [5208213, 15727099], [100, 100], [0, 255], {'matrixType': 'box', 'x': v2, 'y': v3, 'w': v6, 'h': v7, 'r': v11});
};
v2.focalLength = 300;
v2.__scale = 1;
v2.rx = 0;
v2.ry = 0;
v2.rz = 0;
v2.anglez = 0;
v2.gz = 0;
ASSetPropFlags(kage.classes.kage3d.prototype, null, 1);
}
#endinitclip
}
movieClip 402 __Packages.kage.classes.GradientPoint {
#initclip
if (!_global.kage) {
_global.kage = new Object();
}
if (!_global.kage.classes) {
_global.kage.classes = new Object();
}
if (!_global.kage.classes.GradientPoint) {
var v1 = function (px, py, pratio, pcolor) {
super();
this.color = pcolor;
this.ratio = pratio;
this.x = px;
this.y = py;
};
kage.classes.GradientPoint = v1;
kage.classes.GradientPoint extends flash.geom.Point;
var v2 = v1.prototype;
v2.ratio = 0;
v2.color = 0;
ASSetPropFlags(kage.classes.GradientPoint.prototype, null, 1);
}
#endinitclip
}
movieClip 403 __Packages.kage.classes.layer {
#initclip
if (!_global.kage) {
_global.kage = new Object();
}
if (!_global.kage.classes) {
_global.kage.classes = new Object();
}
if (!_global.kage.classes.layer) {
var v1 = function () {
super();
this.cacheAsBitmap = true;
};
kage.classes.layer = v1;
kage.classes.layer extends MovieClip;
var v2 = v1.prototype;
v2.__get__xpos = function () {
return this.__xpos;
};
v2.__get__ypos = function () {
return this.__ypos;
};
v2.__get__depth = function () {
return this.__depth;
};
v2.__set__depth = function (newdepth) {
this.__depth = newdepth;
return this.__get__depth();
};
v2.__set__offsetX = function (ofx) {
this.__offsetX = ofx;
return this.__get__offsetX();
};
v2.__set__offsetY = function (ofy) {
this.__offsetY = ofy;
return this.__get__offsetY();
};
v2.setPos = function (xpos, ypos) {
this.__xpos = xpos;
this.__ypos = ypos;
this._x = this.__xpos * this.__depth + this.__offsetX;
this._y = this.__ypos * this.__depth + this.__offsetY;
};
v2.setZoomedPos = function (xpos, ypos, zoom, scrw, scrh) {
this.__xpos = xpos;
this.__ypos = ypos;
var v2 = 0;
var v3 = 0;
if (this.__depth > 0) {
}
this._x = this.__xpos * this.__depth * zoom / 100 - v2 + this.__offsetX;
this._y = this.__ypos * this.__depth * zoom / 100 + v3 + this.__offsetY;
};
v2.addMovie = function (movieName, instanceName) {
this.attachMovie(movieName, instanceName, this.getNextHighestDepth());
};
v2.__xpos = 0;
v2.__ypos = 0;
v2.__depth = 1;
v2.__offsetX = 0;
v2.__offsetY = 0;
v2.addProperty('depth', v2.__get__depth, v2.__set__depth);
v2.addProperty('offsetX', function () {}, v2.__set__offsetX);
v2.addProperty('offsetY', function () {}, v2.__set__offsetY);
v2.addProperty('xpos', v2.__get__xpos, function () {});
v2.addProperty('ypos', v2.__get__ypos, function () {});
ASSetPropFlags(kage.classes.layer.prototype, null, 1);
}
#endinitclip
}
movieClip 404 __Packages.ArenaDay {
#initclip
if (!_global.ArenaDay) {
var v1 = function () {
super();
};
_global.ArenaDay = v1;
_global.ArenaDay extends MovieClip;
var v2 = v1.prototype;
v2.SetPos = function (newx, newy) {
if (newx > 1285 * this.myzoom / 100 - 360) {
newx = 1285 * this.myzoom / 100 - 360;
}
if (newx < -(1285 * this.myzoom / 100 - 360)) {
newx = -(1285 * this.myzoom / 100 - 360);
}
if (newy > 713.5 * this.myzoom / 100 - 200) {
newy = 713.5 * this.myzoom / 100 - 200;
}
if (newy < -(713.5 * this.myzoom / 100 - 200)) {
newy = -(713.5 * this.myzoom / 100 - 200);
}
this.xpos = newx;
this.ypos = newy;
};
v2.xpos = 1000;
v2.ypos = -827;
v2.myzoom = 100;
ASSetPropFlags(_global.ArenaDay.prototype, null, 1);
}
#endinitclip
}
movieClip 405 __Packages.kage.classes.viewport {
#initclip
if (!_global.kage) {
_global.kage = new Object();
}
if (!_global.kage.classes) {
_global.kage.classes = new Object();
}
if (!_global.kage.classes.viewport) {
var v1 = function (vp_Width, vp_Height, vp_Xpos, vp_Ypos) {
super();
this.__width = vp_Width;
this.__height = vp_Height;
this.__mc = _root.createEmptyMovieClip('__mc', _root.getNextHighestDepth());
this.__mask = _root.createEmptyMovieClip('__mask', _root.getNextHighestDepth());
kage.classes.common.drawRect(this.__mask, 0, 0, this.__width, this.__height, 16711680, 0);
this.__mask._x = vp_Xpos;
this.__mask._y = vp_Ypos;
this.__mc.setMask(this.__mask);
this.__mc._x = vp_Xpos;
this.__mc._y = vp_Ypos;
};
kage.classes.viewport = v1;
kage.classes.viewport extends MovieClip;
var v2 = v1.prototype;
v2.__get__offsetX = function () {
return this.__width / 2;
};
v2.__get__offsetY = function () {
return this.__height / 2;
};
v2.__get__movieClip = function () {
return this.__mc;
};
v2.setCameraBounds = function (maxwidth, maxheight) {
this.__cameraBoundX = maxwidth;
this.__cameraBoundY = maxheight;
};
v2.setCamera = function (xpos, ypos) {
this.__cameraX = xpos;
this.__cameraY = ypos;
this.renderView();
};
v2.setCameraZoom = function (zoom) {
this.__cameraZoom = zoom;
for (var v3 in this.__layers) {
if (this.__layers[v3].depth > 0) {
this.__layers[v3]._xscale = zoom;
this.__layers[v3]._yscale = zoom;
}
}
};
v2.setCameraZoomTarget = function (zoom) {
this.__cameraZoomTarget = zoom;
};
v2.setCameraModeFollow = function (target) {
this.__cameraTarget = target;
this.__cameraMode = 1;
this.renderView();
};
v2.renderView = function () {
if (this.__cameraZoom < this.__cameraZoomTarget) {
var v5 = this.__cameraZoom + 4;
if (v5 > this.__cameraZoomTarget) {
v5 = this.__cameraZoomTarget;
}
this.setCameraZoom(v5);
} else {
if (this.__cameraZoom > this.__cameraZoomTarget) {
var v5 = this.__cameraZoom - 4;
if (v5 < this.__cameraZoomTarget) {
v5 = this.__cameraZoomTarget;
}
this.setCameraZoom(v5);
}
}
if (this.__cameraMode == 1) {
var v3 = this.__cameraTarget._x - this.__cameraX;
var v2 = Math.abs(v3);
var v6 = v3 / v2;
if (v2 > 16) {
this.__cameraX += v6 * (v2 - 16) / 8;
}
v3 = this.__cameraTarget._y - this.__cameraY;
v2 = Math.abs(v3);
v6 = v3 / v2;
if (v2 > 10) {
this.__cameraY += v6 * (v2 - 10) / 8;
}
}
if (this.__cameraX > this.__cameraBoundX - (100 / this.__cameraZoom) * this.__width / 2) {
this.__cameraX = this.__cameraBoundX - (100 / this.__cameraZoom) * this.__width / 2;
}
if (this.__cameraX < -(this.__cameraBoundX - (100 / this.__cameraZoom) * this.__width / 2)) {
this.__cameraX = -(this.__cameraBoundX - (100 / this.__cameraZoom) * this.__width / 2);
}
if (this.__cameraY > this.__cameraBoundY - (100 / this.__cameraZoom) * this.__height / 2) {
this.__cameraY = this.__cameraBoundY - (100 / this.__cameraZoom) * this.__height / 2;
}
if (this.__cameraY < -(this.__cameraBoundY - (100 / this.__cameraZoom) * this.__height / 2)) {
this.__cameraY = -(this.__cameraBoundY - (100 / this.__cameraZoom) * this.__height / 2);
}
for (var v4 in this.__layers) {
this.__layers[v4].setZoomedPos(-this.__cameraX, -this.__cameraY, this.__cameraZoom, this.__width, this.__height);
}
};
v2.addLayer = function (idName, newName, depth) {
var tmpLayer;
if (eval('__mc.' + newName) != null) {
(eval('__mc.' + newName)).removeMovieClip();
}
tmpLayer = this.__mc.attachMovie(idName, newName, this.__mc.getNextHighestDepth());
tmpLayer._x = this.__width / 2;
tmpLayer._y = this.__height / 2;
tmpLayer.depth = depth;
tmpLayer.offsetX = this.__width / 2;
tmpLayer.offsetY = this.__height / 2;
tmpLayer.cacheAsBitmap = true;
this.__layers.push(tmpLayer);
};
v2.clearLayers = function () {
for (var v2 in this.__layers) {
this.__layers[v2].removeMovieClip();
}
this.__layers = new Array();
};
v2.__layers = Array();
v2.__width = 0;
v2.__cameraX = 0;
v2.__cameraY = 0;
v2.__cameraZoom = 100;
v2.__cameraBoundX = 0;
v2.__cameraBoundY = 0;
v2.__cameraMode = 0;
v2.__cameraZoomTarget = 100;
v2.__cameraVar2 = 0;
v2.addProperty('movieClip', v2.__get__movieClip, function () {});
v2.addProperty('offsetX', v2.__get__offsetX, function () {});
v2.addProperty('offsetY', v2.__get__offsetY, function () {});
ASSetPropFlags(kage.classes.viewport.prototype, null, 1);
}
#endinitclip
}
movieClip 406 __Packages.kage.classes.common {
#initclip
if (!_global.kage) {
_global.kage = new Object();
}
if (!_global.kage.classes) {
_global.kage.classes = new Object();
}
if (!_global.kage.classes.common) {
var v1 = function () {};
kage.classes.common = v1;
var v2 = v1.prototype;
v1.drawRect = function (mcTarget, x1, y1, x2, y2, color, alpha) {
mcTarget.beginFill(color, alpha);
mcTarget.moveTo(x1, y1);
mcTarget.lineTo(x2, y1);
mcTarget.lineTo(x2, y2);
mcTarget.lineTo(x1, y2);
mcTarget.lineTo(x1, y1);
mcTarget.endFill();
};
ASSetPropFlags(kage.classes.common.prototype, null, 1);
}
#endinitclip
}
movieClip 407 __Packages.kage.classes.aerodynamics {
#initclip
if (!_global.kage) {
_global.kage = new Object();
}
if (!_global.kage.classes) {
_global.kage.classes = new Object();
}
if (!_global.kage.classes.aerodynamics) {
var v1 = function () {
this.init();
};
kage.classes.aerodynamics = v1;
var v2 = v1.prototype;
v2.setPlane = function (plane) {
var v2;
if (plane == 1) {
v2 = this.planeA;
} else {
if (plane == 2) {
v2 = this.planeB;
} else {
v2 = this.planeC;
}
}
this._plane = plane;
this.cd0 = v2.cd0;
this.ar = v2.ar;
this.area = v2.area;
this.clmax = v2.clmax;
};
v2.init = function () {
this.cl = this.clmax * (this.element / 1600);
this.cd = this.cd0 + this.cl * this.cl / 2.2 * this.ar;
this.y = 1;
this.oldangle = this.angle;
this.planeangle = this.angle;
this.dy = 60;
this.v = this.power;
};
v2.fly = function () {
if (this.y <= -50) {
return undefined;
}
this.q = 0.00115 * this.v * this.v;
this.lift = this.q * (this.area - this.winglets * 0.01) * this.cl;
this.drag = this.q * (this.area - this.winglets * 0.01) * this.cd;
this.v -= (this.weight * Math.sin(this.angle / 57.29577951308232) + this.drag) * this.g * this.dt * 57.29577951308232;
this.angle += (this.lift - this.weight * Math.cos(this.angle / 57.29577951308232)) * this.g * this.dt * 57.29577951308232 / this.weight * this.v;
if (this.v < 0) {
this.v = -this.v;
this.angle = -this.angle;
}
this.angle %= 360;
this.dx += this.v * this.dt * Math.cos(this.angle / 57.29577951308232) * 10;
this.dy += this.v * this.dt * Math.sin(this.angle / 57.29577951308232) * 10;
this.x = Math.round(this.dx);
this.y = Math.round(this.dy);
if (this.angle != this.planeangle) {
this.difangle = (this.angle - this.planeangle) % 360;
if (Math.abs(this.difangle) > 180) {
this.difangle = (Math.abs(this.difangle) - 360) * (this.difangle / Math.abs(this.difangle));
}
this.difangle %= 360;
this.planeangle += this.difangle * this.v / 180;
}
if (this.y <= -50) {
this.y = -50;
if (this.onLanding != null) {
this.onLanding();
}
}
this.x2 = 200;
this.y2 = 300 - this.y;
};
v2.planeA = {'cd0': 0.025, 'ar': 1, 'area': 0.1736, 'clmax': 0.92};
v2.planeB = {'cd0': 0.03, 'ar': 1.825, 'area': 0.2028, 'clmax': 0.55};
v2.planeC = {'cd0': 0.03, 'ar': 0.85, 'area': 0.2049, 'clmax': 0.5};
v2.ar = 1.825;
v2.cd0 = 0.03;
v2.area = 0.208;
v2.weight = 0.012;
v2.dt = 0.025;
v2.clmax = 0.55;
v2.err = 0;
v2.g = 32.2;
v2._plane = 3;
v2.element = 5;
v2.power = 35;
v2.angle = 0;
v2.winglets = 0;
v2.dx = 0;
ASSetPropFlags(kage.classes.aerodynamics.prototype, null, 1);
}
#endinitclip
}
movieClip 264 __Packages.kage.classes.radiobutton {
#initclip
if (!_global.kage) {
_global.kage = new Object();
}
if (!_global.kage.classes) {
_global.kage.classes = new Object();
}
if (!_global.kage.classes.radiobutton) {
var v1 = function () {
super();
this.cacheAsBitmap = true;
this.useHandCursor = true;
this.onPress = this.handlerPress;
this.mcActive._visible = this.checked;
};
kage.classes.radiobutton = v1;
kage.classes.radiobutton extends MovieClip;
var v2 = v1.prototype;
v2.__set__Callback = function (func) {
this.__callback = func;
return this.__get__Callback();
};
v2.__set__OnClick = function (func) {
this.__onset = func;
return this.__get__OnClick();
};
v2.Uncheck = function () {
this.checked = false;
this.mcActive._visible = false;
};
v2.handlerPress = function () {
if (this.__callback != null) {
this.__callback();
}
if (this.__onset != null) {
this.__onset();
}
this.checked = true;
this.mcActive._visible = this.checked;
};
v2.addProperty('Callback', function () {}, v2.__set__Callback);
v2.addProperty('OnClick', function () {}, v2.__set__OnClick);
ASSetPropFlags(kage.classes.radiobutton.prototype, null, 1);
}
#endinitclip
}
movieClip 269 __Packages.kage.classes.slider {
#initclip
if (!_global.kage) {
_global.kage = new Object();
}
if (!_global.kage.classes) {
_global.kage.classes = new Object();
}
if (!_global.kage.classes.slider) {
var v1 = function () {
super();
this.mcHandle.useHandCursor = true;
this.mcHandle.onPress = this.handlerPress;
this.mcHandle.onMouseUp = this.handlerMouseUp;
this.mcHandle.onMouseMove = this.handerMouseMove;
this.__value = this.Min;
this.txtValue._visible = false;
if (this.Max == 1) {
this.txtValue.text = 'off';
} else {
this.txtValue.text = '' + this.Min;
}
};
kage.classes.slider = v1;
kage.classes.slider extends MovieClip;
var v2 = v1.prototype;
v2.__get__Value = function () {
return this.__value;
};
v2.__set__Value = function (newval) {
var v2 = newval;
if (v2 > this.Max) {
v2 = this.Max;
}
if (v2 < this.Min) {
v2 = this.Min;
}
this.__value = v2;
this.mcHandle._x = 15 + Math.round(this.__value * 100 / (this.Max - this.Min));
if (this.OnChange != null) {
this.OnChange(this.__value);
}
return this.__get__Value();
};
v2.handlerPress = function () {
this.__mousedown = true;
this.__startx = this._xmouse;
this._parent.txtValue._visible = true;
};
v2.handlerMouseUp = function () {
this.__mousedown = false;
this._parent.txtValue._visible = false;
};
v2.handerMouseMove = function () {
if (this.__mousedown) {
var v2 = this._parent._xmouse - this.__startx - 15;
if (v2 > 100) {
v2 = 100;
}
if (v2 < 0) {
v2 = 0;
}
this._parent.__value = Math.round((this._parent.Max - this._parent.Min) * v2 / 100);
this._x = 15 + Math.round(this._parent.__value * 100 / (this._parent.Max - this._parent.Min));
if (this._parent.OnChange != null) {
this._parent.OnChange(this._parent.__value);
}
if (this._parent.Max == 1) {
if (this._parent.__value == 0) {
this._parent.txtValue.text = 'off';
} else {
this._parent.txtValue.text = 'on';
}
} else {
this._parent.txtValue.text = this._parent.__value;
}
this._parent.txtValue._x = this._x - 12;
}
};
v2.__mousedown = false;
v2.__value = kage.classes.slider.prototype.Min;
v2.addProperty('Value', v2.__get__Value, v2.__set__Value);
ASSetPropFlags(kage.classes.slider.prototype, null, 1);
}
#endinitclip
}
frame 2 {
}
movieClip 55 mcGenericPlane {
}
movieClip 90 {
frame 1 {
stop();
}
frame 103 {
stop();
}
}
movieClip 91 {
}
movieClip 93 {
}
movieClip 94 mc_player {
frame 1 {
function Aim(power, angle) {
var v1;
if (power < 5) {
v1 = 1;
} else {
if (power < 2) {
v1 = 2;
} else {
if (power < 3) {
v1 = 3;
} else {
if (power < 4) {
v1 = 4;
} else {
if (power < 5) {
v1 = 5;
} else {
if (power < 6) {
v1 = 6;
} else {
if (power < 7) {
v1 = 7;
} else {
if (power < 8) {
v1 = 8;
} else {
if (power < 9) {
v1 = 9;
} else {
if (power < 10) {
v1 = 10;
} else {
if (power < 11) {
v1 = 11;
} else {
if (power < 12) {
v1 = 12;
} else {
if (power < 13) {
v1 = 13;
} else {
if (power < 14) {
v1 = 14;
} else {
if (power < 15) {
v1 = 15;
} else {
if (power < 16) {
v1 = 16;
} else {
if (power < 17) {
v1 = 17;
} else {
if (power < 18) {
v1 = 18;
} else {
if (power < 19) {
v1 = 19;
} else {
if (power < 20) {
v1 = 20;
} else {
if (power < 21) {
v1 = 21;
} else {
if (power < 22) {
v1 = 22;
} else {
if (power < 23) {
v1 = 23;
} else {
if (power < 24) {
v1 = 24;
} else {
if (power < 25) {
v1 = 25;
} else {
if (power < 26) {
v1 = 26;
} else {
if (power < 27) {
v1 = 27;
} else {
if (power < 28) {
v1 = 28;
} else {
if (power < 29) {
v1 = 29;
} else {
if (power < 30) {
v1 = 30;
} else {
if (power < 31) {
v1 = 31;
} else {
if (power < 32) {
v1 = 32;
} else {
if (power < 33) {
v1 = 33;
} else {
if (power < 34) {
v1 = 34;
} else {
if (power < 35) {
v1 = 35;
} else {
if (power < 36) {
v1 = 36;
} else {
if (power < 37) {
v1 = 37;
} else {
if (power < 38) {
v1 = 38;
} else {
if (power < 39) {
v1 = 39;
} else {
if (power < 40) {
v1 = 40;
} else {
if (power < 41) {
v1 = 41;
} else {
if (power < 42) {
v1 = 42;
} else {
if (power < 43) {
v1 = 43;
} else {
if (power < 44) {
v1 = 44;
} else {
if (power < 45) {
v1 = 45;
} else {
if (power < 46) {
v1 = 46;
} else {
if (power < 47) {
v1 = 47;
} else {
if (power < 48) {
v1 = 48;
} else {
if (power < 49) {
v1 = 49;
} else {
if (power < 50) {
v1 = 50;
} else {
if (power < 51) {
v1 = 51;
} else {
if (power < 52) {
v1 = 52;
} else {
if (power < 53) {
v1 = 53;
} else {
if (power < 54) {
v1 = 54;
} else {
if (power < 55) {
v1 = 55;
} else {
if (power < 56) {
v1 = 56;
} else {
if (power < 57) {
v1 = 57;
} else {
if (power < 58) {
v1 = 58;
} else {
if (power < 59) {
v1 = 59;
} else {
if (power < 60) {
v1 = 60;
} else {
if (power < 61) {
v1 = 61;
} else {
if (power < 62) {
v1 = 62;
} else {
if (power < 63) {
v1 = 63;
} else {
if (power < 64) {
v1 = 64;
} else {
if (power < 65) {
v1 = 65;
} else {
if (power < 66) {
v1 = 66;
} else {
if (power < 67) {
v1 = 67;
} else {
if (power < 68) {
v1 = 68;
} else {
if (power < 69) {
v1 = 69;
} else {
if (power < 70) {
v1 = 70;
} else {
if (power < 71) {
v1 = 71;
} else {
if (power < 72) {
v1 = 72;
} else {
if (power < 73) {
v1 = 73;
} else {
if (power < 74) {
v1 = 74;
} else {
if (power < 75) {
v1 = 75;
} else {
if (power < 76) {
v1 = 76;
} else {
if (power < 77) {
v1 = 77;
} else {
if (power < 78) {
v1 = 78;
} else {
if (power < 79) {
v1 = 79;
} else {
if (power < 80) {
v1 = 80;
} else {
if (power < 81) {
v1 = 81;
} else {
if (power < 82) {
v1 = 82;
} else {
if (power < 83) {
v1 = 83;
} else {
if (power < 84) {
v1 = 84;
} else {
if (power < 85) {
v1 = 85;
} else {
if (power < 86) {
v1 = 86;
} else {
if (power < 87) {
v1 = 87;
} else {
if (power < 88) {
v1 = 88;
} else {
if (power < 90) {
v1 = 89;
} else {
v1 = 1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
over.gubbe.gotoAndStop(v1);
under.gubbe.gotoAndStop(v1);
over._rotation = angle;
}
function Throw() {
over.gubbe.gotoAndPlay(95);
under.gubbe.gotoAndPlay(95);
over._rotation = 0;
}
}
}
movieClip 99 {
}
movieClip 132 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
button 135 {
on (rollOver) {
pilen.gotoAndPlay(2);
}
on (rollOut) {
pilen.gotoAndPlay(11);
}
}
movieClip 136 {
}
movieClip 138 {
}
movieClip 139 {
frame 1 {
mcButGo._accProps = new Object();
mcButGo._accProps.silent = true;
}
frame 1 {
mcerror0._accProps = new Object();
mcerror0._accProps.silent = true;
}
frame 1 {
mcerror1._accProps = new Object();
mcerror1._accProps.silent = true;
}
frame 1 {
mcerror2._accProps = new Object();
mcerror2._accProps.silent = true;
}
frame 1 {
mcerror3._accProps = new Object();
mcerror3._accProps.silent = true;
}
frame 1 {
mcerror4._accProps = new Object();
mcerror4._accProps.silent = true;
}
frame 1 {
mcerror5._accProps = new Object();
mcerror5._accProps.silent = true;
}
frame 1 {
mcerrorn._accProps = new Object();
mcerrorn._accProps.silent = true;
}
frame 1 {
mcButGo.tabIndex = 8;
txtChallanger1.tabIndex = 3;
txtChallanger2.tabIndex = 4;
txtChallanger3.tabIndex = 5;
txtChallanger4.tabIndex = 6;
txtChallanger5.tabIndex = 7;
txtYourName.tabIndex = 1;
txtYourEmail.tabIndex = 2;
}
frame 1 {
function clearErrors() {
mcerrorn._visible = false;
mcerror0._visible = false;
mcerror1._visible = false;
mcerror2._visible = false;
mcerror3._visible = false;
mcerror4._visible = false;
mcerror5._visible = false;
}
function initForm() {
if (_parent.myName != '' && _parent.myName != null) {
txtYourName.text = _parent.myName;
}
if (_parent.myMail != '' && _parent.myMail != null) {
txtYourEmail.text = _parent.myMail;
}
if (_parent.Challenger1 != '' && _parent.Challenger1 != null) {
txtChallanger1.text = _parent.Challenger1;
}
if (_parent.Challenger2 != '' && _parent.Challenger2 != null) {
txtChallanger2.text = _parent.Challenger2;
}
if (_parent.Challenger3 != '' && _parent.Challenger3 != null) {
txtChallanger3.text = _parent.Challenger3;
}
if (_parent.Challenger4 != '' && _parent.Challenger4 != null) {
txtChallanger4.text = _parent.Challenger4;
}
if (_parent.Challenger5 != '' && _parent.Challenger5 != null) {
txtChallanger5.text = _parent.Challenger5;
}
}
function OnEnterChallenger(oldFocus) {
if (this.text == 'CHALLENGER\'S EMAIL') {
this.text = '';
}
}
function OnExitChallenger(newFocus) {
if (this.text == '') {
this.text = 'CHALLENGER\'S EMAIL';
}
}
function handleFormValidation() {
if (dataReceiver.result == 0) {
if (_parent.OnSubmit != null) {
_parent.OnSubmit();
}
_root.sfx_gui_slide.play();
_parent.play();
} else {
txtError.text = dataReceiver.errorCode;
if (dataReceiver.errorn == 1) {
mcerrorn._visible = true;
}
if (dataReceiver.error0 == 1) {
mcerror0._visible = true;
}
if (dataReceiver.error1 == 1) {
mcerror1._visible = true;
}
if (dataReceiver.error2 == 1) {
mcerror2._visible = true;
}
if (dataReceiver.error3 == 1) {
mcerror3._visible = true;
}
if (dataReceiver.error4 == 1) {
mcerror4._visible = true;
}
if (dataReceiver.error5 == 1) {
mcerror5._visible = true;
}
butBlocker._visible = false;
}
}
var dataSender;
var dataReceiver;
butBlocker._visible = false;
initForm();
clearErrors();
butCancel.onRelease = function () {
if (_parent.OnCancel != null) {
_parent.OnCancel();
}
};
mcButGo.butGo.onRelease = function () {
mcerrorn._visible = false;
mcerror0._visible = false;
mcerror1._visible = false;
mcerror2._visible = false;
mcerror3._visible = false;
mcerror4._visible = false;
mcerror5._visible = false;
butBlocker._visible = true;
dataSender = new LoadVars();
dataReceiver = new LoadVars();
dataSender.myName = nameown;
dataSender.myEmail = emailown;
dataSender.challenged1 = email1;
dataSender.challenged2 = email2;
dataSender.challenged3 = email3;
dataSender.challenged4 = email4;
dataSender.challenged5 = email5;
dataReceiver.onLoad = handleFormValidation;
dataSender.sendAndLoad('ValidateForm.aspx', dataReceiver, 'POST');
};
txtYourName.onSetFocus = function (oldFocus) {
if (txtYourName.text == 'YOUR NAME') {
txtYourName.text = '';
}
};
txtYourName.onKillFocus = function (newFocus) {
if (txtYourName.text == '') {
txtYourName.text = 'YOUR NAME';
}
};
txtYourEmail.onSetFocus = function (oldFocus) {
if (txtYourEmail.text == 'YOUR EMAIL ADDRESS') {
txtYourEmail.text = '';
}
};
txtYourEmail.onKillFocus = function (newFocus) {
if (txtYourEmail.text == '') {
txtYourEmail.text = 'YOUR EMAIL ADDRESS';
}
};
txtChallanger1.onSetFocus = OnEnterChallenger;
txtChallanger2.onSetFocus = OnEnterChallenger;
txtChallanger3.onSetFocus = OnEnterChallenger;
txtChallanger4.onSetFocus = OnEnterChallenger;
txtChallanger5.onSetFocus = OnEnterChallenger;
txtChallanger1.onKillFocus = OnExitChallenger;
txtChallanger2.onKillFocus = OnExitChallenger;
txtChallanger3.onKillFocus = OnExitChallenger;
txtChallanger4.onKillFocus = OnExitChallenger;
txtChallanger5.onKillFocus = OnExitChallenger;
stop();
}
}
movieClip 140 mc_formchallenge {
frame 1 {
var OnCancel;
var OnSubmit;
butBlocker._visible = false;
}
frame 12 {
stop();
}
frame 33 {
this.removeMovieClip();
stop();
}
}
movieClip 142 LayerDef_SkyNight {
#initclip
Object.registerClass('LayerDef_SkyNight', kage.classes.layer);
#endinitclip
}
movieClip 144 LayerDef_HousesFarAwayNight {
#initclip
Object.registerClass('LayerDef_HousesFarAwayNight', kage.classes.layer);
#endinitclip
}
movieClip 146 {
}
movieClip 147 LayerDef_SunNight {
#initclip
Object.registerClass('LayerDef_SunNight', kage.classes.layer);
#endinitclip
}
movieClip 149 LayerDef_HousesNight {
#initclip
Object.registerClass('LayerDef_HousesNight', kage.classes.layer);
#endinitclip
}
movieClip 151 LayerDef_TreesNight {
#initclip
Object.registerClass('LayerDef_TreesNight', kage.classes.layer);
#endinitclip
}
movieClip 159 {
}
movieClip 160 {
}
movieClip 176 {
frame 1 {
var __goingLeft = false;
var __currentPos = 0;
var _scroll = false;
onEnterFrame = function () {
if (_scroll) {
if (txtLocal.maxhscroll > 0) {
if (__goingLeft) {
__currentPos -= 20;
txtLocal.hscroll = __currentPos;
if (__currentPos <= 0) {
__goingLeft = false;
_scroll = false;
}
} else {
__currentPos += 20;
txtLocal.hscroll = __currentPos;
if (__currentPos >= txtLocal.maxhscroll) {
__goingLeft = true;
}
}
} else {
_scroll = false;
}
}
};
}
}
movieClip 189 {
frame 1 {
var __goingLeft = false;
var __currentPos = 0;
var _scroll = false;
onEnterFrame = function () {
if (_scroll) {
if (txtLocal.maxhscroll > 0) {
if (__goingLeft) {
__currentPos -= 20;
txtLocal.hscroll = __currentPos;
if (__currentPos <= 0) {
__goingLeft = false;
_scroll = false;
}
} else {
__currentPos += 20;
txtLocal.hscroll = __currentPos;
if (__currentPos >= txtLocal.maxhscroll) {
__goingLeft = true;
}
}
} else {
_scroll = false;
}
}
};
}
}
movieClip 191 {
frame 1 {
var __goingLeft = false;
var __currentPos = 0;
var _scroll = false;
onEnterFrame = function () {
if (_scroll) {
if (txtLocal.maxhscroll > 0) {
if (__goingLeft) {
__currentPos -= 20;
txtLocal.hscroll = __currentPos;
if (__currentPos <= 0) {
__goingLeft = false;
_scroll = false;
}
} else {
__currentPos += 20;
txtLocal.hscroll = __currentPos;
if (__currentPos >= txtLocal.maxhscroll) {
__goingLeft = true;
}
}
} else {
_scroll = false;
}
}
};
}
}
movieClip 192 mc_scoreboard {
frame 1 {
stop();
}
frame 35 {
function startScroll() {
if (!mcVS1._scroll && !mcVS2._scroll && !mcVS3._scroll && !mcVS4._scroll && !mcVS5._scroll) {
mcVS1._scroll = true;
mcVS2._scroll = true;
mcVS3._scroll = true;
mcVS4._scroll = true;
mcVS5._scroll = true;
}
}
txtChallenger.text = Name0.toUpperCase();
mcVS1.txtLocal.text = Name1.toUpperCase();
mcVS2.txtLocal.text = Name2.toUpperCase();
mcVS3.txtLocal.text = Name3.toUpperCase();
mcVS4.txtLocal.text = Name4.toUpperCase();
mcVS5.txtLocal.text = Name5.toUpperCase();
setInterval(this, 'startScroll', 2000);
stop();
}
frame 46 {
txtLength.text = Len + ' m';
stop();
}
frame 55 {
function startScroll() {
mcWinner._scroll = true;
mcLooser._scroll = true;
}
mcWinner.txtLocal.text = Name1.toUpperCase();
mcLooser.txtLocal.text = Name2.toUpperCase();
txtLengthWinner.text = Len1;
txtLengthLooser.text = Len2;
setInterval(this, 'startScroll', 4000);
stop();
stop();
}
}
movieClip 194 LayerDef_ArenaNight {
#initclip
Object.registerClass('LayerDef_ArenaNight', kage.classes.layer);
#endinitclip
}
movieClip 195 mov_ArenaAllNight {
#initclip
Object.registerClass('mov_ArenaAllNight', ArenaDay);
#endinitclip
frame 1 {
var acc = 0;
var speedx = 0;
var speedy = 0;
var inair = false;
var myzoom = 100;
onEnterFrame = function () {
mcArena._xscale = myzoom;
mcArena._yscale = myzoom;
mcTrees._xscale = myzoom;
mcTrees._yscale = myzoom;
mcHouses._xscale = myzoom;
mcHouses._yscale = myzoom;
mcHouseAway._xscale = myzoom;
mcHouseAway._yscale = myzoom;
mcSun._xscale = myzoom;
mcSun._yscale = myzoom;
if (xpos > 1285 * myzoom / 100 - 360) {
xpos = 1285 * myzoom / 100 - 360;
}
if (xpos < -(1285 * myzoom / 100 - 360)) {
xpos = -(1285 * myzoom / 100 - 360);
}
if (ypos > 713.5 * myzoom / 100 - 200) {
ypos = 713.5 * myzoom / 100 - 200;
}
if (ypos < -(713.5 * myzoom / 100 - 200)) {
ypos = -(713.5 * myzoom / 100 - 200);
}
mcSun._x = xpos * 0.04 + 360;
mcSun._y = ypos * 0.04 + 200;
mcHouseAway._x = xpos * 0.7 + 360;
mcHouseAway._y = ypos * 0.7 + 200;
mcHouses._x = xpos * 0.8 + 360;
mcHouses._y = ypos * 0.8 + 200;
mcTrees._x = xpos * 0.9 + 360;
mcTrees._y = ypos * 0.9 + 200;
mcArena._x = xpos + 360;
mcArena._y = ypos + 200;
};
Stage.showMenu = false;
stop();
}
}
movieClip 199 mc_try_again {
frame 1 {
var onClick;
}
frame 26 {
butBox.onRelease = function () {
if (onClick != null) {
onClick();
}
this.removeMovieClip();
};
}
frame 61 {
gotoAndPlay(37);
}
}
movieClip 203 {
}
movieClip 205 {
}
movieClip 207 mc_score {
}
movieClip 211 mov_info {
frame 1 {
stop();
}
}
movieClip 220 mc_startold {
frame 1 {
butStart.onRelease = function () {
if (_parent.onStart != null) {
_parent.onStart();
}
_parent._parent.mcMinilogo.gotoAndPlay(2);
onEnterFrame = function () {
var v2 = _root.sfx_title.getVolume();
if (v2 > 0) {
_root.sfx_title.setVolume(v2 - 10);
}
};
};
}
frame 94 {
gotoAndPlay(46);
}
}
movieClip 221 {
frame 1 {
_root.sfx_title.start(0, 99);
stop();
}
frame 907 {
gotoAndPlay(25);
}
}
movieClip 222 mc_start {
frame 1 {
stop();
}
frame 1 {
var onStart;
}
}
movieClip 226 mc_challenge_intro {
frame 1 {
var onMovieEnd;
var onStartZoom;
var onEnterForm;
var onLaunchSample;
}
frame 52 {
if (onEnterForm != null) {
onEnterForm();
}
}
frame 53 {
if (onLaunchSample != null) {
onLaunchSample();
}
}
frame 61 {
if (onStartZoom != null) {
onStartZoom();
}
}
frame 87 {
if (onMovieEnd != null) {
onMovieEnd();
}
stop();
}
}
movieClip 229 mc_smallcap {
}
movieClip 231 LayerDef_Sky {
#initclip
Object.registerClass('LayerDef_Sky', kage.classes.layer);
#endinitclip
}
movieClip 233 LayerDef_HousesFarAway {
#initclip
Object.registerClass('LayerDef_HousesFarAway', kage.classes.layer);
#endinitclip
}
movieClip 234 LayerDef_Sun {
#initclip
Object.registerClass('LayerDef_Sun', kage.classes.layer);
#endinitclip
}
movieClip 236 LayerDef_Houses {
#initclip
Object.registerClass('LayerDef_Houses', kage.classes.layer);
#endinitclip
}
movieClip 238 LayerDef_Trees {
#initclip
Object.registerClass('LayerDef_Trees', kage.classes.layer);
#endinitclip
}
movieClip 243 {
}
movieClip 245 LayerDef_Arena {
#initclip
Object.registerClass('LayerDef_Arena', kage.classes.layer);
#endinitclip
}
movieClip 246 mov_ArenaDay {
#initclip
Object.registerClass('mov_ArenaDay', ArenaDay);
#endinitclip
frame 1 {
var acc = 0;
var speedx = 0;
var speedy = 0;
var inair = false;
var myzoom = 100;
onEnterFrame = function () {
mcArena._xscale = myzoom;
mcArena._yscale = myzoom;
mcTrees._xscale = myzoom;
mcTrees._yscale = myzoom;
mcHouses._xscale = myzoom;
mcHouses._yscale = myzoom;
mcHouseAway._xscale = myzoom;
mcHouseAway._yscale = myzoom;
mcSun._xscale = myzoom;
mcSun._yscale = myzoom;
if (xpos > 1285 * myzoom / 100 - 360) {
xpos = 1285 * myzoom / 100 - 360;
}
if (xpos < -(1285 * myzoom / 100 - 360)) {
xpos = -(1285 * myzoom / 100 - 360);
}
if (ypos > 713.5 * myzoom / 100 - 200) {
ypos = 713.5 * myzoom / 100 - 200;
}
if (ypos < -(713.5 * myzoom / 100 - 200)) {
ypos = -(713.5 * myzoom / 100 - 200);
}
mcSun._x = xpos * 0.04 + 360;
mcSun._y = ypos * 0.04 + 200;
mcHouseAway._x = xpos * 0.7 + 360;
mcHouseAway._y = ypos * 0.7 + 200;
mcHouses._x = xpos * 0.8 + 360;
mcHouses._y = ypos * 0.8 + 200;
mcTrees._x = xpos * 0.9 + 360;
mcTrees._y = ypos * 0.9 + 200;
mcArena._x = xpos + 360;
mcArena._y = ypos + 200;
};
Stage.showMenu = false;
stop();
}
}
movieClip 248 mcBall {
}
movieClip 250 mcPlaneShadow {
}
movieClip 267 mc_radiobutton_active {
}
movieClip 268 mc_radiobutton {
#initclip
Object.registerClass('mc_radiobutton', kage.classes.radiobutton);
#endinitclip
}
movieClip 274 mov_handle {
}
movieClip 277 mc_slider {
#initclip
Object.registerClass('mc_slider', kage.classes.slider);
#endinitclip
}
movieClip 286 {
}
movieClip 289 {
}
movieClip 307 {
}
button 310 {
on (release) {
_root.sfx_gui_slide.start();
_parent._parent._parent._parent.resetThrow();
_parent._parent.play();
}
on (rollOver) {
gear1.play();
gear2.play();
}
on (rollOut) {
gear1.stop();
gear2.stop();
}
}
movieClip 311 {
instance gear2 of movieClip 307 {
onClipEvent (load) {
stop();
}
}
instance gear1 of movieClip 307 {
onClipEvent (load) {
stop();
}
}
}
movieClip 313 {
}
button 318 {
on (release) {
if (_parent._parent.OnChallenge != null) {
_parent._parent.OnChallenge();
}
_parent._parent.gotoAndPlay(21);
}
on (rollOver) {
_root.sfx_gui_click.start();
gotoAndPlay(2);
}
on (rollOut) {
gotoAndStop(1);
}
}
movieClip 319 {
frame 1 {
stop();
}
frame 33 {
gotoAndPlay(2);
}
}
movieClip 321 {
}
movieClip 332 {
frame 1 {
stop();
}
frame 30 {
gotoAndPlay(2);
}
}
button 335 {
on (release) {
if (_parent._parent.OnPractice != null) {
_parent._parent.OnPractice();
}
_parent._parent.play();
}
on (rollOver) {
_root.sfx_gui_click.start();
gubbar.gotoAndPlay(2);
gotoAndStop(2);
}
on (rollOut) {
gubbar.gotoAndStop(1);
gotoAndStop(1);
}
}
movieClip 336 {
frame 1 {
stop();
}
}
movieClip 338 mc_config {
frame 1 {
function initPlane(plane, target, xpos, ypos) {
if (target.planeD != null) {
target.planeD.removeMovieClip();
}
target.attachMovie(plane, 'planeD', target.getNextHighestDepth());
target.planeD._x = xpos;
target.planeD._y = ypos;
}
function setPlaneA() {
if (SelectedPlane != 1) {
_root.sfx_gui_click.start();
initPlane('mc3DEagle', _parent.mcConfig, 30, -45);
SelectedPlane = 1;
copyConfig();
_root.InitPlane(1);
}
}
function setPlaneB() {
if (SelectedPlane != 2) {
_root.sfx_gui_click.start();
initPlane('mc3D_square', _parent.mcConfig, 25, -30);
SelectedPlane = 2;
copyConfig();
_root.InitPlane(2);
}
}
function setPlaneC() {
if (SelectedPlane != 3) {
_root.sfx_gui_click.start();
initPlane('mc3D_dart', _parent.mcConfig, 50, -40);
SelectedPlane = 3;
copyConfig();
_root.InitPlane(3);
}
}
function copyConfig() {
mcSliderElevators.Value = configs[SelectedPlane - 1].elev;
mcSliderWinglets.Value = configs[SelectedPlane - 1].wing;
mcSliderWeight.Value = configs[SelectedPlane - 1].weight;
updatePlane = true;
}
function clearRadioButtons() {
radioPlaneA.Uncheck();
radioPlaneB.Uncheck();
radioPlaneC.Uncheck();
}
var configs = [{'elev': 0, 'weight': 0, 'wing': 0}, {'elev': 0, 'weight': 0, 'wing': 0}, {'elev': 0, 'weight': 0, 'wing': 0}];
var SelectedPlane = 3;
var updatePlane = false;
initPlane('mc3D_dart', this, 50, -40);
butBlocker.useHandCursor = false;
radioPlaneA.Callback = clearRadioButtons;
radioPlaneB.Callback = clearRadioButtons;
radioPlaneC.Callback = clearRadioButtons;
radioPlaneA.OnClick = setPlaneA;
radioPlaneB.OnClick = setPlaneB;
radioPlaneC.OnClick = setPlaneC;
butPlaneA.onPress = function () {
radioPlaneA.handlerPress();
};
butPlaneB.onPress = function () {
radioPlaneB.handlerPress();
};
butPlaneC.onPress = function () {
radioPlaneC.handlerPress();
};
if (varChallengeEmail == '<p align="left"><font face="Eurostile_9pt_st" size="9" color="#ffffff" letterSpacing="1.000000" kerning="0">email@</font></p>') {
txtChallengedBy._visible = false;
txtChallengeEmail._visible = false;
}
onEnterFrame = function () {
if (updatePlane) {
planeD.modifyModel(mcSliderElevators.Value, mcSliderWinglets.Value);
updatePlane = false;
}
};
var mrot = false;
var xpos = 0;
var ypos = 0;
planeD.onPress = function () {
mrot = true;
xpos = _xmouse;
ypos = _ymouse;
};
planeD.onMouseUp = function () {
mrot = false;
};
planeD.onMouseMove = function () {
if (mrot) {
planeD.ry += ((_xmouse - xpos) / 20) * Math.PI / 180;
planeD.rz += ((_ymouse - ypos) / 20) * Math.PI / 180;
}
};
mcSliderElevators.OnChange = function (newval) {
if (configs[SelectedPlane - 1].elev == newval) {
return undefined;
}
_root.sfx_gui_click.start();
planeD.modifyModel(newval, mcSliderWinglets.Value);
configs[SelectedPlane - 1].elev = newval;
};
mcSliderWinglets.OnChange = function (newval) {
if (configs[SelectedPlane - 1].wing == newval) {
return undefined;
}
_root.sfx_gui_click.start();
planeD.modifyModel(mcSliderElevators.Value, newval);
configs[SelectedPlane - 1].wing = newval;
if (newval == 0) {
mc_on._x = -323;
mc_off._x = -158;
} else {
mc_on._x = -158;
mc_off._x = -323;
}
};
mcSliderWeight.OnChange = function (newval) {
if (configs[SelectedPlane - 1].weight == newval) {
return undefined;
}
_root.sfx_gui_click.start();
configs[SelectedPlane - 1].weight = newval;
};
stop();
}
instance radioPlaneA of movieClip 268 mc_radiobutton {
onClipEvent (construct) {
checked = false;
}
}
instance radioPlaneB of movieClip 268 mc_radiobutton {
onClipEvent (construct) {
checked = false;
}
}
instance radioPlaneC of movieClip 268 mc_radiobutton {
onClipEvent (construct) {
checked = true;
}
}
instance mcSliderWeight of movieClip 277 mc_slider {
onClipEvent (construct) {
Max = 100;
Min = 0;
}
}
instance mcSliderElevators of movieClip 277 mc_slider {
onClipEvent (construct) {
Max = 100;
Min = 0;
}
}
instance mcSliderWinglets of movieClip 277 mc_slider {
onClipEvent (construct) {
Max = 1;
Min = 0;
}
}
}
movieClip 339 mc_configurator {
frame 1 {
var OnPractice;
var OnChallenge;
stop();
}
frame 10 {
stop();
}
frame 20 {
gotoAndStop(1);
}
frame 30 {
stop();
}
frame 51 {
gotoAndStop(10);
}
}
movieClip 355 {
frame 1 {
stop();
}
}
movieClip 361 mc_too_hard {
frame 11 {
stop();
}
}
movieClip 363 mc_plane_dart {
}
movieClip 365 mc_plane_eagle {
}
movieClip 367 mc_plane_square {
}
movieClip 394 {
frame 1 {
stop();
}
frame 103 {
stop();
}
}
movieClip 395 {
}
movieClip 396 mc_player_hand {
frame 1 {
function Aim(power, angle) {
var v1;
if (power < 5) {
v1 = 1;
} else {
if (power < 2) {
v1 = 2;
} else {
if (power < 3) {
v1 = 3;
} else {
if (power < 4) {
v1 = 4;
} else {
if (power < 5) {
v1 = 5;
} else {
if (power < 6) {
v1 = 6;
} else {
if (power < 7) {
v1 = 7;
} else {
if (power < 8) {
v1 = 8;
} else {
if (power < 9) {
v1 = 9;
} else {
if (power < 10) {
v1 = 10;
} else {
if (power < 11) {
v1 = 11;
} else {
if (power < 12) {
v1 = 12;
} else {
if (power < 13) {
v1 = 13;
} else {
if (power < 14) {
v1 = 14;
} else {
if (power < 15) {
v1 = 15;
} else {
if (power < 16) {
v1 = 16;
} else {
if (power < 17) {
v1 = 17;
} else {
if (power < 18) {
v1 = 18;
} else {
if (power < 19) {
v1 = 19;
} else {
if (power < 20) {
v1 = 20;
} else {
if (power < 21) {
v1 = 21;
} else {
if (power < 22) {
v1 = 22;
} else {
if (power < 23) {
v1 = 23;
} else {
if (power < 24) {
v1 = 24;
} else {
if (power < 25) {
v1 = 25;
} else {
if (power < 26) {
v1 = 26;
} else {
if (power < 27) {
v1 = 27;
} else {
if (power < 28) {
v1 = 28;
} else {
if (power < 29) {
v1 = 29;
} else {
if (power < 30) {
v1 = 30;
} else {
if (power < 31) {
v1 = 31;
} else {
if (power < 32) {
v1 = 32;
} else {
if (power < 33) {
v1 = 33;
} else {
if (power < 34) {
v1 = 34;
} else {
if (power < 35) {
v1 = 35;
} else {
if (power < 36) {
v1 = 36;
} else {
if (power < 37) {
v1 = 37;
} else {
if (power < 38) {
v1 = 38;
} else {
if (power < 39) {
v1 = 39;
} else {
if (power < 40) {
v1 = 40;
} else {
if (power < 41) {
v1 = 41;
} else {
if (power < 42) {
v1 = 42;
} else {
if (power < 43) {
v1 = 43;
} else {
if (power < 44) {
v1 = 44;
} else {
if (power < 45) {
v1 = 45;
} else {
if (power < 46) {
v1 = 46;
} else {
if (power < 47) {
v1 = 47;
} else {
if (power < 48) {
v1 = 48;
} else {
if (power < 49) {
v1 = 49;
} else {
if (power < 50) {
v1 = 50;
} else {
if (power < 51) {
v1 = 51;
} else {
if (power < 52) {
v1 = 52;
} else {
if (power < 53) {
v1 = 53;
} else {
if (power < 54) {
v1 = 54;
} else {
if (power < 55) {
v1 = 55;
} else {
if (power < 56) {
v1 = 56;
} else {
if (power < 57) {
v1 = 57;
} else {
if (power < 58) {
v1 = 58;
} else {
if (power < 59) {
v1 = 59;
} else {
if (power < 60) {
v1 = 60;
} else {
if (power < 61) {
v1 = 61;
} else {
if (power < 62) {
v1 = 62;
} else {
if (power < 63) {
v1 = 63;
} else {
if (power < 64) {
v1 = 64;
} else {
if (power < 65) {
v1 = 65;
} else {
if (power < 66) {
v1 = 66;
} else {
if (power < 67) {
v1 = 67;
} else {
if (power < 68) {
v1 = 68;
} else {
if (power < 69) {
v1 = 69;
} else {
if (power < 70) {
v1 = 70;
} else {
if (power < 71) {
v1 = 71;
} else {
if (power < 72) {
v1 = 72;
} else {
if (power < 73) {
v1 = 73;
} else {
if (power < 74) {
v1 = 74;
} else {
if (power < 75) {
v1 = 75;
} else {
if (power < 76) {
v1 = 76;
} else {
if (power < 77) {
v1 = 77;
} else {
if (power < 78) {
v1 = 78;
} else {
if (power < 79) {
v1 = 79;
} else {
if (power < 80) {
v1 = 80;
} else {
if (power < 81) {
v1 = 81;
} else {
if (power < 82) {
v1 = 82;
} else {
if (power < 83) {
v1 = 83;
} else {
if (power < 84) {
v1 = 84;
} else {
if (power < 85) {
v1 = 85;
} else {
if (power < 86) {
v1 = 86;
} else {
if (power < 87) {
v1 = 87;
} else {
if (power < 88) {
v1 = 88;
} else {
if (power < 90) {
v1 = 89;
} else {
v1 = 1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
over.gubbe.gotoAndStop(v1);
under.gubbe.gotoAndStop(v1);
over._rotation = angle;
}
function Throw() {
over.gubbe.gotoAndPlay(95);
under.gubbe.gotoAndPlay(95);
over._rotation = 0;
}
}
}
movieClip 400 mc_cancel {
frame 1 {
var OnCancel;
butCancel.onPress = function () {
if (OnCancel != null) {
OnCancel();
}
};
}
}
frame 3 {
function goVisit(target_mc, obj) {
_root.getURL('careofhaus.asp', '_blank');
}
function goVisit2(target_mc, obj) {
_root.getURL('solidworks.asp', '_blank');
}
function setupConfig() {
if (challengeID != null) {
(vp.__get__movieClip()).mcConfig.mcConfig.txtInstructions.text = 'Welcome to the Battle of the Air! Your friend seems to think he\'s an ace at flying. Now you have the chance to crash her confidence.\nDesign your plane at the left. Then practice (below) flying it. When you feel confident, accept the challenge and kick some ass. Just remember, you only get one shot in the competition. (You will see your buddy’s attempt as a paper plane shadow.)\n\nKick some ass!\nFlight Commander';
(vp.__get__movieClip()).mcConfig.mcConfig.varChallengeEmail = challReciever.dejaEmail.toLowerCase();
} else {
(vp.__get__movieClip()).mcConfig.mcConfig.txtInstructions.text = 'Design your plane, practice flying it and then when you feel confident challenge your buddies and kick some ass. Just remember, you only get one shot in the competition.\n\nBon Voyage.\nFlight Commander.';
(vp.__get__movieClip()).mcConfig.mcConfig.txtChallengedBy._visible = false;
(vp.__get__movieClip()).mcConfig.mcConfig.txtChallengeEmail._visible = false;
}
}
function clearIntroScreen() {
(vp.__get__movieClip()).mcConfig.gotoAndPlay(42);
mcLogo.gotoAndPlay(2);
ival = setInterval(_root, 'removeIntroScreen', 1000);
}
function removeIntroScreen() {
clearInterval(ival);
(vp.__get__movieClip()).mcStart.removeMovieClip();
stopAllSounds();
_root.sfx_title.setVolume(_root.vol);
}
function resetThrow() {
if ((vp.__get__movieClip()).mcTryAgain != null) {
(vp.__get__movieClip()).mcTryAgain.removeMovieClip();
}
(vp.__get__movieClip()).LayerDef_Arena.mcTooHard._visible = false;
dragX = 0;
dragY = 50;
aero1.planeangle = 0;
fly = false;
if (inchallenge) {
(vp.__get__movieClip()).LayerDef_Arena.obj_player_white.Aim(0, 0);
}
(vp.__get__movieClip()).LayerDef_Arena.obj_player.Aim(0, 0);
(vp.__get__movieClip()).LayerDef_Arena.obj_player_hand.Aim(0, 0);
(vp.__get__movieClip()).mcScore.txtLen.text = '0.0m';
(vp.__get__movieClip()).mcScore.mcBar._y = 27;
vp.setCameraZoomTarget(100);
}
function grabPlane() {
if (demomode == 1) {
return undefined;
}
if (!fly && !drag) {
drag = true;
startdragX = _root._xmouse;
startdragY = _root._ymouse;
dragX = 0;
dragY = 50;
}
}
function movePlane() {
if (drag) {
var v2;
dragX = startdragX - _root._xmouse;
dragY = startdragY - _root._ymouse;
if (dragX < 0) {
dragX = 0;
}
radians = Math.atan(dragY / dragX);
if (isNaN(radians)) {
radians = 0;
}
degrees = -(radians * 180) / Math.PI;
if (degrees < -60) {
degrees = -60;
radians = (-degrees / 180) * Math.PI;
}
if (degrees > 60) {
degrees = 60;
radians = (-degrees / 180) * Math.PI;
}
aero1.planeangle = degrees;
aero1.angle = degrees;
v2 = Math.sqrt(dragX * dragX + dragY * dragY);
if (v2 > 80) {
v2 = 80;
}
dragX = Math.cos(radians) * v2 - Math.sin(radians) * 50;
dragY = Math.sin(radians) * v2 + Math.cos(-radians) * 50;
if (inchallenge) {
(vp.__get__movieClip()).LayerDef_Arena.obj_player_white.Aim(v2 * 89 / 80, -degrees);
}
(vp.__get__movieClip()).LayerDef_Arena.obj_player.Aim(v2 * 89 / 80, -degrees);
(vp.__get__movieClip()).LayerDef_Arena.obj_player_hand.Aim(v2 * 89 / 80, -degrees);
aero1.power = v2 * 3.4;
}
}
function releasePlane() {
if (!fly && drag) {
if ((vp.__get__movieClip()).LayerDef_Arena.mcInfo) {
(vp.__get__movieClip()).LayerDef_Arena.mcInfo.removeMovieClip();
}
lastspeed = aero1.power;
lastangle = aero1.angle;
drag = false;
(vp.__get__movieClip()).mcConfig.mcConfig.SelectedPlane;
aero1.setPlane((vp.__get__movieClip()).mcConfig.mcConfig.SelectedPlane);
aero1.element = (vp.__get__movieClip()).mcConfig.mcConfig.mcSliderElevators.Value;
aero1.weight = 0.012 + (vp.__get__movieClip()).mcConfig.mcConfig.mcSliderWeight.Value / 5000;
aero1.winglets = (vp.__get__movieClip()).mcConfig.mcConfig.mcSliderWinglets.Value;
var v1 = aero1.power - (200 + aero1.winglets * 10 + (aero1.weight - 0.012) * 1000);
mcBorder.txtDanger = '';
aero1.err = v1;
if (v1 > 0) {
(vp.__get__movieClip()).LayerDef_Arena.mcTooHard.gotoAndPlay(1);
(vp.__get__movieClip()).LayerDef_Arena.mcTooHard._visible = true;
if (aero1.element > 5) {
aero1.element = 100;
} else {
aero1.element = -200;
}
aero1.weight = 0.012;
}
aero1.init();
aero1.dx = -dragX;
aero1.dy = dragY;
if (inchallenge) {
(vp.__get__movieClip()).LayerDef_Arena.obj_player_white.Throw();
}
(vp.__get__movieClip()).LayerDef_Arena.obj_player.Throw();
(vp.__get__movieClip()).LayerDef_Arena.obj_player_hand.Throw();
inAir1 = true;
fly = true;
if (inchallenge) {
clearInterval(ivalchallenge);
(vp.__get__movieClip()).mcCancel.removeMovieClip();
}
if (challengeID != null && inchallenge) {
aero2.angle = Number(challReciever.dejaAngle);
aero2.power = Number(challReciever.dejaPower);
aero2.element = Number(challReciever.dejaElevators);
aero2.weight = Number(challReciever.dejaWeight);
aero2.winglets = Number(challReciever.dejaWinglets);
aero2.setPlane(Number(challReciever.dejaPlane));
aero2.init();
aero2.dx = Number(challReciever.dejaOutX);
aero2.dy = Number(challReciever.dejaOutY);
(vp.__get__movieClip()).LayerDef_Arena.ghostplane._visible = true;
inAir2 = true;
(vp.__get__movieClip()).LayerDef_Arena.obj_cap._visible = true;
}
vp.setCameraZoomTarget(100);
}
}
function ShowForm() {
stopAllSounds();
Key.removeListener(keyListener);
(vp.__get__movieClip()).mcChallengeIntro.stop();
(vp.__get__movieClip()).attachMovie('mc_formchallenge', 'mcFormChallenge', (vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcFormChallenge._x = 360;
(vp.__get__movieClip()).mcFormChallenge._y = 200;
(vp.__get__movieClip()).mcFormChallenge.myName = _root.challYourName.toUpperCase();
(vp.__get__movieClip()).mcFormChallenge.myMail = _root.challYourEmail.toUpperCase();
(vp.__get__movieClip()).mcFormChallenge.Challenger1 = _root.challChallenger1.toUpperCase();
(vp.__get__movieClip()).mcFormChallenge.Challenger2 = _root.challChallenger2.toUpperCase();
(vp.__get__movieClip()).mcFormChallenge.Challenger3 = _root.challChallenger3.toUpperCase();
(vp.__get__movieClip()).mcFormChallenge.Challenger4 = _root.challChallenger4.toUpperCase();
(vp.__get__movieClip()).mcFormChallenge.Challenger5 = _root.challChallenger5.toUpperCase();
(vp.__get__movieClip()).mcConfig.swapDepths((vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcFormChallenge.OnCancel = CancelChallenge;
(vp.__get__movieClip()).mcFormChallenge.OnSubmit = SubmitChallenge;
}
function GoChallenge() {
initArenaNighttime();
resetThrow();
if ((vp.__get__movieClip()).mcCancel != null) {
(vp.__get__movieClip()).mcCancel.removeMovieClip();
}
(vp.__get__movieClip()).attachMovie('mc_cancel', 'mcCancel', (vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcCancel._x = 120;
(vp.__get__movieClip()).mcCancel._y = 400;
(vp.__get__movieClip()).mcCancel.OnCancel = function () {
myInterval = setInterval(_root, 'continueToPractise', 1500);
(vp.__get__movieClip()).mcConfig.gotoAndPlay(31);
};
(vp.__get__movieClip()).mcScore.swapDepths((vp.__get__movieClip()).getNextHighestDepth());
if ((vp.__get__movieClip()).mcChallengeIntro != null) {
(vp.__get__movieClip()).mcChallengeIntro.removeMovieClip();
}
(vp.__get__movieClip()).attachMovie('mc_challenge_intro', 'mcChallengeIntro', (vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcConfig.swapDepths((vp.__get__movieClip()).getNextHighestDepth());
if (challengeID == null) {
(vp.__get__movieClip()).mcChallengeIntro.onEnterForm = ShowForm;
}
if (challengeID == null) {
(vp.__get__movieClip()).mcChallengeIntro.onLaunchSample = _root.SpeakerWelcome;
} else {
(vp.__get__movieClip()).mcChallengeIntro.onLaunchSample = function () {
_root.sfx_challenge_speaker_heres_the_moment.start();
};
}
(vp.__get__movieClip()).mcChallengeIntro.onStartZoom = StartChallenge;
(vp.__get__movieClip()).mcChallengeIntro.onMovieEnd = RemoveIntro;
_root.sfx_challenge_intro.start();
}
function SpeakerWelcome() {
_root.sfx_challenge_speaker_welcome.start();
}
function ThrowPlanes() {
fly = true;
clearInterval(ivalthrow);
clearInterval(ivalchallenge);
aero1.angle = Number(challReciever.deja2Angle);
aero1.power = Number(challReciever.deja2Power);
aero1.element = Number(challReciever.deja2Elevators);
aero1.weight = Number(challReciever.deja2Weight);
aero1.winglets = Number(challReciever.deja2Winglets);
aero1.setPlane(Number(challReciever.deja2Plane));
aero1.init();
aero1.dx = Number(challReciever.deja2OutX);
aero1.dy = Number(challReciever.deja2OutY);
inAir1 = true;
aero2.angle = Number(challReciever.dejaAngle);
aero2.power = Number(challReciever.dejaPower);
aero2.element = Number(challReciever.dejaElevators);
aero2.weight = Number(challReciever.dejaWeight);
aero2.winglets = Number(challReciever.dejaWinglets);
aero2.setPlane(Number(challReciever.dejaPlane));
aero2.init();
aero2.dx = Number(challReciever.dejaOutX);
aero2.dy = Number(challReciever.dejaOutY);
inAir2 = true;
(vp.__get__movieClip()).LayerDef_Arena.obj_cap._visible = true;
(vp.__get__movieClip()).LayerDef_Arena.ghostplane._visible = true;
if (inchallenge) {
(vp.__get__movieClip()).LayerDef_Arena.obj_player_white.Throw();
}
(vp.__get__movieClip()).LayerDef_Arena.obj_player.Throw();
(vp.__get__movieClip()).LayerDef_Arena.obj_player_hand.Throw();
vp.setCameraZoomTarget(100);
}
function RemoveIntro() {
_root.sfx_challenge_publik_sorl_loop.start(0, 999);
tauntcount = 0;
oneshot = false;
if (challengeID != null) {
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name0 = challengeEmail;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name1 = initEmail;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name2 = '';
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name3 = '';
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name4 = '';
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name5 = '';
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.play();
}
ivalchallenge = setInterval(_root, 'TauntPlayer', 10000);
(vp.__get__movieClip()).mcChallengeIntro.removeMovieClip();
if (demomode == 1) {
PrepareThrowPlanes();
}
}
function PrepareThrowPlanes() {
ivalthrow = setInterval(_root, 'ThrowPlanes', 2000);
}
function StartChallenge() {
vp.setCameraZoom(80);
vp.setCameraZoomTarget(100);
}
function CancelChallenge() {
_root.sfx_challenge_publik_sorl_loop.stop();
(vp.__get__movieClip()).mcConfig.swapDepths((vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcConfig.gotoAndPlay(31);
ival = setInterval(_root, 'RemoveForm', 1200);
clearInterval(ivalchallenge);
}
function SubmitChallenge() {
_root.challYourName = (vp.__get__movieClip()).mcFormChallenge.popup.txtYourName.text;
_root.challYourEmail = (vp.__get__movieClip()).mcFormChallenge.popup.txtYourEmail.text;
_root.challChallenger1 = (vp.__get__movieClip()).mcFormChallenge.popup.txtChallanger1.text;
_root.challChallenger2 = (vp.__get__movieClip()).mcFormChallenge.popup.txtChallanger2.text;
_root.challChallenger3 = (vp.__get__movieClip()).mcFormChallenge.popup.txtChallanger3.text;
_root.challChallenger4 = (vp.__get__movieClip()).mcFormChallenge.popup.txtChallanger4.text;
_root.challChallenger5 = (vp.__get__movieClip()).mcFormChallenge.popup.txtChallanger5.text;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name0 = _root.challYourEmail;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name1 = (_root.challChallenger1 == 'CHALLENGER\'S EMAIL') ? '' : _root.challChallenger1;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name2 = (_root.challChallenger2 == 'CHALLENGER\'S EMAIL') ? '' : _root.challChallenger2;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name3 = (_root.challChallenger3 == 'CHALLENGER\'S EMAIL') ? '' : _root.challChallenger3;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name4 = (_root.challChallenger4 == 'CHALLENGER\'S EMAIL') ? '' : _root.challChallenger4;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name5 = (_root.challChallenger5 == 'CHALLENGER\'S EMAIL') ? '' : _root.challChallenger5;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.play();
(vp.__get__movieClip()).mcFormChallenge.swapDepths((vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcScore.swapDepths((vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcConfig.swapDepths((vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcChallengeIntro.play();
ival = setInterval(this, RemoveForm, 1000);
}
function RemoveForm() {
clearInterval(ival);
(vp.__get__movieClip()).mcFormChallenge.removeMovieClip();
initArenaDaytime();
resetThrow();
(vp.__get__movieClip()).mcScore.swapDepths((vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcConfig.swapDepths((vp.__get__movieClip()).getNextHighestDepth());
}
function practiseLanding() {
(vp.__get__movieClip()).attachMovie('mc_try_again', 'mcTryAgain', (vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcTryAgain.onClick = function () {
(vp.__get__movieClip()).mcTryAgain.removeMovieClip();
resetThrow();
};
}
function challengeLanding() {
if (challengeID == null) {
var v2 = new LoadVars();
v2.myName = challYourName;
v2.myEmail = challYourEmail;
v2.challenged1 = challChallenger1;
v2.challenged2 = challChallenger2;
v2.challenged3 = challChallenger3;
v2.challenged4 = challChallenger4;
v2.challenged5 = challChallenger5;
v2.abc = lastspeed;
v2.def = lastangle;
v2.ghi = (vp.__get__movieClip()).mcConfig.mcConfig.SelectedPlane;
v2.jkl = aero1.element;
v2.mno = aero1.weight;
v2.pqr = aero1.winglets;
v2.stu = aero1.x;
v2.vwx = -dragX;
v2.yz = dragY;
v2.sendAndLoad('Challenge.aspx', v2, 'POST');
inAir1 = false;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Len = CalcLength(aero1.x);
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.gotoAndPlay(46);
myInterval = setInterval(_root, 'zoomBoard', 2000);
} else {
inAir1 = false;
if (!inAir2) {
CompleteChallenge();
} else {
vp.setCameraModeFollow((vp.__get__movieClip()).LayerDef_Arena.ghostplane);
}
}
if (CalcLength(aero1.x) < 5) {
_root.sfx_challenge_looser.start();
}
}
function GhostLanding() {
inAir2 = false;
if (!inAir1) {
CompleteChallenge();
}
}
function CompleteChallenge() {
if (demomode != 1) {
var v2 = new LoadVars();
v2.myID = challengeID;
v2.myEmail = challengeEmail;
v2.abc = lastspeed;
v2.def = lastangle;
v2.ghi = (vp.__get__movieClip()).mcConfig.mcConfig.SelectedPlane;
v2.jkl = aero1.element;
v2.mno = aero1.weight;
v2.pqr = aero1.winglets;
v2.stu = aero1.x;
v2.vwx = -dragX;
v2.yz = dragY;
v2.sendAndLoad('CompleteChallenge.aspx', v2, 'POST');
_root.challYourEmail = challengeEmail;
_root.challChallenger1 = initEmail;
}
if (aero1.x > aero2.x) {
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Len1 = CalcLength(aero1.x);
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Len2 = CalcLength(aero2.x);
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name1 = challengeEmail;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name2 = initEmail;
} else {
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Len1 = CalcLength(aero2.x);
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Len2 = CalcLength(aero1.x);
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name1 = initEmail;
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.Name2 = challengeEmail;
}
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.gotoAndPlay(55);
myInterval = setInterval(_root, 'zoomBoard', 2000);
}
function zoomBoard() {
clearInterval(myInterval);
vp.setCameraModeFollow((vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard);
vp.setCameraZoomTarget(180);
if (challengeID == null) {
_root.sfx_challenge_speaker_wait_and_see.start();
} else {
(vp.__get__movieClip()).mcBigBang.fireaway = true;
_root.sfx_challenge_speaker_we_have_a_winner.start();
_root.sfx_challenge_publik_winner.start();
}
(vp.__get__movieClip()).LayerDef_Arena.mcScoreBoard.butContinue.onPress = function () {
myInterval = setInterval(_root, 'continueToPractise', 1500);
(vp.__get__movieClip()).mcConfig.gotoAndPlay(31);
};
challengeID = null;
demomode = null;
_root.setupConfig();
}
function continueToPractise() {
clearInterval(myInterval);
_root.sfx_challenge_publik_sorl_loop.stop();
initArenaDaytime();
resetThrow();
vp.setCameraZoom(100);
(vp.__get__movieClip()).mcScore.swapDepths((vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcConfig.swapDepths((vp.__get__movieClip()).getNextHighestDepth());
}
function initArenaDaytime() {
inchallenge = false;
vp.clearLayers();
vp.addLayer('LayerDef_Sky', 'LayerDef_Sky', 0);
vp.addLayer('LayerDef_Sun', 'LayerDef_Sun', 0.04);
vp.addLayer('LayerDef_HousesFarAway', 'LayerDef_HousesFarAway', 0.7);
vp.addLayer('LayerDef_Houses', 'LayerDef_Houses', 0.8);
vp.addLayer('LayerDef_Trees', 'LayerDef_Trees', 0.9);
vp.addLayer('LayerDef_Arena', 'LayerDef_Arena', 1);
aero1.onLanding = practiseLanding;
initArenaStandard();
vp.renderView();
}
function initArenaNighttime() {
inchallenge = true;
vp.clearLayers();
vp.addLayer('LayerDef_SkyNight', 'LayerDef_Sky', 0);
vp.addLayer('LayerDef_SunNight', 'LayerDef_Sun', 0.04);
vp.addLayer('LayerDef_HousesFarAwayNight', 'LayerDef_HousesFarAway', 0.7);
(vp.__get__movieClip()).attachMovie('mc_bigbang', 'mcBigBang', (vp.__get__movieClip()).getNextHighestDepth());
vp.addLayer('LayerDef_HousesNight', 'LayerDef_Houses', 0.8);
vp.addLayer('LayerDef_TreesNight', 'LayerDef_Trees', 0.9);
vp.addLayer('LayerDef_ArenaNight', 'LayerDef_Arena', 1);
if (challengeID != null) {
(vp.__get__movieClip()).LayerDef_Arena.addMovie(GetRightPlane(3), 'ghostplane');
(vp.__get__movieClip()).LayerDef_Arena.ghostplane._x = -1100;
(vp.__get__movieClip()).LayerDef_Arena.ghostplane._y = 580;
(vp.__get__movieClip()).LayerDef_Arena.ghostplane._visible = false;
(vp.__get__movieClip()).LayerDef_Arena.ghostplane._alpha = 30;
(vp.__get__movieClip()).LayerDef_Arena.addMovie('mc_smallcap', 'obj_cap');
(vp.__get__movieClip()).LayerDef_Arena.obj_cap._x = -1100;
(vp.__get__movieClip()).LayerDef_Arena.obj_cap._y = 600;
(vp.__get__movieClip()).LayerDef_Arena.obj_cap._visible = false;
(vp.__get__movieClip()).LayerDef_Arena.obj_cap.txtEmail.text = initEmail.toLowerCase();
(vp.__get__movieClip()).LayerDef_Arena.obj_cap.txtEmail2.text = initEmail.toLowerCase();
aero2.onLanding = GhostLanding;
}
(vp.__get__movieClip()).LayerDef_Arena.addMovie('mc_player', 'obj_player_white');
(vp.__get__movieClip()).LayerDef_Arena.obj_player_white._x = -1099;
(vp.__get__movieClip()).LayerDef_Arena.obj_player_white._y = 629;
Dmctransform = new flash.geom.Transform((vp.__get__movieClip()).LayerDef_Arena.obj_player_white);
cColorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 180, 180, 180, 0);
Dmctransform.colorTransform = cColorTransform;
aero1.onLanding = challengeLanding;
initArenaStandard();
}
function InitPlane(planeType) {
if ((vp.__get__movieClip()).LayerDef_Arena.obj_plane != null) {
var v1;
v1 = (vp.__get__movieClip()).LayerDef_Arena.obj_plane.getDepth();
(vp.__get__movieClip()).LayerDef_Arena.obj_plane.removeMovieClip();
(vp.__get__movieClip()).LayerDef_Arena.attachMovie(GetRightPlane(planeType), 'obj_plane', v1);
} else {
(vp.__get__movieClip()).LayerDef_Arena.addMovie(GetRightPlane(planeType), 'obj_plane');
}
(vp.__get__movieClip()).LayerDef_Arena.obj_plane._x = -1100;
(vp.__get__movieClip()).LayerDef_Arena.obj_plane._y = 580;
(vp.__get__movieClip()).LayerDef_Arena.obj_plane.onPress = grabPlane;
(vp.__get__movieClip()).LayerDef_Arena.obj_plane.onMouseMove = movePlane;
(vp.__get__movieClip()).LayerDef_Arena.obj_plane.onMouseUp = releasePlane;
vp.setCameraModeFollow((vp.__get__movieClip()).LayerDef_Arena.obj_plane);
}
function initArenaStandard() {
vp.setCameraBounds(1285, 743.5);
(vp.__get__movieClip()).LayerDef_Arena.addMovie('mcPlaneShadow', 'obj_shadow');
(vp.__get__movieClip()).LayerDef_Arena.addMovie('mc_player', 'obj_player');
(vp.__get__movieClip()).LayerDef_Arena.obj_player._x = -1100;
(vp.__get__movieClip()).LayerDef_Arena.obj_player._y = 630;
InitPlane(aero1._plane);
(vp.__get__movieClip()).LayerDef_Arena.addMovie('mc_player_hand', 'obj_player_hand');
(vp.__get__movieClip()).LayerDef_Arena.obj_player_hand._x = -1100;
(vp.__get__movieClip()).LayerDef_Arena.obj_player_hand._y = 630;
(vp.__get__movieClip()).LayerDef_Arena.addMovie('mc_too_hard', 'mcTooHard');
(vp.__get__movieClip()).LayerDef_Arena.mcTooHard._visible = false;
(vp.__get__movieClip()).LayerDef_Arena.mcTooHard._x = -1085;
(vp.__get__movieClip()).LayerDef_Arena.mcTooHard._y = 500;
(vp.__get__movieClip()).LayerDef_Arena.obj_shadow._x = -1100;
(vp.__get__movieClip()).LayerDef_Arena.obj_shadow._y = 570;
}
function TauntPlayer() {
++tauntcount;
if (tauntcount == 1) {
_root.sfx_challenge_go_for_it.start();
}
if (tauntcount == 2) {
_root.sfx_challenge_show_what.start();
}
if (tauntcount == 3) {
_root.sfx_challenge_i_love.start();
}
}
function CalcLength(xpos) {
var v1 = (xpos - 40) / 44.5;
if (v1 < 0) {
v1 = 0;
}
v1 = int(v1) + '.' + int(v1 * 10 % 10);
return isNaN(v1) ? '0.0' : v1;
}
function GetRightPlane(PlaneNr) {
if (PlaneNr == 1) {
return 'mc_plane_eagle';
}
if (PlaneNr == 2) {
return 'mc_plane_square';
}
if (PlaneNr == 3) {
return 'mc_plane_dart';
}
return 'mc_plane_dart';
}
var menu_cm = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem('Copyright SolidWorks', goVisit2));
menu_cm.customItems.push(new ContextMenuItem('Developed by Care of Haus, Sweden', goVisit, true));
menu_cm.hideBuiltInItems();
_root.menu = menu_cm;
var myzoom = 100;
var inchallenge = false;
var tauntcount = 0;
var oneshot = false;
var Dmctransform;
var cColorTransform;
var inAir1 = false;
var inAir2 = false;
var initEmail = challReciever.dejaEmail;
var ivalchallenge;
var ival;
var aero1 = new kage.classes.aerodynamics();
var aero2 = new kage.classes.aerodynamics();
var fly = false;
var dragX = 0;
var dragY = 50;
var startdragX = 0;
var startdragY = 0;
var drag = false;
var degrees = 0;
var radians = (degrees / 180) * Math.PI;
var lastspeed = 0;
var lastangle = 0;
var challYourName;
var challYourEmail;
var challChallenger1;
var challChallenger2;
var challChallenger3;
var challChallenger4;
var challChallenger5;
var sfx_gui_click = new Sound();
var sfx_gui_slide = new Sound();
var sfx_challenge_come = new Sound();
var sfx_challenge_go_for_it = new Sound();
var sfx_challenge_i_love = new Sound();
var sfx_challenge_intro = new Sound();
var sfx_challenge_looser = new Sound();
var sfx_challenge_publik_sorl_loop = new Sound();
var sfx_challenge_publik_winner = new Sound();
var sfx_challenge_show_what = new Sound();
var sfx_challenge_speaker_heres_the_moment = new Sound();
var sfx_challenge_speaker_wait_and_see = new Sound();
var sfx_challenge_speaker_we_have_a_winner = new Sound();
var sfx_challenge_speaker_welcome = new Sound();
var sfx_title = new Sound();
sfx_gui_click.attachSound('gui_click.wav');
sfx_gui_slide.attachSound('gui_slide.wav');
sfx_challenge_come.attachSound('challenge_come.wav');
sfx_challenge_go_for_it.attachSound('challenge_go_for_it.wav');
sfx_challenge_i_love.attachSound('challenge_i_love.wav');
sfx_challenge_intro.attachSound('challenge_intro.wav');
sfx_challenge_looser.attachSound('challenge_looser.wav');
sfx_challenge_publik_sorl_loop.attachSound('challenge_publik_sorl_loop.wav');
sfx_challenge_publik_winner.attachSound('challenge_publik_winner.wav');
sfx_challenge_show_what.attachSound('challenge_show_what.wav');
sfx_challenge_speaker_heres_the_moment.attachSound('challenge_speaker_heres_the_moment.wav');
sfx_challenge_speaker_wait_and_see.attachSound('challenge_speaker_wait_and_see.wav');
sfx_challenge_speaker_we_have_a_winner.attachSound('challenge_speaker_we_have_a_winner.wav');
sfx_challenge_speaker_welcome.attachSound('challenge_speaker_welcome.wav');
sfx_title.attachSound('sfx_prelude');
if (SoundCmd == 'off') {
mcBorder.mcSound.gotoAndPlay(2);
}
var vp = new kage.classes.viewport(700, 410, 10, 22);
mcBorder.swapDepths(1000);
mcLogo.swapDepths(1001);
initArenaDaytime();
(vp.__get__movieClip()).LayerDef_Arena.addMovie('mov_info', 'mcInfo');
(vp.__get__movieClip()).LayerDef_Arena.mcInfo._x = -1200;
(vp.__get__movieClip()).LayerDef_Arena.mcInfo._y = 450;
aero1.dx = 0;
aero1.dy = 60;
aero1.init();
(vp.__get__movieClip()).attachMovie('mc_score', 'mcScore', (vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcScore._x = 590;
(vp.__get__movieClip()).mcScore._y = 345;
if (challengeID != null && demomode == 1) {
GoChallenge();
} else {
(vp.__get__movieClip()).attachMovie('mc_start', 'mcStart', (vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcStart.onStart = clearIntroScreen;
if (challengeID != null) {
(vp.__get__movieClip()).mcStart.mcStart.varStartText = 'YOU HAVE BEEN CHALLENGED BY ' + challReciever.dejaName.toUpperCase() + '. DESIGN A PLANE, PRACTICE YOUR SKILLS, AND TAKE OFF TO THE BATTLE OF THE AIR!';
}
}
(vp.__get__movieClip()).attachMovie('mc_configurator', 'mcConfig', (vp.__get__movieClip()).getNextHighestDepth());
(vp.__get__movieClip()).mcConfig._x = 700;
(vp.__get__movieClip()).mcConfig._y = 391;
(vp.__get__movieClip()).mcConfig.OnChallenge = GoChallenge;
(vp.__get__movieClip()).mcConfig.OnPractice = resetThrow;
(vp.__get__movieClip()).mcConfig.gotoAndStop(30);
setupConfig();
onEnterFrame = function () {
if (fly) {
aero1.fly();
(vp.__get__movieClip()).LayerDef_Arena.obj_plane._x = -1100 + aero1.x;
(vp.__get__movieClip()).LayerDef_Arena.obj_plane._y = 630 - aero1.y;
(vp.__get__movieClip()).mcScore.txtLen.text = CalcLength(aero1.x) + 'M';
(vp.__get__movieClip()).mcScore.mcBar._y = 27 - aero1.y / 20;
if (inchallenge) {
if (CalcLength(aero1.x) > 20 && !oneshot) {
oneshot = true;
_root.sfx_challenge_come.start();
}
}
if (challengeID != null && inchallenge) {
aero2.fly();
(vp.__get__movieClip()).LayerDef_Arena.ghostplane._x = -1100 + aero2.x;
(vp.__get__movieClip()).LayerDef_Arena.ghostplane._y = 630 - aero2.y;
degrees = -aero2.planeangle;
(vp.__get__movieClip()).LayerDef_Arena.ghostplane._rotation = degrees;
(vp.__get__movieClip()).LayerDef_Arena.obj_cap._x = -1100 + aero2.x;
(vp.__get__movieClip()).LayerDef_Arena.obj_cap._y = 600 - aero2.y;
}
} else {
(vp.__get__movieClip()).LayerDef_Arena.obj_plane._x = -1100 - dragX;
(vp.__get__movieClip()).LayerDef_Arena.obj_plane._y = 630 - dragY;
}
degrees = -aero1.planeangle;
(vp.__get__movieClip()).LayerDef_Arena.obj_plane._rotation = degrees;
var v2 = (-(-(vp.__get__movieClip()).LayerDef_Arena.obj_plane._y + 570) + 120) / 2;
if (v2 < 0) {
v2 = 0;
}
(vp.__get__movieClip()).LayerDef_Arena.obj_shadow._alpha = v2;
(vp.__get__movieClip()).LayerDef_Arena.obj_shadow._x = (vp.__get__movieClip()).LayerDef_Arena.obj_plane._x;
(vp.__get__movieClip()).LayerDef_Arena.obj_shadow._y = 690;
vp.renderView();
};
var ivalthrow;
var myInterval;
var easter = ' ';
keyListener = new Object();
keyListener.onKeyDown = function () {
easter += String.fromCharCode(Key.getAscii());
if (easter.length > 20) {
easter = easter.substr(easter.length - 20, 20);
}
if (easter.length > 6 && easter.substr(easter.length - 7, 7) == 'fredrik') {
mcBorder.mcEaster.gotoAndPlay(2);
}
if (easter.length > 5 && easter.substr(easter.length - 6, 6) == 'daniel') {
mcBorder.mcEaster.gotoAndPlay(2);
}
if (easter.length > 6 && easter.substr(easter.length - 7, 7) == 'andreas') {
mcBorder.mcEaster.gotoAndPlay(2);
}
if (easter.length > 5 && easter.substr(easter.length - 6, 6) == 'tobias') {
mcBorder.mcEaster.gotoAndPlay(2);
}
};
Key.addListener(keyListener);
stop();
}