Combined Code
movieClip 1 FUIComponentSymbol {
#initclip
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._height = 1;
this.deadPreview._width = 1;
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var v3 in this.styleFormat_prm) {
this.setStyleProperty(v3, this.styleFormat_prm[v3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = arguments.length <= 0 ? true : enabledFlag;
this.focusEnabled = enabledFlag;
this.tabEnabled = this.focusEnabled;
if (!this.enable && this.focused) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return this.enable;
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = (obj == undefined) ? this._parent : obj;
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var v2 in this.methodTable) {
this[v2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var v5 = this.styleTable.focusRectInner.value;
var v4 = this.styleTable.focusRectOuter.value;
if (v5 == undefined) {
v5 = 16777215;
}
if (v4 == undefined) {
v4 = 0;
}
this.createEmptyMovieClip('focusRect', 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, v4);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, v5);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo(x + w - 1, y + 1);
this.focusRect.lineTo(x + w - 1, y + h - 1);
this.focusRect.lineTo(x + 1, y + h - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value != '') {
var v16 = parseInt(value);
if (!isNaN(v16)) {
value = v16;
}
var v17 = arguments.length <= 2 ? false : isGlobal;
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || !v17) {
this.styleTable[propName].value = value;
if (!this.setCustomStyleProperty(propName, value)) {
if (propName == 'embedFonts') {
this.invalidate('setSize');
} else {
if (propName.subString(0, 4) == 'text') {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var v18 = propName.subString(4, propName.length);
this.textStyle[v18] = value;
this.invalidate('setSize');
} else {
for (var v15 in this.styleTable[propName].coloredMCs) {
var v4 = new Color(this.styleTable[propName].coloredMCs[v15]);
if (this.styleTable[propName].value == undefined) {
var v5 = {'ra': '100', 'rb': '0', 'ga': '100', 'gb': '0', 'ba': '100', 'bb': '0', 'aa': '100', 'ab': '0'};
v4.setTransform(v5);
} else {
v4.setRGB(value);
}
}
}
}
}
this.styleTable[propName].useGlobal = v17;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var v4 = new Color(skinMCRef);
v4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {'listeners': true, 'isGlobal': true, 'isAStyle': true, 'addListener': true, 'removeListener': true, 'nonStyles': true, 'applyChanges': true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var v3 in arguments[0]) {
this[v3] = arguments[0][v3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var v4 = 0;
for (;;) {
if (v4 >= arguments.length) {
return undefined;
}
var v3 = arguments[v4];
this.listeners[arguments[v4]] = v3;
for (var v5 in this) {
if (this.isAStyle(v5)) {
v3.updateStyleProperty(this, v5.toString());
}
}
++v4;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var v4 in this) {
if (this.isAStyle(v4)) {
if (component.styleTable[v4].useGlobal == this.isGlobal) {
component.styleTable[v4].useGlobal = true;
var v3 = this.isGlobal ? undefined : globalStyleFormat[v4];
component.setStyleProperty(v4, v3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var v5 = 0;
for (var v4 in this.listeners) {
var v3 = this.listeners[v4];
if (arguments.length > 0) {
__reg4 = 0;
while (__reg4 < arguments.length) {
if (this.isAStyle(arguments[__reg4])) {
v3.updateStyleProperty(this, arguments[__reg4]);
}
++__reg4;
}
} else {
for (var __reg4 in this) {
if (this.isAStyle(__reg4)) {
v3.updateStyleProperty(this, __reg4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return this.nonStyles[name] ? false : true;
};
#endinitclip
frame 1 {
}
}
movieClip 3 {
}
movieClip 5 {
}
movieClip 7 {
}
movieClip 9 {
}
movieClip 11 {
}
movieClip 13 {
}
movieClip 14 {
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');
}
}
movieClip 15 {
}
movieClip 16 {
}
movieClip 18 {
}
movieClip 20 {
}
movieClip 21 {
}
movieClip 23 {
}
movieClip 24 {
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');
}
}
movieClip 25 {
}
movieClip 26 {
}
movieClip 27 {
}
movieClip 28 {
}
movieClip 30 {
}
movieClip 32 {
}
movieClip 33 {
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');
}
}
movieClip 34 DownArrow {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 36 {
}
movieClip 38 {
}
movieClip 39 {
}
movieClip 40 {
}
movieClip 41 {
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');
}
}
movieClip 42 {
}
movieClip 43 {
}
movieClip 45 {
}
movieClip 46 {
}
movieClip 47 {
}
movieClip 48 {
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');
}
}
movieClip 49 {
}
movieClip 51 {
}
movieClip 52 {
}
movieClip 53 {
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');
}
}
movieClip 54 ScrollThumb {
frame 1 {
stop();
}
}
movieClip 55 {
}
movieClip 57 {
}
movieClip 58 {
}
movieClip 59 {
}
movieClip 60 {
}
movieClip 61 {
}
movieClip 62 {
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');
}
}
movieClip 63 {
}
movieClip 64 {
}
movieClip 65 {
}
movieClip 66 {
}
movieClip 67 {
}
movieClip 69 {
}
movieClip 70 {
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');
}
}
movieClip 71 {
}
movieClip 72 {
}
movieClip 73 {
}
movieClip 74 {
}
movieClip 75 {
}
movieClip 77 {
}
movieClip 78 {
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');
}
}
movieClip 79 UpArrow {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 81 {
}
movieClip 82 {
frame 1 {
var component = _parent;
component.registerSkinElement(track_mc, 'scrollTrack');
}
}
movieClip 83 FScrollBarSymbol {
#initclip
FScrollBarClass = function () {
if (this._height != 4) {
this.init();
this.largeScroll = 0;
this.pageSize = 0;
this.maxPos = 0;
this.minPos = 0;
this.smallScroll = 1;
this.width = this.horizontal ? this._width : this._height;
this._yscale = 100;
this._xscale = 100;
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && !flag) {
this._xscale = 100;
this._rotation = 0;
} else {
if (flag && !this.horizontal) {
this._xscale = -100;
this._rotation = -90;
}
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (this.enable) {
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if (this.maxPos - this.minPos <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onDragOut = null;
this.downArrow_mc.onRelease = this.downArrow_mc.onDragOut;
this.downArrow_mc.onPress = this.downArrow_mc.onDragOut;
this.upArrow_mc.onDragOut = null;
this.upArrow_mc.onRelease = this.upArrow_mc.onDragOut;
this.upArrow_mc.onPress = this.upArrow_mc.onDragOut;
this.scrollTrack_mc.onRelease = null;
this.scrollTrack_mc.onPress = this.scrollTrack_mc.onRelease;
this.scrollTrack_mc.onRollOut = null;
this.scrollTrack_mc.onDragOut = this.scrollTrack_mc.onRollOut;
this.scrollTrack_mc.useHandCursor = false;
return undefined;
}
var v2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onDragOver = this.startUpScroller;
this.upArrow_mc.onPress = this.upArrow_mc.onDragOver;
this.upArrow_mc.onDragOut = this.stopScrolling;
this.upArrow_mc.onRelease = this.upArrow_mc.onDragOut;
this.downArrow_mc.onDragOver = this.startDownScroller;
this.downArrow_mc.onPress = this.downArrow_mc.onDragOver;
this.downArrow_mc.onDragOut = this.stopScrolling;
this.downArrow_mc.onRelease = this.downArrow_mc.onDragOut;
this.scrollTrack_mc.onDragOver = this.startTrackScroller;
this.scrollTrack_mc.onPress = this.scrollTrack_mc.onDragOver;
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie('ScrollThumb', 'scrollThumb_mc', 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb;
this.scrollThumb_mc.onRelease = this.scrollThumb_mc.onReleaseOutside;
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / (this.maxPos - this.minPos + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = this.thumbHeight - this.thumbTop_mc._height - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = this.midHeight * 100 / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
v2 = Math.min(v2, this.maxPos);
this.setScrollPosition(Math.max(v2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return this.scrollPosition;
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (pos - this.minPos) * this.trackHeight / (this.maxPos - this.minPos) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var v3 = this.enable;
if (enabledFlag && !v3) {
this.enable = enabledFlag;
if (this.textField == undefined) {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
} else {
this.setScrollTarget(this.textField);
}
this.clickFilter = undefined;
return undefined;
}
if (!enabledFlag && v3) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height != 1) {
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = 100 * this.width / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie('UpArrow', 'upArrow_mc', 1);
this.attachMovie('DownArrow', 'downArrow_mc', 2);
this.upArrow_mc.controller = this;
this.downArrow_mc.controller = this.upArrow_mc.controller;
this.downArrow_mc.useHandCursor = false;
this.upArrow_mc.useHandCursor = this.downArrow_mc.useHandCursor;
this.upArrow_mc._y = 0;
this.upArrow_mc._x = 0;
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - 2 * this.downArrow_mc._height;
if (this.textField != undefined) {
this.onTextChanged();
return undefined;
}
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var v3 = this.smallScroll;
if (inc != 'one') {
v3 = (this.largeScroll == 0) ? this.pageSize : this.largeScroll;
}
var v2 = this.getScrollPosition() + mode * v3;
if (v2 > this.maxPos) {
v2 = this.maxPos;
} else {
if (v2 < this.minPos) {
v2 = this.minPos;
}
}
this.setScrollPosition(v2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove += this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else {
if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
}
this._y = this.scrollMove;
var v2 = this.controller;
v2.scrollPosition = Math.round((v2.maxPos - v2.minPos) * (this._y - v2.scrollTop) / v2.trackHeight) + v2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, 'scrollInterval', 500, 'page', -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == 'page') {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, 'scrollInterval', 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if (this.scrollThumb_mc._y + this.thumbHeight < this._ymouse) {
this.scrollIt('page', 1);
return undefined;
}
if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt('page', -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt('one', -1);
this.controller.scrolling = setInterval(this.controller, 'scrollInterval', 500, 'one', -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt('one', 1);
this.controller.scrolling = setInterval(this.controller, 'scrollInterval', 500, 'one', 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[this.horizontal ? 'hScroller' : 'vScroller'];
if (this.textField.hScroller != undefined && this.textField.vScroller != undefined) {
this.textField.unwatch('text');
this.textField.unwatch('htmltext');
}
}
this.textField = undefined;
if (tF instanceof TextField) {
this.textField = tF;
this.textField[this.horizontal ? 'hScroller' : 'vScroller'] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (this.isScrolling) {
return undefined;
}
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
return undefined;
}
this.setScrollPosition(this.textField.hscroll);
};
this.textField.addListener(this);
this.textField.watch('text', this.callback);
this.textField.watch('htmlText', this.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, 'onTextChanged', 50);
this.vScroller.synchScroll = setInterval(this.vScroller, 'onTextChanged', 50);
return newVal;
};
FScrollBarClass.prototype.onTextChanged = function () {
if (!this.enable || this.textField == undefined) {
return undefined;
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var v2 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(v2, this.textField.maxhscroll));
return undefined;
}
v2 = this.textField.scroll;
var v3 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(v3, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(v2, this.textField.maxscroll));
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
return undefined;
}
if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
return undefined;
}
this.textField.scroll = this.getScrollPosition();
};
Object.registerClass('FScrollBarSymbol', FScrollBarClass);
#endinitclip
frame 1 {
}
}
frame 1 {
function cargando() {
var v4;
var v3;
var v2;
v4 = getBytesTotal();
v3 = getBytesLoaded();
v2 = Math.floor(v3 * 100 / v4);
cargador.porcentaje_txt.text = v2 + '% cargado';
cargador.barra._xscale = v2;
if (v3 == v4) {
clearInterval(hiloPrecarga);
Mouse.show();
myXML.ignoreWhite = true;
myXML.load('xml/config.xml');
myXML.onLoad = function (success) {
if (success) {
var v2 = myXML.firstChild.childNodes;
nombreCurso = myXML.firstChild.attributes.nombre;
var v1 = v2[0].childNodes;
nombreModulo = v2[0].attributes.nombre;
i = 0;
while (i < v1.length) {
temas_array.push(v1[i].attributes.nombre);
++i;
}
gotoAndPlay(3);
return undefined;
}
salida_txt.text = 'Error al cargar la configuración.';
};
}
}
stop();
var nombreModulo = new String();
var nombreCurso = new String();
var temas_array = new Array();
var myXML = new XML();
System.useCodepage = true;
var hiloPrecarga = setInterval(cargando, 1);
onLoad = function () {
datos.load('datos.xml');
};
var datos = new XML();
datos.ignoreWhite = true;
}
movieClip 87 {
}
// unknown tag 88 length 63
movieClip 90 {
}
frame 2 {
stop();
}
frame 3 {
function verificaCero() {
if (pagActual <= 8) {
cero = '0';
return undefined;
}
cero = '';
}
function CANDADO() {
if (!wasVisited()) {
btnSiguiente.enabled = false;
btnSiguiente._alpha = 40;
btnSiguiente.gotoAndStop(1);
btnSiguiente.resplandor.gotoAndStop(1);
return undefined;
}
AVANZAR();
}
function AVANZAR() {
btnSiguiente.enabled = true;
btnSiguiente._alpha = 100;
btnSiguiente.resplandor.gotoAndPlay(2);
}
function siGLOSARIO() {
noMENU();
noINICIO();
noMATERIAL();
glosario.texto.htmlText = datos.firstChild.childNodes[subProceso].firstChild.nodeValue;
glosario.y = 360;
sombra._visible = true;
contenedor._visible = false;
}
function noGLOSARIO() {
glosario.y = -500;
sombra._visible = false;
contenedor._visible = true;
}
function siMATERIAL() {
noMENU();
noINICIO();
noGLOSARIO();
material.y = 360;
sombra._visible = true;
contenedor._visible = false;
}
function noMATERIAL() {
material.y = -500;
sombra._visible = false;
contenedor._visible = true;
}
function siMENU() {
noINICIO();
noGLOSARIO();
noMATERIAL();
mcMenu.y = 140;
sombra._visible = true;
contenedor._visible = false;
}
function noMENU() {
mcMenu.y = -1000;
sombra._visible = false;
contenedor._visible = true;
}
function guardarDatos(pagina, swfPath) {
if (getUltimaPaginaVisitada() <= pagina) {
var v1;
v1 = SharedObject.getLocal(cookieName);
v1.data.pagina = pagina.toString();
v1.data.swfPath = swfPath;
v1.flush();
}
}
function getUltimaPaginaVisitada() {
var v1;
v1 = SharedObject.getLocal(cookieName);
if (v1.data.pagina != undefined) {
var v2 = Number(v1.data.pagina);
return v2;
}
var v2 = 0;
return v2;
}
function wasVisited() {
if (getUltimaPaginaVisitada() >= pagActual) {
var v1 = true;
return v1;
}
var v1 = false;
return v1;
}
stop();
subProceso = 1;
_global.mandarEstado = function () {
flash.external.ExternalInterface.call('endSCO', 'completed');
trace('estado mandado');
};
bloqueo_btn.useHandCursor = false;
bloqueo_btn._visible = false;
titulo_mc.titulo_txt.text = nombreModulo;
cursoTitulo_mc.titulo_txt.text = nombreCurso;
cursoTitulo_mc.titulo_txt.autoSize = true;
totalPantallas = temas_array.length;
ruta = 'contenido/';
var cookieName = 'cokie.com.mx.nh22.m9.ent';
var disco_so;
disco_so = SharedObject.getLocal(cookieName);
disco_so.clear();
pagActual = (getUltimaPaginaVisitada() == 0) ? 1 : getUltimaPaginaVisitada();
verificaCero();
contenedor.loadMovie(ruta + cero + pagActual + '.swf');
trace(ruta + cero + pagActual + '.swf');
onEnterFrame = function () {
if (pagActual == totalPantallas) {
btnSiguiente._visible = false;
} else {
btnSiguiente._visible = true;
btnSiguiente.onPress = function () {
trace('total de pantallas: ' + totalPantallas + '; pantalla' + pagActual);
guardarDatos(pagActual, ruta + cero + pagActual + '.swf');
++pagActual;
verificaCero();
contenedor.loadMovie(ruta + cero + pagActual + '.swf');
trace(ruta + cero + pagActual + '.swf');
noMENU();
noINICIO();
noGLOSARIO();
noMATERIAL();
};
}
if (pagActual == 1) {
btnAnterior._visible = false;
} else {
btnAnterior._visible = true;
btnAnterior.onPress = function () {
--pagActual;
verificaCero();
contenedor.loadMovie(ruta + cero + pagActual + '.swf');
trace(ruta + cero + pagActual + '.swf');
noMENU();
noINICIO();
noGLOSARIO();
noMATERIAL();
};
}
paginacion = pagActual + ' / ' + totalPantallas;
};
menu.btnInicio.onRelease = function () {
contenedor.loadMovie('contenido/01.swf');
pagActual = 1;
noMENU();
noGLOSARIO();
noMATERIAL();
};
menu.btnGlosario.onRelease = function () {
siGLOSARIO();
btnReload.enabled = false;
btnAnterior.enabled = false;
btnSiguiente.enabled = false;
};
menu.btnMaterial.onPress = function () {
siMATERIAL();
btnReload.enabled = false;
btnAnterior.enabled = false;
btnSiguiente.enabled = false;
};
menu.btnCerrar.onPress = function () {
siCERRAR();
};
menu.btnMenu.onPress = function () {
siMENU();
btnReload.enabled = false;
btnAnterior.enabled = false;
btnSiguiente.enabled = false;
};
btnReload.onPress = function () {
stopAllSounds();
contenedor.unloadMovie();
verificaCero();
contenedor.loadMovie(ruta + cero + pagActual + '.swf');
};
btnSiguiente2._visible = true;
btnSiguiente2.onPress = function () {
++pagActual;
verificaCero();
contenedor.loadMovie(ruta + cero + pagActual + '.swf');
trace(ruta + cero + pagActual + '.swf');
noMENU();
noINICIO();
noGLOSARIO();
noMATERIAL();
};
}
movieClip 94 {
}
movieClip 98 {
frame 1 {
deshabilita.useHandCursor = false;
}
}
instance sombra of movieClip 98 {
onClipEvent (load) {
_visible = false;
_width = Stage.width;
_height = Stage.height;
}
}
// unknown tag 88 length 62
movieClip 110 {
}
movieClip 112 {
}
movieClip 119 {
}
movieClip 121 {
}
button 124 {
on (press) {
_parent.noGLOSARIO();
_parent.btnReload.enabled = true;
}
}
movieClip 125 {
frame 1 {
stop();
}
instance scrollbar of movieClip 83 FScrollBarSymbol {
onClipEvent (construct) {
horizontal = false;
_targetInstanceName = 'texto';
}
}
}
instance glosario of movieClip 125 {
onClipEvent (load) {
_y = -500;
y = -500;
}
onClipEvent (enterFrame) {
_y = _y + (y - _y) * 0.25;
}
}
movieClip 130 {
}
movieClip 132 {
}
button 133 {
on (press) {
_parent.noMATERIAL();
_parent.btnReload.enabled = true;
}
}
movieClip 134 {
frame 1 {
stop();
}
}
instance material of movieClip 134 {
onClipEvent (load) {
_y = -500;
y = -500;
}
onClipEvent (enterFrame) {
_y = _y + (y - _y) * 0.25;
}
}
// unknown tag 88 length 62
movieClip 140 {
}
movieClip 151 {
}
// unknown tag 88 length 62
movieClip 154 {
}
movieClip 156 {
}
movieClip 157 {
frame 1 {
stop();
mostrar = 0;
titulo_txt.text = _parent._parent.nombreModulo;
titulo_txt.autoSize = true;
m_btn01.onRelease = function () {
_parent._parent.contenedor.loadMovie('contenido/01.swf');
_parent._parent.pagActual = 1;
_parent._parent.noMENU();
_parent._parent.btnReload.enabled = true;
_parent._parent.btnAnterior.enabled = true;
_parent._parent.btnSiguiente.enabled = true;
};
m_btn02.onRelease = function () {
_parent._parent.contenedor.loadMovie('contenido/02.swf');
_parent._parent.pagActual = 2;
_parent._parent.noMENU();
_parent._parent.btnReload.enabled = true;
_parent._parent.btnAnterior.enabled = true;
_parent._parent.btnSiguiente.enabled = true;
};
m_btn03.onRelease = function () {
_parent._parent.contenedor.loadMovie('contenido/03.swf');
_parent._parent.pagActual = 3;
_parent._parent.noMENU();
_parent._parent.btnReload.enabled = true;
_parent._parent.btnAnterior.enabled = true;
_parent._parent.btnSiguiente.enabled = true;
};
m_btn04.onRelease = function () {
_parent._parent.contenedor.loadMovie('contenido/04.swf');
_parent._parent.pagActual = 4;
_parent._parent.noMENU();
_parent._parent.btnReload.enabled = true;
_parent._parent.btnAnterior.enabled = true;
_parent._parent.btnSiguiente.enabled = true;
};
m_btn05.onRelease = function () {
_parent._parent.contenedor.loadMovie('contenido/05.swf');
_parent._parent.pagActual = 5;
_parent._parent.noMENU();
_parent._parent.btnReload.enabled = true;
_parent._parent.btnAnterior.enabled = true;
_parent._parent.btnSiguiente.enabled = true;
};
m_btn06.onRelease = function () {
_parent._parent.contenedor.loadMovie('contenido/06.swf');
_parent._parent.pagActual = 6;
_parent._parent.noMENU();
_parent._parent.btnReload.enabled = true;
_parent._parent.btnAnterior.enabled = true;
_parent._parent.btnSiguiente.enabled = true;
};
m_btn07.onRelease = function () {
_parent._parent.contenedor.loadMovie('contenido/07.swf');
_parent._parent.pagActual = 7;
_parent._parent.noMENU();
_parent._parent.btnReload.enabled = true;
_parent._parent.btnAnterior.enabled = true;
_parent._parent.btnSiguiente.enabled = true;
};
m_btn08.onRelease = function () {
_parent._parent.contenedor.loadMovie('contenido/08.swf');
_parent._parent.pagActual = 8;
_parent._parent.noMENU();
_parent._parent.btnReload.enabled = true;
_parent._parent.btnAnterior.enabled = true;
_parent._parent.btnSiguiente.enabled = true;
};
}
}
movieClip 160 {
}
button 162 {
on (press) {
_parent.noMENU();
_parent.btnReload.enabled = true;
}
}
movieClip 165 {
}
instance mcMenu of movieClip 165 {
onClipEvent (load) {
y = -1000;
_y = -1000;
}
onClipEvent (enterFrame) {
_y = _y + (y - _y) * 0.3;
}
}
movieClip 168 {
}
movieClip 184 {
}
movieClip 187 {
}
movieClip 190 {
}
movieClip 193 {
}
movieClip 196 {
}
movieClip 199 {
}
movieClip 202 {
}
movieClip 204 {
}
movieClip 206 {
}
movieClip 209 {
}
movieClip 211 {
}
movieClip 213 {
}
movieClip 215 {
}
// unknown tag 88 length 63
movieClip 229 {
frame 1 {
stop();
this.onEnterFrame = function () {
if (reversa == true) {
prevFrame();
}
};
this.onRollOver = function () {
reversa = false;
play();
};
this.onRollOut = function () {
reversa = true;
};
}
frame 12 {
stop();
btnsig.onRelease = function () {
_parent.nextFrame();
};
}
}
movieClip 231 {
}
movieClip 237 {
}
movieClip 238 {
frame 1 {
stop();
this.onEnterFrame = function () {
if (reversa == true) {
prevFrame();
}
};
this.onRollOver = function () {
reversa = false;
play();
};
this.onRollOut = function () {
reversa = true;
};
}
frame 12 {
stop();
}
}
movieClip 242 {
frame 1 {
stop();
this.onEnterFrame = function () {
if (reversa == true) {
prevFrame();
}
};
this.onRollOver = function () {
reversa = false;
play();
};
this.onRollOut = function () {
reversa = true;
};
}
frame 12 {
stop();
}
}
movieClip 244 {
}
movieClip 247 {
}
movieClip 248 {
}
movieClip 249 {
}
movieClip 252 {
}
movieClip 254 {
}
movieClip 255 {
frame 1 {
if (_global.reproduciendo == undefined) {
_global.reproduciendo = true;
}
var audioActivo;
forma.gotoAndStop(1);
onRelease = function () {
_global.reproduciendo = !_global.reproduciendo;
if (_global.reproduciendo) {
forma.gotoAndStop(1);
audioActivo.gotoAndPlay(1);
return undefined;
}
stopAllSounds();
forma.gotoAndStop(2);
audioActivo.gotoAndStop(1);
};
_global.verificarAudio = function (audioToca) {
trace('entra Audio: ' + audioToca);
audioActivo = audioToca;
if (_global.reproduciendo == false) {
audioToca.gotoAndStop(1);
}
};
_global.terminarAudio = function (audioToca) {
trace('termina Audio: ' + audioToca);
audioToca.stop();
audioActivo = undefined;
};
}
}
// unknown tag 88 length 119
movieClip 263 {
}
movieClip 266 {
}
movieClip 267 {
}
movieClip 270 {
}
movieClip 274 {
}
movieClip 275 {
}
movieClip 283 {
}
movieClip 286 {
}
movieClip 287 {
frame 1 {
stop();
this.onEnterFrame = function () {
if (reversa == true) {
prevFrame();
}
};
this.onRollOver = function () {
reversa = false;
play();
};
this.onRollOut = function () {
reversa = true;
};
}
frame 12 {
stop();
}
}
movieClip 289 {
}
movieClip 291 {
}
movieClip 293 {
}
movieClip 294 {
frame 1 {
stop();
this.onEnterFrame = function () {
if (reversa == true) {
prevFrame();
}
};
this.onRollOver = function () {
reversa = false;
play();
};
this.onRollOut = function () {
reversa = true;
};
}
frame 12 {
stop();
}
}
movieClip 298 {
}
movieClip 299 {
frame 1 {
stop();
this.onEnterFrame = function () {
if (reversa == true) {
prevFrame();
}
};
this.onRollOver = function () {
reversa = false;
play();
};
this.onRollOut = function () {
reversa = true;
};
}
frame 12 {
stop();
}
}
movieClip 300 {
}
movieClip 301 {
}
movieClip 303 {
}
movieClip 304 {
frame 1 {
stop();
this.onEnterFrame = function () {
if (reversa == true) {
prevFrame();
}
};
this.onRollOver = function () {
reversa = false;
play();
};
this.onRollOut = function () {
reversa = true;
};
}
frame 12 {
stop();
}
}
movieClip 306 {
}
movieClip 307 {
frame 80 {
stop();
btnInicio.visible = true;
btnMenu.visible = true;
btnMaterial._visible = true;
btnGlosario._visible = true;
btnCerrar._visible = true;
}
}
movieClip 309 {
}
movieClip 315 {
}