Frame 4
tb = getBytesTotal();
lb = getBytesLoaded();
v = int((lb / tb) * 100);
_preloader.bar._xscale = v;
_preloader._pretxtPercent.text = v + "%";
if (lb < tb) {
gotoAndPlay(_currentframe - 1);
} else {
play();
}
Frame 20
stop();
Frame 27
gamelevel = 0;
Frame 29
stop();
Symbol 3 MovieClip [FLabelSymbol] Frame 1
#initclip 3
_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 6 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 6 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 6 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 7 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 20 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 30 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 39 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 40 MovieClip [UpArrow] Frame 1
stop();
Symbol 40 MovieClip [UpArrow] Frame 2
stop();
Symbol 40 MovieClip [UpArrow] Frame 3
stop();
Symbol 47 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 54 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 59 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 60 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 68 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 76 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 84 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 85 MovieClip [DownArrow] Frame 1
stop();
Symbol 85 MovieClip [DownArrow] Frame 2
stop();
Symbol 85 MovieClip [DownArrow] Frame 3
stop();
Symbol 88 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 89 MovieClip [FScrollBarSymbol] Frame 1
#initclip 5
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 90 MovieClip [DataProviderSymbol] Frame 1
#initclip 2
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {event:"updateAll"};
viewRef.modelChanged(_local1);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
var _local3 = value;
if (_local1 < _local2.getLength()) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(_local3) == "object") {
_local2.items[_local1] = _local3;
} else {
_local2.items[_local1].label = _local3;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var eventObj = {event:"addRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {event:"deleteRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
var _local1 = this;
_local1.items = new Array();
_local1.updateViews({event:"deleteRows", firstRow:0, lastRow:_local1.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var _local3 = _local2.getItemID(_local1);
if (typeof(itemObj) == "object") {
_local2.items[_local1] = itemObj;
} else {
_local2.items[_local1].label = itemObj;
}
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = this;
var _local3 = eventObj;
var _local1 = 0;
while (_local1 < _local2.views.length) {
_local2.views[_local1].modelChanged(_local3);
_local1++;
}
};
#endinitclip
Symbol 91 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 7
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
var _local1 = this;
if (_local1._name != "itemAsset") {
_local1.highlighted = false;
_local1.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
var _local1 = this;
var _local2 = selected;
_local1.displayContent(itmObj, _local2);
if ((_local1.highlighted != _local2) || ((_local1.controller.focused != _local1.oldFocus) && (_local2))) {
_local1.setHighlighted(_local2);
}
_local1.oldFocus = _local1.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local1 = this;
var _local3 = width;
var _local2 = -16384;
_local1.width = _local3;
_local1.layoutContent(_local3);
_local1.attachMovie("FHighlightSymbol", "highlight_mc", _local2);
_local1.highlight_mc._x = 0.5;
_local1.highlight_mc._width = _local3 - 0.5;
_local1.highlight_mc._height = height;
_local1.highlight_mc.controller = _local1;
_local1.highlight_mc._alpha = 0;
_local1.highlight_mc.trackAsMenu = true;
_local1.highlight_mc.onPress = function () {
var _local1 = this;
if (_local1.controller.enable) {
_local1.controller.controller.clickHandler(_local1.controller.itemNum);
}
};
_local1.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
_local1.highlight_mc.useHandCursor = false;
_local1.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local1.enable = _local2;
_local1.fLabel_mc.setEnabled(_local2);
_local1.highlight_mc.gotoAndStop((_local2 ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
var _local1 = this;
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:_local1.controller});
_local1.fLabel_mc._x = 2;
_local1.fLabel_mc._y = 0;
_local1.fLabel_mc.setSize(width - 2);
_local1.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local2 = itmObj;
var _local1 = "";
if (_local2.label != undefined) {
_local1 = _local2.label;
} else if (typeof(_local2) == "object") {
for (var _local3 in _local2) {
if (_local3 != "__ID__") {
_local1 = (_local2[_local3] + ", ") + _local1;
}
}
_local1 = _local1.substring(0, _local1.length - 2);
} else {
_local1 = _local2;
}
if (this.fLabel_mc.labelField.text != _local1) {
this.fLabel_mc.setLabel(_local1);
}
var clr = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (clr == undefined) {
clr = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(clr);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
var _local1 = this;
var _local2 = flag;
fade = _local1.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!_local2)) {
_local1.highlight_mc._alpha = (_local2 ? 100 : 0);
delete _local1.onEnterFrame;
} else {
_local1.fadeN = fade;
_local1.fadeX = 1;
_local1.highLight_mc._alpha = 20;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.highLight_mc._alpha = (60 * Math.sqrt((_local1.fadeX++) / _local1.fadeN)) + 40;
if (_local1.fadeX > _local1.fadeN) {
delete _local1.onEnterFrame;
}
};
}
_local1.highlighted = _local2;
};
#endinitclip
Symbol 92 MovieClip [FSelectableListSymbol] Frame 1
#initclip 4
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
var _local1 = this;
super.init();
_local1.enable = true;
_local1.selected = new Array();
_local1.topDisplayed = (_local1.numDisplayed = 0);
_local1.lastSelected = 0;
_local1.tabChildren = false;
if (_local1._name != undefined) {
_local1.dataProvider = new DataProviderClass();
_local1.dataProvider.addView(_local1);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
var _local1 = this;
_local1.selectHolder = _local1.getSelectedIndex();
var _local2 = _local1.getItemAt(index);
_local1.dataProvider.removeItemAt(index);
return(_local2);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
_local1.lastSelID = _local1.dataProvider.getItemID(_local1.lastSelected);
_local1.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
var _local2 = this;
for (var _local3 in _local2.selected) {
var _local1 = _local2.selected[_local3].sIndex;
if (_local1 != undefined) {
return(_local1);
}
}
return(undefined);
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var _local1 = this.getSelectedItem();
if (_local1.data != undefined) {
return(_local1.data);
}
return(_local1.label);
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
var _local2 = index;
if (((_local2 >= 0) && (_local2 < _local1.getLength())) && (_local1.enable)) {
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.lastSelected = _local2;
_local1.invalidate("updateControl");
if (flag != false) {
_local1.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
var _local2 = obj;
this.setScrollPosition(0);
this.clearSelected();
if (_local2 instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = ((typeof(_local2[_local1]) == "string") ? ({label:_local2[_local1]}) : (_local2[_local1]));
this.dataProvider.addItem(_local3);
_local1++;
}
} else {
this.dataProvider = _local2;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
var _local1 = this;
_local1.tmpPos = _local1.getScrollPosition();
_local1.itemSymbol = linkID;
_local1.invalidate("setSize");
_local1.setScrollPosition(_local1.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
var _local2 = this;
_local2.cleanUI();
super.setEnabled(enabledFlag);
_local2.enable = enabledFlag;
_local2.boundingBox_mc.gotoAndStop((_local2.enable ? "enabled" : "disabled"));
var _local3 = Math.min(_local2.numDisplayed, _local2.getLength());
var _local1 = 0;
while (_local1 < _local3) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].setEnabled(_local2.enable);
_local1++;
}
if (_local2.enable) {
_local2.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].drawItem(_local2.getItemAt(_local2.topDisplayed + _local1), _local2.isSelected(_local2.topDisplayed + _local1));
_local1++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.boundingBox_mc._xscale = (_local1.boundingBox_mc._yscale = 100);
_local1.boundingBox_mc._xscale = (_local1.width * 100) / _local1.boundingBox_mc._width;
_local1.boundingBox_mc._yscale = (_local1.height * 100) / _local1.boundingBox_mc._height;
var _local2 = 0;
while (_local2 < _local1.numDisplayed) {
_local1.container_mc.attachMovie(_local1.itemSymbol, ("fListItem" + _local2) + "_mc", 10 + _local2, {controller:_local1, itemNum:_local2});
var _local3 = _local1.container_mc[("fListItem" + _local2) + "_mc"];
var offset = ((_local1.scrollOffset == undefined) ? 0 : (_local1.scrollOffset));
_local3.setSize(_local1.width - offset, _local1.itmHgt);
_local3._y = (_local1.itmHgt - 2) * _local2;
_local2++;
}
_local1.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var _local2 in _local1.selected) {
if ((_local1.selected[_local2].sIndex != undefined) && (_local1.selected[_local2].sIndex >= firstRow)) {
_local1.selected[_local2].sIndex = _local1.selected[_local2].sIndex + ((lastRow - firstRow) + 1);
_local1.setSelectedIndex(_local1.selected[_local2].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (_local1.selectHolder == index) {
_local1.selectionDeleted = true;
}
if (((_local1.topDisplayed + _local1.numDisplayed) >= _local1.getLength()) && (_local1.topDisplayed > 0)) {
_local1.topDisplayed--;
if (_local1.selectionDeleted && ((index - 1) >= 0)) {
_local1.setSelectedIndex(index - 1, false);
}
} else if (_local1.selectionDeleted) {
var len = _local1.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
_local1.setSelectedIndex(index - 1, false);
} else {
_local1.setSelectedIndex(index, false);
}
}
for (var _local2 in _local1.selected) {
if (_local1.selected[_local2].sIndex > firstRow) {
_local1.selected[_local2].sIndex--;
}
}
} else {
_local1.clearSelected();
_local1.topDisplayed = 0;
}
} else if (event == "sort") {
var len = _local1.getLength();
var _local2 = 0;
while (_local2 < len) {
if (_local1.isSelected(_local2)) {
var _local3 = _local1.dataProvider.getItemID(_local2);
if (_local3 == _local1.lastSelID) {
_local1.lastSelected = _local2;
}
_local1.selected[String(_local3)].sIndex = _local2;
}
_local2++;
}
}
_local1.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
var _local1 = this;
_local1.attachMovie(_local1.itemSymbol, "tmpItem_mc", 0, {controller:_local1});
_local1.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
_local1.itmHgt = _local1.tmpItem_mc._height;
_local1.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
var _local1 = this;
var _local2 = index;
if (selectedFlag && (!_local1.isSelected(_local2))) {
_local1.selected[String(_local1.dataProvider.getItemID(_local2))] = {sIndex:_local2};
} else if (!selectedFlag) {
delete _local1.selected[String(_local1.dataProvider.getItemID(_local2))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
var _local1 = this;
for (var _local3 in _local1.selected) {
var _local2 = _local1.selected[_local3].sIndex;
if (((_local2 != undefined) && (_local1.topDisplayed <= _local2)) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), false);
}
}
delete _local1.selected;
_local1.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
var _local2 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local2 == undefined)) {
_local1.changeFlag = false;
} else {
_local1.changeFlag = true;
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local1 = this;
var _local3 = _local1.getSelectedIndex();
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(_local1.getLength() - 1, _local2);
if (_local2 == _local3) {
} else {
if ((_local3 < _local1.topDisplayed) || (_local3 >= (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.setScrollPosition(_local3);
}
if ((_local2 >= (_local1.topDisplayed + _local1.numDisplayed)) || (_local2 < _local1.topDisplayed)) {
_local1.setScrollPosition(_local1.topDisplayed + incr);
}
_local1.selectionHandler(_local2 - _local1.topDisplayed);
}
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (!_local1.focused) {
_local1.pressFocus();
}
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
var _local1 = this;
if (_local1.changeFlag) {
_local1.executeCallBack();
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
var _local2 = this;
super.myOnSetFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local1++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
var _local2 = this;
super.myOnKillFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local1++;
}
};
#endinitclip
Instance of Symbol 90 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 92 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 91 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 92 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 93 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 6
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
var _local1 = pos;
var _local2 = this;
if (_local2.enable) {
_local1 = Math.min(_local1, _local2.getLength() - _local2.numDisplayed);
_local1 = Math.max(_local1, 0);
_local2.scrollBar_mc.setScrollPosition(_local1);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
var _local1 = this;
_local1.permaScrollBar = !flag;
_local1.setSize(_local1.width, _local1.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = _local1.getScrollPosition();
super.setSize(w, h);
if (_local1.scrollBar_mc != undefined) {
_local1.removed = true;
}
_local1.scrollBar_mc = undefined;
_local1.initScrollBar();
_local1.setScrollPosition(_local2);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
var _local1 = this;
if ((!_local1.permaScrollBar) && (_local1.getLength() <= _local1.numDisplayed)) {
if (_local1.removed) {
_local1.scrollBar_mc.removeMovieClip();
_local1.scrollBar_mc = undefined;
_local1.scrollOffset = undefined;
_local1.invalidate("setSize");
}
} else {
if (_local1.scrollBar_mc == undefined) {
_local1.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:_local1.styleTable});
_local1.scrollBar_mc = _local1.container_mc.scrollBar_mc;
_local1.scrollBar_mc.setChangeHandler("scrollHandler", _local1);
_local1.scrollBar_mc.setSize(_local1.height);
_local1.scrollBar_mc._x = _local1.width - _local1.scrollBar_mc._width;
_local1.scrollBar_mc._y = 0;
_local1.scrollBar_mc.setLargeScroll(_local1.numDisplayed - 1);
_local1.scrollOffset = _local1.scrollBar_mc._width;
_local1.invalidate("setSize");
}
_local1.scrollBar_mc.setScrollProperties(_local1.numDisplayed, 0, _local1.getLength() - _local1.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = this;
var _local1 = scrollBar.getScrollPosition();
_local2.topDisplayed = _local1;
if (_local2.lastPosition != _local1) {
_local2.updateControl();
}
_local2.lastPosition = _local1;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
super.clickHandler(itmNum);
if ((_local1.dragScrolling == undefined) && (_local1.scrollBar_mc != undefined)) {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
var _local1 = this;
clearInterval(_local1.dragScrolling);
if (_local1.container_mc._ymouse < 0) {
_local1.setScrollPosition(_local1.getScrollPosition() - 1);
_local1.selectionHandler(0);
_local1.scrollInterval = Math.max(25, (-23.8 * (-_local1.container_mc._ymouse)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else if (_local1.container_mc._ymouse > ((_local1.itmHgt - 2) * _local1.numDisplayed)) {
_local1.setScrollPosition(_local1.getScrollPosition() + 1);
_local1.selectionHandler(_local1.numDisplayed - 1);
_local1.scrollInterval = Math.max(25, (-23.8 * Math.abs((_local1.container_mc._ymouse - ((_local1.itmHgt - 2) * _local1.numDisplayed)) - 2)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
var _local2 = this;
if (_local2.focused) {
_local2.keyCodes = new Array(40, 38, 34, 33, 36, 35);
_local2.keyIncrs = new Array(1, -1, _local2.numDisplayed - 1, -(_local2.numDisplayed - 1), -_local2.getLength(), _local2.getLength());
var _local1 = 0;
while (_local1 < _local2.keyCodes.length) {
if (Key.isDown(_local2.keyCodes[_local1])) {
_local2.moveSelBy(_local2.keyIncrs[_local1]);
return;
}
_local1++;
}
_local2.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local1 = Key.getAscii();
if ((_local1 >= 33) && (_local1 <= 126)) {
this.findString(String.fromCharCode(_local1));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
} else {
var _local3 = this.getSelectedIndex();
var jump = 0;
var _local1 = _local3 + 1;
while (_local1 != _local3) {
var _local2 = this.getItemAt(_local1).label.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
var jump = (_local1 - _local3);
break;
}
if (_local1 >= (this.getLength() - 1)) {
_local1 = -1;
}
_local1++;
}
if (jump != 0) {
this.moveSelBy(jump);
}
}
};
#endinitclip
Instance of Symbol 89 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 93 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 92 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 93 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 94 MovieClip [FComboBoxItemSymbol] Frame 1
#initclip 9
function FComboBoxItemClass() {
this.init();
}
FComboBoxItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FComboBoxItemSymbol", FComboBoxItemClass);
FComboBoxItemClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.highlight_mc.onRollOver = function () {
this.controller.controller.selectionHandler(this.controller.itemNum);
};
};
#endinitclip
Symbol 98 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 98 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 101 MovieClip [FComboBoxSymbol] Frame 1
#initclip 8
function FComboBoxClass() {
var _local1 = this;
_global._popUpLevel = ((_global._popUpLevel == undefined) ? 20000 : (_global._popUpLevel + 1));
_local1.superHolder = _root.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
var _local3 = _local1.superHolder.createEmptyMovieClip("testCont", 20000);
var testBox = _local3.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
if (testBox._name == undefined) {
_local1.superHolder.removeMovieClip();
_local1.superHolder = _local1._parent.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
} else {
_local3.removeMovieClip();
}
if (_local1.rowCount == undefined) {
_local1.rowCount = 8;
_local1.editable = false;
}
_local1.itemSymbol = "FComboBoxItemSymbol";
_local1.init();
_local1.permaScrollBar = false;
_local1.proxyBox_mc.gotoAndStop(1);
_local1.width = _local1._width;
_local1.height = (_local1.proxyBox_mc._height * _local1._yscale) / 100;
var _local2 = 0;
while (_local2 < _local1.labels.length) {
_local1.addItem(_local1.labels[_local2], _local1.data[_local2]);
_local2++;
}
_local1.lastSelected = 0;
_local1.selectItem(0);
_local1._xscale = (_local1._yscale = 100);
_local1.opened = false;
_local1.setSize(_local1.width);
_local1.highlightTop(false);
if (_local1.changeHandler.length > 0) {
_local1.setChangeHandler(_local1.changeHandler);
}
_local1.onUnload = function () {
this.superHolder.removeMovieClip();
};
_local1.setSelectedIndex(0, false);
_local1.value = "";
_local1.focusEnabled = true;
_local1.changeFlag = false;
}
FComboBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FComboBoxSymbol", FComboBoxClass);
FComboBoxClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
super.modelChanged(eventObj);
var _local2 = eventObj.event;
if ((_local2 == "addRows") || (_local2 == "deleteRows")) {
var diff = ((eventObj.lastRow - eventObj.firstRow) + 1);
var mode = ((_local2 == "addRows") ? 1 : -1);
var _local3 = _local1.getLength();
var lenBefore = (_local3 - (mode * diff));
if ((_local1.rowCount > lenBefore) || (_local1.rowCount > _local3)) {
_local1.invalidate("setSize");
}
if (_local1.getSelectedIndex() == undefined) {
_local1.setSelectedIndex(0, false);
}
} else if (_local2 == "updateAll") {
_local1.invalidate("setSize");
}
};
FComboBoxClass.prototype.removeAll = function () {
var _local1 = this;
if (!_local1.enable) {
} else {
super.removeAll();
if (_local1.editable) {
_local1.value = "";
}
_local1.invalidate("setSize");
}
};
FComboBoxClass.prototype.setSize = function (w) {
var _local1 = this;
var _local2 = w;
if ((((_local2 == undefined) || (typeof(_local2) != "number")) || (_local2 <= 0)) || (!_local1.enable)) {
} else {
_local1.proxyBox_mc._width = _local2;
_local1.container_mc.removeMovieClip();
_local1.measureItmHgt();
_local1.container_mc = _local1.superHolder.createEmptyMovieClip("container", 3);
_local1.container_mc.tabChildren = false;
_local1.setPopUpLocation(_local1.container_mc);
_local1.container_mc.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
_local1.boundingBox_mc = _local1.container_mc.boundingBox_mc;
_local1.boundingBox_mc.component = _local1;
_local1.registerSkinElement(_local1.boundingBox_mc.boundingBox, "background");
_local1.proxyBox_mc._height = _local1.itmHgt;
_local1.numDisplayed = Math.min(_local1.rowCount, _local1.getLength());
if (_local1.numDisplayed < 3) {
_local1.numDisplayed = Math.min(3, _local1.getLength());
}
_local1.height = (_local1.numDisplayed * (_local1.itmHgt - 2)) + 2;
super.setSize(_local2, _local1.height);
_local1.attachMovie("DownArrow", "downArrow", 10);
_local1.downArrow._y = 0;
_local1.downArrow._width = _local1.itmHgt;
_local1.downArrow._height = _local1.itmHgt;
_local1.downArrow._x = _local1.proxyBox_mc._width - _local1.downArrow._width;
_local1.setEditable(_local1.editable);
_local1.container_mc._visible = _local1.opened;
_local1.highlightTop(false);
_local1.fader = _local1.superHolder.attachMovie("FBoundingBoxSymbol", "faderX", 4);
_local1.registerSkinElement(_local1.fader.boundingBox, "background");
_local1.fader._width = _local1.width;
_local1.fader._height = _local1.height;
_local1.fader._visible = false;
}
};
FComboBoxClass.prototype.setDataProvider = function (dp) {
super.setDataProvider(dp);
this.invalidate("setSize");
this.setSelectedIndex(0);
};
FComboBoxClass.prototype.getValue = function () {
if (this.editable) {
return(this.fLabel_mc.getLabel());
}
return(super.getValue());
};
FComboBoxClass.prototype.getRowCount = function () {
return(this.rowCount);
};
FComboBoxClass.prototype.setRowCount = function (count) {
var _local1 = this;
var _local3 = count;
_local1.rowCount = ((_local1.getLength() > _local3) ? (Math.max(_local3, 3)) : (_local3));
_local1.setSize(_local1.width);
var _local2 = _local1.getLength();
if ((_local2 - _local1.getScrollPosition()) < _local1.rowCount) {
_local1.setScrollPosition(_local2 - Math.min(_local1.rowCount, _local2));
_local1.invalidate("updateControl");
}
};
FComboBoxClass.prototype.setEditable = function (editableFlag) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.editable = editableFlag;
if (!_local1.editable) {
_local1.onPress = _local1.pressHandler;
_local1.useHandCursor = false;
_local1.trackAsMenu = true;
_local1.attachMovie("FComboBoxItemSymbol", "fLabel_mc", 5, {controller:_local1, itemNum:-1});
_local1.fLabel_mc.onRollOver = undefined;
_local1.fLabel_mc.setSize((_local1.width - _local1.itmHgt) + 1, _local1.itmHgt);
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
_local1.highlightTop(false);
} else {
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 5);
_local1.fLabel_txt = _local1.fLabel_mc.labelField;
_local1.fLabel_txt.type = "input";
_local1.fLabel_txt._x = 4;
_local1.fLabel_txt.onSetFocus = _local1.onLabelFocus;
_local1.fLabel_mc.setSize((_local1.width - _local1.itmHgt) - 3);
delete _local1.onPress;
_local1.fLabel_txt.onKillFocus = function () {
this._parent._parent.myOnKillFocus();
};
_local1.fLabel_mc.setLabel(_local1.value);
_local1.fLabel_txt.onChanged = function () {
this._parent._parent.findInputText();
};
_local1.downArrow.onPress = _local1.buttonPressHandler;
_local1.downArrow.useHandCursor = false;
_local1.downArrow.trackAsMenu = true;
}
}
};
FComboBoxClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local2 = (((_local2 == undefined) || (typeof(_local2) != "boolean")) ? true : (_local2));
super.setEnabled(_local2);
_local1.registerSkinElement(_local1.boundingBox_mc.boundingBox, "background");
_local1.proxyBox_mc.gotoAndStop((_local1.enable ? "enabled" : "disabled"));
_local1.downArrow.gotoAndStop((_local1.enable ? 1 : 3));
if (_local1.editable) {
_local1.fLabel_txt.type = (_local2 ? "input" : "dynamic");
_local1.fLabel_txt.selectable = _local2;
} else if (_local2) {
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
_local1.setSelectedIndex(_local1.getSelectedIndex(), false);
}
_local1.fLabel_mc.setEnabled(_local1.enable);
_local1.fLabel_txt.onSetFocus = (_local2 ? (_local1.onLabelFocus) : undefined);
};
FComboBoxClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
super.setSelectedIndex(index, flag);
if (!_local1.editable) {
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
} else {
_local1.value = ((flag != undefined) ? "" : (_local1.getSelectedItem().label));
_local1.fLabel_mc.setLabel(_local1.value);
}
_local1.invalidate("updateControl");
};
FComboBoxClass.prototype.setValue = function (value) {
var _local1 = this;
if (_local1.editable) {
_local1.fLabel_mc.setLabel(value);
_local1.value = value;
}
};
FComboBoxClass.prototype.pressHandler = function () {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (_local1.enable) {
if (!_local1.opened) {
_local1.onMouseUp = _local1.releaseHandler;
} else {
_local1.onMouseUp = undefined;
}
_local1.changeFlag = false;
if (!_local1.focused) {
_local1.pressFocus();
_local1.clickFilter = (_local1.editable ? false : true);
}
if (!_local1.clickFilter) {
_local1.openOrClose(!_local1.opened);
} else {
_local1.clickFilter = false;
}
}
};
FComboBoxClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
if (!_local1.focused) {
if (_local1.editable) {
_local1.fLabel_txt.onKillFocus = undefined;
}
_local1.pressFocus();
}
super.clickHandler(itmNum);
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FComboBoxClass.prototype.highlightTop = function (flag) {
var _local1 = this;
if (!_local1.editable) {
_local1.fLabel_mc.drawItem(_local1.topLabel, flag);
}
};
FComboBoxClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
this.fLabel_mc.highlight_mc.gotoAndStop("enabled");
this.highlightTop(true);
};
FComboBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1._height + 4);
};
FComboBoxClass.prototype.myOnKillFocus = function () {
var _local1 = this;
if (Selection.getFocus().indexOf("labelField") != -1) {
} else {
super.myOnKillFocus();
delete _local1.fLabel_txt.onKeyDown;
_local1.openOrClose(false);
_local1.highlightTop(false);
}
};
FComboBoxClass.prototype.setPopUpLocation = function (mcRef) {
var _local1 = this;
var _local3 = mcRef;
_local3._x = _local1._x;
var _local2 = {x:_local1._x, y:_local1._y + _local1.proxyBox_mc._height};
_local1._parent.localToGlobal(_local2);
_local3._parent.globalToLocal(_local2);
_local3._x = _local2.x;
_local3._y = _local2.y;
if ((_local1.height + _local3._y) >= Stage.height) {
_local1.upward = true;
_local3._y = (_local2.y - _local1.height) - _local1.proxyBox_mc._height;
} else {
_local1.upward = false;
}
};
FComboBoxClass.prototype.openOrClose = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.getLength() == 0) {
} else {
_local1.setPopUpLocation(_local1.container_mc);
if ((_local1.lastSelected != -1) && ((_local1.lastSelected < _local1.topDisplayed) || (_local1.lastSelected > (_local1.topDisplayed + _local1.numDisplayed)))) {
super.moveSelBy(_local1.lastSelected - _local1.getSelectedIndex());
}
if (!_local2) {
(_local1.downArrow.gotoAndStop(1));// not popped
} else {
(_local1.downArrow.gotoAndStop(2));// not popped
}
if (_local2 == _local1.opened) {
} else {
_local1.highlightTop(!_local2);
_local1.fadeRate = _local1.styleTable.popUpFade.value;
if (((!_local2) || (_local1.fadeRate == undefined)) || (_local1.fadeRate == 0)) {
_local1.opened = (_local1.container_mc._visible = _local2);
} else {
_local1.setPopUpLocation(_local1.fader);
_local1.time = 0;
_local1.const = 85 / Math.sqrt(_local1.fadeRate);
_local1.fader._alpha = 85;
_local1.container_mc._visible = (_local1.fader._visible = true);
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.fader._alpha = 100 - ((_local1.const * Math.sqrt(++_local1.time)) + 15);
if (_local1.time >= _local1.fadeRate) {
_local1.fader._visible = false;
delete _local1.onEnterFrame;
_local1.opened = true;
}
};
}
}
}
};
FComboBoxClass.prototype.fireChange = function () {
var _local1 = this;
_local1.lastSelected = _local1.getSelectedIndex();
if (!_local1.editable) {
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, true);
} else {
_local1.value = _local1.getSelectedItem().label;
_local1.fLabel_mc.setLabel(_local1.value);
}
_local1.executeCallback();
};
FComboBoxClass.prototype.releaseHandler = function () {
var _local1 = this;
var _local2 = _root;
var _local3 = _local1.boundingBox_mc.hitTest(_local2._xmouse, _local2._ymouse);
if (_local1.changeFlag) {
if (_local3) {
_local1.fireChange();
}
_local1.openOrClose(!_local1.opened);
} else if (_local3) {
_local1.openOrClose(false);
} else {
_local1.onMouseDown = function () {
var _local1 = this;
var _local2 = _root;
if ((!_local1.boundingBox_mc.hitTest(_local2._xmouse, _local2._ymouse)) && (!_local1.hitTest(_local2._xmouse, _local2._ymouse))) {
_local1.onMouseDown = undefined;
_local1.openOrClose(false);
}
};
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
clearInterval(_local1.dragScrolling);
_local1.dragScrolling = undefined;
};
FComboBoxClass.prototype.moveSelBy = function (itemNum) {
var _local1 = this;
if (itemNum != 0) {
super.moveSelBy(itemNum);
if (_local1.editable) {
_local1.setValue(_local1.getSelectedItem().label);
}
if (!_local1.opened) {
if (_local1.changeFlag && (!_local1.isSelected(_local1.lastSelected))) {
_local1.fireChange();
}
}
}
};
FComboBoxClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if (!_local1.focused) {
} else {
if (_local1.editable && (Key.isDown(13))) {
_local1.setValue(_local1.fLabel_mc.getLabel());
_local1.executeCallback();
_local1.openOrClose(false);
} else if ((Key.isDown(13) || (Key.isDown(32) && (!_local1.editable))) && (_local1.opened)) {
if (_local1.getSelectedIndex() != _local1.lastSelected) {
_local1.fireChange();
}
_local1.openOrClose(false);
_local1.fLabel_txt.hscroll = 0;
}
super.myOnKeyDown();
}
};
FComboBoxClass.prototype.findInputText = function () {
if (!this.editable) {
super.findInputText();
}
};
FComboBoxClass.prototype.onLabelFocus = function () {
var _local1 = this;
_local1._parent._parent.tabFocused = false;
_local1._parent._parent.focused = true;
_local1.onKeyDown = function () {
this._parent._parent.myOnKeyDown();
};
Key.addListener(_local1);
};
FComboBoxClass.prototype.buttonPressHandler = function () {
this._parent.pressHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 93 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 101 MovieClip [FComboBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 115 MovieClip Frame 1
_parent.stop();
Symbol 115 MovieClip Frame 65
stop();
_parent.play();
Symbol 126 Button
on (release) {
gotoAndPlay ("gamescreen");
}
Symbol 130 Button
on (release) {
gotoAndStop ("credits");
}
Symbol 135 Button
on (release) {
getURL ("http://www.urgames.com", "_self");
}
Symbol 139 Button
on (release) {
getURL ("http://www.gamesforyourwebsite.com", "_self");
}
Symbol 143 Button
on (release) {
getURL ("http://www.urgames.com/forums", "_self");
}
Symbol 147 Button
on (release) {
getURL ("http://www.urgames.com/cheats", "_self");
}
Symbol 151 Button
on (release) {
gotoAndStop ("titlescreen");
}
Symbol 158 Button
on (release) {
getURL ("http://www.quickflashgames.com/", "_blank");
}
Symbol 176 Button
on (release) {
_parent.glevel++;
if (_parent.glevel == 60) {
_parent.glevel = 0;
}
_parent.clearVehicles();
_parent.gotoAndPlay(_parent._currentframe - 1);
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 180 Button
on (press) {
mePressed();
}
on (release) {
meReleased();
}
Symbol 189 MovieClip Frame 1
function mePressed() {
_parent.mePressed(mynumber, _currentframe);
}
function meReleased() {
_parent.meReleased(mynumber, _currentframe);
}
var mynumber;
Symbol 190 MovieClip Frame 1
glevel = _parent.gamelevel;
var tgamescleared = 45;
var gamescleared = new Array();
var i = 0;
while (i < 60) {
if (i < 15) {
gamescleared[i] = false;
} else {
gamescleared[i] = true;
}
i++;
}
var score = 0;
var glevels = new Array();
glevels[0] = new Array();
glevels[0][0] = {vtype:3, vx:0, vy:0, vmain:false};
glevels[0][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[0][2] = {vtype:2, vx:0, vy:4, vmain:false};
glevels[0][3] = {vtype:3, vx:1, vy:0, vmain:false};
glevels[0][4] = {vtype:5, vx:3, vy:0, vmain:false};
glevels[0][5] = {vtype:4, vx:3, vy:3, vmain:false};
glevels[0][6] = {vtype:5, vx:4, vy:0, vmain:false};
glevels[0][7] = {vtype:5, vx:5, vy:0, vmain:false};
glevels[1] = new Array();
glevels[1][0] = {vtype:5, vx:0, vy:3, vmain:false};
glevels[1][1] = {vtype:5, vx:1, vy:0, vmain:false};
glevels[1][2] = {vtype:3, vx:1, vy:3, vmain:false};
glevels[1][3] = {vtype:4, vx:1, vy:5, vmain:false};
glevels[1][4] = {vtype:2, vx:2, vy:1, vmain:false};
glevels[1][5] = {vtype:1, vx:2, vy:2, vmain:true};
glevels[1][6] = {vtype:2, vx:3, vy:0, vmain:false};
glevels[1][7] = {vtype:3, vx:3, vy:3, vmain:false};
glevels[1][8] = {vtype:3, vx:4, vy:1, vmain:false};
glevels[1][9] = {vtype:3, vx:4, vy:3, vmain:false};
glevels[1][10] = {vtype:2, vx:4, vy:5, vmain:false};
glevels[1][11] = {vtype:3, vx:5, vy:0, vmain:false};
glevels[1][12] = {vtype:5, vx:5, vy:2, vmain:false};
glevels[2] = new Array();
glevels[2][0] = {vtype:2, vx:0, vy:0, vmain:false};
glevels[2][1] = {vtype:4, vx:0, vy:1, vmain:false};
glevels[2][2] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[2][3] = {vtype:5, vx:1, vy:3, vmain:false};
glevels[2][4] = {vtype:2, vx:2, vy:0, vmain:false};
glevels[2][5] = {vtype:3, vx:2, vy:2, vmain:false};
glevels[2][6] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[2][7] = {vtype:5, vx:3, vy:2, vmain:false};
glevels[2][8] = {vtype:3, vx:4, vy:1, vmain:false};
glevels[2][9] = {vtype:5, vx:5, vy:0, vmain:false};
glevels[3] = new Array();
glevels[3][0] = {vtype:5, vx:0, vy:0, vmain:false};
glevels[3][1] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[3][2] = {vtype:3, vx:2, vy:3, vmain:false};
glevels[3][3] = {vtype:4, vx:2, vy:5, vmain:false};
glevels[3][4] = {vtype:5, vx:3, vy:0, vmain:false};
glevels[3][5] = {vtype:4, vx:3, vy:3, vmain:false};
glevels[3][6] = {vtype:3, vx:5, vy:4, vmain:false};
glevels[4] = new Array();
glevels[4][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[4][1] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[4][2] = {vtype:2, vx:1, vy:0, vmain:false};
glevels[4][3] = {vtype:4, vx:1, vy:1, vmain:false};
glevels[4][4] = {vtype:3, vx:1, vy:3, vmain:false};
glevels[4][5] = {vtype:3, vx:2, vy:2, vmain:false};
glevels[4][6] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[4][7] = {vtype:3, vx:3, vy:2, vmain:false};
glevels[4][8] = {vtype:3, vx:4, vy:0, vmain:false};
glevels[4][9] = {vtype:3, vx:5, vy:1, vmain:false};
glevels[5] = new Array();
glevels[5][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[5][1] = {vtype:3, vx:0, vy:3, vmain:false};
glevels[5][2] = {vtype:3, vx:1, vy:0, vmain:false};
glevels[5][3] = {vtype:3, vx:1, vy:3, vmain:false};
glevels[5][4] = {vtype:2, vx:2, vy:0, vmain:false};
glevels[5][5] = {vtype:3, vx:2, vy:1, vmain:false};
glevels[5][6] = {vtype:4, vx:2, vy:3, vmain:false};
glevels[5][7] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[5][8] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[5][9] = {vtype:3, vx:4, vy:1, vmain:false};
glevels[5][10] = {vtype:3, vx:5, vy:1, vmain:false};
glevels[6] = new Array();
glevels[6][0] = {vtype:3, vx:0, vy:0, vmain:false};
glevels[6][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[6][2] = {vtype:4, vx:0, vy:3, vmain:false};
glevels[6][3] = {vtype:3, vx:0, vy:4, vmain:false};
glevels[6][4] = {vtype:2, vx:1, vy:0, vmain:false};
glevels[6][5] = {vtype:3, vx:1, vy:4, vmain:false};
glevels[6][6] = {vtype:3, vx:2, vy:1, vmain:false};
glevels[6][7] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[6][8] = {vtype:3, vx:3, vy:0, vmain:false};
glevels[6][9] = {vtype:3, vx:3, vy:2, vmain:false};
glevels[6][10] = {vtype:2, vx:4, vy:1, vmain:false};
glevels[6][11] = {vtype:3, vx:5, vy:2, vmain:false};
glevels[7] = new Array();
glevels[7][0] = {vtype:3, vx:0, vy:0, vmain:false};
glevels[7][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[7][2] = {vtype:2, vx:0, vy:3, vmain:false};
glevels[7][3] = {vtype:4, vx:1, vy:1, vmain:false};
glevels[7][4] = {vtype:4, vx:1, vy:4, vmain:false};
glevels[7][5] = {vtype:2, vx:2, vy:0, vmain:false};
glevels[7][6] = {vtype:3, vx:3, vy:2, vmain:false};
glevels[7][7] = {vtype:4, vx:3, vy:5, vmain:false};
glevels[7][8] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[7][9] = {vtype:2, vx:4, vy:1, vmain:false};
glevels[7][10] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[7][11] = {vtype:3, vx:5, vy:2, vmain:false};
glevels[8] = new Array();
glevels[8][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[8][1] = {vtype:5, vx:0, vy:3, vmain:false};
glevels[8][2] = {vtype:3, vx:1, vy:0, vmain:false};
glevels[8][3] = {vtype:5, vx:1, vy:3, vmain:false};
glevels[8][4] = {vtype:5, vx:2, vy:0, vmain:false};
glevels[8][5] = {vtype:2, vx:2, vy:3, vmain:false};
glevels[8][6] = {vtype:5, vx:3, vy:0, vmain:false};
glevels[8][7] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[8][8] = {vtype:3, vx:4, vy:3, vmain:false};
glevels[8][9] = {vtype:3, vx:5, vy:1, vmain:false};
glevels[8][10] = {vtype:3, vx:5, vy:3, vmain:false};
glevels[9] = new Array();
glevels[9][0] = {vtype:4, vx:0, vy:3, vmain:false};
glevels[9][1] = {vtype:3, vx:0, vy:4, vmain:false};
glevels[9][2] = {vtype:2, vx:1, vy:0, vmain:false};
glevels[9][3] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[9][4] = {vtype:4, vx:1, vy:4, vmain:false};
glevels[9][5] = {vtype:3, vx:3, vy:2, vmain:false};
glevels[9][6] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[9][7] = {vtype:2, vx:4, vy:1, vmain:false};
glevels[9][8] = {vtype:3, vx:4, vy:2, vmain:false};
glevels[9][9] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[9][10] = {vtype:3, vx:5, vy:2, vmain:false};
glevels[10] = new Array();
glevels[10][0] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[10][1] = {vtype:2, vx:1, vy:3, vmain:false};
glevels[10][2] = {vtype:3, vx:1, vy:4, vmain:false};
glevels[10][3] = {vtype:2, vx:2, vy:5, vmain:false};
glevels[10][4] = {vtype:5, vx:3, vy:2, vmain:false};
glevels[10][5] = {vtype:5, vx:5, vy:3, vmain:false};
glevels[11] = new Array();
glevels[11][0] = {vtype:2, vx:0, vy:1, vmain:false};
glevels[11][1] = {vtype:5, vx:0, vy:2, vmain:false};
glevels[11][2] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[11][3] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[11][4] = {vtype:3, vx:2, vy:0, vmain:false};
glevels[11][5] = {vtype:2, vx:2, vy:4, vmain:false};
glevels[11][6] = {vtype:2, vx:2, vy:5, vmain:false};
glevels[11][7] = {vtype:2, vx:3, vy:0, vmain:false};
glevels[11][8] = {vtype:5, vx:3, vy:1, vmain:false};
glevels[11][9] = {vtype:3, vx:4, vy:1, vmain:false};
glevels[11][10] = {vtype:2, vx:4, vy:3, vmain:false};
glevels[11][11] = {vtype:3, vx:4, vy:4, vmain:false};
glevels[11][12] = {vtype:3, vx:5, vy:0, vmain:false};
glevels[11][13] = {vtype:3, vx:5, vy:4, vmain:false};
glevels[12] = new Array();
glevels[12][0] = {vtype:3, vx:1, vy:0, vmain:false};
glevels[12][1] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[12][2] = {vtype:2, vx:2, vy:0, vmain:false};
glevels[12][3] = {vtype:2, vx:2, vy:3, vmain:false};
glevels[12][4] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[12][5] = {vtype:3, vx:3, vy:4, vmain:false};
glevels[12][6] = {vtype:3, vx:4, vy:0, vmain:false};
glevels[12][7] = {vtype:3, vx:5, vy:0, vmain:false};
glevels[12][8] = {vtype:3, vx:5, vy:2, vmain:false};
glevels[13] = new Array();
glevels[13][0] = {vtype:4, vx:0, vy:0, vmain:false};
glevels[13][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[13][2] = {vtype:3, vx:0, vy:4, vmain:false};
glevels[13][3] = {vtype:2, vx:1, vy:4, vmain:false};
glevels[13][4] = {vtype:2, vx:1, vy:5, vmain:false};
glevels[13][5] = {vtype:3, vx:2, vy:1, vmain:false};
glevels[13][6] = {vtype:2, vx:2, vy:3, vmain:false};
glevels[13][7] = {vtype:3, vx:3, vy:0, vmain:false};
glevels[13][8] = {vtype:4, vx:3, vy:4, vmain:false};
glevels[13][9] = {vtype:2, vx:3, vy:5, vmain:false};
glevels[13][10] = {vtype:3, vx:4, vy:0, vmain:false};
glevels[13][11] = {vtype:2, vx:4, vy:3, vmain:false};
glevels[13][12] = {vtype:3, vx:5, vy:0, vmain:false};
glevels[14] = new Array();
glevels[14][0] = {vtype:2, vx:0, vy:0, vmain:false};
glevels[14][1] = {vtype:3, vx:0, vy:1, vmain:false};
glevels[14][2] = {vtype:2, vx:0, vy:3, vmain:false};
glevels[14][3] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[14][4] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[14][5] = {vtype:4, vx:2, vy:0, vmain:false};
glevels[14][6] = {vtype:3, vx:2, vy:3, vmain:false};
glevels[14][7] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[14][8] = {vtype:2, vx:3, vy:3, vmain:false};
glevels[14][9] = {vtype:2, vx:3, vy:5, vmain:false};
glevels[14][10] = {vtype:3, vx:4, vy:1, vmain:false};
glevels[14][11] = {vtype:3, vx:5, vy:0, vmain:false};
glevels[14][12] = {vtype:3, vx:5, vy:3, vmain:false};
glevels[15] = new Array();
glevels[15][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[15][1] = {vtype:2, vx:0, vy:3, vmain:false};
glevels[15][2] = {vtype:2, vx:0, vy:4, vmain:false};
glevels[15][3] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[15][4] = {vtype:2, vx:2, vy:1, vmain:false};
glevels[15][5] = {vtype:3, vx:2, vy:2, vmain:false};
glevels[15][6] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[15][7] = {vtype:2, vx:3, vy:0, vmain:false};
glevels[15][8] = {vtype:3, vx:3, vy:2, vmain:false};
glevels[15][9] = {vtype:4, vx:3, vy:4, vmain:false};
glevels[15][10] = {vtype:4, vx:3, vy:5, vmain:false};
glevels[15][11] = {vtype:3, vx:4, vy:1, vmain:false};
glevels[15][12] = {vtype:2, vx:4, vy:3, vmain:false};
glevels[15][13] = {vtype:5, vx:5, vy:0, vmain:false};
glevels[16] = new Array();
glevels[16][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[16][1] = {vtype:2, vx:0, vy:3, vmain:false};
glevels[16][2] = {vtype:3, vx:0, vy:4, vmain:false};
glevels[16][3] = {vtype:3, vx:1, vy:0, vmain:false};
glevels[16][4] = {vtype:2, vx:1, vy:5, vmain:false};
glevels[16][5] = {vtype:5, vx:2, vy:2, vmain:false};
glevels[16][6] = {vtype:2, vx:3, vy:0, vmain:false};
glevels[16][7] = {vtype:2, vx:3, vy:1, vmain:false};
glevels[16][8] = {vtype:5, vx:3, vy:2, vmain:false};
glevels[16][9] = {vtype:2, vx:3, vy:5, vmain:false};
glevels[16][10] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[16][11] = {vtype:3, vx:5, vy:1, vmain:false};
glevels[17] = new Array();
glevels[17][0] = {vtype:2, vx:0, vy:0, vmain:false};
glevels[17][1] = {vtype:2, vx:0, vy:1, vmain:false};
glevels[17][2] = {vtype:5, vx:0, vy:2, vmain:false};
glevels[17][3] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[17][4] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[17][5] = {vtype:4, vx:1, vy:3, vmain:false};
glevels[17][6] = {vtype:3, vx:2, vy:0, vmain:false};
glevels[17][7] = {vtype:3, vx:3, vy:4, vmain:false};
glevels[17][8] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[17][9] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[17][10] = {vtype:2, vx:4, vy:5, vmain:false};
glevels[17][11] = {vtype:5, vx:5, vy:1, vmain:false};
glevels[18] = new Array();
glevels[18][0] = {vtype:4, vx:0, vy:0, vmain:false};
glevels[18][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[18][2] = {vtype:3, vx:1, vy:4, vmain:false};
glevels[18][3] = {vtype:3, vx:2, vy:1, vmain:false};
glevels[18][4] = {vtype:2, vx:2, vy:4, vmain:false};
glevels[18][5] = {vtype:2, vx:2, vy:5, vmain:false};
glevels[18][6] = {vtype:5, vx:3, vy:0, vmain:false};
glevels[18][7] = {vtype:5, vx:4, vy:0, vmain:false};
glevels[18][8] = {vtype:5, vx:5, vy:0, vmain:false};
glevels[19] = new Array();
glevels[19][0] = {vtype:2, vx:1, vy:0, vmain:false};
glevels[19][1] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[19][2] = {vtype:3, vx:1, vy:3, vmain:false};
glevels[19][3] = {vtype:2, vx:1, vy:5, vmain:false};
glevels[19][4] = {vtype:3, vx:2, vy:3, vmain:false};
glevels[19][5] = {vtype:2, vx:3, vy:0, vmain:false};
glevels[19][6] = {vtype:5, vx:3, vy:2, vmain:false};
glevels[19][7] = {vtype:3, vx:4, vy:2, vmain:false};
glevels[19][8] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[19][9] = {vtype:5, vx:5, vy:1, vmain:false};
glevels[20] = new Array();
glevels[20][0] = {vtype:5, vx:0, vy:0, vmain:false};
glevels[20][1] = {vtype:2, vx:1, vy:0, vmain:false};
glevels[20][2] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[20][3] = {vtype:3, vx:2, vy:3, vmain:false};
glevels[20][4] = {vtype:4, vx:2, vy:5, vmain:false};
glevels[20][5] = {vtype:5, vx:3, vy:0, vmain:false};
glevels[20][6] = {vtype:4, vx:3, vy:3, vmain:false};
glevels[20][7] = {vtype:3, vx:5, vy:4, vmain:false};
glevels[21] = new Array();
glevels[21][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[21][1] = {vtype:3, vx:0, vy:3, vmain:false};
glevels[21][2] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[21][3] = {vtype:3, vx:1, vy:0, vmain:false};
glevels[21][4] = {vtype:5, vx:2, vy:0, vmain:false};
glevels[21][5] = {vtype:2, vx:2, vy:4, vmain:false};
glevels[21][6] = {vtype:4, vx:2, vy:5, vmain:false};
glevels[21][7] = {vtype:4, vx:3, vy:0, vmain:false};
glevels[21][8] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[21][9] = {vtype:2, vx:4, vy:1, vmain:false};
glevels[21][10] = {vtype:3, vx:4, vy:3, vmain:false};
glevels[21][11] = {vtype:3, vx:5, vy:2, vmain:false};
glevels[21][12] = {vtype:3, vx:5, vy:4, vmain:false};
glevels[22] = new Array();
glevels[22][0] = {vtype:3, vx:0, vy:0, vmain:false};
glevels[22][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[22][2] = {vtype:4, vx:0, vy:5, vmain:false};
glevels[22][3] = {vtype:2, vx:1, vy:0, vmain:false};
glevels[22][4] = {vtype:5, vx:2, vy:1, vmain:false};
glevels[22][5] = {vtype:4, vx:3, vy:3, vmain:false};
glevels[22][6] = {vtype:3, vx:4, vy:4, vmain:false};
glevels[22][7] = {vtype:5, vx:5, vy:0, vmain:false};
glevels[23] = new Array();
glevels[23][0] = {vtype:3, vx:0, vy:1, vmain:false};
glevels[23][1] = {vtype:3, vx:0, vy:4, vmain:false};
glevels[23][2] = {vtype:3, vx:1, vy:0, vmain:false};
glevels[23][3] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[23][4] = {vtype:5, vx:1, vy:3, vmain:false};
glevels[23][5] = {vtype:3, vx:2, vy:0, vmain:false};
glevels[23][6] = {vtype:2, vx:2, vy:3, vmain:false};
glevels[23][7] = {vtype:2, vx:2, vy:5, vmain:false};
glevels[23][8] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[23][9] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[23][10] = {vtype:5, vx:4, vy:1, vmain:false};
glevels[23][11] = {vtype:3, vx:5, vy:1, vmain:false};
glevels[23][12] = {vtype:3, vx:5, vy:3, vmain:false};
glevels[24] = new Array();
glevels[24][0] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[24][1] = {vtype:3, vx:1, vy:3, vmain:false};
glevels[24][2] = {vtype:3, vx:2, vy:3, vmain:false};
glevels[24][3] = {vtype:5, vx:3, vy:2, vmain:false};
glevels[24][4] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[24][5] = {vtype:5, vx:4, vy:1, vmain:false};
glevels[24][6] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[24][7] = {vtype:2, vx:4, vy:5, vmain:false};
glevels[24][8] = {vtype:5, vx:5, vy:1, vmain:false};
glevels[25] = new Array();
glevels[25][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[25][1] = {vtype:2, vx:0, vy:3, vmain:false};
glevels[25][2] = {vtype:3, vx:0, vy:4, vmain:false};
glevels[25][3] = {vtype:3, vx:1, vy:0, vmain:false};
glevels[25][4] = {vtype:2, vx:1, vy:4, vmain:false};
glevels[25][5] = {vtype:2, vx:1, vy:5, vmain:false};
glevels[25][6] = {vtype:2, vx:2, vy:0, vmain:false};
glevels[25][7] = {vtype:5, vx:2, vy:1, vmain:false};
glevels[25][8] = {vtype:3, vx:3, vy:4, vmain:false};
glevels[25][9] = {vtype:3, vx:4, vy:0, vmain:false};
glevels[25][10] = {vtype:2, vx:4, vy:5, vmain:false};
glevels[25][11] = {vtype:5, vx:5, vy:0, vmain:false};
glevels[26] = new Array();
glevels[26][0] = {vtype:2, vx:0, vy:0, vmain:false};
glevels[26][1] = {vtype:5, vx:0, vy:3, vmain:false};
glevels[26][2] = {vtype:3, vx:1, vy:2, vmain:false};
glevels[26][3] = {vtype:2, vx:1, vy:5, vmain:false};
glevels[26][4] = {vtype:2, vx:2, vy:0, vmain:false};
glevels[26][5] = {vtype:3, vx:2, vy:1, vmain:false};
glevels[26][6] = {vtype:1, vx:3, vy:2, vmain:true};
glevels[26][7] = {vtype:2, vx:3, vy:3, vmain:false};
glevels[26][8] = {vtype:3, vx:3, vy:4, vmain:false};
glevels[26][9] = {vtype:3, vx:4, vy:0, vmain:false};
glevels[26][10] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[26][11] = {vtype:2, vx:4, vy:5, vmain:false};
glevels[26][12] = {vtype:5, vx:5, vy:1, vmain:false};
glevels[27] = new Array();
glevels[27][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[27][1] = {vtype:3, vx:0, vy:4, vmain:false};
glevels[27][2] = {vtype:3, vx:1, vy:4, vmain:false};
glevels[27][3] = {vtype:5, vx:2, vy:1, vmain:false};
glevels[27][4] = {vtype:2, vx:2, vy:4, vmain:false};
glevels[27][5] = {vtype:2, vx:2, vy:5, vmain:false};
glevels[27][6] = {vtype:5, vx:3, vy:1, vmain:false};
glevels[27][7] = {vtype:3, vx:4, vy:1, vmain:false};
glevels[27][8] = {vtype:3, vx:4, vy:3, vmain:false};
glevels[27][9] = {vtype:2, vx:4, vy:5, vmain:false};
glevels[27][10] = {vtype:3, vx:5, vy:1, vmain:false};
glevels[27][11] = {vtype:3, vx:5, vy:3, vmain:false};
glevels[28] = new Array();
glevels[28][0] = {vtype:2, vx:0, vy:0, vmain:false};
glevels[28][1] = {vtype:3, vx:0, vy:2, vmain:false};
glevels[28][2] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[28][3] = {vtype:3, vx:1, vy:2, vmain:false};
glevels[28][4] = {vtype:3, vx:2, vy:0, vmain:false};
glevels[28][5] = {vtype:1, vx:2, vy:2, vmain:true};
glevels[28][6] = {vtype:2, vx:2, vy:3, vmain:false};
glevels[28][7] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[28][8] = {vtype:2, vx:4, vy:1, vmain:false};
glevels[28][9] = {vtype:3, vx:4, vy:2, vmain:false};
glevels[28][10] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[28][11] = {vtype:3, vx:5, vy:2, vmain:false};
glevels[29] = new Array();
glevels[29][0] = {vtype:3, vx:0, vy:3, vmain:false};
glevels[29][1] = {vtype:2, vx:1, vy:0, vmain:false};
glevels[29][2] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[29][3] = {vtype:3, vx:1, vy:3, vmain:false};
glevels[29][4] = {vtype:3, vx:2, vy:3, vmain:false};
glevels[29][5] = {vtype:5, vx:3, vy:1, vmain:false};
glevels[29][6] = {vtype:5, vx:4, vy:1, vmain:false};
glevels[29][7] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[29][8] = {vtype:5, vx:5, vy:1, vmain:false};
glevels[30] = new Array();
glevels[30][0] = {vtype:2, vx:0, vy:1, vmain:false};
glevels[30][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[30][2] = {vtype:2, vx:0, vy:3, vmain:false};
glevels[30][3] = {vtype:2, vx:0, vy:4, vmain:false};
glevels[30][4] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[30][5] = {vtype:5, vx:2, vy:0, vmain:false};
glevels[30][6] = {vtype:4, vx:2, vy:3, vmain:false};
glevels[30][7] = {vtype:2, vx:2, vy:4, vmain:false};
glevels[30][8] = {vtype:2, vx:2, vy:5, vmain:false};
glevels[30][9] = {vtype:2, vx:3, vy:0, vmain:false};
glevels[30][10] = {vtype:3, vx:4, vy:1, vmain:false};
glevels[30][11] = {vtype:5, vx:5, vy:2, vmain:false};
glevels[31] = new Array();
glevels[31][0] = {vtype:2, vx:0, vy:1, vmain:false};
glevels[31][1] = {vtype:5, vx:0, vy:2, vmain:false};
glevels[31][2] = {vtype:2, vx:1, vy:0, vmain:false};
glevels[31][3] = {vtype:5, vx:1, vy:2, vmain:false};
glevels[31][4] = {vtype:2, vx:1, vy:5, vmain:false};
glevels[31][5] = {vtype:2, vx:2, vy:1, vmain:false};
glevels[31][6] = {vtype:1, vx:2, vy:2, vmain:true};
glevels[31][7] = {vtype:3, vx:2, vy:3, vmain:false};
glevels[31][8] = {vtype:2, vx:3, vy:0, vmain:false};
glevels[31][9] = {vtype:3, vx:3, vy:3, vmain:false};
glevels[31][10] = {vtype:2, vx:3, vy:5, vmain:false};
glevels[31][11] = {vtype:5, vx:4, vy:1, vmain:false};
glevels[31][12] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[31][13] = {vtype:5, vx:5, vy:1, vmain:false};
glevels[32] = new Array();
glevels[32][0] = {vtype:4, vx:0, vy:3, vmain:false};
glevels[32][1] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[32][2] = {vtype:3, vx:2, vy:0, vmain:false};
glevels[32][3] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[32][4] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[32][5] = {vtype:2, vx:3, vy:5, vmain:false};
glevels[32][6] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[32][7] = {vtype:5, vx:4, vy:2, vmain:false};
glevels[33] = new Array();
glevels[33][0] = {vtype:2, vx:0, vy:0, vmain:false};
glevels[33][1] = {vtype:2, vx:0, vy:1, vmain:false};
glevels[33][2] = {vtype:5, vx:0, vy:2, vmain:false};
glevels[33][3] = {vtype:4, vx:0, vy:5, vmain:false};
glevels[33][4] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[33][5] = {vtype:4, vx:1, vy:3, vmain:false};
glevels[33][6] = {vtype:2, vx:1, vy:4, vmain:false};
glevels[33][7] = {vtype:3, vx:2, vy:0, vmain:false};
glevels[33][8] = {vtype:5, vx:3, vy:0, vmain:false};
glevels[34] = new Array();
glevels[34][0] = {vtype:3, vx:0, vy:0, vmain:false};
glevels[34][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[34][2] = {vtype:4, vx:0, vy:4, vmain:false};
glevels[34][3] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[34][4] = {vtype:2, vx:1, vy:0, vmain:false};
glevels[34][5] = {vtype:3, vx:2, vy:1, vmain:false};
glevels[34][6] = {vtype:2, vx:2, vy:5, vmain:false};
glevels[34][7] = {vtype:2, vx:3, vy:0, vmain:false};
glevels[34][8] = {vtype:2, vx:3, vy:1, vmain:false};
glevels[34][9] = {vtype:5, vx:3, vy:2, vmain:false};
glevels[34][10] = {vtype:2, vx:4, vy:3, vmain:false};
glevels[34][11] = {vtype:3, vx:4, vy:4, vmain:false};
glevels[34][12] = {vtype:3, vx:5, vy:0, vmain:false};
glevels[35] = new Array();
glevels[35][0] = {vtype:3, vx:1, vy:2, vmain:false};
glevels[35][1] = {vtype:4, vx:1, vy:4, vmain:false};
glevels[35][2] = {vtype:3, vx:2, vy:0, vmain:false};
glevels[35][3] = {vtype:1, vx:2, vy:2, vmain:true};
glevels[35][4] = {vtype:2, vx:2, vy:3, vmain:false};
glevels[35][5] = {vtype:2, vx:3, vy:0, vmain:false};
glevels[35][6] = {vtype:3, vx:4, vy:1, vmain:false};
glevels[35][7] = {vtype:3, vx:4, vy:3, vmain:false};
glevels[36] = new Array();
glevels[36][0] = {vtype:2, vx:0, vy:1, vmain:false};
glevels[36][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[36][2] = {vtype:3, vx:0, vy:3, vmain:false};
glevels[36][3] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[36][4] = {vtype:4, vx:1, vy:0, vmain:false};
glevels[36][5] = {vtype:2, vx:1, vy:3, vmain:false};
glevels[36][6] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[36][7] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[36][8] = {vtype:3, vx:3, vy:4, vmain:false};
glevels[36][9] = {vtype:3, vx:4, vy:0, vmain:false};
glevels[36][10] = {vtype:3, vx:4, vy:2, vmain:false};
glevels[36][11] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[36][12] = {vtype:3, vx:5, vy:1, vmain:false};
glevels[37] = new Array();
glevels[37][0] = {vtype:2, vx:0, vy:0, vmain:false};
glevels[37][1] = {vtype:5, vx:0, vy:1, vmain:false};
glevels[37][2] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[37][3] = {vtype:4, vx:1, vy:3, vmain:false};
glevels[37][4] = {vtype:3, vx:2, vy:0, vmain:false};
glevels[37][5] = {vtype:5, vx:3, vy:0, vmain:false};
glevels[37][6] = {vtype:4, vx:3, vy:5, vmain:false};
glevels[38] = new Array();
glevels[38][0] = {vtype:3, vx:0, vy:0, vmain:false};
glevels[38][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[38][2] = {vtype:2, vx:0, vy:3, vmain:false};
glevels[38][3] = {vtype:4, vx:1, vy:1, vmain:false};
glevels[38][4] = {vtype:2, vx:1, vy:5, vmain:false};
glevels[38][5] = {vtype:3, vx:2, vy:3, vmain:false};
glevels[38][6] = {vtype:3, vx:3, vy:2, vmain:false};
glevels[38][7] = {vtype:3, vx:3, vy:4, vmain:false};
glevels[38][8] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[38][9] = {vtype:5, vx:4, vy:1, vmain:false};
glevels[38][10] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[38][11] = {vtype:3, vx:5, vy:2, vmain:false};
glevels[39] = new Array();
glevels[39][0] = {vtype:4, vx:2, vy:0, vmain:false};
glevels[39][1] = {vtype:3, vx:2, vy:1, vmain:false};
glevels[39][2] = {vtype:3, vx:2, vy:3, vmain:false};
glevels[39][3] = {vtype:4, vx:2, vy:5, vmain:false};
glevels[39][4] = {vtype:2, vx:3, vy:1, vmain:false};
glevels[39][5] = {vtype:1, vx:3, vy:2, vmain:true};
glevels[39][6] = {vtype:3, vx:3, vy:3, vmain:false};
glevels[39][7] = {vtype:2, vx:4, vy:3, vmain:false};
glevels[39][8] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[39][9] = {vtype:5, vx:5, vy:0, vmain:false};
glevels[40] = new Array();
glevels[40][0] = {vtype:4, vx:0, vy:1, vmain:false};
glevels[40][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[40][2] = {vtype:3, vx:0, vy:3, vmain:false};
glevels[40][3] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[40][4] = {vtype:2, vx:1, vy:0, vmain:false};
glevels[40][5] = {vtype:2, vx:2, vy:3, vmain:false};
glevels[40][6] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[40][7] = {vtype:5, vx:3, vy:0, vmain:false};
glevels[40][8] = {vtype:2, vx:3, vy:4, vmain:false};
glevels[40][9] = {vtype:3, vx:4, vy:0, vmain:false};
glevels[40][10] = {vtype:3, vx:4, vy:2, vmain:false};
glevels[40][11] = {vtype:3, vx:5, vy:1, vmain:false};
glevels[40][12] = {vtype:3, vx:5, vy:4, vmain:false};
glevels[41] = new Array();
glevels[41][0] = {vtype:3, vx:0, vy:0, vmain:false};
glevels[41][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[41][2] = {vtype:2, vx:1, vy:0, vmain:false};
glevels[41][3] = {vtype:2, vx:1, vy:1, vmain:false};
glevels[41][4] = {vtype:3, vx:2, vy:2, vmain:false};
glevels[41][5] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[41][6] = {vtype:5, vx:3, vy:0, vmain:false};
glevels[41][7] = {vtype:2, vx:3, vy:3, vmain:false};
glevels[41][8] = {vtype:4, vx:3, vy:5, vmain:false};
glevels[41][9] = {vtype:5, vx:5, vy:2, vmain:false};
glevels[42] = new Array();
glevels[42][0] = {vtype:4, vx:0, vy:0, vmain:false};
glevels[42][1] = {vtype:2, vx:0, vy:1, vmain:false};
glevels[42][2] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[42][3] = {vtype:3, vx:0, vy:4, vmain:false};
glevels[42][4] = {vtype:2, vx:1, vy:5, vmain:false};
glevels[42][5] = {vtype:3, vx:2, vy:3, vmain:false};
glevels[42][6] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[42][7] = {vtype:3, vx:3, vy:3, vmain:false};
glevels[42][8] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[42][9] = {vtype:3, vx:5, vy:0, vmain:false};
glevels[42][10] = {vtype:3, vx:5, vy:2, vmain:false};
glevels[43] = new Array();
glevels[43][0] = {vtype:4, vx:0, vy:0, vmain:false};
glevels[43][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[43][2] = {vtype:3, vx:0, vy:3, vmain:false};
glevels[43][3] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[43][4] = {vtype:3, vx:1, vy:3, vmain:false};
glevels[43][5] = {vtype:5, vx:2, vy:1, vmain:false};
glevels[43][6] = {vtype:4, vx:2, vy:4, vmain:false};
glevels[43][7] = {vtype:2, vx:2, vy:5, vmain:false};
glevels[43][8] = {vtype:3, vx:3, vy:0, vmain:false};
glevels[43][9] = {vtype:2, vx:3, vy:3, vmain:false};
glevels[43][10] = {vtype:2, vx:4, vy:1, vmain:false};
glevels[43][11] = {vtype:5, vx:5, vy:3, vmain:false};
glevels[44] = new Array();
glevels[44][0] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[44][1] = {vtype:2, vx:1, vy:3, vmain:false};
glevels[44][2] = {vtype:3, vx:1, vy:4, vmain:false};
glevels[44][3] = {vtype:5, vx:3, vy:1, vmain:false};
glevels[44][4] = {vtype:2, vx:3, vy:4, vmain:false};
glevels[44][5] = {vtype:2, vx:3, vy:5, vmain:false};
glevels[44][6] = {vtype:5, vx:4, vy:1, vmain:false};
glevels[44][7] = {vtype:5, vx:5, vy:1, vmain:false};
glevels[45] = new Array();
glevels[45][0] = {vtype:5, vx:0, vy:0, vmain:false};
glevels[45][1] = {vtype:2, vx:0, vy:3, vmain:false};
glevels[45][2] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[45][3] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[45][4] = {vtype:3, vx:2, vy:0, vmain:false};
glevels[45][5] = {vtype:2, vx:2, vy:3, vmain:false};
glevels[45][6] = {vtype:2, vx:2, vy:5, vmain:false};
glevels[45][7] = {vtype:4, vx:3, vy:0, vmain:false};
glevels[45][8] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[45][9] = {vtype:5, vx:5, vy:3, vmain:false};
glevels[46] = new Array();
glevels[46][0] = {vtype:2, vx:0, vy:0, vmain:false};
glevels[46][1] = {vtype:3, vx:0, vy:2, vmain:false};
glevels[46][2] = {vtype:2, vx:0, vy:4, vmain:false};
glevels[46][3] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[46][4] = {vtype:5, vx:2, vy:3, vmain:false};
glevels[46][5] = {vtype:4, vx:3, vy:0, vmain:false};
glevels[46][6] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[46][7] = {vtype:2, vx:3, vy:3, vmain:false};
glevels[46][8] = {vtype:4, vx:3, vy:5, vmain:false};
glevels[46][9] = {vtype:2, vx:4, vy:1, vmain:false};
glevels[46][10] = {vtype:5, vx:5, vy:2, vmain:false};
glevels[47] = new Array();
glevels[47][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[47][1] = {vtype:3, vx:0, vy:4, vmain:false};
glevels[47][2] = {vtype:3, vx:1, vy:0, vmain:false};
glevels[47][3] = {vtype:2, vx:1, vy:3, vmain:false};
glevels[47][4] = {vtype:5, vx:2, vy:0, vmain:false};
glevels[47][5] = {vtype:2, vx:2, vy:4, vmain:false};
glevels[47][6] = {vtype:5, vx:3, vy:1, vmain:false};
glevels[47][7] = {vtype:2, vx:3, vy:5, vmain:false};
glevels[47][8] = {vtype:5, vx:4, vy:2, vmain:false};
glevels[47][9] = {vtype:3, vx:5, vy:2, vmain:false};
glevels[47][10] = {vtype:3, vx:5, vy:4, vmain:false};
glevels[48] = new Array();
glevels[48][0] = {vtype:2, vx:0, vy:0, vmain:false};
glevels[48][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[48][2] = {vtype:3, vx:0, vy:3, vmain:false};
glevels[48][3] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[48][4] = {vtype:2, vx:1, vy:3, vmain:false};
glevels[48][5] = {vtype:5, vx:2, vy:0, vmain:false};
glevels[48][6] = {vtype:3, vx:3, vy:0, vmain:false};
glevels[48][7] = {vtype:2, vx:3, vy:3, vmain:false};
glevels[48][8] = {vtype:3, vx:3, vy:4, vmain:false};
glevels[48][9] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[48][10] = {vtype:5, vx:5, vy:3, vmain:false};
glevels[49] = new Array();
glevels[49][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[49][1] = {vtype:3, vx:0, vy:3, vmain:false};
glevels[49][2] = {vtype:4, vx:0, vy:5, vmain:false};
glevels[49][3] = {vtype:3, vx:1, vy:0, vmain:false};
glevels[49][4] = {vtype:2, vx:1, vy:3, vmain:false};
glevels[49][5] = {vtype:2, vx:1, vy:4, vmain:false};
glevels[49][6] = {vtype:5, vx:2, vy:0, vmain:false};
glevels[49][7] = {vtype:2, vx:3, vy:3, vmain:false};
glevels[49][8] = {vtype:3, vx:3, vy:4, vmain:false};
glevels[49][9] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[49][10] = {vtype:3, vx:4, vy:4, vmain:false};
glevels[49][11] = {vtype:5, vx:5, vy:3, vmain:false};
glevels[50] = new Array();
glevels[50][0] = {vtype:4, vx:0, vy:0, vmain:false};
glevels[50][1] = {vtype:4, vx:0, vy:1, vmain:false};
glevels[50][2] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[50][3] = {vtype:3, vx:0, vy:3, vmain:false};
glevels[50][4] = {vtype:3, vx:2, vy:2, vmain:false};
glevels[50][5] = {vtype:3, vx:3, vy:2, vmain:false};
glevels[50][6] = {vtype:3, vx:3, vy:4, vmain:false};
glevels[50][7] = {vtype:5, vx:4, vy:0, vmain:false};
glevels[50][8] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[50][9] = {vtype:2, vx:4, vy:5, vmain:false};
glevels[50][10] = {vtype:5, vx:5, vy:0, vmain:false};
glevels[51] = new Array();
glevels[51][0] = {vtype:3, vx:0, vy:0, vmain:false};
glevels[51][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[51][2] = {vtype:4, vx:0, vy:3, vmain:false};
glevels[51][3] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[51][4] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[51][5] = {vtype:4, vx:3, vy:0, vmain:false};
glevels[51][6] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[51][7] = {vtype:3, vx:3, vy:3, vmain:false};
glevels[51][8] = {vtype:2, vx:3, vy:5, vmain:false};
glevels[51][9] = {vtype:3, vx:4, vy:2, vmain:false};
glevels[51][10] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[51][11] = {vtype:5, vx:5, vy:1, vmain:false};
glevels[52] = new Array();
glevels[52][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[52][1] = {vtype:3, vx:0, vy:3, vmain:false};
glevels[52][2] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[52][3] = {vtype:4, vx:1, vy:3, vmain:false};
glevels[52][4] = {vtype:2, vx:1, vy:4, vmain:false};
glevels[52][5] = {vtype:5, vx:2, vy:0, vmain:false};
glevels[52][6] = {vtype:2, vx:3, vy:0, vmain:false};
glevels[52][7] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[52][8] = {vtype:3, vx:3, vy:4, vmain:false};
glevels[52][9] = {vtype:3, vx:4, vy:4, vmain:false};
glevels[52][10] = {vtype:5, vx:5, vy:0, vmain:false};
glevels[53] = new Array();
glevels[53][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[53][1] = {vtype:3, vx:0, vy:4, vmain:false};
glevels[53][2] = {vtype:3, vx:1, vy:0, vmain:false};
glevels[53][3] = {vtype:4, vx:1, vy:5, vmain:false};
glevels[53][4] = {vtype:2, vx:2, vy:0, vmain:false};
glevels[53][5] = {vtype:4, vx:2, vy:1, vmain:false};
glevels[53][6] = {vtype:3, vx:2, vy:2, vmain:false};
glevels[53][7] = {vtype:2, vx:2, vy:4, vmain:false};
glevels[53][8] = {vtype:3, vx:3, vy:2, vmain:false};
glevels[53][9] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[53][10] = {vtype:2, vx:4, vy:3, vmain:false};
glevels[53][11] = {vtype:3, vx:4, vy:4, vmain:false};
glevels[53][12] = {vtype:3, vx:5, vy:1, vmain:false};
glevels[53][13] = {vtype:3, vx:5, vy:4, vmain:false};
glevels[54] = new Array();
glevels[54][0] = {vtype:5, vx:0, vy:0, vmain:false};
glevels[54][1] = {vtype:4, vx:0, vy:3, vmain:false};
glevels[54][2] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[54][3] = {vtype:4, vx:1, vy:0, vmain:false};
glevels[54][4] = {vtype:3, vx:1, vy:1, vmain:false};
glevels[54][5] = {vtype:2, vx:2, vy:1, vmain:false};
glevels[54][6] = {vtype:1, vx:2, vy:2, vmain:true};
glevels[54][7] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[54][8] = {vtype:3, vx:3, vy:3, vmain:false};
glevels[54][9] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[54][10] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[54][11] = {vtype:5, vx:5, vy:1, vmain:false};
glevels[55] = new Array();
glevels[55][0] = {vtype:2, vx:0, vy:0, vmain:false};
glevels[55][1] = {vtype:2, vx:0, vy:1, vmain:false};
glevels[55][2] = {vtype:5, vx:0, vy:2, vmain:false};
glevels[55][3] = {vtype:2, vx:0, vy:5, vmain:false};
glevels[55][4] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[55][5] = {vtype:4, vx:1, vy:3, vmain:false};
glevels[55][6] = {vtype:3, vx:2, vy:0, vmain:false};
glevels[55][7] = {vtype:3, vx:3, vy:4, vmain:false};
glevels[55][8] = {vtype:2, vx:4, vy:0, vmain:false};
glevels[55][9] = {vtype:5, vx:4, vy:1, vmain:false};
glevels[55][10] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[55][11] = {vtype:2, vx:4, vy:5, vmain:false};
glevels[55][12] = {vtype:5, vx:5, vy:1, vmain:false};
glevels[56] = new Array();
glevels[56][0] = {vtype:2, vx:0, vy:0, vmain:false};
glevels[56][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[56][2] = {vtype:3, vx:0, vy:3, vmain:false};
glevels[56][3] = {vtype:3, vx:1, vy:4, vmain:false};
glevels[56][4] = {vtype:2, vx:2, vy:0, vmain:false};
glevels[56][5] = {vtype:5, vx:2, vy:2, vmain:false};
glevels[56][6] = {vtype:5, vx:3, vy:1, vmain:false};
glevels[56][7] = {vtype:2, vx:3, vy:5, vmain:false};
glevels[56][8] = {vtype:2, vx:4, vy:4, vmain:false};
glevels[56][9] = {vtype:5, vx:5, vy:0, vmain:false};
glevels[57] = new Array();
glevels[57][0] = {vtype:3, vx:0, vy:0, vmain:false};
glevels[57][1] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[57][2] = {vtype:2, vx:1, vy:1, vmain:false};
glevels[57][3] = {vtype:3, vx:2, vy:2, vmain:false};
glevels[57][4] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[57][5] = {vtype:4, vx:3, vy:0, vmain:false};
glevels[57][6] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[57][7] = {vtype:2, vx:3, vy:3, vmain:false};
glevels[57][8] = {vtype:2, vx:3, vy:4, vmain:false};
glevels[57][9] = {vtype:4, vx:3, vy:5, vmain:false};
glevels[57][10] = {vtype:5, vx:5, vy:2, vmain:false};
glevels[58] = new Array();
glevels[58][0] = {vtype:1, vx:0, vy:2, vmain:true};
glevels[58][1] = {vtype:2, vx:0, vy:3, vmain:false};
glevels[58][2] = {vtype:3, vx:0, vy:4, vmain:false};
glevels[58][3] = {vtype:3, vx:1, vy:4, vmain:false};
glevels[58][4] = {vtype:3, vx:2, vy:0, vmain:false};
glevels[58][5] = {vtype:3, vx:2, vy:2, vmain:false};
glevels[58][6] = {vtype:2, vx:2, vy:4, vmain:false};
glevels[58][7] = {vtype:2, vx:2, vy:5, vmain:false};
glevels[58][8] = {vtype:4, vx:3, vy:0, vmain:false};
glevels[58][9] = {vtype:3, vx:3, vy:1, vmain:false};
glevels[58][10] = {vtype:2, vx:3, vy:3, vmain:false};
glevels[58][11] = {vtype:5, vx:5, vy:2, vmain:false};
glevels[59] = new Array();
glevels[59][0] = {vtype:3, vx:0, vy:1, vmain:false};
glevels[59][1] = {vtype:1, vx:1, vy:2, vmain:true};
glevels[59][2] = {vtype:2, vx:1, vy:3, vmain:false};
glevels[59][3] = {vtype:3, vx:1, vy:4, vmain:false};
glevels[59][4] = {vtype:3, vx:2, vy:4, vmain:false};
glevels[59][5] = {vtype:5, vx:3, vy:1, vmain:false};
glevels[59][6] = {vtype:2, vx:3, vy:4, vmain:false};
glevels[59][7] = {vtype:5, vx:5, vy:1, vmain:false};
Symbol 190 MovieClip Frame 3
function mePressed(mn, tp) {
var _local1 = mn;
var _local2 = tp;
var _local3 = this;
if (gameOn == false) {
} else {
if (((_local2 == 1) || (_local2 == 2)) || (_local2 == 4)) {
toplimit = _local3["vehicle" + _local1]._y;
bottomlimit = _local3["vehicle" + _local1]._y;
leftlimit = getleftlimit(_local1, _local2);
rightlimit = getrightlimit(_local1, _local2);
} else {
leftlimit = _local3["vehicle" + _local1]._x;
rightlimit = _local3["vehicle" + _local1]._x;
toplimit = gettoplimit(_local1, _local2);
bottomlimit = getbottomlimit(_local1, _local2);
}
_local3["vehicle" + _local1].startDrag(false, leftlimit, toplimit, rightlimit, bottomlimit);
}
}
function meReleased(mn, tp) {
var _local1 = this;
var _local2 = mn;
_local1["vehicle" + _local2].stopDrag();
newvx = Math.floor(_local1["vehicle" + _local2]._x / 36);
newvy = Math.floor(_local1["vehicle" + _local2]._y / 36);
_local1["vehicle" + _local2].vx = newvx;
_local1["vehicle" + _local2].vy = newvy;
_local1["vehicle" + _local2]._x = newvx * 36;
_local1["vehicle" + _local2]._y = newvy * 36;
updateGridArray();
Moves++;
txtMoves.text = Moves;
if ((tp == 1) && (_local1["vehicle" + _local2].vx == 5)) {
gameOn = false;
gamescleared[glevel] = true;
_local1["thelevel" + glevel].marker._visible = true;
tgamescleared++;
if (tgamescleared == 60) {
btnNextLevel._visible = false;
}
btnNextLevel.gotoAndStop(2);
score = score + 100;
if (Moves < 50) {
score = score + (50 - Moves);
}
txtScore.text = score;
}
}
function getleftlimit(mn, tp) {
var _local2 = mn;
var _local3 = this;
if (_local3["vehicle" + _local2].vx == 0) {
return(0);
}
var _local1 = _local3["vehicle" + _local2].vx - 1;
while (_local1 >= 0) {
if (gridarray[_local1][_local3["vehicle" + _local2].vy] == 1) {
return((_local1 + 1) * 36);
}
_local1--;
}
return(undefined);
}
function gettoplimit(mn, tp) {
var _local2 = mn;
var _local3 = this;
if (_local3["vehicle" + _local2].vy == 0) {
return(0);
}
var _local1 = _local3["vehicle" + _local2].vy - 1;
while (_local1 >= 0) {
if (gridarray[_local3["vehicle" + _local2].vx][_local1] == 1) {
return((_local1 + 1) * 36);
}
_local1--;
}
return(0);
}
function getrightlimit(mn, tp) {
var _local2 = mn;
var _local3 = this;
var startatx = 0;
var stepsfor = 0;
switch (tp) {
case 1 :
case 2 :
startatx = _local3["vehicle" + _local2].vx + 2;
break;
case 3 :
startatx = _local3["vehicle" + _local2].vx + 1;
break;
case 4 :
startatx = _local3["vehicle" + _local2].vx + 3;
break;
case 5 :
startatx = _local3["vehicle" + _local2].vx + 1;
break;
}
if (startatx > 6) {
return(_local3["vehicle" + _local2].vx + 0);
}
var newstartx = 0;
var _local1 = startatx;
while (_local1 < 6) {
yval = _local3["vehicle" + _local2].vy;
if (gridarray[_local1][yval] == 0) {
newstartx++;
} else {
break;
}
_local1++;
}
if (tp == 1) {
if ((_local3["vehicle" + _local2].vx + newstartx) == 4) {
return(((_local3["vehicle" + _local2].vx + newstartx) + 1) * 36);
}
}
return((_local3["vehicle" + _local2].vx + newstartx) * 36);
}
function getbottomlimit(mn, tp) {
var _local3 = mn;
var _local2 = 0;
var stepsfor = 0;
switch (tp) {
case 1 :
case 2 :
_local2 = this["vehicle" + _local3].vy + 1;
break;
case 3 :
_local2 = this["vehicle" + _local3].vy + 2;
break;
case 4 :
_local2 = this["vehicle" + _local3].vy + 1;
break;
case 5 :
_local2 = this["vehicle" + _local3].vy + 3;
break;
}
if (_local2 > 6) {
return(this["vehicle" + _local3].vy + 0);
}
var newstarty = 0;
var _local1 = _local2;
while (_local1 < 6) {
xval = this["vehicle" + _local3].vx;
gridvalue = gridarray[xval][_local1];
if (gridvalue == 0) {
newstarty++;
} else {
break;
}
_local1++;
}
return((this["vehicle" + _local3].vy + newstarty) * 36);
}
function updateGridArray() {
var _local3 = this;
var _local2 = 0;
while (_local2 < 6) {
var _local1 = 0;
while (_local1 < 6) {
gridarray[_local2][_local1] = 0;
_local1++;
}
_local2++;
}
_local2 = 0;
while (_local2 < totalvehicles) {
veh = _local3["vehicle" + _local2];
switch (veh._currentframe) {
case 1 :
case 2 :
gridarray[veh.vx][veh.vy] = 1;
gridarray[veh.vx + 1][veh.vy] = 1;
break;
case 3 :
gridarray[veh.vx][veh.vy] = 1;
gridarray[veh.vx][veh.vy + 1] = 1;
break;
case 4 :
gridarray[veh.vx][veh.vy] = 1;
gridarray[veh.vx + 1][veh.vy] = 1;
gridarray[veh.vx + 2][veh.vy] = 1;
break;
case 5 :
gridarray[veh.vx][veh.vy] = 1;
gridarray[veh.vx][veh.vy + 1] = 1;
gridarray[veh.vx][veh.vy + 2] = 1;
break;
}
_local2++;
}
}
function showGridData() {
var _local2 = 0;
while (_local2 < 6) {
str = "";
var _local1 = 0;
while (_local1 < 6) {
str = str + (" " + gridarray[_local1][_local2]);
_local1++;
}
_local2++;
}
}
function clearVehicles() {
var _local1 = 1;
while (_local1 < totalvehicles) {
unloadMovie ("vehicle" + _local1);
_local1++;
}
}
var gameOn = true;
var Moves = 0;
btnNextLevel.gotoAndStop(1);
if (tgamescleared == 59) {
btnNextLevel._visible = false;
}
var yp = thelevel0._y;
var l = 0;
while (l < 60) {
if (l == 0) {
thelevel = thelevel0;
} else {
thelevel = thelevel0.duplicateMovieClip("thelevel" + l, l + 500);
thelevel._x = thelevel0._x + ((l % 10) * thelevel0._width);
thelevel._visible = true;
if ((l % 10) == 0) {
yp = yp + thelevel0._height;
}
thelevel._y = yp;
}
thelevel.txtNo.text = l + 1;
thelevel.marker._visible = gamescleared[l];
l++;
}
var gridarray = new Array();
var i = 0;
while (i < 6) {
gridarray[i] = new Array(0, 0, 0, 0, 0, 0);
i++;
}
txtLevel.text = glevel + 1;
txtMoves.text = Moves;
var totalvehicles = glevels[glevel].length;
var i = 0;
while (i < totalvehicles) {
if (i > 0) {
veh = vehicle0.duplicateMovieClip("vehicle" + i, i);
} else {
veh = vehicle0;
}
veh._visible = true;
veh.gotoAndStop(glevels[glevel][i].vtype);
veh.stop();
veh._x = glevels[glevel][i].vx * 36;
veh._y = glevels[glevel][i].vy * 36;
veh.vx = glevels[glevel][i].vx;
veh.vy = glevels[glevel][i].vy;
veh.mynumber = i;
i++;
}
updateGridArray();
stop();
Symbol 194 Button
on (release) {
gotoAndStop ("titlescreen");
}
Symbol 199 Button
on (release) {
getURL ("http://www.urgames.com/games/rush-hour");
}