Frame 1
Frame 2
function changeHandler(instance) {
var _local1 = instance;
switch (_local1._name) {
case "showSettingsCheckBox" :
settingsPanelPath._visible = _local1.getValue();
return;
case "showStripGuidesCheckBox" :
showStripGuides = _local1.getValue();
createStrips();
return;
case "fogCheckBox" :
showFog = _local1.getValue();
createFog();
return;
case "nightCheckBox" :
night = _local1.getValue();
if (night) {
componentsColor.gotoAndStop(2);
} else {
componentsColor.gotoAndStop(1);
}
createSky();
return;
case "keepFPSCheckBox" :
keepFPS = _local1.getValue();
return;
case "skyCheckBox" :
sky = _local1.getValue();
createSky();
return;
case "parallaxSkyCheckBox" :
parallaxSky = _local1.getValue();
createSky();
return;
case "mipMappingCheckBox" :
mipMapping = _local1.getValue();
createStrips();
}
}
function createFog() {
if (showFog) {
sM.attachMovie("fog", "fogClip", 1002);
sM.fogClip._alpha = fogAlpha;
sM.fogClip._yscale = fogScale;
} else if (sM.fogClip) {
sM.fogClip.removeMovieClip();
}
}
function createSky() {
if (night) {
var _local1 = 2;
} else {
var _local1 = 1;
}
if (sky) {
sM.s1._visible = (sM.s2._visible = (sM.s3._visible = true));
sM.s1._x = (sM.s2._x = (sM.s3._x = 0));
sM.s1.gotoAndStop(_local1);
sM.s2.gotoAndStop(_local1);
sM.s3.gotoAndStop(_local1);
sM.noSky.gotoAndStop(1);
sM.noSky._visible = false;
} else {
sM.s1._visible = (sM.s2._visible = (sM.s3._visible = false));
sM.noSky.gotoAndStop(_local1);
sM.noSky._visible = true;
}
if (night) {
sM.nightLight.swapDepths(1001);
sM.nightLight._visible = true;
} else {
sM.nightLight._visible = false;
}
}
function createStrips() {
for (var clip in sM) {
if ((((clip.substring(0, 1) != "s") && (clip != "stripGuides")) && (clip != "fogClip")) && (clip != "nightLight")) {
sM[clip].removeMovieClip();
}
}
if (showStripGuides) {
sM.createEmptyMovieClip("stripGuides", 1003);
with (sM.stripGuides) {
lineStyle(0, 16711680, 100);
}
} else {
sM.stripGuides.removeMovieClip();
}
var averageH = ((topH + bottomH) / 2);
var maskY = 0;
var strip;
var zoneFrame = (1 + Math.max(Math.min(Math.round((-yPos) / 640), xZoneMax), 0));
stripScale = new Array();
var a = 1;
while (a <= totalHeight) {
if (showStripGuides) {
with (sM.stripGuides) {
moveTo(-255, maskY);
lineTo(255, maskY);
endFill();
}
}
if ((maskY < (totalHeight * 0.06)) && (mipMapping)) {
strip = sM.strip_q.duplicateMovieClip(a, a * 2);
} else {
strip = sM.strip.duplicateMovieClip(a, a * 2);
}
strip._y = 220;
mask = sM.attachMovie("mask", "m" + a, (a * 2) + 1);
var scale = Math.pow(a / (totalHeight / averageH), 1.5);
var height = Math.round(topH + ((bottomH - topH) * scale));
mask._height = height + 2;
mask._width = 510;
maskY = maskY + height;
mask._y = maskY;
strip.setMask(mask);
strip._rotation = rotation;
strip.m._y = xPos;
strip.m._x = yPos + (xZone * 640);
strip.m.gotoAndStop(zoneFrame);
stripScale[a] = (maskY / totalHeight) * totalHeight;
strip._xscale = (strip._yscale = stripScale[a] * groundScale);
if (((maskY + (height * 2)) > totalHeight) && ((a % 2) == 0)) {
break;
}
a++;
}
nOfS = a;
roadShape.gotoAndStop(zoneFrame);
jumpShape.gotoAndStop(zoneFrame);
}
function fps() {
var _local1 = Math.round((fr * 10) / 3) / 10;
avgFPSTotal = avgFPSTotal + _local1;
avgNumber++;
if (avgNumber == 3) {
avgFPS = avgFPSTotal / 3;
avgFPSTotal = (avgNumber = 0);
if (keepFPS) {
if (avgFPS < 20) {
if (bottomH < 16) {
bottomH = bottomH + 2;
createStrips();
} else if (topH < 3) {
topH++;
createStrips();
}
}
}
}
fpsText = _local1;
fr = 0;
}
function main() {
if (Key.isDown(37)) {
if (!jumping) {
rotation = rotation + 5;
cosRot = Math.cos(rotation * (Math.PI/180));
sinRot = Math.sin(rotation * (Math.PI/180));
}
if (lean < 5) {
lean++;
sM._rotation = lean;
}
} else if (Key.isDown(39)) {
if (!jumping) {
rotation = rotation - 5;
cosRot = Math.cos(rotation * (Math.PI/180));
sinRot = Math.sin(rotation * (Math.PI/180));
}
if (lean > -5) {
lean--;
sM._rotation = lean;
}
} else if (lean) {
if (Math.abs(lean) < 0.5) {
lean = 0;
} else {
lean = lean * 0.8;
}
sM._rotation = lean;
}
if (sky) {
if (parallaxSky) {
skyOffset = skyOffset - cosRot;
sM.s1._x = ((3 * rotation) + (skyOffset * 3)) % 512;
sM.s2._x = ((3 * rotation) + (skyOffset * 2)) % 512;
sM.s3._x = ((3 * rotation) + skyOffset) % 512;
} else if (rotation != oldR) {
sM.s1._x = (sM.s2._x = (sM.s3._x = (3 * rotation) % 512));
}
}
if (Key.isDown(38) && (speed <= 10)) {
speed = speed + 0.5;
} else if (Key.isDown(40)) {
speed = speed - 0.25;
} else {
speed = speed * 0.96;
}
zSpeed = zSpeed + 0.1;
groundScale = groundScale + zSpeed;
if (groundScale >= 10) {
groundScale = 10;
jumping = false;
}
if ((Math.abs(speed) > 0.1) || (rotation != oldR)) {
xPos = xPos + (speed * cosRot);
yPos = yPos + (speed * sinRot);
xZone = Math.round((-yPos) / 640);
if (xZone != oldXZone) {
xZone = Math.min(Math.max(xZone, 0), xZoneMax);
if (xZone != oldXZone) {
var f = (1 + xZone);
var _local1 = 1;
while (_local1 < nOfS) {
sM[_local1].m.gotoAndStop(f);
sM[_local1 + 1].m.gotoAndStop(f);
_local1 = _local1 + 2;
}
roadShape.gotoAndStop(f);
jumpShape.gotoAndStop(f);
oldXZone = xZone;
jumping = true;
}
}
var x = xPos;
var y = (yPos + (xZone * 640));
var _local2 = sM;
if (roadShape.hitTest(x, -y, true) || (jumping)) {
_local2._x = 240;
_local2._y = 180;
} else {
_local2._x = 240 + random(int(speed));
_local2._y = 180 + random(int(speed * 2));
speed = speed * 0.9;
}
if (jumpShape.hitTest(x, -y, true) && (!jumping)) {
zSpeed = (-Math.abs(speed)) / 7.5;
jumping = true;
}
var r = rotation;
if (!jumping) {
if (r == oldR) {
var _local1 = 1;
while (_local1 < nOfS) {
var c1 = _local2[_local1].m;
var _local3 = _local2[_local1 + 1].m;
c1._y = (_local3._y = x);
c1._x = (_local3._x = y);
_local1 = _local1 + 2;
}
} else {
var _local1 = 1;
while (_local1 < nOfS) {
var c1 = _local2[_local1];
var m1 = c1.m;
var _local3 = _local2[_local1 + 1];
var m2 = _local3.m;
c1._rotation = (_local3._rotation = r);
m1._y = (m2._y = x);
m1._x = (m2._x = y);
_local1 = _local1 + 2;
}
}
} else {
var gs = groundScale;
var _local1 = 1;
while (_local1 < nOfS) {
var c1 = _local2[_local1];
var m1 = c1.m;
var _local3 = _local2[_local1 + 1];
var m2 = _local3.m;
c1._xscale = (c1._yscale = stripScale[_local1] * gs);
_local3._xscale = (_local3._yscale = stripScale[_local1 + 1] * gs);
m1._y = (m2._y = x);
m1._x = (m2._x = y);
_local1 = _local1 + 2;
}
}
oldR = r;
}
fr++;
}
Stage.showMenu = false;
_focusrect = false;
_quality = "LOW";
sM._alpha = 0;
keyListener = {};
keyListener.onKeyDown = function () {
switch (Key.getCode()) {
case 32 :
startT = getTimer();
var _local1 = 0;
while (_local1 < 200) {
main();
_local1++;
}
trace("calc main(): " + (getTimer() - startT));
fpsText = getTimer() - startT;
return;
case 13 :
case 9 :
bottomH = Math.max(parseInt(settingsPanelPath.bottomHTextField.text), 1);
fogAlpha = parseInt(fogAlpha);
fogScale = parseInt(fogScale);
groundScale = parseInt(groundScale);
topH = Math.max(parseInt(settingsPanelPath.topHTextField.text), 1);
createStrips();
createFog();
return;
case 83 :
settingsPanelPath._visible = !settingsPanelPath._visible;
showSettingsCheckBox.setValue(settingsPanelPath._visible);
return;
case 70 :
showFog = !showFog;
settingsPanelPath.fogCheckBox.setValue(showFog);
createFog();
return;
case 71 :
showStripGuides = !showStripGuides;
settingsPanelPath.showStripGuidesCheckBox.setValue(showStripGuides);
createStrips();
return;
case 75 :
keepFPS = !keepFPS;
settingsPanelPath.keepFPSCheckBox.setValue(keepFPS);
return;
case 89 :
sky = !sky;
settingsPanelPath.skyCheckBox.setValue(sky);
createSky();
case 80 :
parallaxSky = !parallaxSky;
settingsPanelPath.parallaxSkyCheckBox.setValue(parallaxSky);
createSky();
return;
case 77 :
mipMapping = !mipMapping;
settingsPanelPath.mipMappingCheckBox.setValue(mipMapping);
createStrips();
return;
case 78 :
night = !night;
settingsPanelPath.nightCheckBox.setValue(night);
if (night) {
componentsColor.gotoAndStop(2);
} else {
componentsColor.gotoAndStop(1);
}
createSky();
}
};
Key.addListener(keyListener);
Instance of Symbol 109 MovieClip "roadShape" in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 112 MovieClip "jumpShape" in Frame 2
onClipEvent (load) {
_visible = false;
}
Frame 3
keepFPS = false;
showFog = false;
fogAlpha = 75;
fogScale = 75;
mipMapping = true;
night = false;
parallaxSky = true;
showStripGuides = false;
sky = true;
topH = 1;
bottomH = 8;
groundScale = 10;
totalHeight = 205;
xZoneMax = 6;
createStrips(topH, bottomH, totalHeight);
createSky();
rotation = 0;
cosRot = Math.cos(rotation * (Math.PI/180)) / 2;
sinRot = Math.sin(rotation * (Math.PI/180)) / 2;
goThroughZones = 1 + xZoneMax;
Frame 4
var n = 1;
while (n < nOfS) {
sM[n].m.gotoAndStop(goThroughZones);
sM[n + 1].m.gotoAndStop(goThroughZones);
n = n + 2;
}
Frame 5
if (goThroughZones > 1) {
goThroughZones--;
gotoAndPlay ("scrollThroughZonesLabel");
}
Frame 6
stop();
if (fpsInterval == undefined) {
fpsInterval = setInterval(fps, 3000);
}
this.attachMovie("instructions", "instr", 10);
instr._x = Math.round((480 - instr._width) / 2);
instr._y = 330;
this.onEnterFrame = main;
sM._alpha = 100;
settingsPanelPath = componentsColor.componentsPanel.settingsPanel;
if (night) {
componentsColor.gotoAndStop(2);
} else {
componentsColor.gotoAndStop(1);
}
Symbol 11 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 19 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 22 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 25 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 26 MovieClip [fcb_states] Frame 1
stop();
Symbol 26 MovieClip [fcb_states] Frame 2
stop();
Symbol 26 MovieClip [fcb_states] Frame 3
stop();
Symbol 26 MovieClip [fcb_states] Frame 4
stop();
Symbol 26 MovieClip [fcb_states] Frame 5
stop();
Symbol 26 MovieClip [fcb_states] Frame 6
stop();
Symbol 29 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 30 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 37 MovieClip [instructions] Frame 1
kL = {};
kL.onKeyDown = function () {
Key.removeListener(kL);
_root.instr.removeMovieClip();
};
Key.addListener(kL);
Symbol 40 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 40 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 43 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 3
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
_local1.attachMovie("fcb_states", "fcb_states_mc", 2);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
_local1.setChangeHandler(_local1.changeHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.initialValue == undefined) {
_local1.setCheckState(false);
} else {
_local1.setCheckState(_local1.initialValue);
}
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_CHECKBUTTON = 44;
_local1.STATE_SYSTEM_CHECKED = 16;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
var _local3 = pos;
_local1.setLabel(_local1.getLabel());
_local1.txtFormat(_local3);
var halfLabelH = (_local1.fLabel_mc._height / 2);
var halfFrameH = (_local1.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = _local1.fcb_states_mc._width;
var frame = _local1.fcb_states_mc;
var label = _local1.fLabel_mc;
var _local2 = 0;
if (frame._width > _local1.width) {
_local2 = 0;
} else {
_local2 = _local1.width - frame._width;
}
_local1.fLabel_mc.setSize(_local2);
if ((_local3 == "right") || (_local3 == undefined)) {
_local1.labelPlacement = "right";
_local1.fcb_states_mc._x = 0;
_local1.fLabel_mc._x = checkWidth;
_local1.txtFormat("left");
} else if (_local3 == "left") {
_local1.labelPlacement = "left";
_local1.fLabel_mc._x = 0;
_local1.fcb_states_mc._x = _local1.width - checkWidth;
_local1.txtFormat("right");
}
_local1.fLabel_mc._y = vertCenter;
_local1.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = pos)) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 0)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 0)) : undefined);
if (_local1.flabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.flabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var _local2 = this;
var _local1 = _local2.fcb_hitArea_mc;
_local2.hitArea = _local1;
if (_local2.fcb_states_mc._width > w) {
_local1._width = _local2.fcb_states_mc._width;
} else {
_local1._width = w;
}
_local1._visible = false;
if (arguments.length > 1) {
_local1._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.setLabelPlacement(_local1.labelPlacement);
if (_local1.fcb_states_mc._height < _local1.flabel_mc.labelField._height) {
super.setSize(w, _local1.flabel_mc.labelField._height);
}
_local1.setHitArea(_local1.width, _local1.height);
_local1.setLabelPlacement(_local1.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1._width + 6, _local1._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
var _local2 = this;
_local2.pressFocus();
_root.focusRect.removeMovieClip();
var _local1 = _local2.fcb_states_mc;
if (_local2.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fcb_states_mc.gotoAndStop("up");
_local1.setValue(!_local1.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
var _local1 = this;
var _local2 = checkedValue;
if (_local2 || (_local2 == undefined)) {
_local1.setCheckState(_local2);
} else if (_local2 == false) {
_local1.setCheckState(_local2);
}
_local1.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var _local1 = this;
var _local3 = checkedValue;
var _local2 = _local1.fcb_states_mc;
if (_local1.enable) {
_local1.flabel_mc.setEnabled(true);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedEnabled");
_local1.enabled = true;
_local1.checked = true;
} else {
_local2.gotoAndStop("up");
_local1.enabled = true;
_local1.checked = false;
}
} else {
_local1.flabel_mc.setEnabled(false);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedDisabled");
_local1.enabled = false;
_local1.checked = true;
} else {
_local2.gotoAndStop("uncheckedDisabled");
_local1.enabled = false;
_local1.checked = false;
_local1.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if ((enable == true) || (enable == undefined)) {
_local1.enable = true;
Super.setEnabled(true);
} else {
_local1.enable = false;
Super.setEnabled(false);
}
_local1.setCheckState(_local1.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if (((Key.getCode() == 32) && (_local1.pressOnce == undefined)) && (_local1.enabled == true)) {
_local1.setValue(!_local1.getValue());
_local1.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 52 MovieClip Frame 2
bytesLoaded = _root.getBytesLoaded();
bytesTotal = _root.getBytesTotal();
bar._width = (200 * bytesLoaded) / bytesTotal;
loadText = ((Math.round(bytesLoaded / 1024) + "Kb of ") + Math.round(bytesTotal / 1024)) + "Kb loaded...";
if (bytesLoaded > 0) {
_root.previewImage._xscale = (_root.previewImage._yscale = (_root.previewImage._alpha = 100 * (bytesLoaded / bytesTotal)));
}
Symbol 101 MovieClip Frame 1
strip_q._visible = false;
strip_h._visible = false;
strip._visible = false;
Symbol 135 MovieClip Frame 1
function changeHandler(instance) {
_parent.changeHandler(instance);
}
Instance of Symbol 43 MovieClip [FCheckBoxSymbol] "showStripGuidesCheckBox" in Symbol 135 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "changeHandler";
}
Instance of Symbol 43 MovieClip [FCheckBoxSymbol] "fogCheckBox" in Symbol 135 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "changeHandler";
}
Instance of Symbol 43 MovieClip [FCheckBoxSymbol] "keepFPSCheckBox" in Symbol 135 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "changeHandler";
}
Instance of Symbol 43 MovieClip [FCheckBoxSymbol] "parallaxSkyCheckBox" in Symbol 135 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = true;
labelPlacement = "right";
changeHandler = "changeHandler";
}
Instance of Symbol 43 MovieClip [FCheckBoxSymbol] "mipMappingCheckBox" in Symbol 135 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = true;
labelPlacement = "right";
changeHandler = "changeHandler";
}
Instance of Symbol 43 MovieClip [FCheckBoxSymbol] "skyCheckBox" in Symbol 135 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = true;
labelPlacement = "right";
changeHandler = "changeHandler";
}
Instance of Symbol 43 MovieClip [FCheckBoxSymbol] "nightCheckBox" in Symbol 135 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "changeHandler";
}
Symbol 136 MovieClip Frame 1
function changeHandler(instance) {
_parent.changeHandler(instance);
}
Instance of Symbol 43 MovieClip [FCheckBoxSymbol] "showSettingsCheckBox" in Symbol 136 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = true;
labelPlacement = "right";
changeHandler = "changeHandler";
}
Symbol 137 MovieClip Frame 1
function changeHandler(instance) {
_parent.changeHandler(instance);
}