Frame 2
stopAllSounds();
TextField.prototype.setFormat = function (tf) {
this.embedFonts = true;
this.setTextFormat(tf);
this.setNewTextFormat(tf);
};
var SO = SharedObject.getLocal("2Advanced_v5");
if ((enforce == "0") && (SO.data.lang != undefined)) {
lang = SO.data.lang;
}
_global.cur_lang = ((lang != undefined) ? (lang) : "en");
_global.cur_audio = ((SO.data.audio == "off") ? "off" : "on");
_global.cur_topnav = ((SO.data.topnav == "on") ? "on" : "off");
_global.relurl = "";
var sound = new Sound(this);
sound.setVolume(((_global.cur_audio == "on") ? 100 : 0));
var rstring = escape(new Date().getTime().toString());
_global.xmlservice = ((("getData.php?lang=" + _global.cur_lang) + "&rand=") + rstring) + "&args=";
Stage.align = "T";
Stage.scaleMode = "noscale";
Frame 5
if (_global.cur_audio == "on") {
myLoop = new Sound(myLoopMc);
myLoop.attachSound("myLoop01");
myLoopVolume = 0;
myLoop.setVolume(myLoopVolume);
this.onEnterFrame = function () {
if (fadeIn01 == 1) {
_root.myLoop.setVolume(myLoopVolume);
myLoopVolume = myLoopVolume + 1;
if (myLoopVolume > 40) {
fadeIn01 = 0;
}
}
if (fadeOut01 == 1) {
_root.myLoop.setVolume(myLoopVolume);
myLoopVolume = myLoopVolume - 1;
if (myLoopVolume < 1) {
delete this.onEnterFrame;
_root.myLoop.stop("myLoop01");
fadeOut01 = 0;
}
}
};
}
Frame 6
fadeIn01 = 1;
myLoop.start(0, 999);
Frame 37
_global.css = new TextField.StyleSheet();
_global.css.load("http://pandalove.2Advanced.com/dev/includes/flashstyle.css");
Frame 40
function checkstatus() {
var _local2 = this.getBytesLoaded();
var _local3 = this.getBytesTotal();
mainpreload.ptext.text = Math.round((_local2 / _local3) * 100) + "%";
if ((_local2 / _local3) != 1) {
return(undefined);
}
clearInterval(loadInt);
mainpreload.gotoAndPlay("hide");
play();
}
mainpreload.gotoAndPlay("show");
loadInt = setInterval(this, "checkstatus", 50);
Frame 105
function configready(c) {
gotoAndPlay ("loadtouts");
}
stop();
var uiloader = (new framework.XMLLoader());
uiloader.load(_global.xmlservice + "uiconfig");
uiloader.setCallBack(configready);
Frame 117
function toutsready(d) {
gotoAndPlay ("loadfontlibs");
}
stop();
var toutloader = (new framework.XMLLoader());
toutloader.load(_global.xmlservice + "touts");
toutloader.setCallBack(toutsready);
Frame 128
function fontxmlready(d) {
_global.FH.setCallBack(fontlibsready);
_global.FH.loadFonts(fontloader.getXML().firstChild);
}
function fontlibsready() {
trace("libraries ready");
play();
}
stop();
_global.FH = fonthandler;
var fontloader = (new framework.XMLLoader());
fontloader.load(_global.xmlservice + "fonts");
fontloader.setCallBack(fontxmlready);
Frame 143
function adjustLocation(ddl) {
trace("ADJUSTING LOCATION TO " + ddl);
if (ddl == null) {
_global.TE.engage([0], null);
} else {
var _local2 = PIN.getPath(ddl);
if (TE.getPath()[0] == _local2[0][0]) {
SECTION.shell.nav.expandToPath(_local2[0]);
}
_rdebug.text = "EXTRACTED ID: " + _local2[1];
_global.SECTIONPATH = _local2[0][0];
TE.engage(_local2[0], _local2[1]);
}
}
function waitForDDL() {
trace("\n\nINTERPRETING DDL PATH __.\n");
var _local2 = DDL.getDeepLink();
var _local1 = PIN.getPath(_local2);
TE.engage(_local1[0], _local1[1]);
clearInterval(ddlId);
}
stop();
var DDL = (new framework.v5DDL("updateFlashHistory", null, adjustLocation));
var TE = (new framework.TransitionEngine(v5UI.transitionshell));
var PIN = (new framework.PathInterpreter());
_global.TE = TE;
_global.DDL = DDL;
_global.PIN = PIN;
_global.MATTE = mattes;
_global.V5UI = v5UI;
_global.SHELL = v5UI.transitionshell;
_global.CSHELL = cshell;
_global.SOUND = soundcontrol;
_global.SECTIONPATH = 0;
_global.SECTIONNAME;
soundcontrol.setExplicit(_global.cur_audio);
PIN.buildPathLookup(uiloader.getNodes("sections"));
v5UI.setData(toutloader);
v5UI.configure(uiloader);
var ddlId = setInterval(this, "waitForDDL", 500);
Frame 153
_root.fadeOut01 = 1;
Symbol 3 MovieClip [FUIComponentSymbol] Frame 1
#initclip 2
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._width = (this.deadPreview._height = 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 _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
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 _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
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, _local4);
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 == "") {
return(undefined);
}
var _local19 = parseInt(value);
if (!isNaN(_local19)) {
value = _local19;
}
var _local18 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local18)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.substring(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local15 = propName.substring(4, propName.length);
var _local17 = _local15.substring(0, 1);
_local17 = _local17.toLowerCase();
_local15 = _local17 + _local15.substring(1, _local15.length);
this.textStyle[_local15] = value;
this.invalidate("setSize");
} else {
for (var _local16 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local16]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local18;
}
};
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 _local4 = new Color(skinMCRef);
_local4.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 _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 4 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 5 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 6 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 7 MovieClip [UpArrow] Frame 1
stop();
Symbol 7 MovieClip [UpArrow] Frame 2
stop();
Symbol 7 MovieClip [UpArrow] Frame 3
stop();
Symbol 8 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 11 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 12 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 13 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 14 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 15 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 16 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 17 MovieClip [DownArrow] Frame 1
stop();
Symbol 17 MovieClip [DownArrow] Frame 2
stop();
Symbol 17 MovieClip [DownArrow] Frame 3
stop();
Symbol 33 MovieClip Frame 1
_visible = false;
Symbol 33 MovieClip Frame 5
stop();
Symbol 33 MovieClip Frame 10
_visible = true;
Symbol 33 MovieClip Frame 11
_parent.fadeOutImage();
Symbol 33 MovieClip Frame 29
stop();
_parent.preloadShowDone();
Symbol 33 MovieClip Frame 48
_parent.preloadHideDone();
Symbol 33 MovieClip Frame 49
_visible = false;
stop();
Symbol 33 MovieClip Frame 69
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 2
stop();
Symbol 51 MovieClip Frame 3
stop();
Symbol 51 MovieClip Frame 4
stop();
Symbol 51 MovieClip Frame 5
stop();
Symbol 51 MovieClip Frame 6
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 7
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 7
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 7
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 7
stop();
Symbol 75 MovieClip [mc-ImagePlayer] Frame 1
#initclip 1
Object.registerClass("mc-ImagePlayer", base.AtmoveClip);
#endinitclip
function init() {
flush();
ImageViewer.controlFirst.enabled = false;
ImageViewer.bcontrolFirst.enabled = false;
ImageViewer.controlPrev.enabled = false;
ImageViewer.bcontrolPrev.enabled = false;
ImageViewer.controlFirst.controlIcon._alpha = 50;
ImageViewer.bcontrolFirst.controlIcon._alpha = 50;
ImageViewer.controlPrev.controlIcon._alpha = 50;
ImageViewer.bcontrolPrev.controlIcon._alpha = 50;
ImageViewer.controlLast.enabled = true;
ImageViewer.controlNext.enabled = true;
ImageViewer.bcontrolLast.enabled = true;
ImageViewer.bcontrolNext.enabled = true;
ImageViewer.controlLast.controlIcon._alpha = 100;
ImageViewer.controlNext.controlIcon._alpha = 100;
ImageViewer.bcontrolLast.controlIcon._alpha = 100;
ImageViewer.bcontrolNext.controlIcon._alpha = 100;
ImageViewer.imagePagingMessage = "Image 1 of " + ImageViewer.playlistXML.childNodes.length;
ImageViewer.setupButtons();
}
function fadeIn() {
ImageViewer.tweenCount--;
trace("Tween Count = " + ImageViewer.tweenCount);
if (ImageViewer.tweenCount == 0) {
ImageViewer.imageMask._width = ImageViewer.imageBase._width;
ImageViewer.imageMask._height = ImageViewer.imageBase._height;
ImageViewer.imageStage.imageHolder.setMask(ImageViewer.imageMask);
ImageViewer.imageStage.imageHolder._visible = true;
var _local1 = new mx.transitions.Tween(ImageViewer.imageStage.imageHolder, "_alpha", tweenType, 0, 100, 15, false);
}
}
function fadeOutImage() {
var _local1 = new mx.transitions.Tween(ImageViewer.imageStage.imageHolder, "_alpha", com.robertpenner.easing.Circ.easeIn, 100, 0, 15, false);
}
function killImage() {
ImageViewer.imageStage.imageHolder._visible = false;
}
function flush() {
ImageViewer.imageStage.imageHolder._visible = false;
ImageViewer.imageStage.imageHolder.unloadMovie();
ImageViewer.imageStage.imageHolder.removeMovieClip();
ImageViewer.controlDisplayTitle.format_imagePaging._visible = false;
ImageViewer.ncontrolDisplayTitle.format_imagePaging._visible = false;
}
function preloadShowDone() {
ImageViewer.loadImage(nextImage);
}
function preloadHideDone() {
var _local2 = ImageViewer.imageStage.imageHolder._width;
var _local1 = ImageViewer.imageStage.imageHolder._height;
ImageViewer.tweenImageViewer(_local2, _local1);
ImageViewer.controller.onImageReady(_local2, _local1);
}
setForSection = function (val) {
trace("setting for section");
ImageViewer.id = val;
ImageViewer.skinUI(ImageViewer.lightSkin_array, ImageViewer.lightSkinValue_array);
ImageViewer.skinUI(ImageViewer.colorSkin_array, ImageViewer.colorSkinValue_array);
ImageViewer.skinUI(ImageViewer.darkSkin_array, ImageViewer.darkSkinValue_array);
controlDisplay_mc.controlDisplayBackground_mc.gotoAndStop(val + 1);
bcontrolDisplay_mc.controlDisplayBackground_mc.gotoAndStop(val + 1);
};
ImageViewer = new Object();
ImageViewer.imageStage = this.imageStage_mc;
ImageViewer.imageBase = this.imageStage_mc.imageBase_mc;
ImageViewer.imageStroke = this.imageStage_mc.imageStroke_mc;
ImageViewer.imageMask = this.imageStage_mc.imageMask_mc;
ImageViewer.viewerHeaderBase = this.viewerHeader_mc.viewerHeaderBase_mc;
ImageViewer.viewerHeaderTitle = this.viewerHeader_mc.viewerHeaderTitle_mc;
ImageViewer.controlFirst = this.controlFirst_mc;
ImageViewer.controlPrev = this.controlPrev_mc;
ImageViewer.controlDisplayBase = this.controlDisplay_mc.controlDisplayBase_mc;
ImageViewer.controlDisplay = this.controlDisplay_mc;
ImageViewer.controlDisplayTitle = this.controlDisplay_mc.controlDisplayTitle_mc;
ImageViewer.controlNext = this.controlNext_mc;
ImageViewer.controlLast = this.controlLast_mc;
ImageViewer.bcontrolFirst = this.bcontrolFirst_mc;
ImageViewer.bcontrolPrev = this.bcontrolPrev_mc;
ImageViewer.bcontrolDisplayBase = this.bcontrolDisplay_mc.controlDisplayBase_mc;
ImageViewer.bcontrolDisplay = this.bcontrolDisplay_mc;
ImageViewer.bcontrolDisplayTitle = this.bcontrolDisplay_mc.controlDisplayTitle_mc;
ImageViewer.bcontrolNext = this.bcontrolNext_mc;
ImageViewer.bcontrolLast = this.bcontrolLast_mc;
ImageViewer.loadingSeq = this.loadingSeq_mc;
ImageViewer.controlPadding = 2;
ImageViewer.tweenCount = 0;
ImageViewer.playlistXML = null;
ImageViewer.controller = null;
ImageViewer.imageIndex = 0;
var nextImage = null;
this.controlDisplay_mc.controlDisplayBackground_mc.setMask(this.controlDisplay_mc.controlDisplayBase_mc);
this.bcontrolDisplay_mc.controlDisplayBackground_mc.setMask(this.bcontrolDisplay_mc.controlDisplayBase_mc);
ImageViewer.lightSkin_array = [ImageViewer.viewerHeaderTitle, ImageViewer.controlFirst.controlIcon, ImageViewer.controlPrev.controlIcon, ImageViewer.controlNext.controlIcon, ImageViewer.controlLast.controlIcon, ImageViewer.bcontrolFirst.controlIcon, ImageViewer.bcontrolPrev.controlIcon, ImageViewer.bcontrolNext.controlIcon, ImageViewer.bcontrolLast.controlIcon];
ImageViewer.colorSkin_array = [ImageViewer.controlDisplayTitle, ImageViewer.bcontrolDisplayTitle, ImageViewer.imageStroke];
ImageViewer.darkSkin_array = [ImageViewer.viewerHeaderBase, ImageViewer.imageBase, ImageViewer.controlFirst.controlBase_mc, ImageViewer.controlPrev.controlBase_mc, ImageViewer.controlNext.controlBase_mc, ImageViewer.controlLast.controlBase_mc, ImageViewer.bcontrolFirst.controlBase_mc, ImageViewer.bcontrolPrev.controlBase_mc, ImageViewer.bcontrolNext.controlBase_mc, ImageViewer.bcontrolLast.controlBase_mc];
ImageViewer.lightSkinValue_array = [12572913, 13760459, 16770193, 16772591, 16239326, 16777215];
ImageViewer.colorSkinValue_array = [2781624, 1294592, 14200884, 14549508, 14505616, 9680586];
ImageViewer.darkSkinValue_array = [858418, 5378, 1380096, 2294016, 2294295, 2239282];
ImageViewer.setController = function (c) {
ImageViewer.controller = c;
};
ImageViewer.skinUI = function (targetArray, skinValues) {
i = 0;
while (i < targetArray.length) {
l = targetArray[i];
var _local2 = new flash.geom.ColorTransform();
_local2.rgb = skinValues[this.id];
var _local3 = new flash.geom.Transform(l);
_local3.colorTransform = _local2;
i++;
}
};
ImageViewer.setTitle = function (t, f) {
viewerHeader_mc.viewerHeaderTitle_mc.format_title.text = t;
viewerHeader_mc.viewerHeaderTitle_mc.format_title.f = f;
_global.FH.applyAllFonts(viewerHeader_mc.viewerHeaderTitle_mc);
};
ImageViewer.tweenImageViewer = function (newWidth, newHeight, speed) {
tweenSpeed = ((speed != undefined) ? (speed) : 20);
tweenType = com.robertpenner.easing.Circ.easeInOut;
if ((!(this.imageStroke._width === newWidth)) && (!(this.imageStroke._height === newHeight))) {
var _local7 = new mx.transitions.Tween(this.imageStroke, "_width", tweenType, this.imageStroke._width, newWidth + 2, tweenSpeed, false);
var _local2 = new mx.transitions.Tween(this.imageStroke, "_height", tweenType, this.imageStroke._height, newHeight + 2, tweenSpeed, false);
_local7.onMotionChanged = function () {
ImageViewer.imageBase._width = this.position - 2;
};
_local2.onMotionChanged = function () {
ImageViewer.imageBase._height = this.position - 2;
};
ImageViewer.tweenCount++;
_local2.onMotionFinished = function () {
fadeIn();
};
var _local6 = new mx.transitions.Tween(this.viewerHeaderBase, "_width", tweenType, this.viewerHeaderBase._width, newWidth + 2, tweenSpeed, false);
_local6.onMotionChanged = function () {
ImageViewer.bcontrolDisplayBase._width = this.position;
ImageViewer.controlDisplayBase._width = this.position;
ImageViewer.viewerHeaderTitle._x = (-(this.position / 2)) + 3;
};
var _local4 = new mx.transitions.Tween(this.bcontrolDisplay, "_y", tweenType, this.bcontrolDisplay._y, newHeight + 4, tweenSpeed, false);
_local4.onMotionChanged = function () {
ImageViewer.bcontrolFirst._y = this.position;
ImageViewer.bcontrolLast._y = this.position;
ImageViewer.bcontrolNext._y = this.position;
ImageViewer.bcontrolPrev._y = this.position;
};
} else {
ImageViewer.imageStage.imageHolder.setMask(ImageViewer.imageMask);
ImageViewer.imageStage.imageHolder._visible = true;
var _local9 = new mx.transitions.Tween(ImageViewer.imageStage.imageHolder, "_alpha", tweenType, 0, 100, 15, false);
}
};
imageLoader.reset = function () {
ImageViewer.imageStage.imageHolder.unloadMovie();
ImageViewer.tweenImageViewer(200, 200, 25);
};
ImageLoader.fadeInImage = function () {
trace("here!!!!");
tweenSpeed = 15;
tweenType = mx.transitions.easing.Strong.easeInOut;
};
ImageViewer.loadImage = function (imageToLoad) {
var _local1 = new Object();
_local1.onLoadComplete = function (target_mc, httpStatus) {
};
_local1.onLoadError = function () {
preloader.gotoAndPlay("noresults");
};
_local1.onLoadInit = function (target_mc) {
target_mc._x = (-target_mc._width) / 2;
target_mc._alpha = 0;
target_mc._visible = false;
preloader.gotoAndPlay("hide");
};
var _local2 = new MovieClipLoader();
_local2.addListener(_local1);
ImageViewer.imageStage.createEmptyMovieClip("imageHolder", ImageViewer.imageStage.getNextHighestDepth());
_local2.loadClip(imageToLoad, ImageViewer.imageStage.imageHolder);
ImageViewer.setImageIndex();
};
var playlistXML = null;
ImageViewer.setPlaylist = function (iXML) {
playlistXML = iXML;
};
ImageViewer.loadPlaylist = function () {
ImageViewer.playlistXML = playlistXML;
ImageViewer.imageIndex = 0;
nextImage = playlistXML.childNodes[0].attributes.src;
trace("NUM IMAGES: " + playListXML);
if (ImageViewer.playlistXML.childNodes.length <= 1) {
ImageViewer.controlLast.enabled = false;
ImageViewer.controlNext.enabled = false;
ImageViewer.bcontrolLast.enabled = false;
ImageViewer.bcontrolNext.enabled = false;
ImageViewer.controlLast.controlIcon._alpha = 50;
ImageViewer.controlNext.controlIcon._alpha = 50;
ImageViewer.bcontrolLast.controlIcon._alpha = 50;
ImageViewer.bcontrolNext.controlIcon._alpha = 50;
} else {
ImageViewer.controlLast.enabled = true;
ImageViewer.controlNext.enabled = true;
ImageViewer.bcontrolLast.enabled = true;
ImageViewer.bcontrolNext.enabled = true;
ImageViewer.controlLast.controlIcon._alpha = 100;
ImageViewer.controlNext.controlIcon._alpha = 100;
ImageViewer.bcontrolLast.controlIcon._alpha = 100;
ImageViewer.bcontrolNext.controlIcon._alpha = 100;
}
preloader.gotoAndPlay("show");
};
ImageViewer.setupButtons = function () {
controlButton_array = [ImageViewer.controlFirst, ImageViewer.controlPrev, ImageViewer.controlNext, ImageViewer.controlLast, ImageViewer.bcontrolFirst, ImageViewer.bcontrolPrev, ImageViewer.bcontrolNext, ImageViewer.bcontrolLast];
i = 0;
while (i < controlButton_array.length) {
l = controlButton_array[i];
l.onRollOver = function () {
this.controlIcon.gotoAndPlay("over");
};
l.onReleaseOutside = (l.onPress = (l.onRollOut = function () {
this.controlIcon.gotoAndPlay("out");
}));
i++;
}
};
ImageViewer.setImageIndex = function () {
ImageViewer.imagePagingMessage = (("Image " + (ImageViewer.imageIndex + 1)) + " of ") + ImageViewer.playlistXML.childNodes.length;
ImageViewer.controlDisplayTitle.format_imagePaging._visible = true;
ImageViewer.ncontrolDisplayTitle.format_imagePaging._visible = true;
ImageViewer.controlDisplayTitle.format_imagePaging.text = ImageViewer.imagePagingMessage;
ImageViewer.bcontrolDisplayTitle.format_imagePaging.text = ImageViewer.imagePagingMessage;
ImageViewer.controlDisplayTitle.format_imagePaging.autoSize = true;
ImageViewer.bcontrolDisplayTitle.format_imagePaging.autoSize = true;
trace("ImageViewer.controlDisplayTitle._width = " + ImageViewer.controlDisplayTitle._width);
};
ImageViewer.firstImage = function () {
ImageViewer.imageIndex = 0;
nextImage = ImageViewer.playlistXML.childNodes[ImageViewer.imageIndex].attributes.src;
preloader.gotoAndPlay("show");
ImageViewer.controlLast.enabled = true;
ImageViewer.controlNext.enabled = true;
ImageViewer.bcontrolLast.enabled = true;
ImageViewer.bcontrolNext.enabled = true;
ImageViewer.controlLast.controlIcon._alpha = 100;
ImageViewer.controlNext.controlIcon._alpha = 100;
ImageViewer.bcontrolLast.controlIcon._alpha = 100;
ImageViewer.bcontrolNext.controlIcon._alpha = 100;
ImageViewer.controlFirst.enabled = false;
ImageViewer.controlPrev.enabled = false;
ImageViewer.bcontrolFirst.enabled = false;
ImageViewer.bcontrolPrev.enabled = false;
ImageViewer.controlFirst.controlIcon._alpha = 50;
ImageViewer.bcontrolFirst.controlIcon._alpha = 50;
ImageViewer.controlPrev.controlIcon._alpha = 50;
ImageViewer.bcontrolPrev.controlIcon._alpha = 50;
};
ImageViewer.prevImage = function () {
ImageViewer.imageIndex--;
nextImage = ImageViewer.playlistXML.childNodes[ImageViewer.imageIndex].attributes.src;
preloader.gotoAndPlay("show");
ImageViewer.controlLast.enabled = true;
ImageViewer.controlNext.enabled = true;
ImageViewer.bcontrolLast.enabled = true;
ImageViewer.bcontrolNext.enabled = true;
ImageViewer.controlLast.controlIcon._alpha = 100;
ImageViewer.controlNext.controlIcon._alpha = 100;
ImageViewer.bcontrolLast.controlIcon._alpha = 100;
ImageViewer.bcontrolNext.controlIcon._alpha = 100;
if (ImageViewer.imageIndex == 0) {
ImageViewer.controlFirst.enabled = false;
ImageViewer.controlPrev.enabled = false;
ImageViewer.bcontrolFirst.enabled = false;
ImageViewer.bcontrolPrev.enabled = false;
ImageViewer.controlFirst.controlIcon._alpha = 50;
ImageViewer.bcontrolFirst.controlIcon._alpha = 50;
ImageViewer.controlPrev.controlIcon._alpha = 50;
ImageViewer.bcontrolPrev.controlIcon._alpha = 50;
}
};
ImageViewer.nextImage = function () {
ImageViewer.imageIndex++;
trace("go forward " + ImageViewer.imageIndex);
nextImage = ImageViewer.playlistXML.childNodes[ImageViewer.imageIndex].attributes.src;
preloader.gotoAndPlay("show");
ImageViewer.controlFirst.enabled = true;
ImageViewer.controlPrev.enabled = true;
ImageViewer.bcontrolFirst.enabled = true;
ImageViewer.bcontrolPrev.enabled = true;
ImageViewer.controlFirst.controlIcon._alpha = 100;
ImageViewer.bcontrolFirst.controlIcon._alpha = 100;
ImageViewer.controlPrev.controlIcon._alpha = 100;
ImageViewer.bcontrolPrev.controlIcon._alpha = 100;
if (ImageViewer.imageIndex >= (ImageViewer.playlistXML.childNodes.length - 1)) {
ImageViewer.controlLast.enabled = false;
ImageViewer.controlNext.enabled = false;
ImageViewer.bcontrolLast.enabled = false;
ImageViewer.bcontrolNext.enabled = false;
ImageViewer.controlLast.controlIcon._alpha = 50;
ImageViewer.controlNext.controlIcon._alpha = 50;
ImageViewer.bcontrolLast.controlIcon._alpha = 50;
ImageViewer.bcontrolNext.controlIcon._alpha = 50;
}
};
ImageViewer.lastImage = function () {
ImageViewer.imageIndex = ImageViewer.playlistXML.childNodes.length - 1;
trace(ImageViewer.imageIndex);
nextImage = ImageViewer.playlistXML.childNodes[ImageViewer.imageIndex].attributes.src;
preloader.gotoAndPlay("show");
ImageViewer.controlFirst.enabled = true;
ImageViewer.controlPrev.enabled = true;
ImageViewer.bcontrolFirst.enabled = true;
ImageViewer.bcontrolPrev.enabled = true;
ImageViewer.controlFirst.controlIcon._alpha = 100;
ImageViewer.bcontrolFirst.controlIcon._alpha = 100;
ImageViewer.controlPrev.controlIcon._alpha = 100;
ImageViewer.bcontrolPrev.controlIcon._alpha = 100;
ImageViewer.controlLast.enabled = false;
ImageViewer.controlNext.enabled = false;
ImageViewer.bcontrolLast.enabled = false;
ImageViewer.bcontrolNext.enabled = false;
ImageViewer.controlLast.controlIcon._alpha = 50;
ImageViewer.controlNext.controlIcon._alpha = 50;
ImageViewer.bcontrolLast.controlIcon._alpha = 50;
ImageViewer.bcontrolNext.controlIcon._alpha = 50;
};
ImageViewer.controlFirst.onRelease = function () {
ImageViewer.firstImage();
};
ImageViewer.bcontrolFirst.onRelease = ImageViewer.controlFirst.onRelease;
ImageViewer.controlPrev.onRelease = function () {
ImageViewer.prevImage();
};
ImageViewer.bcontrolPrev.onRelease = ImageViewer.controlPrev.onRelease;
ImageViewer.controlNext.onRelease = function () {
ImageViewer.nextImage();
};
ImageViewer.bcontrolNext.onRelease = ImageViewer.controlNext.onRelease;
ImageViewer.controlLast.onRelease = function () {
ImageViewer.lastImage();
};
ImageViewer.bcontrolLast.onRelease = ImageViewer.controlLast.onRelease;
Symbol 78 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 79 MovieClip [FScrollBarSymbol] Frame 1
#initclip 3
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 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) {
return(undefined);
}
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.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
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.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = true;
this.thumbHeight = 12;
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;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, 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 _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
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) {
return(undefined);
}
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.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 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();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
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.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 _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.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);
} else 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)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
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 _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 83 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 83 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 87 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 4
function FScrollPaneClass() {
function boolToString(str) {
if (str == "false") {
return(false);
}
if (str == "true") {
return(true);
}
return(str);
}
this.init();
this.width = this._width;
this.height = this._height;
this._xscale = (this._yscale = 100);
this.contentWidth = (this.contentHeight = 0);
if (this.hScroll == undefined) {
this.hScroll = (this.vScroll = "auto");
this.dragContent = false;
}
this.offset = new Object();
this.vScroll = boolToString(this.vScroll);
this.hScroll = boolToString(this.hScroll);
this.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:this.styleTable});
this.hScrollBar_mc.setHorizontal(true);
this.hScrollBar_mc.setSmallScroll(5);
this.hScrollBar_mc.setChangeHandler("onScroll", this);
this.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:this.styleTable});
this.vScrollBar_mc.setSmallScroll(5);
this.vScrollBar_mc.setChangeHandler("onScroll", this);
this.setSize(this.width, this.height);
if (this.scrollContent != "") {
this.setScrollContent(this.scrollContent);
}
this.setDragContent(this.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var _local3 = ((this.hScrollBar_mc == undefined) ? 0 : (this.hScrollBar_mc.getScrollPosition()));
var _local2 = ((this.vScrollBar_mc == undefined) ? 0 : (this.vScrollBar_mc.getScrollPosition()));
return({x:_local3, y:_local2});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
this.offset.x = 0;
this.offset.y = 0;
if (this.content_mc != undefined) {
if (target != this.content_mc) {
this.content_mc._visible = false;
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
}
}
if (typeof(target) == "string") {
this.attachMovie(target, "tmp_mc", 3);
this.content_mc = this.tmp_mc;
} else if (target == undefined) {
this.content_mc.unloadMovie();
} else {
this.content_mc = target;
}
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
var _local3 = this.content_mc.getBounds(this);
this.offset.x = -_local3.xMin;
this.offset.y = -_local3.yMin;
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
this.contentWidth = this.content_mc._width;
this.contentHeight = this.content_mc._height;
this.content_mc.setMask(this.mask_mc);
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
if (((arguments.length < 2) || (isNaN(w))) || (isNaN(h))) {
return(undefined);
}
super.setSize(w, h);
this.width = Math.max(w, 60);
this.height = Math.max(h, 60);
this.boundingBox_mc._xscale = 100;
this.boundingBox_mc._yscale = 100;
this.boundingBox_mc._width = this.width;
this.boundingBox_mc._height = this.height;
this.setHandV();
this.initScrollBars();
if (this.mask_mc == undefined) {
this.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
this.mask_mc._xscale = 100;
this.mask_mc._yscale = 100;
this.mask_mc._width = this.hWidth;
this.mask_mc._height = this.vHeight;
this.mask_mc._alpha = 0;
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
x = Math.max(this.hScrollBar_mc.minPos, x);
x = Math.min(this.hScrollBar_mc.maxPos, x);
y = Math.max(this.vScrollBar_mc.minPos, y);
y = Math.min(this.vScrollBar_mc.maxPos, y);
this.hScrollBar_mc.setScrollPosition(x);
this.vScrollBar_mc.setScrollPosition(y);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
this.content_mc._visible = 0;
this.loadContent.duplicateMovieClip("loadTemp", 3);
this.dupeFlag = true;
this.contentLoaded = function () {
this.loadReady = false;
this.content_mc = this.loadTemp;
this.refreshPane();
this.executeCallBack();
};
this.setChangeHandler(handler, location);
this.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
this.hScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
this.vScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
if (dragFlag) {
this.boundingBox_mc.useHandCursor = true;
this.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
this.boundingBox_mc.tabEnabled = false;
this.boundingBox_mc.onRelease = (this.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete this.boundingBox_mc.onPress;
this.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
if ((((this.contentHeight - this.height) > 2) && (this.vScroll != false)) || (this.vScroll == true)) {
this.hWidth = this.width - this.vScrollBar_mc._width;
} else {
this.hWidth = this.width;
}
if ((((this.contentWidth - this.width) > 2) && (this.hScroll != false)) || (this.hScroll == true)) {
this.vHeight = this.height - this.hScrollBar_mc._height;
} else {
this.vHeight = this.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
this.tabFocused = false;
this.myOnSetFocus();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
this.onMouseMove = function () {
this.scrollXMove = this.lastX - this._xmouse;
this.scrollYMove = this.lastY - this._ymouse;
this.scrollXMove = this.scrollXMove + this.hScrollBar_mc.getScrollPosition();
this.scrollYMove = this.scrollYMove + this.vScrollBar_mc.getScrollPosition();
this.setScrollPosition(this.scrollXMove, this.scrollYMove);
if ((this.scrollXMove < this.hScrollBar_mc.maxPos) && (this.scrollXMove > this.hScrollBar_mc.minPos)) {
this.lastX = this._xmouse;
}
if ((this.scrollYMove < this.vScrollBar_mc.maxPos) && (this.scrollYMove > this.vScrollBar_mc.minPos)) {
this.lastY = this._ymouse;
}
this.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
this.hScrollBar_mc._y = this.height - this.hScrollBar_mc._height;
this.hScrollBar_mc.setSize(this.hWidth);
this.hScrollBar_mc.setScrollProperties(this.hWidth, 0, this.contentWidth - this.hWidth);
this.vScrollBar_mc._visible = ((this.hWidth == this.width) ? false : true);
this.vScrollBar_mc._x = this.width - this.vScrollBar_mc._width;
this.vScrollBar_mc.setSize(this.vHeight);
this.vScrollBar_mc.setScrollProperties(this.vHeight, 0, this.contentHeight - this.vHeight);
this.hScrollBar_mc._visible = ((this.vHeight == this.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = component.getScrollPosition();
var _local4 = ((component._name == "hScrollBar_mc") ? "x" : "y");
if (component._name == "hScrollBar_mc") {
this.content_mc._x = (-_local2) + this.offset.x;
} else {
this.content_mc._y = (-_local2) + this.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local3 = this.hScrollBar_mc.getScrollPosition();
var _local2 = this.vScrollBar_mc.getScrollPosition();
if (this.hScrollBar_mc.maxPos > this.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
this.setScrollPosition(_local3 - 3, _local2);
} else if (Key.isDown(39)) {
this.setScrollPosition(_local3 + 3, _local2);
}
}
if (this.vScrollBar_mc.maxPos > this.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
this.setScrollPosition(_local3, _local2 - 3);
} else if (Key.isDown(40)) {
this.setScrollPosition(_local3, _local2 + 3);
} else if (Key.isDown(34)) {
this.setScrollPosition(_local3, _local2 + this.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
this.setScrollPosition(_local3, _local2 - this.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 79 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 87 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 84 MovieClip "loadContent" in Symbol 87 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 107 MovieClip Frame 1
stop();
this._visible = false;
Symbol 107 MovieClip Frame 10
this._visible = true;
Symbol 107 MovieClip Frame 42
stop();
Symbol 107 MovieClip Frame 60
stop();
this._visible = false;
Symbol 142 MovieClip Frame 43
stop();
Symbol 142 MovieClip Frame 64
stop();
_global.MATTE.show();
Symbol 920 MovieClip [__Packages.com.robertpenner.easing.Circ] Frame 0
class com.robertpenner.easing.Circ
{
function Circ () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
}
Symbol 921 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 922 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 923 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 924 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 925 MovieClip [__Packages.base.AtmoveClip] Frame 0
class base.AtmoveClip extends MovieClip
{
var _trigger, _trigParam1, _trigParam2, _easeProps, _easeBegin, _easeEnd, _easeStartTime, _easeEndTime, _easeTime, _atZero, _amountDone, _doBounce, _easeFunc, _option1, _option2, _event, _useprop, filters, _thiscolor, _startcolor, _endcolor, _time, _speed, _blendincrement, onEnterFrame, _thisease, _prevease;
function AtmoveClip () {
super();
initEase();
}
function onEaseDone(e) {
}
function initEase(e) {
_trigger = null;
_trigParam1 = null;
_trigParam2 = null;
_easeProps = new Array();
_easeBegin = new Array();
_easeEnd = new Array();
_easeStartTime = new Array();
_easeEndTime = new Array();
_easeTime = new Array();
_atZero = new Array();
_amountDone = 0;
_doBounce = false;
_easeFunc = com.robertpenner.easing.Circ.easeOut;
_option1 = 0;
_option2 = 0;
_event = e;
}
function setTrigger(trig, param1, param2) {
if (trig != undefined) {
_trigger = trig;
_trigParam1 = param1;
_trigParam2 = param2;
}
}
function setEaseFunc(func, op1, op2) {
_easeFunc = func;
if (op1 != undefined) {
_option1 = op1;
}
if (op2 != undefined) {
_option2 = op2;
}
}
function addPropValues(prop, b, e, st, et) {
_easeProps[_easeProps.length] = prop;
_easeBegin[_easeBegin.length] = b;
_easeEnd[_easeEnd.length] = e;
if (st == undefined) {
st = 0;
}
if (et == undefined) {
et = 100;
}
_easeStartTime[_easeStartTime.length] = st;
_easeEndTime[_easeEndTime.length] = et;
}
function useMotionBlur(usex, usey, useprop, blurmult, qual) {
_useblur = true;
_usex = usex;
_usey = usey;
_blurmult = blurmult;
_useprop = useprop;
if (qual == undefined) {
qual = 1;
}
if (qual > 15) {
qual = 15;
}
var _local3 = [];
_local3[0] = new flash.filters.BlurFilter(0, 0, qual);
filters = _local3;
}
function useColorFade(c) {
_blendpercent = 0;
_thiscolor = new Color(this);
_startcolor = _thiscolor.getRGB();
_endcolor = c;
_usecolor = true;
}
function go(speed) {
_time = 0;
_speed = speed;
_blendincrement = 1 / speed;
var _local2 = _easeProps.length - 1;
while (_local2 >= 0) {
_easeTime[_local2] = 0;
_easeStartTime[_local2] = Math.round((_easeStartTime[_local2] / 100) * speed);
_easeEndTime[_local2] = Math.round((_easeEndTime[_local2] / 100) * speed);
_atZero[_local2] = false;
_local2--;
}
delete onEnterFrame;
onEnterFrame = _ease;
}
function _ease() {
var _local3 = Math.ceil;
if (_time <= _speed) {
var _local2 = _easeProps.length - 1;
while (_local2 >= 0) {
if ((_time >= _easeStartTime[_local2]) && (_time <= _easeEndTime[_local2])) {
_thisease = _local3(_easeFunc(_easeTime[_local2], _easeBegin[_local2], _easeEnd[_local2], _easeEndTime[_local2] - _easeStartTime[_local2], _option1, _option2));
this[_easeProps[_local2]] = _thisease;
if (_useblur && (_easeProps[_local2] == _useprop)) {
_blurgap = Math.abs(_thisease - _prevease) * _blurmult;
_prevease = _thisease;
}
_easeTime[_local2]++;
}
_local2--;
}
if (_useblur && (_time < _local3(_speed / 2))) {
applyMotionBlur(1);
} else if (_useblur && (_time >= _local3(_speed / 2))) {
applyMotionBlur(-1);
}
if (_usecolor) {
applyColorFade();
}
} else {
delete onEnterFrame;
onEaseDone(_event);
filters = [];
_thiscolor.setRGB(_endcolor);
_useblur = false;
_usecolor = false;
}
_time++;
updateAfterEvent();
}
function applyMotionBlur(dir) {
var _local2 = filters;
if (_usex) {
_local2[0].blurX = _blurgap * dir;
}
if (_usey) {
_local2[0].blurY = _blurgap * dir;
}
filters = _local2;
}
function applyColorFade(dir) {
_blendpercent = _blendpercent + _blendincrement;
blendRGB(_startcolor, _endcolor, _blendpercent);
}
function blendRGB(c1, c2, t) {
if (arguments.length == 2) {
t = c2;
c2 = _thiscolor.getRGB();
}
if (t < -1) {
t = -1;
} else if (t > 1) {
t = 1;
}
if (t < 0) {
t = 1 + t;
}
c1 = {rb:c1 >> 16, gb:(c1 >> 8) & 255, bb:c1 & 255};
c2 = {rb:c2 >> 16, gb:(c2 >> 8) & 255, bb:c2 & 255};
var _local6 = (((c1.rb + ((c2.rb - c1.rb) * t)) << 16) | ((c1.gb + ((c2.gb - c1.gb) * t)) << 8)) | (c1.bb + ((c2.bb - c1.bb) * t));
_thiscolor.setRGB(_local6);
return(_local6);
}
var _useblur = false;
var _usex = false;
var _usey = false;
var _blurmult = 0;
var _blurgap = 0;
var _usecolor = false;
var _blendpercent = 0;
}
Symbol 926 MovieClip [__Packages.base.RollScroll] Frame 0
class base.RollScroll extends MovieClip
{
var scrollpad, itemlist, scrollInt, gotoAndPlay, scrollpane;
function RollScroll () {
super();
scrollpad._visible = false;
}
function cleanup() {
var _local2 = 0;
while (_local2 < itemlist.length) {
itemlist[_local2]._visible = false;
itemlist[_local2++].removeMovieClip();
}
itemlist = [];
scrollpad._visible = false;
clearInterval(scrollInt);
}
function addItem(item) {
itemlist.push(item);
}
function startscroll() {
(gotoAndPlay("show"));// not popped
scrollpad._visible = true;
scrollInt = setInterval(this, "scroll", 1);
}
function scroll() {
if (scrollpad.hitTest(_root._xmouse, _root._ymouse, false)) {
var _local3 = scrollpad._ymouse / scrollpad._height;
if (_local3 < 0) {
_local3 = 0;
}
if (_local3 > 1) {
_local3 = 1;
}
var _local4 = (-_local3) * (scrollpane._height - scrollpad._height);
scrollpane._y = _local4 - ((_local4 - scrollpane._y) / speed);
}
updateAfterEvent();
}
var speed = 1.2;
}
Symbol 927 MovieClip [__Packages.base.NavItem] Frame 0
class base.NavItem extends base.AtmoveClip
{
var gotoAndPlay;
function NavItem () {
super();
}
function onRollOver() {
(gotoAndPlay("rollover"));// not popped
}
function onRollOut() {
(gotoAndPlay("rollout"));// not popped
}
function onReleaseOutside() {
(gotoAndPlay("rollout"));// not popped
}
function onRelease() {
(gotoAndPlay("hit"));// not popped
}
}
Symbol 928 MovieClip [__Packages.framework.PathItem] Frame 0
class framework.PathItem extends base.NavItem
{
var ddlpath, pathid;
function PathItem () {
super();
}
function onRollOver() {
super.onRollOver();
}
function onRollOut() {
super.onRollOut();
}
function onRelease() {
if (_global.TE.getPath()[0] == path[0]) {
_global.SECTION.shell.nav.expandToPath(path);
}
trace("+PATH ENGAGE+ going to " + ddlpath);
_global.DDL.setDeepLink(ddlpath);
_global.TE.engage(path, pathid);
super.onRelease();
}
function setPathFromArray(p, id) {
path = p;
pathid = id;
ddlpath = _global.PIN.getDDL(path);
if (id) {
}
}
function setPathFromDDL(ddl) {
ddlpath = ddl;
var _local3 = _global.PIN.getPath(ddl);
path = _local3[0];
pathid = _local3[1];
}
function setPath(p, ddl) {
path = p;
ddlpath = ddl;
}
var path = [];
}
Symbol 929 MovieClip [__Packages.framework.ExpandingPathItem] Frame 0
class framework.ExpandingPathItem extends framework.PathItem
{
var arrow, cData, controller, levelto, setPath;
function ExpandingPathItem () {
super();
arrow._visible = false;
}
function onRollOver() {
if (cData.childNodes.length > 0) {
arrow._visible = true;
}
controller.buildExpansionLevel(cData, levelto);
super.onRollOver();
}
function onRollOut() {
arrow._visible = false;
super.onRollOut();
}
function onRelease() {
super.onRelease();
}
function setConfig(node, c, level) {
cData = node;
controller = c;
levelto = level;
var _local3 = _global.PIN.buildPathFromNode(node);
var _local4 = _global.PIN.getDDL(_local3);
trace((_local3 + " ") + _local4);
setPath(_local3, _local4);
}
}
Symbol 930 MovieClip [__Packages.framework.MatteSwapper] Frame 0
class framework.MatteSwapper extends MovieClip
{
var matteid, mattepanel, preload, isShowingPreload, loadInt, _parent;
function MatteSwapper () {
super();
AsBroadcaster.initialize(this);
}
function addListener(listener) {
return(false);
}
function removeListener(listener) {
return(false);
}
function broadcastMessage(message) {
}
function swap(id) {
matteid = id;
if (firstrun) {
doSwap();
return(undefined);
}
trace("SWAPPING MATTE");
_global.V5UI.hide();
mattepanel.gotoAndPlay("hide");
}
function doSwap() {
if (!this[("matte" + matteid) + "loaded"]) {
preload.gotoAndPlay("show");
isShowingPreload = true;
} else {
trace("already loaded");
isShowingPreload = false;
}
mattepanel.loadMovie(((_global.relurl + "matte") + matteid) + ".swf");
clearInterval(loadInt);
loadInt = setInterval(this, "checkstatus", 50);
}
function preloadDone() {
if (firstrun) {
_parent.preloadbg.gotoAndPlay("hide");
preload._y = preload._y - 140;
firstrun = false;
} else {
mattepanel.gotoAndPlay("show");
}
}
function show() {
mattepanel.gotoAndPlay("show");
}
function showDone() {
_global.V5UI.show(null, matteid);
}
function hideDone() {
doSwap();
}
function checkstatus() {
var _local2 = mattepanel.getBytesLoaded();
var _local3 = mattepanel.getBytesTotal();
preload.ptext.text = Math.round((_local2 / _local3) * 100) + "%";
if ((_local2 / _local3) != 1) {
return(undefined);
}
clearInterval(loadInt);
if (isShowingPreload) {
preload.gotoAndPlay("hide");
} else if (firstrun) {
_parent.preloadbg.gotoAndPlay("hide");
} else {
show();
}
this[("matte" + matteid) + "loaded"] = true;
}
var matte0loaded = false;
var matte1loaded = false;
var matte2loaded = false;
var matte3loaded = false;
var matte4loaded = false;
var matte5loaded = false;
var firstrun = true;
}
Symbol 931 MovieClip [__Packages.framework.TopNav] Frame 0
class framework.TopNav extends MovieClip
{
var rollscroll1, rollscroll2, gotoAndStop, gotoAndPlay, head_opennav, headers, bgbox, aux_nav1, aux_nav2, aux_nav3, aux_nav4, aux_nav5;
function TopNav () {
super();
hidenavitems();
}
function hide() {
trace("HIDING TOP NAV");
if (!persisting) {
hidenavitems();
}
}
function hidenavitems() {
var _local2 = 1;
while (_local2 <= 5) {
this["aux_nav" + _local2]._visible = false;
this["pr_nav" + _local2]._visible = false;
_local2++;
}
rollscroll1.cleanup();
rollscroll2.cleanup();
(gotoAndStop("idle"));// not popped
}
function persist() {
persisting = true;
shownavitems();
(gotoAndPlay("show"));// not popped
}
function unpersist() {
persisting = false;
hidenavitems();
(gotoAndPlay("hide"));// not popped
}
function shownavitems() {
var _local2 = 1;
while (_local2 <= 5) {
this["pr_nav" + _local2]._visible = true;
var _local3 = new Color(this["pr_nav" + _local2].circle);
_local3.setRGB(circles[_local2 - 1]);
_local2++;
}
_local2 = 1;
while (_local2 <= 5) {
this["aux_nav" + _local2]._visible = true;
this["pr_nav" + _local2]._visible = true;
_local2++;
}
}
function activateNav() {
var _local2 = 0;
while (_local2 < 5) {
primaries[_local2].enabled = true;
auxilliaries[_local2].enabled = true;
_local2++;
}
}
function deactivateNav() {
var _local2 = 0;
while (_local2 < 5) {
primaries[_local2].enabled = false;
auxilliaries[_local2].enabled = false;
_local2++;
}
}
function setConfig(node) {
head_opennav.format1_head_primary.text = node.attributes.primary;
headers.format1_head_secondary.text = node.attributes.secondary;
headers.format1_head_tertiary.text = node.attributes.tertiary;
headers.format1_head_auxiliary.text = node.attributes.auxiliary;
head_opennav.format1_head_primary.f = node.attributes.f1;
headers.format1_head_secondary.f = node.attributes.f2;
headers.format1_head_tertiary.f = node.attributes.f3;
headers.format1_head_auxiliary.f = node.attributes.f4;
}
function setForSection(id) {
head_opennav.gotoAndStop("_" + id);
headers.gotoAndStop("_" + id);
bgbox.gotoAndStop("_" + id);
var _local2 = 1;
while (_local2 <= 5) {
this["aux_nav" + _local2].navlabel.gotoAndStop("_" + id);
_local2++;
}
}
function setPrimaries(data) {
var _local4 = 0;
while (_local4 < data.firstChild.childNodes.length) {
var _local3 = this["pr_nav" + (_local4 + 1)];
_local3.format2_label.text = data.childNodes[_local4].attributes.label;
_local3.format2_label.f = data.childNodes[_local4].attributes.f;
_local3.setConfig(data.childNodes[_local4], this, 1);
_local3.enabled = false;
primaries.push(_local3);
_local4++;
}
_global.FH.applyAllFonts(this);
}
function buildExpansionLevel(data, levelto) {
var _local6 = this["rollscroll" + levelto];
var _local8 = this["rollscroll" + levelto].scrollpane;
_local6.cleanup();
_local8._y = 0;
var _local7 = data.childNodes.length;
var _local3 = 0;
while (_local3 < _local7) {
var _local4 = _local8.attachMovie("mc-SecondaryNavItem", "item" + _local3, _local3);
_local4.format3_label.text = data.childNodes[_local3].attributes.label;
_local4.format3_label.f = data.childNodes[_local3].attributes.f;
_local4._y = _local3 * (itemheight + gapheight);
_local4.setConfig(data.childNodes[_local3], this, levelto + 1);
_local6.addItem(_local4);
_local3++;
}
_global.FH.applyAllFonts(this);
if (_local7 > maxRSitems) {
_local6.startscroll();
}
}
function setAuxilliary(data) {
var _local5 = 0;
while (_local5 < data.childNodes.length) {
var _local4 = this["aux_nav" + (_local5 + 1)];
_local4.enabled = false;
auxilliaries.push(_local4);
_local5++;
}
aux_nav1.navlabel.format3_label.text = data.childNodes[0].attributes.label;
aux_nav2.navlabel.format3_label.text = data.childNodes[1].attributes.label;
aux_nav3.navlabel.format3_label.text = data.childNodes[2].attributes.label;
aux_nav4.navlabel.format3_label.text = data.childNodes[3].attributes.label;
aux_nav5.navlabel.format3_label.text = data.childNodes[4].attributes.label;
aux_nav1.navlabel.format3_label.f = data.childNodes[0].attributes.f;
aux_nav2.navlabel.format3_label.f = data.childNodes[1].attributes.f;
aux_nav3.navlabel.format3_label.f = data.childNodes[2].attributes.f;
aux_nav4.navlabel.format3_label.f = data.childNodes[3].attributes.f;
aux_nav5.navlabel.format3_label.f = data.childNodes[4].attributes.f;
aux_nav1.onRelease = function () {
_global.DDL.setDeepLink("home");
_global.TE.engage([0]);
};
aux_nav2.onRelease = function () {
_global.CSHELL.launch("prefs", 1);
super.onRelease();
};
aux_nav3.onRelease = function () {
_global.CSHELL.launch("contact", null, null);
};
aux_nav4.onRelease = function () {
(this.getURL("http://www.plat4m.com", "_blank"));// not popped
};
aux_nav5.onRelease = function () {
(this.getURL("http://www.2advanced.net", "_blank"));// not popped
};
}
var circles = [3186197, 14993454, 12600345, 14183895, 16777215];
var itemheight = 15;
var gapheight = 1;
var maxRSitems = 5;
var primaries = [];
var auxilliaries = [];
var persisting = false;
}
Symbol 932 MovieClip [__Packages.framework.ThumbCycler] Frame 0
class framework.ThumbCycler extends MovieClip
{
var btn, magnify, thumb, controller, method, nextthumb, gotoAndPlay, loadInt;
function ThumbCycler () {
super();
btn.enabled = false;
magnify._visible = false;
thumb._visible = false;
thumb.createEmptyMovieClip("t", 0);
}
function setController(c, m) {
controller = c;
if (m == undefined) {
method = "swapcontent";
} else {
method = m;
}
}
function useClick(nodes, t, f) {
btn.imagenodes = nodes;
magnify._visible = true;
btn.enabled = true;
btn.onRelease = function () {
_global.CSHELL.launch("images", this.imagenodes, t, f);
};
}
function swap(t) {
thumb._visible = true;
nextthumb = t;
(gotoAndPlay("swap"));// not popped
}
function doLoad() {
thumb._visible = false;
thumb.t.loadMovie(nextthumb);
loadInt = setInterval(this, "checkstatus", 50);
}
function checkstatus() {
var _local3 = thumb.t.getBytesLoaded();
var _local2 = thumb.t.getBytesTotal();
if (((_local3 / _local2) != 1) && (_local2 > 1000)) {
return(undefined);
}
clearInterval(loadInt);
controller[method]();
thumb._visible = true;
(gotoAndPlay("reveal"));// not popped
}
function cleanup() {
thumb._visible = false;
thumb.t.unloadMovie();
clearInterval(loadInt);
}
}
Symbol 933 MovieClip [__Packages.framework.subnav.SubModule] Frame 0
class framework.subnav.SubModule extends MovieClip
{
var format3_header, cData, nData, subnum, gotoAndStop;
function SubModule () {
super();
}
function setConfig(node) {
format3_header.text = node.attributes.header;
format3_header.f = node.attributes.f;
cData = node;
}
function setData(node) {
nData = node;
}
function setForSection(id, sn) {
subnum = sn;
(gotoAndStop("_" + id));// not popped
}
function pause() {
}
function cleanup() {
}
}
Symbol 934 MovieClip [__Packages.framework.subnav.SMClientPartners] Frame 0
class framework.subnav.SMClientPartners extends framework.subnav.SubModule
{
var innernav1, innernav2, format5_subhead1, format5_subhead2, cycleInt1, cycleInt2, thumbcycler1, thumbcycler2, bgbox1, bgbox2, bgline, nData, nextindex1, nextindex2, format_client, format_partner;
function SMClientPartners () {
super();
}
function setConfig(node) {
innernav1.format3_label.text = node.childNodes[0].attributes.label;
innernav2.format3_label.text = node.childNodes[1].attributes.label;
innernav1.format3_label.f = node.childNodes[0].attributes.f;
innernav2.format3_label.f = node.childNodes[1].attributes.f;
innernav1.setPathFromDDL(node.childNodes[0].attributes.path);
innernav2.setPathFromDDL(node.childNodes[1].attributes.path);
format5_subhead1.text = node.attributes.subhead1;
format5_subhead2.text = node.attributes.subhead2;
format5_subhead1.f = node.attributes.f2;
format5_subhead2.f = node.attributes.f3;
super.setConfig(node);
}
function cleanup() {
clearInterval(cycleInt1);
clearInterval(cycleInt2);
thumbcycler1.cleanup();
thumbcycler2.cleanup();
}
function setData(node) {
clearInterval(cycleInt1);
clearInterval(cycleInt2);
thumbcycler1.setController(MovieClip(this), "swapcontent1");
thumbcycler2.setController(MovieClip(this), "swapcontent2");
super.setData(node);
}
function pause() {
clearInterval(cycleInt1);
clearInterval(cycleInt2);
}
function setNavPoints(node) {
}
function setForSection(id) {
setDataForSection(id);
bgbox1.gotoAndPlay("_" + id);
bgbox2.gotoAndPlay("_" + id);
bgline.gotoAndPlay("_" + id);
super.setForSection(id);
}
function setDataForSection(id) {
clearInterval(cycleInt1);
clearInterval(cycleInt2);
thumbcycler1.swap(nData.childNodes[0].childNodes[0].attributes.thumbsrc);
thumbcycler2.swap(nData.childNodes[1].childNodes[0].attributes.thumbsrc);
_global.FH.applyAllFonts(this);
if (nData.childNodes.length > 1) {
nextindex1 = 0;
nextindex2 = 0;
cycleInt1 = setInterval(this, "swapthumb1", 6000);
cycleInt2 = setInterval(this, "waitForSwapOffset", 3000);
}
}
function waitForSwapOffset() {
clearInterval(cycleInt2);
cycleInt2 = setInterval(this, "swapthumb2", 6000);
}
function swapthumb1() {
thumbcycler1.swap(nData.childNodes[0].childNodes[nextindex1].attributes.thumbsrc);
}
function swapthumb2() {
thumbcycler2.swap(nData.childNodes[1].childNodes[nextindex2].attributes.thumbsrc);
}
function swapcontent1() {
format_client.text = nData.childNodes[0].childNodes[nextindex1].firstChild.firstChild.nodeValue;
format_client.f = nData.childNodes[0].childNodes[nextindex1].firstChild.attributes.f;
_global.FH.applyAllFonts(this);
if ((++nextindex1) >= nData.childNodes[0].childNodes.length) {
nextindex1 = 0;
}
}
function swapcontent2() {
format_partner.text = nData.childNodes[1].childNodes[nextindex2].firstChild.firstChild.nodeValue;
format_partner.f = nData.childNodes[1].childNodes[nextindex2].firstChild.attributes.f;
_global.FH.applyAllFonts(this);
if ((++nextindex2) >= nData.childNodes[1].childNodes.length) {
nextindex2 = 0;
}
}
}
Symbol 935 MovieClip [__Packages.framework.subnav.SMWorldMap] Frame 0
class framework.subnav.SMWorldMap extends framework.subnav.SubModule
{
var addy1, addy2, addyf1, addyf2, innernav, b1, b2, stroke1, stroke2, pulse1, pulse2, circle1, circle2, gotoAndPlay;
function SMWorldMap () {
super();
addy1 = [];
addy2 = [];
addyf1 = [];
addyf2 = [];
}
function setConfig(node) {
innernav.format_label.text = node.attributes.navlabel;
innernav.format_label.f = node.attributes.f2;
innernav.onRelease = function () {
_global.CSHELL.launch("contact", null, null);
};
b1.onRelease = function () {
this._parent.switchAddy(1);
};
b2.onRelease = function () {
this._parent.switchAddy(2);
};
var _local4 = 0;
while (_local4 < node.childNodes[0].childNodes.length) {
trace("f:: " + node.childNodes[0].childNodes[_local4].attributes.f);
addy1.push(node.childNodes[0].childNodes[_local4].firstChild.nodeValue);
addyf1.push(node.childNodes[0].childNodes[_local4].attributes.f);
addy2.push(node.childNodes[1].childNodes[_local4].firstChild.nodeValue);
addyf2.push(node.childNodes[1].childNodes[_local4].attributes.f);
_local4++;
}
super.setConfig(node);
_global.FH.applyAllFonts(this);
((_global.cur_lang == "en") ? (switchAddy(1)) : (switchAddy(2)));
}
function switchAddy(val) {
stroke1._visible = false;
stroke2._visible = false;
this["stroke" + val]._visible = true;
pulse1._visible = false;
pulse2._visible = false;
this["pulse" + val]._visible = true;
circle1._visible = true;
circle2._visible = true;
this["circle" + val]._visible = false;
var _local5 = this["addy" + val];
var _local6 = this["addyf" + val];
var _local3 = 0;
while (_local3 < _local5.length) {
var _local4 = this["format_addy" + (_local3 + 1)];
_local4.text = _local5[_local3];
_local4.f = _local6[_local3];
_local3++;
}
_global.FH.applyAllFonts(this);
}
function setForSection(id) {
innernav.bar.gotoAndStop("_" + id);
(gotoAndPlay("_" + id));// not popped
super.setForSection(id);
}
}
Symbol 936 MovieClip [__Packages.framework.subnav.SMXtra] Frame 0
class framework.subnav.SMXtra extends framework.subnav.SubModule
{
var thumbcycler, innernav, format_subtitle, sectionid, nData, format_title, format_descrip, cycleInt, nextindex, cycle, bgbox;
function SMXtra () {
super();
}
function cleanup() {
thumbcycler.cleanup();
}
function setConfig(node) {
innernav.format3_label.text = node.childNodes[0].attributes.label;
innernav.format3_label.f = node.childNodes[0].attributes.f;
format_subtitle.wordWrap = true;
super.setConfig(node);
}
function setData(node) {
thumbcycler.setController(MovieClip(this));
super.setData(node);
}
function setDataForSection(id) {
sectionid = id - 1;
var _local5 = nData.childNodes[sectionid].childNodes.length;
var _local6 = Math.round(Math.random() * (_local5 - 1));
var _local3 = nData.childNodes[sectionid].childNodes[_local6];
format_title.text = _local3.childNodes[0].firstChild.nodeValue;
format_title.f = _local3.childNodes[0].attributes.f;
format_subtitle.text = _local3.childNodes[1].firstChild.nodeValue;
format_subtitle.f = _local3.childNodes[1].attributes.f;
format_descrip.text = _local3.childNodes[2].firstChild.nodeValue;
format_descrip.f = _local3.childNodes[2].attributes.f;
_global.FH.applyAllFonts(this);
clearInterval(cycleInt);
thumbcycler.swap(_local3.attributes.thumbsrc);
if (nData.childNodes[sectionid].childNodes.length > 1) {
nextindex = 1;
}
innernav.href = _local3.attributes.href;
switch (_local3.attributes.linktype) {
case "1" :
innernav.onRelease = function () {
(this.getURL(this.href, "_blank"));// not popped
};
break;
case "2" :
innernav.onRelease = function () {
var _local3 = _global.PIN.getPath(this.href);
_global.TE.engage(_local3[0], _local3[1]);
_global.DDL.setDeepLink(this.href);
};
break;
case "3" :
innernav.flvtime = _local3.attributes.flvtime;
innernav.onRelease = function () {
_global.CSHELL.launch("flv", this.href, this.flvtime);
};
break;
}
}
function waitForSwapOffset() {
clearInterval(cycleInt);
cycleInt = setInterval(this, "swapthumb", cycle);
}
function swapthumb() {
thumbcycler.swap(nData.childNodes[sectionid].childNodes[nextindex].attributes.thumbsrc);
}
function swapcontent() {
}
function setForSection(id, sn) {
trace((this + " subnum = ") + sn);
setDataForSection(id);
bgbox.gotoAndPlay("_" + id);
innernav.bar.gotoAndPlay("_" + id);
super.setForSection(id, sn);
}
}
Symbol 937 MovieClip [__Packages.framework.subnav.SMNews] Frame 0
class framework.subnav.SMNews extends framework.subnav.SubModule
{
var innernav1, innernav2, newsbox, scroller;
function SMNews () {
super();
}
function setConfig(node) {
innernav1.format3_label.text = node.childNodes[0].attributes.label;
innernav2.format3_label.text = node.childNodes[1].attributes.label;
innernav1.format3_label.f = node.childNodes[0].attributes.f;
innernav2.format3_label.f = node.childNodes[1].attributes.f;
super.setConfig(node);
}
function setData(node) {
var _local7 = node.childNodes.length;
var _local5 = 0;
var _local6 = 0;
while (_local5 < _local7) {
var _local4 = newsbox.attachMovie("mc-NewsItem", "ni" + _local5, _local5);
_local4.setData(node.childNodes[_local5]);
_global.FH.applyAllFonts(_local4);
_local4._y = _local6;
_local6 = (_local4._y + _local4._height) + 10;
_local5++;
}
innernav1.setPathFromArray([1, 3, 3]);
innernav2.setPathFromArray([1, 3, 4]);
scroller.setScrollContent(newsbox);
super.setData(node);
}
function setForSection(id) {
super.setForSection(id);
}
}
Symbol 938 MovieClip [__Packages.framework.subnav.SMFeatured] Frame 0
class framework.subnav.SMFeatured extends framework.subnav.SubModule
{
var cycleInt, thumbcycler, nData, nextindex, format1_date, format1_clientname, format1_projectname, format3_descrip, innernav2, innernav3, innernav4, innernav1, format3_subhead1, format3_subhead2;
function SMFeatured () {
super();
}
function cleanup() {
clearInterval(cycleInt);
thumbcycler.cleanup();
}
function setForSection(id) {
setDataForSection();
super.setForSection(id);
}
function setData(node) {
clearInterval(cycleInt);
thumbcycler.setController(MovieClip(this), "swapcontent");
super.setData(node);
}
function setDataForSection() {
clearInterval(cycleInt);
thumbcycler.swap(nData.childNodes[0].attributes.thumbsrc);
_global.FH.applyAllFonts(this);
if (nData.childNodes.length > 1) {
nextindex = 0;
cycleInt = setInterval(this, "swapthumb", 15000);
}
}
function swapthumb() {
thumbcycler.swap(nData.childNodes[nextindex].attributes.thumbsrc);
}
function swapcontent() {
format1_date.text = nData.childNodes[nextindex].childNodes[0].firstChild.nodeValue;
format1_clientname.text = nData.childNodes[nextindex].childNodes[1].firstChild.nodeValue;
format1_projectname.text = nData.childNodes[nextindex].childNodes[2].firstChild.nodeValue;
format3_descrip.text = nData.childNodes[nextindex].childNodes[3].firstChild.nodeValue;
format1_date.f = nData.childNodes[nextindex].childNodes[0].attributes.f;
format1_clientname.f = nData.childNodes[nextindex].childNodes[1].attributes.f;
format1_projectname.f = ((_global.cur_lang == "en") ? "1" : "6");
format3_descrip.f = nData.childNodes[nextindex].childNodes[3].attributes.f;
setNavPoints(nData.childNodes[nextindex]);
_global.FH.applyAllFonts(this);
if ((++nextindex) >= nData.childNodes.length) {
nextindex = 0;
}
firstrun = false;
}
function resume() {
if (!firstrun) {
setDataForSection();
}
}
function setNavPoints(node) {
innernav2.enabled = false;
innernav3.enabled = false;
innernav4.enabled = false;
innernav2._alpha = 50;
innernav3._alpha = 50;
innernav4._alpha = 50;
innernav1.onRelease = function () {
(this.getURL(node.attributes.href, "_blank"));// not popped
};
if (node.attributes.id != "") {
innernav2.enabled = true;
innernav2._alpha = 100;
innernav2.setPathFromDDL("portfolio/bydate/showall&id=" + node.attributes.id);
}
if (node.attributes.studyid != "") {
innernav3.enabled = true;
innernav3._alpha = 100;
innernav3.setPathFromDDL("casestudies/bydate/showall&id=" + node.attributes.studyid);
}
if (node.attributes.press != "") {
innernav4.enabled = true;
innernav4._alpha = 100;
innernav4.setPathFromDDL("company/pressnews/pressreleases");
}
}
function setConfig(node) {
format3_subhead1.text = node.attributes.subhead1;
format3_subhead2.text = node.attributes.subhead2;
format3_subhead1.f = node.attributes.f2;
format3_subhead2.f = node.attributes.f3;
var _local3 = 0;
while (_local3 < 4) {
this["innernav" + (_local3 + 1)].format3_label.f = node.childNodes[_local3].attributes.f;
this["innernav" + (_local3 + 1)].format3_label.text = node.childNodes[_local3].attributes.label;
_local3++;
}
super.setConfig(node);
}
var firstrun = true;
}
Symbol 939 MovieClip [__Packages.framework.subnav.SubNav] Frame 0
class framework.subnav.SubNav extends MovieClip
{
var module1, module2, module4, module5, module6, gotoAndPlay, cData, module3;
function SubNav () {
super();
var _local3 = 1;
while (_local3 <= 6) {
this["module" + (_local3++)]._visible = false;
}
}
function pause() {
module1.pause();
module2.pause();
module4.pause();
module5.pause();
module6.pause();
}
function hide() {
var _local2 = 1;
while (_local2 <= 6) {
this["module" + (_local2++)].cleanup();
}
(gotoAndPlay("hide"));// not popped
}
function show() {
(gotoAndPlay("show"));// not popped
}
function setData(loader) {
module1.setData(loader.getNodes("projects"));
module2.setData(loader.getNodes("news"));
module4.setData(loader.getNodes("candp"));
module5.setData(loader.getNodes("xtra1"));
module6.setData(loader.getNodes("xtra2"));
}
function setConfig(node) {
cData = node;
trace("contact \n\n" + node.childNodes[2]);
module1.setConfig(node.childNodes[0]);
module2.setConfig(node.childNodes[1]);
module3.setConfig(node.childNodes[2]);
module4.setConfig(node.childNodes[3]);
module5.setConfig(node.childNodes[4]);
module6.setConfig(node.childNodes[5]);
}
function setConfigAgain() {
setConfig(cData);
_global.FH.applyAllFonts(this);
}
function setForSection(id) {
var _local2 = 1;
while (_local2 <= 6) {
this["module" + _local2]._visible = false;
this["module" + (_local2++)].setForSection(id, _local2);
}
if (id == 0) {
module1.resume();
(gotoAndPlay("show1"));// not popped
} else {
module1.cleanup();
(gotoAndPlay("show2"));// not popped
}
}
}
Symbol 940 MovieClip [__Packages.framework.XMLLoader] Frame 0
class framework.XMLLoader
{
var dXML, dInt, onLoadDone;
function XMLLoader () {
dXML = new XML();
dXML.ignoreWhite = true;
dXML.onLoad = mx.utils.Delegate.create(this, checkexist);
}
function cleanup() {
clearInterval(dInt);
}
function checkexist(success) {
if (!success) {
trace("NO FILE EXISTS could not load");
cleanup();
onLoadDone();
}
}
function load(d) {
clearInterval(dInt);
dXML.load(d);
dInt = setInterval(this, "checkstatus", 50);
}
function getTopNodeAttributes() {
return(dXML.firstChild.attributes);
}
function getXML() {
return(dXML);
}
function setXML(nodes) {
dXML = nodes;
}
function getNodes(name) {
var _local5 = dXML.firstChild.childNodes;
var _local3 = 0;
while (_local3 < dXML.firstChild.childNodes.length) {
var _local2 = dXML.firstChild.childNodes[_local3];
if (_local2.nodeName == name) {
return(_local2);
}
_local3++;
}
return(null);
}
function setCallBack(cb) {
onLoadDone = cb;
}
function checkstatus() {
var _local2 = dXML.getBytesLoaded();
var _local3 = dXML.getBytesTotal();
if ((_local2 / _local3) != 1) {
return(undefined);
}
clearInterval(dInt);
onLoadDone(dXML);
}
}
Symbol 524 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 941 MovieClip [__Packages.framework.TransitionShell] Frame 0
class framework.TransitionShell extends base.AtmoveClip
{
var _visible, section, sectioncfg, sectionName, navcfg, preload, loadInt, _debug;
function TransitionShell () {
super();
_visible = true;
_global.MATTE.addListener(this);
_global.SECTION = section;
sectioncfg = new framework.XMLLoader();
sectioncfg.onLoadDone = mx.utils.Delegate.create(this, secondPhaseLoaded);
}
function onMatteReady() {
trace("matte ready");
_global.V5UI.show(section);
}
function onSectionReady(id) {
trace("section done");
}
function swapIN(id) {
sectionID = id;
sectionName = sections[id];
navcfg = _global.V5UI.getSectionNavConfig(id);
sectioncfg.onLoadDone = mx.utils.Delegate.create(this, secondPhaseLoaded);
_global.V5UI.setSectionID(sectionID);
_global.MATTE.swap(sectionID);
}
function swapOUT() {
section._visible = false;
_global.TE.report(this);
}
function loadSection() {
if (!this[("section" + sectionID) + "loaded"]) {
preload.gotoAndPlay("show");
isShowingPreload = true;
} else {
trace("section already loaded - go direct to reveal");
isShowingPreload = false;
}
clearInterval(loadInt);
section.loadMovie(("section" + sectionID) + ".swf");
loadInt = setInterval(this, "checkstatus", 50);
_global.SECTIONNAME = sectionName;
}
function firstPhaseLoaded(cXML) {
_debug.text = (("loading " + _global.xmlservice) + sectionName) + ";uiconfig\n";
sectioncfg.load((_global.xmlservice + sectionName) + ";uiconfig");
}
function sectionReady() {
trace("SECTION READY");
firstPhaseLoaded();
}
function secondPhaseLoaded() {
trace("SECOND PHASE LOADED");
preload.gotoAndPlay("hide");
}
function checkstatus() {
var _local2 = section.getBytesLoaded();
var _local3 = section.getBytesTotal();
_debug.text = _debug.text + (("section loading - " + Math.round((_local2 / _local3) * 100)) + newline);
if (((_local2 / _local3) != 1) || (_local2 < 1000)) {
return(undefined);
}
clearInterval(loadInt);
this[("section" + sectionID) + "loaded"] = true;
}
function preloadDone() {
trace("PRELOAD HIDE DONE");
currentsection = section;
section.shell.setConfig(sectioncfg, navcfg);
}
function show() {
}
function hide() {
}
function onEaseDone(e) {
switch (e) {
case "show" :
isShowing = true;
break;
case "hide" :
isShowing = false;
_visible = false;
}
}
var sections = ["home", "company", "portfolio", "services", "casestudies", "recognition"];
var sectionID = 0;
var isShowing = true;
var isShowingPreload = true;
var section0loaded = false;
var section1loaded = false;
var section2loaded = false;
var section3loaded = false;
var section4loaded = false;
var section5loaded = false;
var currentsection = null;
}
Symbol 942 MovieClip [__Packages.framework.midnav.PopNav] Frame 0
class framework.midnav.PopNav extends MovieClip
{
var bgbox, navlabel, cData, gotoAndPlay, _visible;
function PopNav () {
super();
bgbox._visible = false;
}
function setConfig(node) {
navlabel.format3_label.text = node.attributes.label;
navlabel.format3_label.f = node.attributes.f;
_global.applyAllFonts(this);
cData = node;
}
function show() {
bgbox._visible = true;
(gotoAndPlay("show"));// not popped
_global.V5UI.hideSections();
}
function hide() {
bgbox._visible = false;
(gotoAndPlay("hide"));// not popped
_global.V5UI.showSections();
}
function setForSection(id) {
_visible = false;
navlabel.gotoAndStop("_" + id);
bgbox.gotoAndStop("_" + id);
}
}
Symbol 943 MovieClip [__Packages.framework.midnav.PNPreferences] Frame 0
class framework.midnav.PNPreferences extends framework.midnav.PopNav
{
var innernav1, innernav2, innernav3, innernav4;
function PNPreferences () {
super();
innernav1.onRelease = function () {
_global.CSHELL.launch("prefs", 1);
};
innernav2.onRelease = function () {
_global.CSHELL.launch("prefs", 2);
};
innernav3.onRelease = function () {
_global.CSHELL.launch("prefs", 3);
};
innernav4.onRelease = function () {
_global.CSHELL.launch("prefs", 4);
};
}
function setForSection(id) {
super.setForSection(id);
}
function showitems() {
innernav1._visible = true;
innernav2._visible = true;
innernav3._visible = true;
innernav4._visible = true;
}
function hideitems() {
innernav1._visible = false;
innernav2._visible = false;
innernav3._visible = false;
innernav4._visible = false;
}
function show() {
showitems();
super.show();
}
function hide() {
hideitems();
super.hide();
}
function setConfig(node) {
var _local3 = 1;
while (_local3 <= 4) {
this["innernav" + _local3].format3_label.text = node.childNodes[_local3 - 1].attributes.label;
this["innernav" + _local3].format3_label.f = node.childNodes[_local3 - 1].attributes.f;
_local3++;
}
super.setConfig(node);
}
}
Symbol 944 MovieClip [__Packages.framework.midnav.PNArchive] Frame 0
class framework.midnav.PNArchive extends framework.midnav.PopNav
{
var innernav1, innernav2, innernav3, format3_innerlabel;
function PNArchive () {
super();
var _local4 = 1;
while (_local4 <= 3) {
var _local3 = this["innernav" + _local4];
_local3.id = _local4;
_local3.onRollOver = function () {
this._parent.thumbnails.gotoAndPlay("_" + this.id);
this.gotoAndPlay("rollover");
};
_local3.onRollOut = function () {
this._parent.thumbnails.gotoAndPlay("_0");
this.gotoAndPlay("rollout");
};
_local3.onRelease = function () {
(this.getURL(this.href, "_blank"));// not popped
};
_local4++;
}
}
function setForSection(id) {
super.setForSection(id);
}
function showitems() {
innernav1._visible = true;
innernav2._visible = true;
innernav3._visible = true;
format3_innerlabel._visible = true;
}
function hideitems() {
innernav1._visible = false;
innernav2._visible = false;
innernav3._visible = false;
format3_innerlabel._visible = false;
}
function show() {
showitems();
super.show();
}
function hide() {
hideitems();
super.hide();
}
function setConfig(node) {
var _local3 = 1;
while (_local3 <= 3) {
this["innernav" + _local3].href = node.childNodes[_local3 - 1].attributes.href;
this["innernav" + _local3].format3_label.text = node.childNodes[_local3 - 1].attributes.label;
this["innernav" + _local3].format3_label.f = node.childNodes[_local3 - 1].attributes.f;
_local3++;
}
format3_innerlabel.text = node.attributes.innerlabel;
format3_innerlabel.f = node.attributes.f2;
super.setConfig(node);
}
}
Symbol 945 MovieClip [__Packages.framework.midnav.PNWallpaper] Frame 0
class framework.midnav.PNWallpaper extends framework.midnav.PopNav
{
var format5_descrip, innernav, thumbnails, cData;
function PNWallpaper () {
super();
format5_descrip._visible = false;
innernav._visible = false;
thumbnails._visible = false;
innernav.onRelease = function () {
trace("launch wallpaper selector");
_global.CSHELL.launch("wp", this.wpXML, null);
};
}
function setForSection(id) {
super.setForSection(id);
}
function show() {
showitems();
super.show();
}
function hide() {
hideitems();
super.hide();
}
function hideitems() {
format5_descrip._visible = false;
innernav._visible = false;
thumbnails._visible = false;
}
function showitems() {
var _local3 = _global.V5UI.getSectionID();
thumbnails.gotoAndStop("_" + _local3);
format5_descrip.text = cData.childNodes[_local3].attributes.name;
format5_descrip.f = cData.childNodes[_local3].attributes.f;
_global.FH.applyAllFonts(this);
trace("WALLPAPER FONT SETTING : " + format5_descrip.f);
innernav.wpXML = cData.childNodes[_local3];
format5_descrip._visible = true;
innernav._visible = true;
thumbnails._visible = true;
}
function setConfig(node) {
innernav.format3_label.text = node.attributes.innerlabel;
innernav.format3_label.f = node.attributes.f2;
super.setConfig(node);
}
}
Symbol 946 MovieClip [__Packages.framework.midnav.PNDemoReel] Frame 0
class framework.midnav.PNDemoReel extends framework.midnav.PopNav
{
var format5_descrip, innernav;
function PNDemoReel () {
super();
format5_descrip._visible = false;
innernav._visible = false;
innernav.onRelease = function () {
trace("launch video");
this._parent.hide();
};
}
function setForSection(id) {
super.setForSection(id);
}
function show() {
showitems();
super.show();
}
function hide() {
hideitems();
super.hide();
}
function hideitems() {
format5_descrip._visible = false;
innernav._visible = false;
}
function showitems() {
format5_descrip._visible = true;
innernav._visible = true;
}
function setConfig(node) {
innernav.FLVsrc = node.attributes.src;
innernav.FLVtime = node.attributes.flvtime;
format5_descrip.text = node.attributes.descrip;
format5_descrip.f = node.attributes.f2;
innernav.format3_label.text = node.attributes.innerlabel;
innernav.format3_label.f = node.attributes.f3;
innernav.onRelease = function () {
_global.CSHELL.launch("flv", this.FLVsrc, this.FLVtime);
};
super.setConfig(node);
}
}
Symbol 947 MovieClip [__Packages.framework.midnav.MidNav] Frame 0
class framework.midnav.MidNav extends MovieClip
{
var _visible, gotoAndPlay, mid1, mid2, mid3, mid4;
function MidNav () {
super();
_visible = false;
}
function hide() {
(gotoAndPlay("hide"));// not popped
}
function show() {
mid1._visible = true;
mid2._visible = true;
mid3._visible = true;
mid4._visible = true;
(gotoAndPlay("show"));// not popped
}
function setConfig(node) {
mid1.setConfig(node.childNodes[0]);
mid2.setConfig(node.childNodes[1]);
mid3.setConfig(node.childNodes[2]);
mid4.setConfig(node.childNodes[3]);
_global.FH.applyAllFonts(this);
}
function setForSection(id) {
var _local2 = 1;
while (_local2 < 6) {
this["mid" + (_local2++)].setForSection(id);
}
trace("switching midnav colors");
}
}
Symbol 948 MovieClip [__Packages.framework.minitopnav.MiniTopNav] Frame 0
class framework.minitopnav.MiniTopNav extends MovieClip
{
var format_label1, format_label2, format_label3, btn, nav2, nav3, gotoAndStop, _visible;
function MiniTopNav () {
super();
}
function setConfig(nodes) {
format_label1.text = nodes.childNodes[0].firstChild.nodeValue;
format_label1.f = nodes.childNodes[0].attributes.f;
format_label2.text = nodes.childNodes[1].firstChild.nodeValue;
format_label2.f = nodes.childNodes[1].attributes.f;
format_label3.text = nodes.childNodes[2].firstChild.nodeValue;
format_label3.f = nodes.childNodes[2].attributes.f;
btn.onRelease = function () {
_global.DDL.setDeepLink("home");
_global.TE.engage([0]);
};
btn.onRollOver = function () {
this._parent.nav1.onRollOver();
};
btn.onReleaseOutside = (btn.onRollOut = function () {
this._parent.nav1.onRollOut();
});
nav2.onRelease = function () {
_global.CSHELL.launch("contact", null, null);
super.onRelease();
};
nav3.onRelease = function () {
_global.CSHELL.launch("prefs", 1);
super.onRelease();
};
}
function setForSection(id) {
(gotoAndStop("_" + id));// not popped
}
function hide() {
_visible = false;
}
function show() {
_visible = true;
}
}
Symbol 949 MovieClip [__Packages.framework.UI] Frame 0
class framework.UI extends MovieClip
{
var logo, soundcontrol, _parent, _visible, sectionnavcfg, nextsection, minitopnav, topnav, midnav, subnav, gotoAndPlay, attractorshadow, transitionshell, blogbtn, dotnetbtn, privacybtn, legalbtn, logohomebtn, format3_legal, format3_privacy;
function UI () {
super();
logo.createEmptyMovieClip("l", 0);
soundcontrol = _parent.soundcontrol;
logo._visible = false;
_visible = false;
}
function setSectionID(id) {
cur_sectionID = id;
}
function getSectionID() {
return(cur_sectionID);
}
function getSectionNavConfig(id) {
return(sectionnavcfg.childNodes[id - 1]);
}
function show(section) {
nextsection = section;
trace("///////////////////// CURRENT SECTION IS " + section);
minitopnav.setForSection(cur_sectionID);
topnav.setForSection(cur_sectionID);
midnav.setForSection(cur_sectionID);
subnav.setForSection(cur_sectionID);
flash.external.ExternalInterface.call("swapScrollColor", _global.V5UI.getSectionID());
flash.external.ExternalInterface.call("scrollWindow", 0, 0);
if (_global.cur_topnav == "on") {
topnav.persist();
}
_global.SOUND.setForSection(cur_sectionID);
_global.SOUND._visible = true;
_global.CSHELL.setForSection(cur_sectionID);
_global.FH.applyAllFonts(this);
_visible = true;
(gotoAndPlay("show" + cur_sectionID));// not popped
}
function hide() {
minitopnav.hide();
topnav.hide();
midnav.hide();
subnav.hide();
_global.SOUND._visible = false;
logo._visible = false;
_visible = false;
flash.external.ExternalInterface.call("swapScrollColor", _global.V5UI.getSectionID());
flash.external.ExternalInterface.call("scrollWindow", 0, 0);
}
function showlogo() {
logo._visible = true;
logo.l.gotoAndPlay("_" + cur_sectionID);
}
function showDone() {
attractorshadow.clicks = 0;
attractorshadow.useHandCursor = false;
attractorshadow.onRelease = function () {
if ((++this.clicks) == 5) {
this.clicks = 0;
_global.CSHELL.launch("credz", null, null);
}
};
transitionshell.loadSection();
}
function hideSections() {
transitionshell.hide();
}
function showSections() {
transitionshell.show();
}
function setData(toutdata) {
subnav.setData(toutdata);
}
function getSectionNav() {
return(sectionnavcfg.childNodes[cur_sectionID - 1]);
}
function configure(uicfg) {
logo.l.loadMovie(uicfg.getTopNodeAttributes().logo);
sectionnavcfg = uicfg.getNodes("sections");
topnav.setPrimaries(sectionnavcfg);
topnav.setAuxilliary(uicfg.getNodes("auxiliary"));
minitopnav.setConfig(uicfg.getNodes("minitopnav"));
topnav.setConfig(uicfg.getNodes("topnav"));
midnav.setConfig(uicfg.getNodes("exclusives"));
subnav.setConfig(uicfg.getNodes("modules"));
setfooter(uicfg.getNodes("footer"));
_global.CSHELL.setConfig(uicfg.getNodes("cshell"));
_global.SOUND.setConfig(uicfg.getNodes("soundscape"));
setButtons();
_global.FH.applyAllFonts(this);
}
function setButtons() {
blogbtn.onRelease = function () {
(this.getURL("http://www.plat4m.com", "_blank"));// not popped
};
dotnetbtn.onRelease = function () {
(this.getURL("http://www.2advanced.net", "_blank"));// not popped
};
privacybtn.onRelease = function () {
flash.external.ExternalInterface.call("popup", (("privacy_" + _global.cur_lang) + ".php?section=") + this.cur_sectionID, 520, 600);
};
legalbtn.onRelease = function () {
flash.external.ExternalInterface.call("popup", (("legal_" + _global.cur_lang) + ".php?section=") + this.cur_sectionID, 520, 600);
};
logohomebtn.onRelease = function () {
_global.TE.engage([0]);
_global.DDL.setDeepLink("home");
(this.getURL("http://www.plat4m.com", "_blank"));// not popped
};
}
function setfooter(nodes) {
var _local2 = 0;
while (_local2 < nodes.childNodes.length) {
this["format3_footer" + (_local2 + 1)].text = nodes.childNodes[_local2].firstChild.nodeValue;
this["format3_footer" + (_local2 + 1)].f = nodes.childNodes[_local2].attributes.f;
_local2++;
}
format3_legal.text = nodes.attributes.label1;
format3_privacy.text = nodes.attributes.label2;
format3_legal.f = nodes.attributes.f1;
format3_privacy.f = nodes.attributes.f2;
}
function interpretSpecialPath() {
_root._rdebug.text = _root._rdebug.text + (newline + _global.EEstate);
if (!(_global.EEstate === "vid")) {
} else {
_global.CSHELL.launch("flv", _global.EEval);
_global.EEval = null;
_global.EEstate = null;
}
}
var cur_sectionID = 0;
}
Symbol 950 MovieClip [__Packages.framework.ComponentShell] Frame 0
class framework.ComponentShell extends MovieClip
{
var _visible, multibox, cFLV_title, cImages_title, cContact_title, cWallpaper_title, cPrefs_title, cCredz_title, cFLV_font, cImages_font, cContact_font, cWallpaper_font, cPrefs_font, cCredz_font, cFLV, cImages, cContact, cWallpaper, cPrefs, cCredz, comp, data1, data2, dataf;
function ComponentShell () {
super();
_visible = false;
hideelements();
multibox.origy = multibox._y;
multibox._visible = false;
}
function setConfig(nodes) {
multibox._alpha = 0;
multibox.adjust(150, 75, "", 15);
multibox.setConfig(nodes.childNodes[0]);
var _local2 = nodes.childNodes[1];
trace(("\n\nTITLENODE " + _local2.childNodes[0].firstChild.nodeValue) + "\n\n");
cFLV_title = _local2.childNodes[0].firstChild.nodeValue;
cImages_title = _local2.childNodes[1].firstChild.nodeValue;
cContact_title = _local2.childNodes[2].firstChild.nodeValue;
cWallpaper_title = _local2.childNodes[3].firstChild.nodeValue;
cPrefs_title = _local2.childNodes[4].firstChild.nodeValue;
cCredz_title = "THE V5 TEAM";
cFLV_font = _local2.childNodes[0].attributes.f;
cImages_font = _local2.childNodes[1].attributes.f;
cContact_font = _local2.childNodes[2].attributes.f;
cWallpaper_font = _local2.childNodes[3].attributes.f;
cPrefs_font = _local2.childNodes[4].attributes.f;
cCredz_font = "3";
cFLV.setConfig(nodes.childNodes[2]);
cImages.setConfig(nodes.childNodes[3]);
cContact.setConfig(nodes.childNodes[4]);
cWallpaper.setConfig(nodes.childNodes[5]);
cPrefs.setConfig(nodes.childNodes[6]);
}
function setForSection(id) {
multibox.setForSection(id);
cImages.setForSection(id);
cFLV.setForSection(id);
cContact.setForSection(id);
cPrefs.setForSection(id);
cWallpaper.setForSection(id);
cCredz.setForSection(id);
}
function forcehide() {
multibox.closebtn.onRelease();
}
function switchhide() {
hide();
multibox.switchhide();
_global.MATTE.gotoAndStop("undim");
_global.SOUND.resume();
_visible = false;
isActive = false;
}
function hide() {
hideelements();
if (isVideoPlayer) {
cFLV.FlvPlayer.seek(0);
cFLV.FlvPlayer.contentPath = "";
cFLV.FlvPlayer.stop();
}
cImages.resetdefault();
}
function hideelements() {
cImages._visible = false;
cFLV._visible = false;
cContact._visible = false;
cPrefs._visible = false;
cWallpaper._visible = false;
cCredz._visible = false;
}
function launch(c, d1, d2, f) {
if ((c == "contact") && (_global.cur_lang == "jp")) {
flash.external.ExternalInterface.call("popup", "contact_jp.php?section=" + _global.V5UI.getSectionID(), 600, 470);
return(undefined);
}
comp = c;
data1 = d1;
data2 = d2;
dataf = f;
multibox.firstrun = true;
multibox._alpha = 0;
_global.MATTE.gotoAndStop("dim");
_global.V5UI._visible = false;
_visible = true;
flash.external.ExternalInterface.call("scrollWindow", 0, 0);
showmultibox();
isActive = true;
}
function showmultibox() {
isVideoPlayer = false;
switch (comp) {
case "images" :
multibox.setDecode(cImages_title, cImages_font);
doImages(data1, data2, dataf);
break;
case "flv" :
isVideoPlayer = true;
multibox.setDecode(cFLV_title, cFLV_font);
doFLV(data1, data2);
_global.SOUND.STFU();
break;
case "contact" :
multibox.setDecode(cContact_title, cContact_font);
doContact(data1, data2);
break;
case "wp" :
multibox.setDecode(cWallpaper_title, cWallpaper_font);
doWP(data1, data2);
break;
case "prefs" :
multibox.setDecode(cPrefs_title, cPrefs_font);
doPrefs(data1, data2);
break;
case "credz" :
multibox.setDecode(cCredz_title, cCredz_font);
doCredz(data1, data2);
break;
default :
_global.MATTE.gotoAndStop("undim");
_global.V5UI._visible = true;
_visible = false;
return(undefined);
}
_global.FH.applyAllFonts(this);
multibox.setController(this);
multibox._visible = true;
}
function doImages(iXML, t, f) {
cImages.init();
cImages.ImageViewer.setController(this);
cImages.ImageViewer.setTitle(t, f);
cImages.ImageViewer.setPlaylist(iXML);
cImages.ImageViewer.tweenImageViewer(400, 222, 15);
multibox.adjust(400, 300, "firstimage", 15);
}
function doFLV() {
multibox.adjust(442, 361, "flv", 20);
}
function doContact() {
multibox.adjust(490, 361, "contact", 20);
}
function doWP() {
multibox.adjust(874, 355, "wallpaper", 20);
}
function doPrefs() {
multibox.adjust(411, 185, "prefs", 20);
}
function doCredz() {
multibox.adjust(301, 670, "credz", 20);
}
function onEaseDone(e) {
switch (e) {
case "flv" :
trace("playing flv : " + data1);
cFLV._visible = true;
cFLV.autoPlay = true;
cFLV.FlvPlayer.flvTime = data2;
cFLV.FlvPlayer.play(data1);
break;
case "firstimage" :
cImages._visible = true;
cImages.ImageViewer.loadPlaylist();
trace("image ready");
break;
case "image" :
break;
case "contact" :
cContact.flush();
cContact._visible = true;
trace("adjusted for contact form");
break;
case "wallpaper" :
cWallpaper.setData(data1);
cWallpaper._visible = true;
trace("adjusted for wallpaper");
break;
case "prefs" :
cPrefs.setTabValues();
cPrefs.showtab(data1);
cPrefs._visible = true;
trace("adjusted for preferences");
break;
case "credz" :
cCredz._visible = true;
trace("adjusted for preferences");
break;
case "hide" :
_global.MATTE.gotoAndStop("undim");
_global.V5UI._visible = true;
_global.SOUND.resume();
_visible = false;
isActive = false;
break;
case "switchhide" :
break;
}
if (multibox.firstrun && (e != "hide")) {
multibox.doDecode();
}
multibox.firstrun = false;
}
function onImageReady(w, h) {
multibox.adjust(w + 16, h + 86, "image", 20);
}
var isVideoPlayer = false;
var isActive = false;
}
Symbol 951 MovieClip [__Packages.framework.MultiBox] Frame 0
class framework.MultiBox extends base.AtmoveClip
{
var curH, innersolid, curW, crop1, windowtitle, bracketgroup, closebtn, controller, sectionid, logo, outerstroke, gradient, innergradient, innerstroke, initEase, setEaseFunc, addPropValues, _y, go, _parent, origy, _x, crop2, crop3, crop4;
function MultiBox () {
super();
curH = innersolid._height;
curW = innersolid._width;
crop1.onEaseDone = mx.utils.Delegate.create(this, onEaseDone);
windowtitle.firstLineDone = mx.utils.Delegate.create(this, onTitleDone);
bracketgroup._visible = false;
windowtitle.format_one.text = "";
windowtitle.format_two.text = "";
_global.FH.applyAllFonts(closebtn);
closebtn.onRollOver = function () {
(this.gotoAndPlay("rollover"));// not popped
};
closebtn.onReleaseOutside = (closebtn.onRollOut = function () {
(this.gotoAndPlay("rollout"));// not popped
});
closebtn.onRelease = function () {
this._parent.hide();
(this.gotoAndPlay("hit"));// not popped
};
}
function onTitleDone(pos) {
bracketgroup._visible = true;
bracketgroup.right.initEase();
bracketgroup.left.initEase();
bracketgroup.left.setEaseFunc(com.robertpenner.easing.Back.easeInOut);
bracketgroup.right.setEaseFunc(com.robertpenner.easing.Back.easeInOut);
bracketgroup.right.addPropValues("_x", Math.ceil(pos * 2) + 10, -10);
bracketgroup.left.addPropValues("_x", -10, 10);
bracketgroup.right.go(15);
bracketgroup.left.go(15);
}
function setDecode(dt, df) {
if (df != "3") {
df == "5";
}
windowtitle.init(dt, " ", df);
}
function doDecode() {
windowtitle._visible = true;
windowtitle.decode();
}
function setConfig(nodes) {
loadlogo();
closebtn.format_label.text = nodes.firstChild.nodeValue;
closebtn.format_label.f = nodes.attributes.f;
_global.FH.applyAllFonts(this);
}
function onEaseDone(e) {
controller.onEaseDone(e);
}
function setController(c) {
controller = c;
}
function setForSection(id) {
sectionid = id;
logo.gotoAndPlay("_" + id);
closebtn.hidebox.gotoAndStop("_" + id);
bracketgroup.gotoAndStop("_" + id);
outerstroke.gotoAndStop("_" + id);
gradient.gotoAndStop("_" + id);
innergradient.gotoAndStop("_" + id);
innerstroke.gotoAndStop("_" + id);
}
function loadlogo() {
logo.loadMovie(("2A_logo_cs_" + _global.cur_lang) + ".swf");
}
function show() {
}
function hide() {
bracketgroup._visible = false;
windowtitle._visible = false;
windowtitle.clear();
adjust(150, 75, "hide", 15);
firstrun = true;
initEase();
setEaseFunc(com.robertpenner.easing.Back.easeIn, 2);
addPropValues("_alpha", 100, -100);
addPropValues("_y", _y, 200, 20, 100);
go(15);
_parent.hide();
}
function switchhide() {
bracketgroup._visible = false;
windowtitle._visible = false;
windowtitle.clear();
adjust(150, 75, null, 1);
initEase(null);
setEaseFunc(com.robertpenner.easing.Linear.easeNone);
addPropValues("_alpha", 100, -100);
addPropValues("_y", _y, 200, 20, 100);
go(1);
firstrun = true;
}
function firstadjust(w, h, e) {
firstrun = true;
adjust(w, h, e);
}
function adjust(w, h, e, s) {
if (firstrun) {
windowtitle._visible = false;
bracketgroup._visible = false;
initEase();
setEaseFunc(com.robertpenner.easing.Circ.easeOut, 2);
addPropValues("_alpha", 0, 100);
addPropValues("_y", origy + 200, -200);
go(15);
logo.gotoAndPlay("_" + sectionid);
}
if (((w % 2) == 1) && (!shifted)) {
trace("shifted");
shifted = true;
_x = _x + 0.5;
} else if (((w % 2) == 0) && (shifted)) {
trace("unshifted");
shifted = false;
_x = _x - 0.5;
}
var _local6 = com.robertpenner.easing.Back.easeInOut;
var _local2 = com.robertpenner.easing.Circ.easeInOut;
boxspeed = s;
var _local15 = 46;
var _local7 = (w / 2) + _local15;
var _local8 = h;
var _local5 = w + 68;
var _local4 = h + 86;
var _local10 = _local5 + 2;
var _local14 = _local4 + 2;
var _local16 = _local5 - 48;
var _local12 = _local4 - 60;
var _local11 = _local5 - 50;
var _local13 = _local4 - 62;
var _local18 = ((-w) / 2) + 10;
var _local17 = ((-w) / 2) + 20;
var _local19 = ((-h) / 2) - 35;
crop1.initEase(e);
crop1.setEaseFunc(_local6, 0.3);
crop1.addPropValues("_x", crop1._x, (-_local7) - crop1._x);
crop2.initEase();
crop2.setEaseFunc(_local6, 0.3);
crop2.addPropValues("_x", crop2._x, _local7 - crop2._x);
crop3.initEase();
crop3.setEaseFunc(_local6, 0.3);
crop3.addPropValues("_x", crop3._x, _local7 - crop3._x);
crop3.addPropValues("_y", crop3._y, (_local8 - crop3._y) - 55);
crop4.initEase();
crop4.setEaseFunc(_local6, 0.3);
crop4.addPropValues("_x", crop4._x, (-_local7) - crop4._x);
crop4.addPropValues("_y", crop4._y, (_local8 - crop4._y) - 55);
closebtn.initEase();
closebtn.setEaseFunc(_local2, 0.3);
closebtn.addPropValues("_x", closebtn._x, ((w / 2) - closebtn._x) + 15);
outerstroke.initEase();
outerstroke.setEaseFunc(_local2, 1);
outerstroke.addPropValues("_width", outerstroke._width, _local10 - outerstroke._width);
outerstroke.addPropValues("_height", outerstroke._height, _local14 - outerstroke._height);
innerstroke.initEase();
innerstroke.setEaseFunc(_local2, 1);
innerstroke.addPropValues("_width", innerstroke._width, _local16 - innerstroke._width);
innerstroke.addPropValues("_height", innerstroke._height, _local12 - innerstroke._height);
innergradient.initEase();
innergradient.setEaseFunc(_local2, 1);
innergradient.addPropValues("_width", innergradient._width, _local11 - innergradient._width);
innergradient.addPropValues("_height", innergradient._height, _local13 - innergradient._height);
gradient.initEase();
gradient.setEaseFunc(_local2, 1);
gradient.addPropValues("_width", gradient._width, _local5 - gradient._width);
gradient.addPropValues("_height", gradient._height, _local4 - gradient._height);
windowtitle.initEase();
windowtitle.setEaseFunc(_local2, 1);
windowtitle.addPropValues("_x", windowtitle._x, _local17 - windowtitle._x);
bracketgroup.initEase();
bracketgroup.setEaseFunc(_local2, 1);
bracketgroup.addPropValues("_x", bracketgroup._x, _local18 - bracketgroup._x);
innergradient.go(boxspeed);
bracketgroup.go(boxspeed);
gradient.go(boxspeed);
innerstroke.go(boxspeed);
outerstroke.go(boxspeed);
windowtitle.go(boxspeed);
closebtn.go(boxspeed);
crop1.go(boxspeed);
crop2.go(boxspeed);
crop3.go(boxspeed);
crop4.go(boxspeed);
curW = w;
curH = h;
}
var boxspeed = 20;
var firstrun = true;
var shifted = false;
}
Symbol 952 MovieClip [__Packages.base.Decoder] Frame 0
class base.Decoder extends base.AtmoveClip
{
var _visible, format_one, format_two, str1, str2, bgmask, gap, linewidth, dType, gotoAndPlay, tempStr, ci, sci, bStr, cycleCt, str1Array, str2Array;
function Decoder () {
super();
_visible = false;
format_one.autoSize = "left";
format_two.autoSize = "left";
str1 = format_one.text.toUpperCase();
str2 = format_two.text.toUpperCase();
setGap(5);
adjust();
setType();
bgmask._width = 0;
}
function setFieldSize(size) {
}
function init(_str1, _str2, f) {
format_one.f = f;
format_two.f = f;
setText(_str1, _str2);
}
function clear() {
format_one.text = "";
format_two.text = "";
}
function adjust() {
var _local2 = format_one._width;
format_two._x = _local2 + gap;
linewidth = format_one._width;
bgmask._width = linewidth + 18;
}
function ranChar() {
return(chr(46 + (Math.random() * 74)));
}
function setText(_str1, _str2) {
str1 = _str1;
str2 = _str2;
}
function changeText(_str1, _str2, _type) {
setType(_type);
setText(_str1, _str2);
decode();
}
function setColor(_col1, _col2) {
}
function setGap(_gap) {
if (_gap == undefined) {
gap = 0;
} else {
gap = _gap;
}
}
function setType(_type) {
if (_type != undefined) {
dType = _type;
} else {
dType = "lin";
}
}
function getType() {
return(dType);
}
function decode() {
bgmask._width = 0;
(gotoAndPlay("show"));// not popped
_visible = true;
tempStr = "";
format_one.text = "";
format_two.text = "";
clearInterval(ci);
clearInterval(sci);
switch (getType()) {
case "lin" :
clearInterval(ci);
clearInterval(sci);
bStr = "";
cycleCt = 0;
ci = setInterval(this, "buildPrimary", 35);
break;
default :
}
}
function buildPrimary() {
var _local4 = 5;
var _local3 = 0;
while (_local3 <= _local4) {
bStr = tempStr + ranChar();
format_one.text = bStr;
_local3++;
}
tempStr = tempStr + str1.charAt(cycleCt);
cycleCt++;
adjust();
if (cycleCt == str1.length) {
format_one.text = tempStr;
clearInterval(ci);
cycleCt = 0;
tempStr = "";
adjust();
_global.FH.applyAllFonts(this);
firstLineDone(linewidth);
sci = setInterval(this, "buildSecondary", 25);
}
_global.FH.applyAllFonts(this);
}
function firstLineDone() {
return(linewidth);
}
function buildSecondary() {
var _local4 = 5;
var _local3 = 0;
while (_local3 <= _local4) {
bStr = tempStr + ranChar();
format_two.text = bStr;
_local3++;
}
tempStr = tempStr + str2.charAt(cycleCt);
cycleCt++;
if (cycleCt == str2.length) {
format_two.text = tempStr;
clearInterval(sci);
trace("linear build done");
}
_global.FH.applyAllFonts(this);
}
function cycle() {
var _local2 = 0;
while (_local2 < str1.length) {
var _local3 = ranChar();
if (((_local3 == str1.charAt(_local2)) || (_local3 == str1.charAt(_local2).toUpperCase())) || (str1.charAt(_local2) == " ")) {
str1Array[_local2] = str1.charAt(_local2);
}
if (str1Array[_local2] != "") {
tempStr = tempStr + str1Array[_local2].toUpperCase();
} else {
tempStr = tempStr + _local3.toUpperCase();
}
format_one.text = tempStr;
if (tempStr == str1) {
var _local4 = true;
}
if (tempStr.length == str1.length) {
tempStr = "";
}
_local2++;
}
adjust();
_local2 = 0;
while (_local2 < str2.length) {
var _local3 = ranChar();
if ((_local3 == str2.charAt(_local2)) || (str2.charAt(_local2) == " ")) {
str2Array[_local2] = str2.charAt(_local2);
}
if (str2Array[_local2] != "") {
tempStr = tempStr + str2Array[_local2].toUpperCase();
} else {
tempStr = tempStr + _local3.toUpperCase();
}
format_two.text = tempStr;
if ((tempStr == str2) && (_local4 == true)) {
str1Array = [];
str2Array = [];
clearInterval(ci);
trace("done");
}
if (tempStr.length == str2.length) {
tempStr = "";
}
_local2++;
}
}
}
Symbol 953 MovieClip [__Packages.com.robertpenner.easing.Back] Frame 0
class com.robertpenner.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
}
Symbol 954 MovieClip [__Packages.com.robertpenner.easing.Linear] Frame 0
class com.robertpenner.easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 955 MovieClip [__Packages.framework.NewsItem] Frame 0
class framework.NewsItem extends MovieClip
{
var format_body, format_date, format_header;
function NewsItem () {
super();
format_body.autoSize = true;
format_body.wordWrap = true;
}
function doInternal(ddl) {
var _local2 = _global.PIN.getPath(ddl);
_global.TE.engage(_local2[0], _local2[1]);
_global.DDL.setDeepLink(ddl);
}
function setData(node) {
trace("recent news date :: " + node.childNodes[0].firstChild.nodeValue);
format_date.text = node.childNodes[0].firstChild.nodeValue;
format_header.text = node.childNodes[1].firstChild.nodeValue;
format_body.htmlText = node.childNodes[2].firstChild.nodeValue;
format_date.f = node.childNodes[0].attributes.f;
format_header.f = node.childNodes[1].attributes.f;
format_body.f = node.childNodes[2].attributes.f;
}
}
Symbol 956 MovieClip [__Packages.framework.floatingcontrols.cCredz] Frame 0
class framework.floatingcontrols.cCredz extends MovieClip
{
var gotoAndStop, format_blurb;
function cCredz () {
super();
}
function setForSection(id) {
(gotoAndStop("_" + id));// not popped
format_blurb.f = "3";
_global.FH.applyAllFonts(this);
}
}
Symbol 957 MovieClip [__Packages.framework.floatingcontrols.PrefLanguages] Frame 0
class framework.floatingcontrols.PrefLanguages extends MovieClip
{
var format_savestate_en, format_savestate_jp, select_en, select_jp, btn, setval, format_english, format_japanese, format_instr, applybtn, gotoAndStop, getURL;
function PrefLanguages () {
super();
format_savestate_en._visible = false;
format_savestate_jp._visible = false;
select_en.lang = "en";
select_jp.lang = "jp";
select_en.circle._visible = false;
select_jp.circle._visible = false;
select_en.onRelease = function () {
this._parent.switchlang(this.lang);
};
select_jp.onRelease = function () {
this._parent.switchlang(this.lang);
};
btn.onRollOver = function () {
this._parent.applybtn.onRollOver();
};
btn.onRollOut = function () {
this._parent.applybtn.onRollOut();
};
btn.onRelease = function () {
this._parent.applynow();
};
setval = _global.cur_lang;
}
function show() {
var _local2 = SharedObject.getLocal("2Advanced_v5");
var _local3 = _local2.data.lang;
format_savestate_en._visible = false;
format_savestate_jp._visible = false;
this["format_savedstate_" + _local3]._visible = true;
switchlang(setval);
}
function setConfig(nodes) {
format_english.text = nodes.childNodes[0].firstChild.nodeValue;
format_japanese.text = nodes.childNodes[1].firstChild.nodeValue;
format_instr.text = nodes.childNodes[2].firstChild.nodeValue;
applybtn.format_label.text = nodes.childNodes[3].firstChild.nodeValue;
format_savestate_en.text = (format_savestate_jp.text = nodes.childNodes[4].firstChild.nodeValue);
format_english.f = nodes.childNodes[0].attributes.f;
format_japanese.f = nodes.childNodes[1].attributes.f;
format_instr.f = nodes.childNodes[2].attributes.f;
applybtn.format_label.f = nodes.childNodes[3].attributes.f;
format_savestate_en.f = (format_savestate_jp.f = nodes.childNodes[4].attributes.f);
_global.FH.applyAllFonts(this);
}
function setForSection(id) {
select_en.gotoAndStop("_" + id);
select_jp.gotoAndStop("_" + id);
(gotoAndStop("_" + id));// not popped
}
function switchlang(val) {
activeselect.circle._visible = false;
activeselect = this["select_" + val];
activeselect.circle._visible = true;
setval = val;
}
function applynow() {
if (setval != _global.cur_lang) {
_global.cur_lang = setval;
var _local3 = _global.DDL.getDeepLink();
_local3 = ((_local3 == "null") ? "home" : (_local3));
(getURL((("index.php?lang=" + setval) + "#") + _local3, "_self"));// not popped
}
}
var activeselect = null;
}
Symbol 958 MovieClip [__Packages.framework.floatingcontrols.PrefAudio] Frame 0
class framework.floatingcontrols.PrefAudio extends MovieClip
{
var format_savestate_on, format_savestate_off, select_on, select_off, btn, setval, format_on, format_off, format_instr, applybtn, gotoAndStop;
function PrefAudio () {
super();
format_savestate_on._visible = false;
format_savestate_off._visible = false;
select_on.val = "on";
select_off.val = "off";
select_on.circle._visible = false;
select_off.circle._visible = false;
select_on.onRelease = function () {
this._parent.switchOnOff(this.val);
};
select_off.onRelease = function () {
this._parent.switchOnOff(this.val);
};
btn.onRollOver = function () {
this._parent.applybtn.onRollOver();
};
btn.onRollOut = function () {
this._parent.applybtn.onRollOut();
};
btn.onRelease = function () {
this._parent.applynow();
};
setval = _global.cur_audio;
}
function show() {
var _local2 = SharedObject.getLocal("2Advanced_v5");
var _local3 = _local2.data.audio;
format_savestate_on._visible = false;
format_savestate_off._visible = false;
this["format_savedstate_" + _local3]._visible = true;
switchOnOff(setval);
}
function setConfig(nodes) {
format_on.text = nodes.childNodes[0].firstChild.nodeValue;
format_off.text = nodes.childNodes[1].firstChild.nodeValue;
format_instr.text = nodes.childNodes[2].firstChild.nodeValue;
applybtn.format_label.text = nodes.childNodes[3].firstChild.nodeValue;
format_savestate_on.text = (format_savestate_off.text = nodes.childNodes[4].firstChild.nodeValue);
format_on.f = nodes.childNodes[0].attributes.f;
format_off.f = nodes.childNodes[1].attributes.f;
format_instr.f = nodes.childNodes[2].attributes.f;
applybtn.format_label.f = nodes.childNodes[3].attributes.f;
format_savestate_on.f = (format_savestate_off.f = nodes.childNodes[4].attributes.f);
_global.FH.applyAllFonts(this);
}
function setForSection(id) {
select_on.gotoAndStop("_" + id);
select_off.gotoAndStop("_" + id);
(gotoAndStop("_" + id));// not popped
}
function switchOnOff(val) {
activeselect.circle._visible = false;
activeselect = this["select_" + val];
activeselect.circle._visible = true;
setval = val;
}
function applynow() {
_global.cur_audio = setval;
trace("setting audio : " + setval);
if (setval == "on") {
_global.SOUND.resume();
} else if (setval == "off") {
_global.SOUND.STFU();
}
}
var activeselect = null;
}
Symbol 959 MovieClip [__Packages.framework.floatingcontrols.PrefTopNav] Frame 0
class framework.floatingcontrols.PrefTopNav extends MovieClip
{
var format_savestate_on, format_savestate_off, select_on, select_off, btn, setval, format_on, format_off, format_instr, applybtn, gotoAndStop;
function PrefTopNav () {
super();
format_savestate_on._visible = false;
format_savestate_off._visible = false;
select_on.val = "on";
select_off.val = "off";
select_on.circle._visible = false;
select_off.circle._visible = false;
select_on.onRelease = function () {
this._parent.switchOnOff(this.val);
};
select_off.onRelease = function () {
this._parent.switchOnOff(this.val);
};
btn.onRollOver = function () {
this._parent.applybtn.onRollOver();
};
btn.onRollOut = function () {
this._parent.applybtn.onRollOut();
};
btn.onRelease = function () {
this._parent.applynow();
};
setval = _global.cur_topnav;
}
function show() {
var _local2 = SharedObject.getLocal("2Advanced_v5");
var _local3 = _local2.data.topnav;
format_savestate_on._visible = false;
format_savestate_off._visible = false;
this["format_savedstate_" + _local3]._visible = true;
switchOnOff(setval);
}
function setConfig(nodes) {
format_on.text = nodes.childNodes[0].firstChild.nodeValue;
format_off.text = nodes.childNodes[1].firstChild.nodeValue;
format_instr.text = nodes.childNodes[2].firstChild.nodeValue;
applybtn.format_label.text = nodes.childNodes[3].firstChild.nodeValue;
format_savestate_on.text = (format_savestate_off.text = nodes.childNodes[4].firstChild.nodeValue);
format_on.f = nodes.childNodes[0].attributes.f;
format_off.f = nodes.childNodes[1].attributes.f;
format_instr.f = nodes.childNodes[2].attributes.f;
applybtn.format_label.f = nodes.childNodes[3].attributes.f;
format_savestate_on.f = (format_savestate_off.f = nodes.childNodes[4].attributes.f);
trace("TOP NAV TEXT " + format_on.text);
_global.FH.applyAllFonts(this);
}
function setForSection(id) {
select_on.gotoAndStop("_" + id);
select_off.gotoAndStop("_" + id);
(gotoAndStop("_" + id));// not popped
}
function switchOnOff(val) {
activeselect.circle._visible = false;
activeselect = this["select_" + val];
activeselect.circle._visible = true;
setval = val;
}
function applynow() {
trace("setting topnav : " + setval);
_global.cur_topnav = setval;
if (setval == "on") {
_global.V5UI.topnav.persist();
} else if (setval == "off") {
_global.V5UI.topnav.unpersist();
}
}
var activeselect = null;
}
Symbol 960 MovieClip [__Packages.framework.floatingcontrols.PrefSave] Frame 0
class framework.floatingcontrols.PrefSave extends MovieClip
{
var btn, langval, _parent, audioval, format_prefval2, topnavval, format_prefval3, format_prefval1, format_pref1, format_pref2, format_pref3, savebtn, gotoAndStop, pref2, pref3, getURL;
function PrefSave () {
super();
}
function PrefTopNav() {
}
function setPrefRef(r1, r2, r3) {
}
function show() {
btn.onRollOver = function () {
this._parent.savebtn.onRollOver();
};
btn.onRollOut = function () {
this._parent.savebtn.onRollOut();
};
btn.onRelease = function () {
this._parent.save();
};
langval = _parent.pref1.setval;
audioval = (format_prefval2.text = _parent.pref2.setval);
topnavval = (format_prefval3.text = _parent.pref3.setval);
format_prefval1.text = ((langval == "en") ? "English" : "Japanese");
format_prefval1.f = format_pref1.f;
format_prefval2.f = format_pref2.f;
format_prefval3.f = format_pref3.f;
_global.FH.applyAllFonts(this);
}
function setConfig(nodes) {
format_pref1.text = nodes.childNodes[0].firstChild.nodeValue;
format_pref2.text = nodes.childNodes[1].firstChild.nodeValue;
format_pref3.text = nodes.childNodes[2].firstChild.nodeValue;
savebtn.format_label.text = nodes.childNodes[3].firstChild.nodeValue;
format_pref1.f = nodes.childNodes[0].attributes.f;
format_pref2.f = nodes.childNodes[1].attributes.f;
format_pref3.f = nodes.childNodes[2].attributes.f;
savebtn.format_label.f = nodes.childNodes[3].attributes.f;
_global.FH.applyAllFonts(this);
}
function setForSection(id) {
(gotoAndStop("_" + id));// not popped
}
function save() {
trace("SAVING settings");
var _local3 = SharedObject.getLocal("2Advanced_v5");
_local3.data.lang = langval;
_local3.data.audio = audioval;
_local3.data.topnav = topnavval;
_local3.flush();
pref2.applynow();
pref3.applynow();
if (langval != _global.cur_lang) {
var _local4 = _global.DDL.getDeepLink();
_local4 = ((_local4 == "null") ? "home" : (_local4));
(getURL((("index.php?lang=" + langval) + "#") + _local4, "_self"));// not popped
}
_global.CSHELL.forcehide();
}
var activeselect = null;
}
Symbol 961 MovieClip [__Packages.framework.floatingcontrols.cPreferences] Frame 0
class framework.floatingcontrols.cPreferences extends MovieClip
{
var _visible, pref4, pref1, pref2, pref3, gotoAndPlay, activetab, activepref, sectionid, format_title, format_tab1, format_tab2, format_tab3, format_tab4, taboutlines, stripes;
function cPreferences () {
super();
_visible = false;
var _local3 = 0;
while (_local3++ , _local3 <= 4) {
this["pref" + _local3]._visible = false;
this["tab" + _local3].id = _local3;
this["tab" + _local3].onRelease = function () {
this._parent.hittab(this);
};
}
pref4.setPrefRef(pref1, pref2, pref3);
}
function showtab(tabid) {
this["tab" + tabid].onRelease();
}
function hittab(tab) {
(gotoAndPlay(this["tab" + tab.id]));// not popped
activetab.enabled = true;
activetab = tab;
activetab.enabled = false;
activepref._visible = false;
activepref = this["pref" + tab.id];
activepref._visible = true;
setForSection(sectionid);
activepref.show();
}
function setTabValues() {
pref1.setval = _global.cur_lang;
pref2.setval = _global.cur_audio;
pref3.setval = _global.cur_topnav;
}
function setConfig(nodes) {
format_title.text = nodes.childNodes[0].firstChild.nodeValue;
format_tab1.text = nodes.childNodes[1].firstChild.nodeValue;
format_tab2.text = nodes.childNodes[2].firstChild.nodeValue;
format_tab3.text = nodes.childNodes[3].firstChild.nodeValue;
format_tab4.text = nodes.childNodes[4].firstChild.nodeValue;
format_title.f = nodes.childNodes[0].attributes.f;
format_tab1.f = nodes.childNodes[1].attributes.f;
format_tab2.f = nodes.childNodes[2].attributes.f;
format_tab3.f = nodes.childNodes[3].attributes.f;
format_tab4.f = nodes.childNodes[4].attributes.f;
pref1.setConfig(nodes.childNodes[5]);
pref2.setConfig(nodes.childNodes[6]);
pref3.setConfig(nodes.childNodes[7]);
pref4.setConfig(nodes.childNodes[8]);
_global.FH.applyAllFonts(this);
}
function setForSection(id) {
sectionid = id;
pref1.setForSection(id);
pref2.setForSection(id);
pref3.setForSection(id);
pref4.setForSection(id);
trace("TABOUTLINES : " + taboutlines);
taboutlines.gotoAndStop("_" + id);
stripes.gotoAndStop("_" + id);
}
}
Symbol 962 MovieClip [__Packages.framework.FontHandler] Frame 0
class framework.FontHandler extends MovieClip
{
var preload, SFM, onOperationDone, numFontsRegistered, attachMovie;
function FontHandler () {
super();
preload._visible = false;
SFM = new com.dembicki.SharedFontsManager();
}
function setCallBack(cb) {
onOperationDone = cb;
}
function loadFonts(node) {
fontlist = [];
numFontsRegistered = 0;
SFM.addListener(this);
var _local2 = 0;
while (_local2 < node.childNodes.length) {
var _local3 = attachMovie("mc-fontlib", "lib_" + _local2, _local2);
_local3.formatID = node.childNodes[_local2].attributes.f;
_local3.font.loadMovie(node.childNodes[_local2].attributes.src + ".swf");
fontlist.push(_local3);
_local2++;
}
preload.gotoAndPlay("show");
}
function onRegister(tf) {
numFontsRegistered++;
if (numFontsRegistered == fontlist.length) {
preload.gotoAndPlay("hide");
SFM.removeListener(this);
onOperationDone();
}
}
function applyAllFonts(mc) {
if ((mc == undefined) || (mc == null)) {
mc = _level0;
}
var _local2 = 0;
while (_local2 < fontlist.length) {
applyFont(mc, fontlist[_local2++].formatID);
}
}
function applyFont(mc, fieldID) {
var _local2;
for (_local2 in mc) {
var _local3 = mc[_local2];
var _local6 = typeof(_local3);
if ((((_local6 == "movieclip") && (_local2 != "controller")) && (_local2 != "scroller")) && (_local2.substr(0, 6) != "formt_")) {
applyFont(_local3, fieldID);
} else if ((Number(mc[_local2].f) == Number(fieldID)) && (_local2.slice(0, 6) == "format")) {
_local3.setFormat(SFM.getRegisteredFont(fieldID));
}
}
}
function registerFont(lib) {
var _local2 = lib._parent._parent.formatID;
return(SFM.registerFont(lib.source_txt, _local2));
}
var fontlist = [];
}
Symbol 963 MovieClip [__Packages.com.dembicki.SharedFontsManager] Frame 0
class com.dembicki.SharedFontsManager
{
var holder, setFlags;
function SharedFontsManager (Void) {
AsBroadcaster.initialize(this);
holder = {};
setFlags = _global.ASSetPropFlags;
lock(com.dembicki.SharedFontsManager, "instance");
lock(_level0, "font_mng");
lock(this, "_listeners", "holder", "setFlags");
}
static function init(Void) {
if (!com.dembicki.SharedFontsManager(_level0.font_mng)) {
new com.dembicki.SharedFontsManager();
}
return(com.dembicki.SharedFontsManager(_level0.font_mng));
}
function registerFont(source, id) {
var _local4 = source.embedFonts;
var _local2 = source.getNewTextFormat();
var _local5 = new TextFormat(_local2.font, _local2.size, null, _local2.bold, _local2.italic);
var _local7 = _local2.font;
var _local3 = id;
trace("library : " + _local2.font);
if (_local4) {
holder[_local3] = _local5;
broadcastMessage("onRegister", new TextFormat(_local2.font, _local2.size, null, _local2.bold, _local2.italic));
return(true);
}
broadcastMessage("onRegisterError", new TextFormat(_local2.font, null, null, _local2.bold, _local2.italic));
return(false);
}
function isRegistered(text_format) {
var _local2 = text_format.font;
if (text_format.bold) {
_local2 = _local2 + "\x01";
}
if (text_format.italic) {
_local2 = _local2 + "\x02";
}
return(Boolean(holder[_local2]));
}
function getRegisteredFont(id) {
return(TextFormat(holder[id]));
}
function getRegisteredFonts(Void) {
var _local3 = [];
var _local2;
for (var _local4 in holder) {
_local2 = TextFormat(holder[_local4]);
if (_local2) {
_local3.push(new TextFormat(_local2.font, null, null, _local2.bold, _local2.italic));
}
}
return(_local3);
}
function addListener(listener) {
return(false);
}
function removeListener(listener) {
return(false);
}
function getFontMap(source) {
var _local16 = source.html;
source.html = true;
var _local15 = new XML(source.htmlText);
source.html = _local16;
var _local12 = new Array();
var _local6 = new Object();
var _local9;
var _local3;
var _local4;
var _local10;
var _local11 = getTextNodes(_local15);
var _local8 = _local11.length;
while (_local8--) {
_local9 = _local11[_local8];
_local3 = _local9.parentNode;
_local4 = getFace(_local3);
var _local2 = false;
var _local5 = false;
if (_local3.nodeName == "I") {
_local5 = true;
if (_local3.parentNode.nodeName == "B") {
_local2 = true;
}
} else if (_local3.nodeName == "B") {
_local2 = true;
}
if (_local2) {
_local4 = _local4 + "\x01";
}
if (_local5) {
_local4 = _local4 + "\x02";
}
_local10 = new TextFormat(_local4, null, null, _local2, _local5);
_local6[_local4] = _local10;
}
for (var _local13 in _local6) {
var _local7 = TextFormat(_local6[_local13]);
_local12.push(_local7);
}
return(_local12);
}
function onRegister(registered_fmt) {
}
function onRegisterError(error_fmt) {
}
function nextNode(current_node) {
if (current_node.firstChild != null) {
return(current_node.firstChild);
}
var _local1 = current_node;
while (_local1.nextSibling == null) {
if (_local1.parentNode) {
_local1 = _local1.parentNode;
continue;
}
return(null);
}
return(_local1.nextSibling);
}
function getTextNodes(current_node) {
var _local3 = new Array();
while (current_node) {
if (current_node.nodeType == 3) {
_local3.push(current_node);
}
current_node = nextNode(current_node);
}
return(_local3);
}
function getFace(current_node) {
var _local2 = current_node.attributes.FACE;
if (_local2 != undefined) {
return(_local2);
}
return(arguments.callee(current_node.parentNode));
}
function broadcastMessage(message) {
}
function lock(obj) {
arguments.shift();
setFlags(obj, arguments, parseInt("111", 2));
}
function hide(obj) {
arguments.shift();
setFlags(obj, arguments, parseInt("011", 2), parseInt("100", 2));
}
function unLock(obj) {
arguments.shift();
setFlags(obj, arguments, parseInt("000", 2), parseInt("111", 2));
}
function getNextNode(current_node) {
if (current_node.firstChild == undefined) {
while (current_node.nextSibling == undefined) {
if (current_node.parentNode) {
current_node = current_node.parentNode;
continue;
}
return(undefined);
}
return(current_node.nextSibling);
}
return(current_node.firstChild);
}
}
Symbol 964 MovieClip [__Packages.framework.SoundControl] Frame 0
class framework.SoundControl extends MovieClip
{
var _visible, stfu, soundtrack, _parent, format_label, mcSlider, savedvol, gotoAndPlay, btFadeout, btFadein, targetVolume, audioTimer, currentVolume;
function SoundControl () {
super();
_visible = false;
stfu = false;
soundtrack = new Sound(this);
soundtrack.setVolume(0);
soundtrack.attachSound("sndSoundtrack");
_parent.v5UI.soundfx = new Sound(_parent.v5UI);
_parent.v5UI.soundfx.setVolume(0);
_parent.mattes.soundfx = new Sound(_parent.mattes);
_parent.mattes.soundfx.setVolume(0);
}
function AudioControl(num) {
_parent.sound.setVolume(100);
soundtrack.setVolume(num);
_parent.v5UI.soundfx.setVolume(num);
_parent.mattes.soundfx.setVolume(num);
}
function setConfig(nodes) {
format_label.text = nodes.firstChild.nodeValue;
format_label.f = nodes.attributes.f;
_global.FH.applyAllFonts(this);
}
function setSoundRef(sr) {
}
function setExplicit(val) {
if (val == "off") {
mcSlider.mcDragger._x = 0;
savedvol = 100;
stfu = true;
} else {
mcSlider.mcDragger._x = 100;
AudioControl(100);
savedvol = 100;
}
}
function setForSection(id) {
(gotoAndPlay("section_" + id));// not popped
}
function startSoundtrack() {
}
function getVol() {
}
function STFU() {
stfu = true;
audioStart(0);
}
function resume() {
if (_global.cur_audio == "off") {
} else {
audioStart(savedvol);
}
stfu = false;
}
function setupButtons() {
btFadeout.onRollOver = function () {
this._parent.fillLeft.gotoAndPlay("on");
};
btFadeout.onRelease = function () {
this._parent.audioStart(0);
this._parent.savedvol = 0;
};
btFadein.onRollOver = function () {
this._parent.fillRight.gotoAndPlay("on");
};
btFadein.onRelease = function () {
this._parent.audioStart(100);
this._parent.savedvol = 100;
};
mcSlider.mcDragger.ratio = 0;
mcSlider.mcDragger.onPress = function () {
this.startDrag(true, 0, 0, this._parent.line._width, 0);
this.onEnterFrame = function () {
this.ratio = Math.round((this._x * 100) / this._parent.line._width);
this._parent._parent.savedvol = this.ratio;
this._parent._parent.AudioControl(this.ratio);
};
};
mcSlider.mcDragger.onRelease = (mcSlider.mcDragger.onReleaseOutside = function () {
this.onEnterFrame = null;
this.stopDrag();
this._x = Math.floor(this._x);
this._parent._parent.savedvol = this._x;
this._parent._parent.AudioControl(this._x);
if (this._x > 0) {
_global.cur_audio = "on";
}
});
}
function audioStart(num) {
targetVolume = num;
clearInterval(audioTimer);
audioTimer = setInterval(this, "audioChange", 10);
}
function audioChange() {
currentVolume = soundtrack.getVolume();
if (targetVolume < currentVolume) {
AudioControl(currentVolume - 1);
} else if (targetVolume > currentVolume) {
AudioControl(currentVolume + 1);
} else {
audioEnd();
}
mcSlider.mcDragger._x = currentVolume;
}
function audioEnd() {
clearInterval(audioTimer);
}
}
Symbol 965 MovieClip [__Packages.com.jmoore.DeepLinkInterface] Frame 0
class com.jmoore.DeepLinkInterface
{
var deepLink;
function DeepLinkInterface (jsMethodName, callbackInstance, callbackMethod) {
var _local1 = flash.external.ExternalInterface.addCallback(jsMethodName, callbackInstance, callbackMethod);
}
function setDeepLink(deepLink, deepTitle) {
flash.external.ExternalInterface.call("setDeepLink", deepLink, deepTitle);
}
function getDeepLink() {
deepLink = String(flash.external.ExternalInterface.call("getDeepLink"));
return(deepLink);
}
function getPageTitle() {
flash.external.ExternalInterface.call("getPageTitle");
}
function setPageTitle(windowTitle) {
flash.external.ExternalInterface.call("setPageTitle", windowTitle);
}
}
Symbol 966 MovieClip [__Packages.framework.v5DDL] Frame 0
class framework.v5DDL extends com.jmoore.DeepLinkInterface
{
var wInt;
function v5DDL (method, cbo, cb) {
super(method, cbo, cb);
}
function setDeepLink(ddl) {
var _local3 = "2Advanced Studios - " + ddl;
var _local2 = new Object();
_local2.ddl = ddl;
_local2.wTitle = _local3;
super.setDeepLink(_local2.ddl, _local2.wTitle);
}
function _waitToSet(o) {
if ((i++) == 2) {
i = 0;
clearInterval(wInt);
super.setDeepLink(o.ddl, o.wTitle);
}
}
var i = 0;
}
Symbol 967 MovieClip [__Packages.framework.PathInterpreter] Frame 0
class framework.PathInterpreter
{
function PathInterpreter () {
}
function buildPathLookup(nodes) {
parse(nodes.childNodes);
TEpaths.unshift([1]);
TEpaths.pop();
TEpaths.unshift([0]);
DDLpaths.unshift("");
var _local2 = 0;
while (_local2 < TEpaths.length) {
_local2++;
}
}
function parse(nodes) {
var _local2 = 0;
var _local6;
while (_local2 < nodes.length) {
var _local5 = nodes[_local2].attributes.ddlref;
ddlpath[level] = _local5;
ddlpath = ddlpath.slice(0, level + 1);
DDLpaths.push(ddlpath.join("/"));
var _local4 = nodes[_local2].attributes.id;
tepath[level] = _local4;
tepath = tepath.slice(0, level + 1);
TEpaths.push(tepath);
if (nodes[_local2].hasChildNodes()) {
nodeindex++;
level++;
parse(nodes[_local2].childNodes);
level--;
tepath.pop();
} else {
nodeindex++;
}
_local2++;
}
return(undefined);
}
function buildPathFromNode(node) {
tepath = [];
pathdone = false;
if (node.parentNode.attributes.id == "0") {
return(new Array(node.attributes.id));
}
tepath.push(node.attributes.id);
buildpath(node.parentNode);
tepath.reverse();
return(tepath);
}
function buildpath(node) {
tepath.push(node.attributes.id);
if ((node.parentNode.attributes.id == "0") || (pathdone)) {
pathdone = true;
return(undefined);
}
buildpath(node.parentNode);
}
function stripID(ddl) {
var _local1 = ddl.split("&id=");
trace(("\nSTRIPPED PATH : " + _local1.toString()) + "\n\n");
return(_local1[0]);
}
function getPath(ddl) {
var _local5 = ddl.split("&id=");
ddl = parseSpecialPath(_local5[0]);
var _local3 = _local5[1];
var _local2 = 0;
while (_local2 < DDLpaths.length) {
if (DDLpaths[_local2] == ddl) {
return([TEpaths[_local2], _local3]);
}
_local2++;
}
return([[0], _local3]);
}
function getDDL(path) {
var _local4 = path.join("_");
var _local2 = 0;
while (_local2 < TEpaths.length) {
if (TEpaths[_local2].length > 1) {
var _local3 = TEpaths[_local2].join("_");
} else {
var _local3 = TEpaths[_local2].toString();
}
if (String(_local3) == String(_local4)) {
return(DDLpaths[_local2]);
}
_local2++;
}
return(null);
}
function parseSpecialPath(ddl) {
_global.EEstate = null;
_global.EEval = null;
_root._rdebug.text = ddl;
if (!(ddl === "kotlerkrash")) {
} else {
_global.EEstate = "vid";
_global.EEval = "assets/special/test.flv";
return(null);
}
return(ddl);
}
var DDLpaths = [];
var TEpaths = [];
var nodeindex = 0;
var level = 0;
var ddlpath = [];
var tepath = [];
var pathdone = false;
}
Symbol 968 MovieClip [__Packages.framework.TransitionEngine] Frame 0
class framework.TransitionEngine
{
var topclip, cur_timeline, engaged, cue_waiting, cued_path, drilling, pathID;
function TransitionEngine (timeline) {
trace("TE created");
topclip = timeline;
cur_timeline = timeline;
}
function getPath() {
return(orig_path);
}
function getPathPos() {
return(in_path.length);
}
function isDone() {
var _local2 = (in_path.length == 0) && (out_path.length == 0);
trace("transition done? " + _local2);
return(_local2);
}
function outpathlen() {
return(out_path.length);
}
function inpathlen() {
return(in_path.length);
}
function unlock(ts) {
}
function report(timeline) {
cur_timeline = timeline;
engaged = false;
if (cue_waiting) {
cue_waiting = false;
if (out_path.length > 0) {
cur_path = out_path;
cur_path.reverse();
}
engage(cued_path);
return(undefined);
}
if ((in_path.length == 0) && (out_path.length == 0)) {
if (!drilling) {
trace((("do show on final clip : " + cur_timeline) + " ") + finalclip);
cur_timeline._parent.gotoAndPlay(finalclip + "_in");
cur_timeline._parent.TEid = finalclip;
finalclip = null;
}
_global.SHELL.section.shell.setTargetID(pathID);
trace("....................................... end on " + cur_timeline);
drilling = false;
return(undefined);
}
trace(((("----\nout sequence: " + out_path.toString()) + " || in sequence: ") + in_path.toString()) + "");
trace(("starting from : " + cur_timeline) + newline);
engaged = true;
if (out_path.length == 0) {
drilling = true;
}
if (drilling) {
cur_level++;
cur_timeline.gotoAndPlay(in_path[0] + "_in");
cur_timeline.TEid = in_path[0];
trace((("PLAY INTO " + in_path[0]) + "_in on ") + cur_timeline);
cur_path.push(in_path.shift());
} else {
cur_level--;
if (cur_level == 0) {
cur_timeline._parent._parent.gotoAndPlay(out_path[0] + "_out");
cur_timeline._parent._parent.TEid = out_path[0];
trace(((("BACKING OUT to " + cur_timeline._parent._parent) + " and playing ") + out_path[0]) + "_out");
} else {
cur_timeline._parent.gotoAndPlay(out_path[0] + "_out");
cur_timeline._parent.TEid = out_path[0];
trace(((("BACKING OUT to " + cur_timeline._parent) + " and playing ") + out_path[0]) + "_out");
}
out_path.shift();
}
}
function engage(path, pid) {
if (_global.CSHELL.isActive) {
_global.CSHELL.switchhide();
}
_root.rdebug.text = _root.rdebug.text + ("\n pathID from TE: " + pid);
trace("PATH: " + path[0]);
trace("STARTING TRANSITION FROM " + cur_timeline);
if ((path.toString() == cur_path.toString()) && (path[0] == orig_path[0])) {
trace(" on this path already ");
engaged = false;
if (pid != pathID) {
_global.SHELL.section.shell.sub.jumpToDataItem(pid);
_root._rdebug.text = _root._rdebug.text + (("\nno path change, show ID : " + pid) + newline);
pathID = pid;
}
return(undefined);
}
pathID = pid;
if (engaged) {
trace("engaged");
cued_path = path;
cue_waiting = true;
return(undefined);
}
trace("PATH : " + path[0].toString());
var _local4 = 0;
while (_local4 < path.length) {
trace((("relative pathcheck " + path[_local4]) + " <--> ") + cur_path[_local4]);
if (path[_local4] != cur_path[_local4]) {
break;
}
_local4++;
}
out_path = [];
in_path = [];
out_path = cur_path.splice(_local4);
out_path.reverse();
in_path = path.slice(_local4);
trace("IN PATH: " + in_path.toString());
if (orig_path[0] != path[0]) {
trace("IS SECTION SWITCH!");
_global.SECTIONPATH = path[0];
delete out_path;
out_path = [];
cur_timeline = _global.SHELL;
_global.SHELL.section.unloadMovie();
}
orig_path = path;
trace(((("----\nout sequence: " + out_path.toString()) + " || in sequence: ") + in_path.toString()) + "");
trace(("Starting at : " + cur_timeline) + newline);
engaged = true;
_root.tx_engage.text = "engaged";
drilling = true;
if (out_path.length > 0) {
cur_level--;
drilling = false;
if (in_path.length == 0) {
finalclip = Number(orig_path[orig_path.length - 1]);
trace(("BACKTRACKING ONLY - PLAY INTO " + finalclip) + "_in");
}
if ((cur_level == 0) && (out_path[0] != 0)) {
cur_timeline._parent._parent.gotoAndPlay(out_path[0] + "_out");
cur_timeline._parent._parent.TEid = out_path[0];
trace(((("BACKING OUT to " + cur_timeline._parent._parent) + " and playing ") + out_path[0]) + "_out");
} else {
cur_timeline._parent.gotoAndPlay(out_path[0] + "_out");
cur_timeline._parent.TEid = out_path[0];
trace(((("BACKING OUT to " + cur_timeline._parent) + " and playing ") + out_path[0]) + "_out");
}
out_path.shift();
} else {
cur_level++;
trace(("PLAY INTO " + in_path[0]) + "_in");
cur_timeline.gotoAndPlay(in_path[0] + "_in");
cur_timeline.TEid = in_path[0];
cur_path.push(in_path.shift());
if (out_path.length == 0) {
drilling = true;
}
}
}
var cur_path = [-1];
var out_path = [];
var in_path = [];
var orig_path = [-1];
var cur_primary = null;
var cur_secondary = null;
var cur_tertiary = null;
var cur_level = 0;
var cur_depth = 0;
var finalclip = null;
var isSectionSwitch = false;
}
Symbol 510 MovieClip [__Packages.mx.video.FLVPlayback] Frame 0
class mx.video.FLVPlayback extends MovieClip
{
var _autoPlay, _autoRewind, _autoSize, _bufferTime, _contentPath, _cuePoints, _idleTimeout, _isLive, _aspectRatio, _seekToPrevOffset, _playheadUpdateInterval, _progressInterval, _totalTime, _transform, _volume, _skinAutoHide, _bufferingBarHides, _origHeight, _prevHeight, __height, _height, _origWidth, _prevWidth, __width, _width, _scaleX, _scaleY, _xscale, _yscale, _preSeekTime, _firstStreamReady, _firstStreamShown, _activeVP, _visibleVP, _topVP, _vp, _vpState, _cpMgr, boundingBox_mc, preview_mc, dispatchEvent, _uiMgr, _bufferingBar, _backButton, __get__cuePoints, _forwardButton, _muteButton, _pauseButton, _playButton, _playPauseButton, _seekBar, _seekBarInterval, _seekBarScrubTolerance, _skin, _stopButton, _visible, _volumeBar, _volumeBarInterval, _volumeBarScrubTolerance, _x, _y, attachMovie, createEmptyMovieClip;
function FLVPlayback () {
super();
mx.events.EventDispatcher.initialize(this);
if (_autoPlay == undefined) {
_autoPlay = true;
}
if (_autoRewind == undefined) {
_autoRewind = true;
}
if (_autoSize == undefined) {
_autoSize = false;
}
if (_bufferTime == undefined) {
_bufferTime = 0.1;
}
if (_contentPath == undefined) {
_contentPath = "";
}
if (_cuePoints == undefined) {
_cuePoints = null;
}
if (_idleTimeout == undefined) {
_idleTimeout = mx.video.VideoPlayer.DEFAULT_IDLE_TIMEOUT_INTERVAL;
}
if (_isLive == undefined) {
_isLive = false;
}
if (_aspectRatio == undefined) {
_aspectRatio = true;
}
if (_seekToPrevOffset == undefined) {
_seekToPrevOffset = SEEK_TO_PREV_OFFSET_DEFAULT;
}
if (_playheadUpdateInterval == undefined) {
_playheadUpdateInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_PROGRESS_INTERVAL;
}
if (_progressInterval == undefined) {
_progressInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_TIME_INTERVAL;
}
if (_totalTime == undefined) {
_totalTime = 0;
}
if (_transform == undefined) {
_transform = null;
}
if (_volume == undefined) {
_volume = 100;
}
if (_skinAutoHide == undefined) {
_skinAutoHide = false;
}
if (_bufferingBarHides == undefined) {
_bufferingBarHides = false;
}
_origHeight = (_prevHeight = (__height = _height));
_origWidth = (_prevWidth = (__width = _width));
_scaleX = 100;
_scaleY = 100;
_xscale = 100;
_yscale = 100;
_preSeekTime = -1;
_firstStreamReady = false;
_firstStreamShown = false;
createUIManager();
_activeVP = 0;
_visibleVP = 0;
_topVP = 0;
_vp = new Array();
_vpState = new Array();
_cpMgr = new Array();
createVideoPlayer(0);
_vp[0].visible = false;
_vp[0].volume = 0;
boundingBox_mc._visible = false;
boundingBox_mc.unloadMovie();
delete boundingBox_mc;
if (_global.isLivePreview) {
createLivePreviewMovieClip();
setSize(__width, __height);
}
_cpMgr[0].processCuePointsProperty(_cuePoints);
delete _cuePoints;
_cuePoints = null;
}
function setSize(w, h) {
if (_global.isLivePreview) {
if (preview_mc == undefined) {
createLivePreviewMovieClip();
}
preview_mc.box_mc._width = w;
preview_mc.box_mc._height = h;
if ((preview_mc.box_mc._width < preview_mc.icon_mc._width) || (preview_mc.box_mc._height < preview_mc.icon_mc._height)) {
preview_mc.icon_mc._visible = false;
} else {
preview_mc.icon_mc._visible = true;
preview_mc.icon_mc._x = (preview_mc.box_mc._width - preview_mc.icon_mc._width) / 2;
preview_mc.icon_mc._y = (preview_mc.box_mc._height - preview_mc.icon_mc._height) / 2;
}
}
if ((w == width) && (h == height)) {
return(undefined);
}
_prevWidth = (__width = w);
_prevHeight = (__height = h);
var _local3 = 0;
while (_local3 < _vp.length) {
if (_vp[_local3] != undefined) {
_vp[_local3].setSize(w, h);
}
_local3++;
}
dispatchEvent({type:"resize", x:x, y:y, width:w, height:h});
}
function setScale(xs, ys) {
if ((xs == scaleX) && (ys == scaleY)) {
return(undefined);
}
_scaleX = xs;
_scaleY = ys;
var _local2 = 0;
while (_local2 < _vp.length) {
if (_vp[_local2] != undefined) {
_vp[_local2].setSize((_origWidth * xs) / 100, (_origHeight * ys) / 100);
}
_local2++;
}
dispatchEvent({type:"resize", x:x, y:y, width:width, height:height});
}
function handleEvent(e) {
var _local3 = e.state;
if (((e.state != undefined) && (e.target._name == _visibleVP)) && (scrubbing)) {
_local3 = SEEKING;
}
if (e.type == "metadataReceived") {
_cpMgr[e.target._name].processFLVCuePoints(e.info.cuePoints);
dispatchEvent({type:e.type, info:e.info, vp:e.target._name});
} else if (e.type == "cuePoint") {
if (_cpMgr[e.target._name].isFLVCuePointEnabled(e.info)) {
dispatchEvent({type:e.type, info:e.info, vp:e.target._name});
}
} else if (e.type == "rewind") {
dispatchEvent({type:e.type, auto:true, state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
_cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime);
} else if (e.type == "resize") {
dispatchEvent({type:e.type, x:x, y:y, width:width, height:height, auto:true, vp:e.target._name});
_prevWidth = __width;
_prevHeight = __height;
} else if (e.type == "playheadUpdate") {
dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
if ((_preSeekTime >= 0) && (e.target.state != SEEKING)) {
var _local5 = _preSeekTime;
_preSeekTime = -1;
_cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime);
dispatchEvent({type:"seek", state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
if (_local5 < e.playheadTime) {
dispatchEvent({type:"fastForward", state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
} else if (_local5 > e.playheadTime) {
dispatchEvent({type:"rewind", auto:false, state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
}
}
_cpMgr[e.target._name].dispatchASCuePoints();
} else if (e.type == "stateChange") {
var _local4 = e.target._name;
if ((_local4 == _visibleVP) && (scrubbing)) {
return(undefined);
}
if (e.state == mx.video.VideoPlayer.RESIZING) {
return(undefined);
}
if (((_vpState[_local4].prevState == LOADING) && (_vpState[_local4].autoPlay)) && (e.state == STOPPED)) {
return(undefined);
}
_vpState[_local4].prevState = e.state;
dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
if (_vp[e.target._name].state != _local3) {
return(undefined);
}
switch (_local3) {
case BUFFERING :
dispatchEvent({type:"buffering", state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
break;
case PAUSED :
dispatchEvent({type:"paused", state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
break;
case PLAYING :
dispatchEvent({type:"playing", state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
break;
case STOPPED :
dispatchEvent({type:"stopped", state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
}
} else if (e.type == "progress") {
dispatchEvent({type:e.type, bytesLoaded:e.bytesLoaded, bytesTotal:e.bytesTotal, vp:e.target._name});
} else if (e.type == "ready") {
var _local4 = e.target._name;
if (!_firstStreamReady) {
if (_local4 == _visibleVP) {
_firstStreamReady = true;
if (_uiMgr.__get__skinReady() && (!_firstStreamShown)) {
_uiMgr.__set__visible(true);
showFirstStream();
}
}
} else if ((_firstStreamShown && (_local3 == STOPPED)) && _vpState[_local4].autoPlay) {
_vp[_local4].play();
}
dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
} else if ((e.type == "close") || (e.type == "complete")) {
dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name});
}
}
function load(contentPath, totalTime, isLive) {
if (_vp[_activeVP] == undefined) {
return(undefined);
}
if (((contentPath == undefined) || (contentPath == null)) || (contentPath == "")) {
return(undefined);
}
autoPlay = (false);
if (totalTime != undefined) {
this.totalTime = (totalTime);
}
if (isLive != undefined) {
this.isLive = (isLive);
}
this.contentPath = (contentPath);
}
function play(contentPath, totalTime, isLive) {
if (_vp[_activeVP] == undefined) {
return(undefined);
}
if (contentPath == undefined) {
_vp[_activeVP].play();
} else {
autoPlay = (true);
if (totalTime != undefined) {
this.totalTime = (totalTime);
}
if (isLive != undefined) {
this.isLive = (isLive);
}
this.contentPath = (contentPath);
}
}
function pause() {
if (_vp[_activeVP] == undefined) {
return(undefined);
}
_vp[_activeVP].pause();
}
function stop() {
if (_vp[_activeVP] == undefined) {
return(undefined);
}
_vp[_activeVP].stop();
}
function seek(time) {
if (_vp[_activeVP] == undefined) {
return(undefined);
}
_preSeekTime = playheadTime;
_vp[_activeVP].seek(time);
}
function seekSeconds(time) {
seek(time);
}
function seekPercent(percent) {
if (_vp[_activeVP] == undefined) {
return(undefined);
}
if (((((percent < 0) || (percent > 100)) || (_vp[_activeVP].totalTime == undefined)) || (_vp[_activeVP].totalTime == null)) || (_vp[_activeVP].totalTime <= 0)) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK);
}
seek((_vp[_activeVP].totalTime * percent) / 100);
}
function get playheadPercentage() {
if (((_vp[_activeVP].totalTime == undefined) || (_vp[_activeVP].totalTime == null)) || (_vp[_activeVP].totalTime <= 0)) {
return(undefined);
}
return((_vp[_activeVP].playheadTime / _vp[_activeVP].totalTime) * 100);
}
function set playheadPercentage(percent) {
seekPercent(percent);
//return(playheadPercentage);
}
function seekToNavCuePoint(timeNameOrCuePoint) {
var _local3;
switch (typeof(timeNameOrCuePoint)) {
case "string" :
_local3 = {name:timeNameOrCuePoint};
break;
case "number" :
_local3 = {time:timeNameOrCuePoint};
break;
case "object" :
_local3 = timeNameOrCuePoint;
}
if (((_local3.name == null) || (_local3.name == undefined)) || (typeof(_local3.name) != "string")) {
seekToNextNavCuePoint(_local3.time);
return(undefined);
}
if (isNaN(_local3.time)) {
_local3.time = 0;
}
var _local2 = findNearestCuePoint(timeNameOrCuePoint, NAVIGATION);
while ((_local2 != null) && ((_local2.time < _local3.time) || (!isFLVCuePointEnabled(_local2)))) {
_local2 = findNextCuePointWithName(_local2);
}
if (_local2 == null) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK);
}
seek(_local2.time);
}
function seekToNextNavCuePoint(time) {
if (_vp[_activeVP] == undefined) {
return(undefined);
}
if (isNaN(time) || (time < 0)) {
time = _vp[_activeVP].playheadTime + 0.001;
}
var _local3;
_local3 = findNearestCuePoint(time, NAVIGATION);
if (_local3 == null) {
seek(_vp[_activeVP].totalTime);
return(undefined);
}
var _local2 = _local3.index;
if (_local3.time < time) {
_local2++;
}
while ((_local2 < _local3.array.length) && (!isFLVCuePointEnabled(_local3.array[_local2]))) {
_local2++;
}
if (_local2 >= _local3.array.length) {
var _local5 = _vp[_activeVP].totalTime;
if (_local3.array[_local3.array.length - 1].time > _local5) {
_local5 = _local3.array[_local3.array.length - 1];
}
seek(_local5);
} else {
seek(_local3.array[_local2].time);
}
}
function seekToPrevNavCuePoint(time) {
if (_vp[_activeVP] == undefined) {
return(undefined);
}
if (isNaN(time) || (time < 0)) {
time = _vp[_activeVP].playheadTime;
}
var _local3 = findNearestCuePoint(time, NAVIGATION);
if (_local3 == null) {
seek(0);
return(undefined);
}
var _local2 = _local3.index;
while ((_local2 >= 0) && ((!isFLVCuePointEnabled(_local3.array[_local2])) || (_local3.array[_local2].time >= (time - _seekToPrevOffset)))) {
_local2--;
}
if (_local2 < 0) {
seek(0);
} else {
seek(_local3.array[_local2].time);
}
}
function addASCuePoint(timeOrCuePoint, name, parameters) {
return(_cpMgr[_activeVP].addASCuePoint(timeOrCuePoint, name, parameters));
}
function removeASCuePoint(timeNameOrCuePoint) {
return(_cpMgr[_activeVP].removeASCuePoint(timeNameOrCuePoint));
}
function findCuePoint(timeNameOrCuePoint, type) {
switch (type) {
case "event" :
return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].eventCuePoints, false, timeNameOrCuePoint));
case "navigation" :
return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].navCuePoints, false, timeNameOrCuePoint));
case "flv" :
return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].flvCuePoints, false, timeNameOrCuePoint));
case "actionscript" :
return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].asCuePoints, false, timeNameOrCuePoint));
case "all" :
}
return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].allCuePoints, false, timeNameOrCuePoint));
}
function findNearestCuePoint(timeNameOrCuePoint, type) {
switch (type) {
case "event" :
return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].eventCuePoints, true, timeNameOrCuePoint));
case "navigation" :
return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].navCuePoints, true, timeNameOrCuePoint));
case "flv" :
return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].flvCuePoints, true, timeNameOrCuePoint));
case "actionscript" :
return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].asCuePoints, true, timeNameOrCuePoint));
case "all" :
}
return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].allCuePoints, true, timeNameOrCuePoint));
}
function findNextCuePointWithName(cuePoint) {
return(_cpMgr[_activeVP].getNextCuePointWithName(cuePoint));
}
function setFLVCuePointEnabled(enabled, timeNameOrCuePoint) {
return(_cpMgr[_activeVP].setFLVCuePointEnabled(enabled, timeNameOrCuePoint));
}
function isFLVCuePointEnabled(timeNameOrCuePoint) {
return(_cpMgr[_activeVP].isFLVCuePointEnabled(timeNameOrCuePoint));
}
function getNextHighestDepth() {
var _local2 = super.getNextHighestDepth();
return(((_local2 < 1000) ? 1000 : (_local2)));
}
function bringVideoPlayerToFront(index) {
if ((index == _topVP) || (_vp[index] == undefined)) {
return(undefined);
}
_vp[_topVP].swapDepths(_vp[index].getDepth());
_topVP = index;
}
function getVideoPlayer(index) {
return(_vp[index]);
}
function closeVideoPlayer(index) {
if (_vp[index] == undefined) {
return(undefined);
}
if (index == 0) {
throw new mx.video.VideoError(mx.video.VideoError.DELETE_DEFAULT_PLAYER);
}
if (_visibleVP == index) {
visibleVideoPlayerIndex = (0);
}
if (_activeVP == index) {
activeVideoPlayerIndex = (0);
}
_vp[index].close();
_vp[index].unloadMovie();
delete _vp[index];
_vp[index] = undefined;
}
function get activeVideoPlayerIndex() {
return(_activeVP);
}
function set activeVideoPlayerIndex(i) {
if (_activeVP == i) {
return;
}
if (_vp[_activeVP].onEnterFrame != undefined) {
doContentPathConnect();
}
_activeVP = i;
if (_vp[_activeVP] == undefined) {
createVideoPlayer(_activeVP);
_vp[_activeVP].visible = false;
_vp[_activeVP].volume = 0;
}
//return(activeVideoPlayerIndex);
}
function get autoPlay() {
if (_vpState[_activeVP] == undefined) {
return(_autoPlay);
}
return(_vpState[_activeVP].autoPlay);
}
function set autoPlay(flag) {
if ((_activeVP == 0) || (_activeVP == undefined)) {
_autoPlay = flag;
}
_vpState[_activeVP].autoPlay = flag;
//return(autoPlay);
}
function get autoRewind() {
if (_vp[_activeVP] == undefined) {
return(_autoRewind);
}
return(_vp[_activeVP].autoRewind);
}
function set autoRewind(flag) {
if ((_activeVP == 0) || (_activeVP == undefined)) {
_autoRewind = flag;
}
_vp[_activeVP].autoRewind = flag;
//return(autoRewind);
}
function get autoSize() {
if (_vp[_activeVP] == undefined) {
return(_autoSize);
}
return(_vp[_activeVP].autoSize);
}
function set autoSize(flag) {
if ((_activeVP == 0) || (_activeVP == undefined)) {
_autoSize = flag;
}
_vp[_activeVP].autoSize = flag;
//return(autoSize);
}
function get bitrate() {
return(ncMgr.getBitrate());
}
function set bitrate(b) {
ncMgr.setBitrate(b);
//return(bitrate);
}
function get buffering() {
if (_vp[_activeVP] == undefined) {
return(false);
}
return(_vp[_activeVP].state == BUFFERING);
}
function get bufferingBar() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_bufferingBar = _uiMgr.getControl(mx.video.UIManager.BUFFERING_BAR);
}
return(_bufferingBar);
}
function set bufferingBar(s) {
_bufferingBar = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, s);
}
//return(bufferingBar);
}
function get bufferingBarHidesAndDisablesOthers() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_bufferingBarHides = _uiMgr.bufferingBarHidesAndDisablesOthers;
}
return(_bufferingBarHides);
}
function set bufferingBarHidesAndDisablesOthers(b) {
_bufferingBarHides = b;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.__set__bufferingBarHidesAndDisablesOthers(b);
}
//return(bufferingBarHidesAndDisablesOthers);
}
function get backButton() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_backButton = _uiMgr.getControl(mx.video.UIManager.BACK_BUTTON);
}
return(_backButton);
}
function set backButton(s) {
_backButton = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, s);
}
//return(backButton);
}
function get bufferTime() {
if (_vp[_activeVP] == undefined) {
return(_bufferTime);
}
return(_vp[_activeVP].bufferTime);
}
function set bufferTime(aTime) {
if ((_activeVP == 0) || (_activeVP == undefined)) {
_bufferTime = aTime;
}
_vp[_activeVP].bufferTime = aTime;
//return(bufferTime);
}
function get bytesLoaded() {
return(_vp[_activeVP].bytesLoaded);
}
function get bytesTotal() {
return(_vp[_activeVP].bytesTotal);
}
function get contentPath() {
if ((_vp[_activeVP] == undefined) || (_vp[_activeVP].onEnterFrame != undefined)) {
return(_contentPath);
}
return(_vp[_activeVP].url);
}
function set contentPath(url) {
if (_global.isLivePreview) {
return;
}
if (_vp[_activeVP] == undefined) {
if (url == _contentPath) {
return;
}
_contentPath = url;
} else {
if (_vp[_activeVP].url == url) {
return;
}
_vpState[_activeVP].minProgressPercent = undefined;
if (_vp[_activeVP].onEnterFrame != undefined) {
delete _vp[_activeVP].onEnterFrame;
_vp[_activeVP].onEnterFrame = undefined;
}
_cpMgr[_activeVP].reset();
if (_vpState[_activeVP].autoPlay && (_firstStreamShown)) {
_vp[_activeVP].play(url, _vpState[_activeVP].isLive, _vpState[_activeVP].totalTime);
} else {
_vp[_activeVP].load(url, _vpState[_activeVP].isLive, _vpState[_activeVP].totalTime);
}
_vpState[_activeVP].isLiveSet = false;
_vpState[_activeVP].totalTimeSet = false;
}
//return(contentPath);
}
function set cuePoints(cp) {
if (_cuePoints != undefined) {
return;
}
_cuePoints = cp;
//return(__get__cuePoints());
}
function get forwardButton() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_forwardButton = _uiMgr.getControl(mx.video.UIManager.FORWARD_BUTTON);
}
return(_forwardButton);
}
function set forwardButton(s) {
_forwardButton = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, s);
}
//return(forwardButton);
}
function get height() {
if (_global.isLivePreview) {
return(__height);
}
if (_vp[_visibleVP] != undefined) {
__height = _vp[_visibleVP].height;
}
return(__height);
}
function set height(h) {
setSize(width, h);
//return(height);
}
function get idleTimeout() {
if (_vp[_activeVP] == undefined) {
return(_idleTimeout);
}
return(_vp[_activeVP].idleTimeout);
}
function set idleTimeout(aTime) {
if ((_activeVP == 0) || (_activeVP == undefined)) {
_idleTimeout = aTime;
}
_vp[_activeVP].idleTimeout = aTime;
//return(idleTimeout);
}
function get isRTMP() {
if (_global.isLivePreview) {
return(true);
}
if (_vp[_activeVP] == undefined) {
return(undefined);
}
return(_vp[_activeVP].isRTMP);
}
function get isLive() {
if (_vp[_activeVP] == undefined) {
return(_isLive);
}
if (_vpState[_activeVP].isLiveSet) {
return(_vpState[_activeVP].isLive);
}
return(_vp[_activeVP].isLive);
}
function set isLive(flag) {
if ((_activeVP == 0) || (_activeVP == undefined)) {
_isLive = flag;
}
_vpState[_activeVP].isLive = flag;
_vpState[_activeVP].isLiveSet = true;
//return(isLive);
}
function get maintainAspectRatio() {
if (_vp[_activeVP] == undefined) {
return(_aspectRatio);
}
return(_vp[_activeVP].maintainAspectRatio);
}
function set maintainAspectRatio(flag) {
if ((_activeVP == 0) || (_activeVP == undefined)) {
_aspectRatio = flag;
}
_vp[_activeVP].maintainAspectRatio = flag;
//return(maintainAspectRatio);
}
function get metadata() {
if (_vp[_activeVP] == undefined) {
return(null);
}
return(_vp[_activeVP].metadata);
}
function get metadataLoaded() {
if (_vp[_activeVP] == undefined) {
return(false);
}
return(_cpMgr[_activeVP].metadataLoaded);
}
function get muteButton() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_muteButton = _uiMgr.getControl(mx.video.UIManager.MUTE_BUTTON);
}
return(_muteButton);
}
function set muteButton(s) {
_muteButton = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, s);
}
//return(muteButton);
}
function get ncMgr() {
if (_vp[_activeVP] == undefined) {
return(null);
}
return(_vp[_activeVP].ncMgr);
}
function get pauseButton() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_pauseButton = _uiMgr.getControl(mx.video.UIManager.PAUSE_BUTTON);
}
return(_pauseButton);
}
function set pauseButton(s) {
_pauseButton = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, s);
}
//return(pauseButton);
}
function get paused() {
if (_vp[_activeVP] == undefined) {
return(false);
}
return(_vp[_activeVP].state == PAUSED);
}
function get playButton() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_playButton = _uiMgr.getControl(mx.video.UIManager.PLAY_BUTTON);
}
return(_playButton);
}
function set playButton(s) {
_playButton = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, s);
}
//return(playButton);
}
function get playheadTime() {
if (_vp[_activeVP] == undefined) {
return(0);
}
return(_vp[_activeVP].playheadTime);
}
function set playheadTime(position) {
seek(position);
//return(playheadTime);
}
function get playheadUpdateInterval() {
if (_vp[_activeVP] == undefined) {
return(_playheadUpdateInterval);
}
return(_vp[_activeVP].playheadUpdateInterval);
}
function set playheadUpdateInterval(aTime) {
if ((_activeVP == 0) || (_activeVP == undefined)) {
_playheadUpdateInterval = aTime;
}
_cpMgr[_activeVP].playheadUpdateInterval = aTime;
_vp[_activeVP].playheadUpdateInterval = aTime;
//return(playheadUpdateInterval);
}
function get playing() {
if (_vp[_activeVP] == undefined) {
return(false);
}
return(_vp[_activeVP].state == PLAYING);
}
function get playPauseButton() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_playPauseButton = _uiMgr.getControl(mx.video.UIManager.PLAY_PAUSE_BUTTON);
}
return(_playPauseButton);
}
function set playPauseButton(s) {
_playPauseButton = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, s);
}
//return(playPauseButton);
}
function get preferredHeight() {
if (_vp[_activeVP] == undefined) {
return(0);
}
return(_vp[_activeVP].videoHeight);
}
function get preferredWidth() {
if (_vp[_activeVP] == undefined) {
return(0);
}
return(_vp[_activeVP].videoWidth);
}
function get progressInterval() {
if (_vp[_activeVP] == undefined) {
return(_progressInterval);
}
return(_vp[_activeVP].progressInterval);
}
function set progressInterval(aTime) {
if ((_activeVP == 0) || (_activeVP == undefined)) {
_progressInterval = aTime;
}
_vp[_activeVP].progressInterval = aTime;
//return(progressInterval);
}
function get scaleX() {
if (_vp[_visibleVP] != undefined) {
_scaleX = (_vp[_visibleVP].width / _origWidth) * 100;
}
return(_scaleX);
}
function set scaleX(xs) {
setScale(xs, scaleY);
//return(scaleX);
}
function get scaleY() {
if (_vp[_visibleVP] != undefined) {
_scaleY = (_vp[_visibleVP].height / _origHeight) * 100;
}
return(_scaleY);
}
function set scaleY(ys) {
setScale(scaleX, ys);
//return(scaleY);
}
function get scrubbing() {
var _local2 = seekBar;
if ((_local2 == undefined) || (_local2.isDragging == undefined)) {
return(false);
}
return(_local2.isDragging);
}
function get seekBar() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_seekBar = _uiMgr.getControl(mx.video.UIManager.SEEK_BAR);
}
return(_seekBar);
}
function set seekBar(s) {
_seekBar = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.setControl(mx.video.UIManager.SEEK_BAR, s);
}
//return(seekBar);
}
function get seekBarInterval() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_seekBarInterval = _uiMgr.seekBarInterval;
}
return(_seekBarInterval);
}
function set seekBarInterval(s) {
_seekBarInterval = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.__set__seekBarInterval(_seekBarInterval);
}
//return(seekBarInterval);
}
function get seekBarScrubTolerance() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_seekBarScrubTolerance = _uiMgr.seekBarScrubTolerance;
}
return(_seekBarScrubTolerance);
}
function set seekBarScrubTolerance(s) {
_seekBarScrubTolerance = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.__set__seekBarScrubTolerance(_seekBarScrubTolerance);
}
//return(seekBarScrubTolerance);
}
function get seekToPrevOffset() {
return(_seekToPrevOffset);
}
function set seekToPrevOffset(s) {
_seekToPrevOffset = s;
//return(seekToPrevOffset);
}
function get skin() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_skin = _uiMgr.skin;
}
return(_skin);
}
function set skin(s) {
_skin = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.__set__skin(s);
}
//return(skin);
}
function get skinAutoHide() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_skinAutoHide = _uiMgr.skinAutoHide;
}
return(_skinAutoHide);
}
function set skinAutoHide(b) {
if (_global.isLivePreview) {
return;
}
_skinAutoHide = b;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.__set__skinAutoHide(b);
}
//return(skinAutoHide);
}
function get transform() {
return(_transform);
}
function set transform(s) {
_transform = s;
if (_vp[_activeVP] != undefined) {
_vp[_activeVP].transform = _transform;
}
//return(transform);
}
function get state() {
if (_global.isLivePreview) {
return(STOPPED);
}
if (_vp[_activeVP] == undefined) {
return(DISCONNECTED);
}
if ((_activeVP == _visibleVP) && (scrubbing)) {
return(SEEKING);
}
var _local3 = _vp[_activeVP].state;
if (_local3 == mx.video.VideoPlayer.RESIZING) {
return(LOADING);
}
if (((_vpState[_activeVP].prevState == LOADING) && (_vpState[_activeVP].autoPlay)) && (_local3 == STOPPED)) {
return(LOADING);
}
return(_local3);
}
function get stateResponsive() {
if (_vp[_activeVP] == undefined) {
return(false);
}
return(_vp[_activeVP].stateResponsive);
}
function get stopButton() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_stopButton = _uiMgr.getControl(mx.video.UIManager.STOP_BUTTON);
}
return(_stopButton);
}
function set stopButton(s) {
_stopButton = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, s);
}
//return(stopButton);
}
function get stopped() {
if (_vp[_activeVP] == undefined) {
return(false);
}
return(_vp[_activeVP].state == STOPPED);
}
function get totalTime() {
if (_global.isLivePreview) {
return(1);
}
if (_vp[_activeVP] == undefined) {
return(_totalTime);
}
if (_vpState[_activeVP].totalTimeSet) {
return(_vpState[_activeVP].totalTime);
}
return(_vp[_activeVP].totalTime);
}
function set totalTime(aTime) {
if ((_activeVP == 0) || (_activeVP == undefined)) {
_totalTime = aTime;
}
_vpState[_activeVP].totalTime = aTime;
_vpState[_activeVP].totalTimeSet = true;
//return(totalTime);
}
function get visible() {
return(_visible);
}
function set visible(v) {
_visible = v;
//return(visible);
}
function get visibleVideoPlayerIndex() {
return(_visibleVP);
}
function set visibleVideoPlayerIndex(i) {
if (_visibleVP == i) {
return;
}
var _local2 = _visibleVP;
if (_vp[i] == undefined) {
createVideoPlayer(i);
}
var _local5 = (_vp[i].height != _vp[_visibleVP].height) || (_vp[i].width != _vp[_visibleVP].width);
_vp[_visibleVP].visible = false;
_vp[_visibleVP].volume = 0;
_visibleVP = i;
if (_firstStreamShown) {
_uiMgr.setupSkinAutoHide(_local2);
_vp[_visibleVP].visible = true;
if (!scrubbing) {
_vp[_visibleVP].volume = _volume;
}
} else if ((_vp[_visibleVP].stateResponsive && (_vp[_visibleVP].state != DISCONNECTED)) && (_uiMgr.__get__skinReady())) {
_uiMgr.__set__visible(true);
_uiMgr.setupSkinAutoHide(_local2);
_firstStreamReady = true;
showFirstStream();
}
if ((_vp[_local2].height != _vp[_visibleVP].height) || (_vp[_local2].width != _vp[_visibleVP].width)) {
dispatchEvent({type:"resize", x:x, y:y, width:width, height:height, auto:false, vp:_visibleVP});
}
_uiMgr.handleEvent({type:"stateChange", state:_vp[_visibleVP].state, vp:_visibleVP});
_uiMgr.handleEvent({type:"playheadUpdate", playheadTime:_vp[_visibleVP].playheadTime, vp:_visibleVP});
if (_vp[_visibleVP].isRTMP) {
_uiMgr.handleEvent({type:"ready", vp:_visibleVP});
} else {
_uiMgr.handleEvent({type:"progress", bytesLoaded:_vp[_visibleVP].bytesLoaded, bytesTotal:_vp[_visibleVP].bytesTotal, vp:_visibleVP});
}
//return(visibleVideoPlayerIndex);
}
function get volume() {
return(_volume);
}
function set volume(aVol) {
if (_volume == aVol) {
return;
}
_volume = aVol;
if (!scrubbing) {
_vp[_visibleVP].volume = _volume;
}
dispatchEvent({type:"volumeUpdate", volume:aVol});
//return(volume);
}
function get volumeBar() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_volumeBar = _uiMgr.getControl(mx.video.UIManager.VOLUME_BAR);
}
return(_volumeBar);
}
function set volumeBar(s) {
_volumeBar = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, s);
}
//return(volumeBar);
}
function get volumeBarInterval() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_volumeBarInterval = _uiMgr.volumeBarInterval;
}
return(_volumeBarInterval);
}
function set volumeBarInterval(s) {
_volumeBarInterval = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.__set__volumeBarInterval(_volumeBarInterval);
}
//return(volumeBarInterval);
}
function get volumeBarScrubTolerance() {
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_volumeBarScrubTolerance = _uiMgr.volumeBarScrubTolerance;
}
return(_volumeBarScrubTolerance);
}
function set volumeBarScrubTolerance(s) {
_volumeBarScrubTolerance = s;
if ((_uiMgr != null) && (_uiMgr != undefined)) {
_uiMgr.__set__volumeBarScrubTolerance(_volumeBarScrubTolerance);
}
//return(volumeBarScrubTolerance);
}
function get width() {
if (_global.isLivePreview) {
return(__width);
}
if (_vp[_visibleVP] != undefined) {
__width = _vp[_visibleVP].width;
}
return(__width);
}
function set width(w) {
setSize(w, height);
//return(width);
}
function get x() {
return(_x);
}
function set x(xpos) {
_x = xpos;
//return(x);
}
function get y() {
return(_y);
}
function set y(ypos) {
_y = ypos;
//return(y);
}
function createVideoPlayer(index) {
if (_global.isLivePreview) {
return(undefined);
}
var _local4 = width;
var _local5 = height;
_vp[index] = mx.video.VideoPlayer(attachMovie("VideoPlayer", String(index), VP_DEPTH_OFFSET + index));
_vp[index].setSize(_local4, _local5);
_topVP = index;
_vp[index].autoRewind = _autoRewind;
_vp[index].autoSize = _autoSize;
_vp[index].bufferTime = _bufferTime;
_vp[index].idleTimeout = _idleTimeout;
_vp[index].maintainAspectRatio = _aspectRatio;
_vp[index].playheadUpdateInterval = _playheadUpdateInterval;
_vp[index].progressInterval = _progressInterval;
_vp[index].transform = _transform;
_vp[index].volume = _volume;
if (index == 0) {
_vpState[index] = {id:index, isLive:_isLive, isLiveSet:true, totalTime:_totalTime, totalTimeSet:true, autoPlay:_autoPlay};
if (((_contentPath != null) && (_contentPath != undefined)) && (_contentPath != "")) {
_vp[index].onEnterFrame = mx.utils.Delegate.create(this, doContentPathConnect);
}
} else {
_vpState[index] = {id:index, isLive:false, isLiveSet:true, totalTime:0, totalTimeSet:true, autoPlay:false};
}
_vp[index].addEventListener("resize", this);
_vp[index].addEventListener("close", this);
_vp[index].addEventListener("complete", this);
_vp[index].addEventListener("cuePoint", this);
_vp[index].addEventListener("playheadUpdate", this);
_vp[index].addEventListener("progress", this);
_vp[index].addEventListener("metadataReceived", this);
_vp[index].addEventListener("stateChange", this);
_vp[index].addEventListener("ready", this);
_vp[index].addEventListener("rewind", this);
_cpMgr[index] = new mx.video.CuePointManager(this, index);
_cpMgr[index].playheadUpdateInterval = _playheadUpdateInterval;
}
function createUIManager() {
_uiMgr = new mx.video.UIManager(this);
_uiMgr.__set__visible(false);
if ((_backButton != undefined) && (_backButton != null)) {
_uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, _backButton);
}
if ((_bufferingBar != undefined) && (_bufferingBar != null)) {
_uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, _bufferingBar);
}
_uiMgr.__set__bufferingBarHidesAndDisablesOthers(_bufferingBarHides);
if ((_forwardButton != undefined) && (_forwardButton != null)) {
_uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, _forwardButton);
}
if ((_pauseButton != undefined) && (_pauseButton != null)) {
_uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, _pauseButton);
}
if ((_playButton != undefined) && (_playButton != null)) {
_uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, _playButton);
}
if ((_playPauseButton != undefined) && (_playPauseButton != null)) {
_uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, _playPauseButton);
}
if ((_stopButton != undefined) && (_stopButton != null)) {
_uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, _stopButton);
}
if ((_seekBar != undefined) && (_seekBar != null)) {
_uiMgr.setControl(mx.video.UIManager.SEEK_BAR, _seekBar);
}
if ((_seekBarInterval != undefined) && (_seekBarInterval != null)) {
_uiMgr.__set__seekBarInterval(_seekBarInterval);
}
if ((_seekBarScrubTolerance != undefined) && (_seekBarScrubTolerance != null)) {
_uiMgr.__set__seekBarScrubTolerance(_seekBarScrubTolerance);
}
if ((_skin != undefined) && (_skin != null)) {
_uiMgr.__set__skin(_skin);
}
if ((_skinAutoHide != undefined) && (_skinAutoHide != null)) {
_uiMgr.__set__skinAutoHide(_skinAutoHide);
}
if ((_muteButton != undefined) && (_muteButton != null)) {
_uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, _muteButton);
}
if ((_volumeBar != undefined) && (_volumeBar != null)) {
_uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, _volumeBar);
}
if ((_volumeBarInterval != undefined) && (_volumeBarInterval != null)) {
_uiMgr.__set__volumeBarInterval(_volumeBarInterval);
}
if ((_volumeBarScrubTolerance != undefined) && (_volumeBarScrubTolerance != null)) {
_uiMgr.__set__volumeBarScrubTolerance(_volumeBarScrubTolerance);
}
}
function createLivePreviewMovieClip() {
preview_mc = createEmptyMovieClip("preview_mc", 10);
preview_mc.createEmptyMovieClip("box_mc", 10);
preview_mc.box_mc.beginFill(0);
preview_mc.box_mc.moveTo(0, 0);
preview_mc.box_mc.lineTo(0, 100);
preview_mc.box_mc.lineTo(100, 100);
preview_mc.box_mc.lineTo(100, 0);
preview_mc.box_mc.lineTo(0, 0);
preview_mc.box_mc.endFill();
preview_mc.attachMovie("Icon", "icon_mc", 20);
}
function doContentPathConnect() {
delete _vp[0].onEnterFrame;
_vp[0].onEnterFrame = undefined;
if (_global.isLivePreview) {
return(undefined);
}
if (_vpState[0].autoPlay && (_firstStreamShown)) {
_vp[0].play(_contentPath, _isLive, _totalTime);
} else {
_vp[0].load(_contentPath, _isLive, _totalTime);
}
_vpState[0].isLiveSet = false;
_vpState[0].totalTimeSet = false;
}
function showFirstStream() {
_firstStreamShown = true;
_vp[_visibleVP].visible = true;
if (!scrubbing) {
_vp[_visibleVP].volume = _volume;
}
var _local2 = 0;
while (_local2 < _vp.length) {
if (((_vp[_local2] != undefined) && (_vp[_local2].state == STOPPED)) && (_vpState[_local2].autoPlay)) {
_vp[_local2].play();
}
_local2++;
}
}
function _scrubStart() {
var _local2 = playheadTime;
_vp[_visibleVP].volume = 0;
dispatchEvent({type:"stateChange", state:SEEKING, playheadTime:_local2, vp:_visibleVP});
dispatchEvent({type:"scrubStart", state:SEEKING, playheadTime:_local2});
}
function _scrubFinish() {
var _local3 = playheadTime;
var _local2 = state;
_vp[_visibleVP].volume = _volume;
if (_local2 != SEEKING) {
dispatchEvent({type:"stateChange", state:_local2, playheadTime:_local3, vp:_visibleVP});
}
dispatchEvent({type:"scrubFinish", state:_local2, playheadTime:_local3});
}
function skinError(message) {
if (_firstStreamReady && (!_firstStreamShown)) {
showFirstStream();
}
dispatchEvent({type:"skinError", message:message});
}
function skinLoaded() {
if (_firstStreamReady) {
_uiMgr.__set__visible(true);
if (!_firstStreamShown) {
showFirstStream();
}
} else if (((_contentPath == undefined) || (_contentPath == null)) || (_contentPath == "")) {
_uiMgr.__set__visible(true);
}
dispatchEvent({type:"skinLoaded"});
}
static var version = "1.0.0.103";
static var DISCONNECTED = "disconnected";
static var STOPPED = "stopped";
static var PLAYING = "playing";
static var PAUSED = "paused";
static var BUFFERING = "buffering";
static var LOADING = "loading";
static var CONNECTION_ERROR = "connectionError";
static var REWINDING = "rewinding";
static var SEEKING = "seeking";
static var ALL = "all";
static var EVENT = "event";
static var NAVIGATION = "navigation";
static var FLV = "flv";
static var ACTIONSCRIPT = "actionscript";
static var VP_DEPTH_OFFSET = 100;
static var SEEK_TO_PREV_OFFSET_DEFAULT = 1;
}
Symbol 519 MovieClip [__Packages.mx.video.VideoPlayer] Frame 0
class mx.video.VideoPlayer extends MovieClip
{
var _state, _cachedState, _bufferState, _cachedPlayheadTime, _metadata, _startingPlay, _invalidSeekTime, _invalidSeekRecovery, _currentPos, _atEnd, _cmdQueue, _readyDispatched, _autoResizeDone, _lastUpdateTime, _sawSeekNotify, _updateTimeIntervalID, _updateTimeInterval, _updateProgressIntervalID, _updateProgressInterval, _idleTimeoutIntervalID, _idleTimeoutInterval, _autoResizeIntervalID, _rtmpDoStopAtEndIntervalID, _rtmpDoSeekIntervalID, _httpDoSeekIntervalID, _httpDoSeekCount, _finishAutoResizeIntervalID, _delayedBufferingIntervalID, _delayedBufferingInterval, _isLive, _autoSize, _aspectRatio, _autoPlay, _autoRewind, _bufferTime, _volume, _sound, __visible, _hiddenForResize, _hiddenForResizeMetadataDelay, _contentPath, _video, _ncMgr, _ns, attachAudio, _prevVideoWidth, _prevVideoHeight, _streamLength, _videoWidth, _videoHeight, dispatchEvent, _x, _y, _visible, _hiddenRewindPlayheadTime, ncMgrClassName, _height, _width;
function VideoPlayer () {
super();
mx.events.EventDispatcher.initialize(this);
_state = DISCONNECTED;
_cachedState = _state;
_bufferState = BUFFER_EMPTY;
_cachedPlayheadTime = 0;
_metadata = null;
_startingPlay = false;
_invalidSeekTime = false;
_invalidSeekRecovery = false;
_currentPos = 0;
_atEnd = false;
_cmdQueue = new Array();
_readyDispatched = false;
_autoResizeDone = false;
_lastUpdateTime = -1;
_sawSeekNotify = false;
_updateTimeIntervalID = 0;
_updateTimeInterval = DEFAULT_UPDATE_TIME_INTERVAL;
_updateProgressIntervalID = 0;
_updateProgressInterval = DEFAULT_UPDATE_PROGRESS_INTERVAL;
_idleTimeoutIntervalID = 0;
_idleTimeoutInterval = DEFAULT_IDLE_TIMEOUT_INTERVAL;
_autoResizeIntervalID = 0;
_rtmpDoStopAtEndIntervalID = 0;
_rtmpDoSeekIntervalID = 0;
_httpDoSeekIntervalID = 0;
_httpDoSeekCount = 0;
_finishAutoResizeIntervalID = 0;
_delayedBufferingIntervalID = 0;
_delayedBufferingInterval = HTTP_DELAYED_BUFFERING_INTERVAL;
if (_isLive == undefined) {
_isLive = false;
}
if (_autoSize == undefined) {
_autoSize = false;
}
if (_aspectRatio == undefined) {
_aspectRatio = true;
}
if (_autoPlay == undefined) {
_autoPlay = true;
}
if (_autoRewind == undefined) {
_autoRewind = true;
}
if (_bufferTime == undefined) {
_bufferTime = 0.1;
}
if (_volume == undefined) {
_volume = 100;
}
_sound = new Sound(this);
_sound.setVolume(_volume);
__visible = true;
_hiddenForResize = false;
_hiddenForResizeMetadataDelay = 0;
_contentPath = "";
}
function setSize(w, h) {
if (((w == _video._width) && (h == _video._height)) || (_autoSize)) {
return(undefined);
}
_video._width = w;
_video._height = h;
if (_aspectRatio) {
startAutoResize();
}
}
function setScale(xs, ys) {
if (((xs == _video._xscale) && (ys == _video._yscale)) || (_autoSize)) {
return(undefined);
}
_video._xscale = xs;
_video._yscale = ys;
if (_aspectRatio) {
startAutoResize();
}
}
function play(url, isLive, totalTime) {
if ((url != null) && (url != undefined)) {
if (_state == EXEC_QUEUED_CMD) {
_state = _cachedState;
} else {
if (!stateResponsive) {
queueCmd(PLAY, url, isLive, totalTime);
return(undefined);
}
execQueuedCmds();
}
_autoPlay = true;
_load(url, isLive, totalTime);
return(undefined);
}
if (!isXnOK()) {
if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) {
throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION);
// unexpected jump
}
flushQueuedCmds();
queueCmd(PLAY);
setState(LOADING);
_cachedState = LOADING;
_ncMgr.reconnect();
return(undefined);
}
if (_state == EXEC_QUEUED_CMD) {
_state = _cachedState;
} else {
if (!stateResponsive) {
queueCmd(PLAY);
return(undefined);
}
execQueuedCmds();
}
if ((_ns == null) || (_ns == undefined)) {
_createStream();
_video.attachVideo(_ns);
attachAudio(_ns);
}
switch (_state) {
case BUFFERING :
if (_ncMgr.isRTMP()) {
_play(0);
if (_atEnd) {
_atEnd = false;
_currentPos = 0;
setState(REWINDING);
} else if (_currentPos > 0) {
_seek(_currentPos);
_currentPos = 0;
}
}
case PLAYING :
return(undefined);
case STOPPED :
if (_ncMgr.isRTMP()) {
if (_isLive) {
_play(-1);
setState(BUFFERING);
} else {
_play(0);
if (_atEnd) {
_atEnd = false;
_currentPos = 0;
_state = BUFFERING;
setState(REWINDING);
} else if (_currentPos > 0) {
_seek(_currentPos);
_currentPos = 0;
setState(BUFFERING);
} else {
setState(BUFFERING);
}
}
} else {
_pause(false);
if (_atEnd) {
_atEnd = false;
_seek(0);
_state = BUFFERING;
setState(REWINDING);
} else if (_bufferState == BUFFER_EMPTY) {
setState(BUFFERING);
} else {
setState(PLAYING);
}
}
break;
case PAUSED :
_pause(false);
if (!_ncMgr.isRTMP()) {
if (_bufferState == BUFFER_EMPTY) {
setState(BUFFERING);
} else {
setState(PLAYING);
}
} else {
setState(BUFFERING);
}
}
}
function load(url, isLive, totalTime) {
if ((url == null) || (url == undefined)) {
throw new Error("null url sent to VideoPlayer.load");
}
if (_state == EXEC_QUEUED_CMD) {
_state = _cachedState;
} else {
if (!stateResponsive) {
queueCmd(LOAD, url, isLive, totalTime);
return(undefined);
}
execQueuedCmds();
}
_autoPlay = false;
_load(url, isLive, totalTime);
}
function _load(url, isLive, totalTime) {
_prevVideoWidth = videoWidth;
if (_prevVideoWidth == undefined) {
_prevVideoWidth = _video.width;
if (_prevVideoWidth == undefined) {
_prevVideoWidth = 0;
}
}
_prevVideoHeight = videoHeight;
if (_prevVideoHeight == undefined) {
_prevVideoHeight = _video.height;
if (_prevVideoHeight == undefined) {
_prevVideoHeight = 0;
}
}
_autoResizeDone = false;
_cachedPlayheadTime = 0;
_bufferState = BUFFER_EMPTY;
_metadata = null;
_startingPlay = false;
_invalidSeekTime = false;
_invalidSeekRecovery = false;
_isLive = ((isLive == undefined) ? false : (isLive));
_contentPath = url;
_currentPos = 0;
_streamLength = totalTime;
_atEnd = false;
_videoWidth = undefined;
_videoHeight = undefined;
_readyDispatched = false;
_lastUpdateTime = -1;
_sawSeekNotify = false;
clearInterval(_updateTimeIntervalID);
_updateTimeIntervalID = 0;
clearInterval(_updateProgressIntervalID);
_updateProgressIntervalID = 0;
clearInterval(_idleTimeoutIntervalID);
_idleTimeoutIntervalID = 0;
clearInterval(_autoResizeIntervalID);
_autoResizeIntervalID = 0;
clearInterval(_rtmpDoStopAtEndIntervalID);
_rtmpDoStopAtEndIntervalID = 0;
clearInterval(_rtmpDoSeekIntervalID);
_rtmpDoSeekIntervalID = 0;
clearInterval(_httpDoSeekIntervalID);
_httpDoSeekIntervalID = 0;
clearInterval(_finishAutoResizeIntervalID);
_finishAutoResizeIntervalID = 0;
clearInterval(_delayedBufferingIntervalID);
_delayedBufferingIntervalID = 0;
closeNS(false);
if ((_ncMgr == null) || (_ncMgr == undefined)) {
createINCManager();
}
var _local2 = _ncMgr.connectToURL(_contentPath);
setState(LOADING);
_cachedState = LOADING;
if (_local2) {
_createStream();
_setUpStream();
}
if (!_ncMgr.isRTMP()) {
clearInterval(_updateProgressIntervalID);
_updateProgressIntervalID = setInterval(this, "doUpdateProgress", _updateProgressInterval);
}
}
function pause() {
if (!isXnOK()) {
if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) {
throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION);
// unexpected jump
}
return(undefined);
}
if (_state == EXEC_QUEUED_CMD) {
_state = _cachedState;
} else {
if (!stateResponsive) {
queueCmd(PAUSE);
return(undefined);
}
execQueuedCmds();
}
if ((((_state == PAUSED) || (_state == STOPPED)) || (_ns == null)) || (_ns == undefined)) {
return(undefined);
}
_pause(true);
setState(PAUSED);
}
function stop() {
if (!isXnOK()) {
if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) {
throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION);
// unexpected jump
}
return(undefined);
}
if (_state == EXEC_QUEUED_CMD) {
_state = _cachedState;
} else {
if (!stateResponsive) {
queueCmd(STOP);
return(undefined);
}
execQueuedCmds();
}
if (((_state == STOPPED) || (_ns == null)) || (_ns == undefined)) {
return(undefined);
}
if (_ncMgr.isRTMP()) {
if (_autoRewind && (!_isLive)) {
_currentPos = 0;
_play(0, 0);
_state = STOPPED;
setState(REWINDING);
} else {
closeNS(true);
setState(STOPPED);
}
} else {
_pause(true);
if (_autoRewind) {
_seek(0);
_state = STOPPED;
setState(REWINDING);
} else {
setState(STOPPED);
}
}
}
function seek(time) {
if (_invalidSeekTime) {
return(undefined);
}
if (isNaN(time) || (time < 0)) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK);
}
if (!isXnOK()) {
if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) {
throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION);
// unexpected jump
}
flushQueuedCmds();
queueCmd(SEEK, null, false, time);
setState(LOADING);
_cachedState = LOADING;
_ncMgr.reconnect();
return(undefined);
}
if (_state == EXEC_QUEUED_CMD) {
_state = _cachedState;
} else {
if (!stateResponsive) {
queueCmd(SEEK, null, false, time);
return(undefined);
}
execQueuedCmds();
}
if ((_ns == null) || (_ns == undefined)) {
_createStream();
_video.attachVideo(_ns);
attachAudio(_ns);
}
if (_atEnd && (time < playheadTime)) {
_atEnd = false;
}
switch (_state) {
case PLAYING :
_state = BUFFERING;
case BUFFERING :
case PAUSED :
_seek(time);
setState(SEEKING);
break;
case STOPPED :
if (_ncMgr.isRTMP()) {
_play(0);
_pause(true);
}
_seek(time);
_state = PAUSED;
setState(SEEKING);
}
}
function close() {
closeNS(true);
if (((_ncMgr != null) && (_ncMgr != undefined)) && (_ncMgr.isRTMP())) {
_ncMgr.close();
}
setState(DISCONNECTED);
dispatchEvent({type:"close", state:_state, playheadTime:playheadTime});
}
function get x() {
return(_x);
}
function set x(xpos) {
_x = xpos;
//return(x);
}
function get y() {
return(_y);
}
function set y(ypos) {
_y = ypos;
//return(y);
}
function get scaleX() {
return(_video._xscale);
}
function set scaleX(xs) {
setScale(xs, scaleY);
//return(scaleX);
}
function get scaleY() {
return(_video._yscale);
}
function set scaleY(ys) {
setScale(scaleX, ys);
//return(scaleY);
}
function get width() {
return(_video._width);
}
function set width(w) {
setSize(w, _video._height);
//return(width);
}
function get height() {
return(_video._height);
}
function set height(h) {
setSize(_video._width, h);
//return(height);
}
function get videoWidth() {
if (_readyDispatched) {
_videoWidth = _video.width;
}
return(_videoWidth);
}
function get videoHeight() {
if (_readyDispatched) {
_videoHeight = _video.height;
}
return(_videoHeight);
}
function get visible() {
if (!_hiddenForResize) {
__visible = _visible;
}
return(__visible);
}
function set visible(v) {
__visible = v;
if (!_hiddenForResize) {
_visible = __visible;
}
//return(visible);
}
function get autoSize() {
return(_autoSize);
}
function set autoSize(flag) {
if (_autoSize != flag) {
_autoSize = flag;
if (_autoSize) {
startAutoResize();
}
}
//return(autoSize);
}
function get maintainAspectRatio() {
return(_aspectRatio);
}
function set maintainAspectRatio(flag) {
if (_aspectRatio != flag) {
_aspectRatio = flag;
if (_aspectRatio && (!_autoSize)) {
startAutoResize();
}
}
//return(maintainAspectRatio);
}
function get autoRewind() {
return(_autoRewind);
}
function set autoRewind(flag) {
_autoRewind = flag;
//return(autoRewind);
}
function get playheadTime() {
var _local2 = (((_ns == null) || (_ns == undefined)) ? (_currentPos) : (_ns.time));
if (_metadata.audiodelay != undefined) {
_local2 = _local2 - _metadata.audiodelay;
if (_local2 < 0) {
_local2 = 0;
}
}
return(_local2);
}
function set playheadTime(position) {
seek(position);
//return(playheadTime);
}
function get url() {
return(_contentPath);
}
function get volume() {
return(_volume);
}
function set volume(aVol) {
_volume = aVol;
if (!_hiddenForResize) {
_sound.setVolume(_volume);
}
//return(volume);
}
function get transform() {
return(_sound.getTransform());
}
function set transform(s) {
_sound.setTransform(s);
//return(transform);
}
function get isRTMP() {
if ((_ncMgr == null) || (_ncMgr == undefined)) {
return(undefined);
}
return(_ncMgr.isRTMP());
}
function get isLive() {
return(_isLive);
}
function get state() {
return(_state);
}
function get stateResponsive() {
switch (_state) {
case DISCONNECTED :
case STOPPED :
case PLAYING :
case PAUSED :
case BUFFERING :
return(true);
}
return(false);
}
function get bytesLoaded() {
if (((_ns == null) || (_ns == undefined)) || (_ncMgr.isRTMP())) {
return(-1);
}
return(_ns.bytesLoaded);
}
function get bytesTotal() {
if (((_ns == null) || (_ns == undefined)) || (_ncMgr.isRTMP())) {
return(-1);
}
return(_ns.bytesTotal);
}
function get totalTime() {
return(_streamLength);
}
function get bufferTime() {
return(_bufferTime);
}
function set bufferTime(aTime) {
_bufferTime = aTime;
if ((_ns != null) && (_ns != undefined)) {
_ns.setBufferTime(_bufferTime);
}
//return(bufferTime);
}
function get idleTimeout() {
return(_idleTimeoutInterval);
}
function set idleTimeout(aTime) {
_idleTimeoutInterval = aTime;
if (_idleTimeoutIntervalID > 0) {
clearInterval(_idleTimeoutIntervalID);
_idleTimeoutIntervalID = setInterval(this, "doIdleTimeout", _idleTimeoutInterval);
}
//return(idleTimeout);
}
function get playheadUpdateInterval() {
return(_updateTimeInterval);
}
function set playheadUpdateInterval(aTime) {
_updateTimeInterval = aTime;
if (_updateTimeIntervalID > 0) {
clearInterval(_updateTimeIntervalID);
_updateTimeIntervalID = setInterval(this, "doUpdateTime", _updateTimeInterval);
}
//return(playheadUpdateInterval);
}
function get progressInterval() {
return(_updateProgressInterval);
}
function set progressInterval(aTime) {
_updateProgressInterval = aTime;
if (_updateProgressIntervalID > 0) {
clearInterval(_updateProgressIntervalID);
_updateProgressIntervalID = setInterval(this, "doUpdateProgress", _updateProgressInterval);
}
//return(progressInterval);
}
function get ncMgr() {
if ((_ncMgr == null) || (_ncMgr == undefined)) {
createINCManager();
}
return(_ncMgr);
}
function get metadata() {
return(_metadata);
}
function doUpdateTime() {
var _local2 = playheadTime;
switch (_state) {
case STOPPED :
case PAUSED :
case DISCONNECTED :
case CONNECTION_ERROR :
clearInterval(_updateTimeIntervalID);
_updateTimeIntervalID = 0;
}
if (_lastUpdateTime != _local2) {
dispatchEvent({type:"playheadUpdate", state:_state, playheadTime:_local2});
_lastUpdateTime = _local2;
}
}
function doUpdateProgress() {
if ((_ns == null) || (_ns == undefined)) {
return(undefined);
}
if ((_ns.bytesTotal >= 0) && (_ns.bytesTotal >= 0)) {
dispatchEvent({type:"progress", bytesLoaded:_ns.bytesLoaded, bytesTotal:_ns.bytesTotal});
}
if (((_state == DISCONNECTED) || (_state == CONNECTION_ERROR)) || (_ns.bytesLoaded == _ns.bytesTotal)) {
clearInterval(_updateProgressIntervalID);
_updateProgressIntervalID = 0;
}
}
function rtmpOnStatus(info) {
if (_state == CONNECTION_ERROR) {
return(undefined);
}
switch (info.code) {
case "NetStream.Play.Stop" :
if (_startingPlay) {
return(undefined);
}
switch (_state) {
case RESIZING :
if (_hiddenForResize) {
finishAutoResize();
}
break;
case LOADING :
case STOPPED :
case PAUSED :
break;
default :
if ((_bufferState == BUFFER_EMPTY) || (_bufferTime <= 0.1)) {
_cachedPlayheadTime = playheadTime;
clearInterval(_rtmpDoStopAtEndIntervalID);
_rtmpDoStopAtEndIntervalID = setInterval(this, "rtmpDoStopAtEnd", RTMP_DO_STOP_AT_END_INTERVAL);
} else {
if (_bufferState != BUFFER_FULL) {
break;
}
_bufferState = BUFFER_FULL_SAW_PLAY_STOP;
}
}
break;
case "NetStream.Buffer.Empty" :
switch (_bufferState) {
case BUFFER_FULL_SAW_PLAY_STOP :
rtmpDoStopAtEnd(true);
break;
case BUFFER_FULL :
if (_state == PLAYING) {
setState(BUFFERING);
}
break;
}
_bufferState = BUFFER_EMPTY;
break;
case "NetStream.Buffer.Flush" :
case "NetStream.Buffer.Full" :
if (_sawSeekNotify && (_state == SEEKING)) {
_bufferState = BUFFER_EMPTY;
setStateFromCachedState();
doUpdateTime();
}
switch (_bufferState) {
case BUFFER_EMPTY :
if (!_hiddenForResize) {
if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) {
setState(PLAYING);
} else if (_cachedState == BUFFERING) {
_cachedState = PLAYING;
}
}
_bufferState = BUFFER_FULL;
break;
default :
}
break;
case "NetStream.Pause.Notify" :
if ((_state == RESIZING) && (_hiddenForResize)) {
finishAutoResize();
}
break;
case "NetStream.Play.Start" :
clearInterval(_rtmpDoStopAtEndIntervalID);
_rtmpDoStopAtEndIntervalID = 0;
_bufferState = BUFFER_EMPTY;
if (_startingPlay) {
_startingPlay = false;
_cachedPlayheadTime = playheadTime;
} else if (_state == PLAYING) {
setState(BUFFERING);
}
break;
case "NetStream.Play.Reset" :
clearInterval(_rtmpDoStopAtEndIntervalID);
_rtmpDoStopAtEndIntervalID = 0;
if (_state == REWINDING) {
clearInterval(_rtmpDoSeekIntervalID);
_rtmpDoSeekIntervalID = 0;
if ((playheadTime == 0) || (playheadTime < _cachedPlayheadTime)) {
setStateFromCachedState();
} else {
_cachedPlayheadTime = playheadTime;
_rtmpDoSeekIntervalID = setInterval(this, "rtmpDoSeek", RTMP_DO_SEEK_INTERVAL);
}
}
break;
case "NetStream.Seek.Notify" :
if (playheadTime != _cachedPlayheadTime) {
setStateFromCachedState();
doUpdateTime();
} else {
_sawSeekNotify = true;
if (_rtmpDoSeekIntervalID == 0) {
_rtmpDoSeekIntervalID = setInterval(this, "rtmpDoSeek", RTMP_DO_SEEK_INTERVAL);
}
}
break;
case "Netstream.Play.UnpublishNotify" :
break;
case "Netstream.Play.PublishNotify" :
break;
case "NetStream.Play.StreamNotFound" :
if (!_ncMgr.connectAgain()) {
setState(CONNECTION_ERROR);
}
break;
case "NetStream.Play.Failed" :
case "NetStream.Failed" :
setState(CONNECTION_ERROR);
}
}
function httpOnStatus(info) {
switch (info.code) {
case "NetStream.Play.Stop" :
clearInterval(_delayedBufferingIntervalID);
_delayedBufferingIntervalID = 0;
if (_invalidSeekTime) {
_invalidSeekTime = false;
_invalidSeekRecovery = true;
setState(_cachedState);
seek(playheadTime);
} else {
switch (_state) {
case PLAYING :
case BUFFERING :
case SEEKING :
httpDoStopAtEnd();
}
}
break;
case "NetStream.Seek.InvalidTime" :
if (_invalidSeekRecovery) {
_invalidSeekTime = false;
_invalidSeekRecovery = false;
setState(_cachedState);
seek(0);
} else {
_invalidSeekTime = true;
}
break;
case "NetStream.Buffer.Empty" :
_bufferState = BUFFER_EMPTY;
if (_state == PLAYING) {
clearInterval(_delayedBufferingIntervalID);
_delayedBufferingIntervalID = setInterval(this, "doDelayedBuffering", _delayedBufferingInterval);
}
break;
case "NetStream.Buffer.Full" :
case "NetStream.Buffer.Flush" :
clearInterval(_delayedBufferingIntervalID);
_delayedBufferingIntervalID = 0;
_bufferState = BUFFER_FULL;
if (!_hiddenForResize) {
if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) {
setState(PLAYING);
} else if (_cachedState == BUFFERING) {
_cachedState = PLAYING;
}
}
break;
case "NetStream.Seek.Notify" :
_invalidSeekRecovery = false;
switch (_state) {
case SEEKING :
case REWINDING :
if (_httpDoSeekIntervalID != 0) {
break;
}
_httpDoSeekCount = 0;
_httpDoSeekIntervalID = setInterval(this, "httpDoSeek", HTTP_DO_SEEK_INTERVAL);
}
break;
case "NetStream.Play.StreamNotFound" :
setState(CONNECTION_ERROR);
}
}
function ncConnected() {
if ((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) {
setState(CONNECTION_ERROR);
} else {
_createStream();
_setUpStream();
}
}
function ncReconnected() {
if ((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) {
setState(CONNECTION_ERROR);
} else {
_ns = null;
_state = STOPPED;
execQueuedCmds();
}
}
function onMetaData(info) {
if (_metadata != null) {
return(undefined);
}
_metadata = info;
if (((_streamLength == undefined) || (_streamLength == null)) || (_streamLength <= 0)) {
_streamLength = info.duration;
}
if (isNaN(_videoWidth) || (_videoWidth <= 0)) {
_videoWidth = info.width;
}
if (isNaN(_videoHeight) || (_videoHeight <= 0)) {
_videoHeight = info.height;
}
dispatchEvent({type:"metadataReceived", info:info});
}
function onCuePoint(info) {
if ((!_hiddenForResize) || ((!isNaN(_hiddenRewindPlayheadTime)) && (playheadTime < _hiddenRewindPlayheadTime))) {
dispatchEvent({type:"cuePoint", info:info});
}
}
function setState(s) {
if (s == _state) {
return(undefined);
}
_hiddenRewindPlayheadTime = undefined;
_cachedState = _state;
_cachedPlayheadTime = playheadTime;
_state = s;
var _local2 = _state;
dispatchEvent({type:"stateChange", state:_local2, playheadTime:playheadTime});
if (!_readyDispatched) {
switch (_local2) {
case STOPPED :
case PLAYING :
case PAUSED :
case BUFFERING :
_readyDispatched = true;
dispatchEvent({type:"ready", state:_local2, playheadTime:playheadTime});
}
}
if (!(_cachedState === REWINDING)) {
} else {
dispatchEvent({type:"rewind", state:_local2, playheadTime:playheadTime});
if (_ncMgr.isRTMP() && (_local2 == STOPPED)) {
closeNS();
}
}
switch (_local2) {
case STOPPED :
case PAUSED :
if (_ncMgr.isRTMP() && (_idleTimeoutIntervalID == 0)) {
_idleTimeoutIntervalID = setInterval(this, "doIdleTimeout", _idleTimeoutInterval);
}
break;
case SEEKING :
case REWINDING :
_bufferState = BUFFER_EMPTY;
case PLAYING :
case BUFFERING :
if (_updateTimeIntervalID == 0) {
_updateTimeIntervalID = setInterval(this, "doUpdateTime", _updateTimeInterval);
}
case LOADING :
case RESIZING :
clearInterval(_idleTimeoutIntervalID);
_idleTimeoutIntervalID = 0;
}
execQueuedCmds();
}
function setStateFromCachedState() {
switch (_cachedState) {
case PLAYING :
case PAUSED :
setState(_cachedState);
break;
case BUFFERING :
if (_bufferState == BUFFER_EMPTY) {
setState(BUFFERING);
} else {
setState(_cachedState);
}
break;
default :
setState(STOPPED);
}
}
function createINCManager() {
if ((ncMgrClassName == null) || (ncMgrClassName == undefined)) {
ncMgrClassName = DEFAULT_INCMANAGER;
}
var ncMgrConstructor = eval (this.ncMgrClassName);
_ncMgr = new ncMgrConstructor();
_ncMgr.setVideoPlayer(this);
}
function rtmpDoStopAtEnd(force) {
if (_rtmpDoStopAtEndIntervalID > 0) {
switch (_state) {
case DISCONNECTED :
case CONNECTION_ERROR :
clearInterval(_rtmpDoStopAtEndIntervalID);
_rtmpDoStopAtEndIntervalID = 0;
return(undefined);
}
if (force || (_cachedPlayheadTime == playheadTime)) {
clearInterval(_rtmpDoStopAtEndIntervalID);
_rtmpDoStopAtEndIntervalID = 0;
} else {
_cachedPlayheadTime = playheadTime;
return(undefined);
}
}
_bufferState = BUFFER_EMPTY;
_atEnd = true;
setState(STOPPED);
if (_state != STOPPED) {
return(undefined);
}
doUpdateTime();
if (_state != STOPPED) {
return(undefined);
}
dispatchEvent({type:"complete", state:_state, playheadTime:playheadTime});
if (_state != STOPPED) {
return(undefined);
}
if ((_autoRewind && (!_isLive)) && (playheadTime != 0)) {
_atEnd = false;
_currentPos = 0;
_play(0, 0);
setState(REWINDING);
} else {
closeNS();
}
}
function rtmpDoSeek() {
if ((_state != REWINDING) && (_state != SEEKING)) {
clearInterval(_rtmpDoSeekIntervalID);
_rtmpDoSeekIntervalID = 0;
_sawSeekNotify = false;
} else if (playheadTime != _cachedPlayheadTime) {
clearInterval(_rtmpDoSeekIntervalID);
_rtmpDoSeekIntervalID = 0;
_sawSeekNotify = false;
setStateFromCachedState();
doUpdateTime();
}
}
function httpDoStopAtEnd() {
_atEnd = true;
if (((_streamLength == undefined) || (_streamLength == null)) || (_streamLength <= 0)) {
_streamLength = _ns.time;
}
_pause(true);
setState(STOPPED);
if (_state != STOPPED) {
return(undefined);
}
doUpdateTime();
if (_state != STOPPED) {
return(undefined);
}
dispatchEvent({type:"complete", state:_state, playheadTime:playheadTime});
if (_state != STOPPED) {
return(undefined);
}
if (_autoRewind) {
_atEnd = false;
_pause(true);
_seek(0);
setState(REWINDING);
}
}
function httpDoSeek() {
var _local2 = (_state == REWINDING) || (_state == SEEKING);
if ((_local2 && (_httpDoSeekCount < HTTP_DO_SEEK_MAX_COUNT)) && ((_cachedPlayheadTime == playheadTime) || (_invalidSeekTime))) {
_httpDoSeekCount++;
return(undefined);
}
_httpDoSeekCount = 0;
clearInterval(_httpDoSeekIntervalID);
_httpDoSeekIntervalID = 0;
if (!_local2) {
return(undefined);
}
setStateFromCachedState();
if (_invalidSeekTime) {
_invalidSeekTime = false;
_invalidSeekRecovery = true;
seek(playheadTime);
} else {
doUpdateTime();
}
}
function closeNS(updateCurrentPos) {
if ((_ns != null) && (_ns != undefined)) {
if (updateCurrentPos) {
clearInterval(_updateTimeIntervalID);
_updateTimeIntervalID = 0;
doUpdateTime();
_currentPos = _ns.time;
}
delete _ns.onStatus;
_ns.onStatus = null;
_ns.close();
_ns = null;
}
}
function doDelayedBuffering() {
switch (_state) {
case LOADING :
case RESIZING :
break;
case PLAYING :
clearInterval(_delayedBufferingIntervalID);
_delayedBufferingIntervalID = 0;
setState(BUFFERING);
break;
default :
clearInterval(_delayedBufferingIntervalID);
_delayedBufferingIntervalID = 0;
}
}
function _pause(doPause) {
_ns.pause(doPause);
}
function _play() {
_startingPlay = true;
switch (arguments.length) {
case 0 :
_ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : 0), -1);
break;
case 1 :
_ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : (arguments[0])), -1);
break;
case 2 :
_ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : (arguments[0])), arguments[1]);
break;
default :
throw new Error("bad args to _play");
}
}
function _seek(time) {
if ((_metadata.audiodelay != undefined) && ((time + _metadata.audiodelay) < _streamLength)) {
time = time + _metadata.audiodelay;
}
_ns.seek(time);
_invalidSeekTime = false;
_bufferState = BUFFER_EMPTY;
_sawSeekNotify = false;
}
function isXnOK() {
if (_state == LOADING) {
return(true);
}
if (_state == CONNECTION_ERROR) {
return(false);
}
if (_state != DISCONNECTED) {
if (((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) || (!_ncMgr.getNetConnection().isConnected)) {
setState(DISCONNECTED);
return(false);
}
return(true);
}
return(false);
}
function startAutoResize() {
switch (_state) {
case DISCONNECTED :
case CONNECTION_ERROR :
return(undefined);
}
_autoResizeDone = false;
if ((stateResponsive && (_videoWidth != undefined)) && (_videoHeight != undefined)) {
doAutoResize();
} else {
clearInterval(_autoResizeIntervalID);
_autoResizeIntervalID = setInterval(this, "doAutoResize", AUTO_RESIZE_INTERVAL);
}
}
function doAutoResize() {
if (_autoResizeIntervalID > 0) {
switch (_state) {
case RESIZING :
case LOADING :
break;
case DISCONNECTED :
case CONNECTION_ERROR :
clearInterval(_autoResizeIntervalID);
_autoResizeIntervalID = 0;
return(undefined);
default :
if (stateResponsive) {
break;
}
return(undefined);
}
if ((((_video.width != _prevVideoWidth) || (_video.height != _prevVideoHeight)) || (_bufferState >= BUFFER_FULL)) || (_ns.time > AUTO_RESIZE_PLAYHEAD_TIMEOUT)) {
if ((_hiddenForResize && (_metadata == null)) && (_hiddenForResizeMetadataDelay < AUTO_RESIZE_METADATA_DELAY_MAX)) {
_hiddenForResizeMetadataDelay++;
return(undefined);
}
_videoWidth = _video.width;
_videoHeight = _video.height;
clearInterval(_autoResizeIntervalID);
_autoResizeIntervalID = 0;
} else {
return(undefined);
}
}
if (((!_autoSize) && (!_aspectRatio)) || (_autoResizeDone)) {
setState(_cachedState);
return(undefined);
}
_autoResizeDone = true;
if (_autoSize) {
_video._width = _videoWidth;
_video._height = _videoHeight;
} else if (_aspectRatio) {
var _local3 = (_videoWidth * height) / _videoHeight;
var _local2 = (_videoHeight * width) / _videoWidth;
if (_local2 < height) {
_video._height = _local2;
} else if (_local3 < width) {
_video._width = _local3;
}
}
if (_hiddenForResize) {
_hiddenRewindPlayheadTime = playheadTime;
if (_state == LOADING) {
_cachedState = PLAYING;
}
if (!_ncMgr.isRTMP()) {
_pause(true);
_seek(0);
clearInterval(_finishAutoResizeIntervalID);
_finishAutoResizeIntervalID = setInterval(this, "finishAutoResize", FINISH_AUTO_RESIZE_INTERVAL);
} else if (!_isLive) {
_currentPos = 0;
_play(0, 0);
setState(RESIZING);
} else if (_autoPlay) {
clearInterval(_finishAutoResizeIntervalID);
_finishAutoResizeIntervalID = setInterval(this, "finishAutoResize", FINISH_AUTO_RESIZE_INTERVAL);
} else {
finishAutoResize();
}
} else {
dispatchEvent({type:"resize", x:_x, y:_y, width:_width, height:_height});
}
}
function finishAutoResize() {
clearInterval(_finishAutoResizeIntervalID);
_finishAutoResizeIntervalID = 0;
if (stateResponsive) {
return(undefined);
}
_visible = __visible;
_sound.setVolume(_volume);
_hiddenForResize = false;
dispatchEvent({type:"resize", x:_x, y:_y, width:_width, height:_height});
if (_autoPlay) {
if (_ncMgr.isRTMP()) {
if (!_isLive) {
_currentPos = 0;
_play(0);
}
if (_state == RESIZING) {
setState(LOADING);
_cachedState = PLAYING;
}
} else {
_pause(false);
_cachedState = PLAYING;
}
} else {
setState(STOPPED);
}
}
function _createStream() {
_ns = new NetStream(_ncMgr.getNetConnection());
_ns.mc = this;
if (_ncMgr.isRTMP()) {
_ns.onStatus = function (info) {
this.mc.rtmpOnStatus(info);
};
} else {
_ns.onStatus = function (info) {
this.mc.httpOnStatus(info);
};
}
_ns.onMetaData = function (info) {
this.mc.onMetaData(info);
};
_ns.onCuePoint = function (info) {
this.mc.onCuePoint(info);
};
_ns.setBufferTime(_bufferTime);
}
function _setUpStream() {
_video.attachVideo(_ns);
attachAudio(_ns);
if ((!isNaN(_ncMgr.getStreamLength())) && (_ncMgr.getStreamLength() >= 0)) {
_streamLength = _ncMgr.getStreamLength();
}
if ((!isNaN(_ncMgr.getStreamWidth())) && (_ncMgr.getStreamWidth() >= 0)) {
_videoWidth = _ncMgr.getStreamWidth();
} else {
_videoWidth = undefined;
}
if ((!isNaN(_ncMgr.getStreamHeight())) && (_ncMgr.getStreamHeight() >= 0)) {
_videoHeight = _ncMgr.getStreamHeight();
} else {
_videoHeight = undefined;
}
if (((_autoSize || (_aspectRatio)) && (_videoWidth != undefined)) && (_videoHeight != undefined)) {
_prevVideoWidth = undefined;
_prevVideoHeight = undefined;
doAutoResize();
}
if (((!_autoSize) && (!_aspectRatio)) || ((_videoWidth != undefined) && (_videoHeight != undefined))) {
if (_autoPlay) {
if (!_ncMgr.isRTMP()) {
_cachedState = BUFFERING;
_play();
} else if (_isLive) {
_cachedState = BUFFERING;
_play(-1);
} else {
_cachedState = BUFFERING;
_play(0);
}
} else {
_cachedState = STOPPED;
if (_ncMgr.isRTMP()) {
_play(0, 0);
} else {
_play();
_pause(true);
_seek(0);
}
}
} else {
_hiddenForResize = true;
_hiddenForResizeMetadataDelay = 0;
__visible = _visible;
_visible = false;
_volume = _sound.getVolume();
_sound.setVolume(0);
_play(0);
if (_currentPos > 0) {
_seek(_currentPos);
_currentPos = 0;
}
}
clearInterval(_autoResizeIntervalID);
_autoResizeIntervalID = setInterval(this, "doAutoResize", AUTO_RESIZE_INTERVAL);
}
function doIdleTimeout() {
clearInterval(_idleTimeoutIntervalID);
_idleTimeoutIntervalID = 0;
close();
}
function flushQueuedCmds() {
while (_cmdQueue.length > 0) {
_cmdQueue.pop();
}
}
function execQueuedCmds() {
while (((_cmdQueue.length > 0) && (stateResponsive || (_state == CONNECTION_ERROR))) && (((_cmdQueue[0].url != null) && (_cmdQueue[0].url != undefined)) || ((_state != DISCONNECTED) && (_state != CONNECTION_ERROR)))) {
var _local2 = _cmdQueue.shift();
_cachedState = _state;
_state = EXEC_QUEUED_CMD;
switch (_local2.type) {
case PLAY :
play(_local2.url, _local2.isLive, _local2.time);
break;
case LOAD :
load(_local2.url, _local2.isLive, _local2.time);
break;
case PAUSE :
pause();
break;
case STOP :
stop();
break;
case SEEK :
seek(_local2.time);
}
}
}
function queueCmd(type, url, isLive, time) {
_cmdQueue.push({type:type, url:url, isLive:false, time:time});
}
static var version = "1.0.0.103";
static var DISCONNECTED = "disconnected";
static var STOPPED = "stopped";
static var PLAYING = "playing";
static var PAUSED = "paused";
static var BUFFERING = "buffering";
static var LOADING = "loading";
static var CONNECTION_ERROR = "connectionError";
static var REWINDING = "rewinding";
static var SEEKING = "seeking";
static var RESIZING = "resizing";
static var EXEC_QUEUED_CMD = "execQueuedCmd";
static var BUFFER_EMPTY = "bufferEmpty";
static var BUFFER_FULL = "bufferFull";
static var BUFFER_FULL_SAW_PLAY_STOP = "bufferFullSawPlayStop";
static var DEFAULT_INCMANAGER = "mx.video.NCManager";
static var DEFAULT_UPDATE_TIME_INTERVAL = 250;
static var DEFAULT_UPDATE_PROGRESS_INTERVAL = 250;
static var DEFAULT_IDLE_TIMEOUT_INTERVAL = 300000;
static var AUTO_RESIZE_INTERVAL = 100;
static var AUTO_RESIZE_PLAYHEAD_TIMEOUT = 0.5;
static var AUTO_RESIZE_METADATA_DELAY_MAX = 5;
static var FINISH_AUTO_RESIZE_INTERVAL = 250;
static var RTMP_DO_STOP_AT_END_INTERVAL = 500;
static var RTMP_DO_SEEK_INTERVAL = 100;
static var HTTP_DO_SEEK_INTERVAL = 250;
static var HTTP_DO_SEEK_MAX_COUNT = 4;
static var CLOSE_NS_INTERVAL = 0.25;
static var HTTP_DELAYED_BUFFERING_INTERVAL = 100;
static var PLAY = 0;
static var LOAD = 1;
static var PAUSE = 2;
static var STOP = 3;
static var SEEK = 4;
}
Symbol 520 MovieClip [__Packages.mx.video.INCManager] Frame 0
interface mx.video.INCManager
{
}
Symbol 521 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 522 MovieClip [__Packages.mx.video.VideoError] Frame 0
class mx.video.VideoError extends Error
{
var _code, message, name;
function VideoError (errCode, msg) {
super();
_code = errCode;
message = ((("" + errCode) + ": ") + ERROR_MSG[errCode - BASE_ERROR_CODE]) + ((msg == undefined) ? "" : (": " + msg));
name = "VideoError";
}
function get code() {
return(_code);
}
static var version = "1.0.0.103";
static var BASE_ERROR_CODE = 1000;
static var NO_CONNECTION = 1000;
static var NO_CUE_POINT_MATCH = 1001;
static var ILLEGAL_CUE_POINT = 1002;
static var INVALID_SEEK = 1003;
static var INVALID_CONTENT_PATH = 1004;
static var INVALID_XML = 1005;
static var NO_BITRATE_MATCH = 1006;
static var DELETE_DEFAULT_PLAYER = 1007;
static var ERROR_MSG = ["Unable to make connection to server or to find FLV on server", "No matching cue point found", "Illegal cue point", "Invalid seek", "Invalid contentPath", "Invalid xml", "No bitrate match, must be no default flv", "Cannot delete default VideoPlayer"];
}
Symbol 523 MovieClip [__Packages.mx.video.UIManager] Frame 0
class mx.video.UIManager
{
var _vc, _skin, _skinAutoHide, _skinReady, __visible, _bufferingBarHides, _controlsEnabled, _lastScrubPos, _lastVolumePos, cachedSoundLevel, _isMuted, controls, customClips, skin_mc, skinLoader, layout_mc, border_mc, _seekBarIntervalID, _seekBarInterval, _seekBarScrubTolerance, _volumeBarIntervalID, _volumeBarInterval, _volumeBarScrubTolerance, _bufferingDelayIntervalID, _bufferingDelayInterval, _bufferingOn, _skinAutoHideIntervalID, _progressPercent, placeholderLeft, placeholderRight, placeholderTop, placeholderBottom, videoLeft, videoRight, videoTop, videoBottom, _playAfterScrub;
function UIManager (vc) {
_vc = vc;
_skin = undefined;
_skinAutoHide = false;
_skinReady = true;
__visible = true;
_bufferingBarHides = false;
_controlsEnabled = true;
_lastScrubPos = 0;
_lastVolumePos = 0;
cachedSoundLevel = _vc.volume;
_isMuted = false;
controls = new Array();
customClips = undefined;
skin_mc = undefined;
skinLoader = undefined;
layout_mc = undefined;
border_mc = undefined;
_seekBarIntervalID = 0;
_seekBarInterval = SEEK_BAR_INTERVAL_DEFAULT;
_seekBarScrubTolerance = SEEK_BAR_SCRUB_TOLERANCE_DEFAULT;
_volumeBarIntervalID = 0;
_volumeBarInterval = VOLUME_BAR_INTERVAL_DEFAULT;
_volumeBarScrubTolerance = VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT;
_bufferingDelayIntervalID = 0;
_bufferingDelayInterval = BUFFERING_DELAY_INTERVAL_DEFAULT;
_bufferingOn = false;
_skinAutoHideIntervalID = 0;
_vc.addEventListener("metadataReceived", this);
_vc.addEventListener("playheadUpdate", this);
_vc.addEventListener("progress", this);
_vc.addEventListener("stateChange", this);
_vc.addEventListener("ready", this);
_vc.addEventListener("resize", this);
_vc.addEventListener("volumeUpdate", this);
}
function handleEvent(e) {
if ((e.vp != undefined) && (e.vp != _vc.__get__visibleVideoPlayerIndex())) {
return(undefined);
}
var _local9 = _vc.__get__activeVideoPlayerIndex();
_vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex);
if (e.type == "stateChange") {
if (e.state == mx.video.FLVPlayback.BUFFERING) {
if (!_bufferingOn) {
clearInterval(_bufferingDelayIntervalID);
_bufferingDelayIntervalID = setInterval(this, "doBufferingDelay", _bufferingDelayInterval);
}
} else {
clearInterval(_bufferingDelayIntervalID);
_bufferingDelayIntervalID = 0;
_bufferingOn = false;
}
if (e.state == mx.video.FLVPlayback.LOADING) {
_progressPercent = (_vc.getVideoPlayer(e.vp).__get__isRTMP() ? 100 : 0);
var _local2 = SEEK_BAR;
while (_local2 <= VOLUME_BAR) {
var _local4 = controls[_local2];
if (_local4.progress_mc != undefined) {
positionBar(_local4, "progress", _progressPercent);
}
_local2++;
}
}
var _local2 = 0;
while (_local2 < NUM_CONTROLS) {
if (controls[_local2] == undefined) {
} else {
setEnabledAndVisibleForState(_local2, e.state);
if (_local2 < NUM_BUTTONS) {
skinButtonControl(controls[_local2]);
}
}
_local2++;
}
} else if ((e.type == "ready") || (e.type == "metadataReceived")) {
var _local2 = 0;
while (_local2 < NUM_CONTROLS) {
if (controls[_local2] == undefined) {
} else {
setEnabledAndVisibleForState(_local2, _vc.__get__state());
if (_local2 < NUM_BUTTONS) {
skinButtonControl(controls[_local2]);
}
}
_local2++;
}
if (_vc.getVideoPlayer(e.vp).__get__isRTMP()) {
_progressPercent = 100;
_local2 = SEEK_BAR;
while (_local2 <= VOLUME_BAR) {
var _local4 = controls[_local2];
if (_local4.progress_mc != undefined) {
positionBar(_local4, "progress", _progressPercent);
}
_local2++;
}
}
} else if (e.type == "resize") {
layoutSkin();
setupSkinAutoHide();
} else if (e.type == "volumeUpdate") {
if (_isMuted && (e.volume > 0)) {
_isMuted = false;
setEnabledAndVisibleForState(MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING);
skinButtonControl(controls[MUTE_OFF_BUTTON]);
setEnabledAndVisibleForState(MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING);
skinButtonControl(controls[MUTE_ON_BUTTON]);
}
var _local5 = controls[VOLUME_BAR];
_local5.percentage = (_isMuted ? (cachedSoundLevel) : (e.volume));
if (_local5.percentage < 0) {
_local5.percentage = 0;
} else if (_local5.percentage > 100) {
_local5.percentage = 100;
}
positionHandle(VOLUME_BAR);
} else if ((e.type == "playheadUpdate") && (controls[SEEK_BAR] != undefined)) {
if ((!_vc.__get__isLive()) && (_vc.__get__totalTime() > 0)) {
var _local6 = (e.playheadTime / _vc.__get__totalTime()) * 100;
if (_local6 < 0) {
_local6 = 0;
} else if (_local6 > 100) {
_local6 = 100;
}
var _local10 = controls[SEEK_BAR];
_local10.percentage = _local6;
positionHandle(SEEK_BAR);
}
} else if (e.type == "progress") {
_progressPercent = ((e.bytesTotal <= 0) ? 100 : ((e.bytesLoaded / e.bytesTotal) * 100));
var _local7 = _vc._vpState[e.vp].minProgressPercent;
if ((!isNaN(_local7)) && (_local7 > _progressPercent)) {
_progressPercent = _local7;
}
if (_vc.__get__totalTime() > 0) {
var _local8 = (_vc.__get__playheadTime() / _vc.__get__totalTime()) * 100;
if (_local8 > _progressPercent) {
_progressPercent = _local8;
_vc._vpState[e.vp].minProgressPercent = _progressPercent;
}
}
var _local2 = SEEK_BAR;
while (_local2 <= VOLUME_BAR) {
var _local4 = controls[_local2];
if (_local4.progress_mc != undefined) {
positionBar(_local4, "progress", _progressPercent);
}
_local2++;
}
}
_vc.__set__activeVideoPlayerIndex(_local9);
}
function get bufferingBarHidesAndDisablesOthers() {
return(_bufferingBarHides);
}
function set bufferingBarHidesAndDisablesOthers(b) {
_bufferingBarHides = b;
//return(bufferingBarHidesAndDisablesOthers);
}
function get controlsEnabled() {
return(_controlsEnabled);
}
function set controlsEnabled(flag) {
if (_controlsEnabled == flag) {
return;
}
_controlsEnabled = flag;
var _local2 = 0;
while (_local2 < NUM_BUTTONS) {
if (controls[_local2] == undefined) {
} else {
controls[_local2].releaseCapture();
controls[_local2].enabled = _controlsEnabled && (controls[_local2].myEnabled);
skinButtonControl(controls[_local2]);
}
_local2++;
}
//return(controlsEnabled);
}
function get skin() {
return(_skin);
}
function set skin(s) {
if (s == _skin) {
return;
}
if (_skin != undefined) {
removeSkin();
}
_skin = s;
_skinReady = ((_skin == undefined) || (_skin == null)) || (_skin == "");
if (!_skinReady) {
downloadSkin();
}
//return(skin);
}
function get skinAutoHide() {
return(_skinAutoHide);
}
function set skinAutoHide(b) {
if (b == _skinAutoHide) {
return;
}
_skinAutoHide = b;
setupSkinAutoHide();
//return(skinAutoHide);
}
function get skinReady() {
return(_skinReady);
}
function get seekBarInterval() {
return(_seekBarInterval);
}
function set seekBarInterval(s) {
if (_seekBarInterval == s) {
return;
}
_seekBarInterval = s;
if (_seekBarIntervalID > 0) {
clearInterval(_seekBarIntervalID);
_seekBarIntervalID = setInterval(this, "seekBarListener", _seekBarInterval, false);
}
//return(seekBarInterval);
}
function get volumeBarInterval() {
return(_volumeBarInterval);
}
function set volumeBarInterval(s) {
if (_volumeBarInterval == s) {
return;
}
_volumeBarInterval = s;
if (_volumeBarIntervalID > 0) {
clearInterval(_volumeBarIntervalID);
_volumeBarIntervalID = setInterval(this, "volumeBarListener", _volumeBarInterval, false);
}
//return(volumeBarInterval);
}
function get bufferingDelayInterval() {
return(_bufferingDelayInterval);
}
function set bufferingDelayInterval(s) {
if (_bufferingDelayInterval == s) {
return;
}
_bufferingDelayInterval = s;
if (_bufferingDelayIntervalID > 0) {
clearInterval(_bufferingDelayIntervalID);
_bufferingDelayIntervalID = setInterval(this, "doBufferingDelay", _bufferingDelayIntervalID);
}
//return(bufferingDelayInterval);
}
function get volumeBarScrubTolerance() {
return(_volumeBarScrubTolerance);
}
function set volumeBarScrubTolerance(s) {
_volumeBarScrubTolerance = s;
//return(volumeBarScrubTolerance);
}
function get seekBarScrubTolerance() {
return(_seekBarScrubTolerance);
}
function set seekBarScrubTolerance(s) {
_seekBarScrubTolerance = s;
//return(seekBarScrubTolerance);
}
function get visible() {
return(__visible);
}
function set visible(v) {
if (__visible == v) {
return;
}
__visible = v;
if (!__visible) {
skin_mc._visible = false;
} else {
setupSkinAutoHide();
}
//return(visible);
}
function getControl(index) {
return(controls[index]);
}
function setControl(index, s) {
if (s == null) {
s = undefined;
}
if (s == controls[index]) {
return(undefined);
}
switch (index) {
case PAUSE_BUTTON :
case PLAY_BUTTON :
resetPlayPause();
break;
case PLAY_PAUSE_BUTTON :
if (s._parent != layout_mc) {
resetPlayPause();
setControl(PAUSE_BUTTON, s.pause_mc);
setControl(PLAY_BUTTON, s.play_mc);
}
break;
case MUTE_BUTTON :
if (s._parent == layout_mc) {
break;
}
setControl(MUTE_ON_BUTTON, s.on_mc);
setControl(MUTE_OFF_BUTTON, s.off_mc);
}
if (index >= NUM_BUTTONS) {
controls[index] = s;
switch (index) {
case SEEK_BAR :
addBarControl(SEEK_BAR);
break;
case VOLUME_BAR :
addBarControl(VOLUME_BAR);
controls[VOLUME_BAR].percentage = _vc.volume;
break;
case BUFFERING_BAR :
controls[BUFFERING_BAR].uiMgr = this;
controls[BUFFERING_BAR].controlIndex = BUFFERING_BAR;
if (controls[BUFFERING_BAR]._parent == skin_mc) {
finishAddBufferingBar();
} else {
controls[BUFFERING_BAR].onEnterFrame = function () {
this.uiMgr.finishAddBufferingBar();
};
}
}
setEnabledAndVisibleForState(index, _vc.__get__state());
} else {
removeButtonControl(index);
controls[index] = s;
addButtonControl(index);
}
}
function resetPlayPause() {
if (controls[PLAY_PAUSE_BUTTON] == undefined) {
return(undefined);
}
var _local2 = PAUSE_BUTTON;
while (_local2 <= PLAY_BUTTON) {
removeButtonControl(_local2);
_local2++;
}
controls[PLAY_PAUSE_BUTTON] = undefined;
}
function addButtonControl(index) {
var _local3 = controls[index];
if (_local3 == undefined) {
return(undefined);
}
var _local5 = _vc.__get__activeVideoPlayerIndex();
_vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex);
_local3.id = index;
_local3.state = UP_STATE;
_local3.uiMgr = this;
setEnabledAndVisibleForState(index, _vc.__get__state());
_local3.onRollOver = function () {
this.state = mx.video.UIManager.OVER_STATE;
this.uiMgr.skinButtonControl(this);
};
_local3.onRollOut = function () {
this.state = mx.video.UIManager.UP_STATE;
this.uiMgr.skinButtonControl(this);
};
if ((index == SEEK_BAR_HANDLE) || (index == VOLUME_BAR_HANDLE)) {
_local3.onPress = function () {
if (_root.focusManager) {
this._focusrect = false;
Selection.setFocus(this);
}
this.state = mx.video.UIManager.DOWN_STATE;
this.uiMgr.dispatchMessage(this);
this.uiMgr.skinButtonControl(this);
};
_local3.onRelease = function () {
this.state = mx.video.UIManager.OVER_STATE;
this.uiMgr.handleRelease(this.controlIndex);
this.uiMgr.skinButtonControl(this);
};
_local3.onReleaseOutside = function () {
this.state = mx.video.UIManager.UP_STATE;
this.uiMgr.handleRelease(this.controlIndex);
this.uiMgr.skinButtonControl(this);
};
} else {
_local3.onPress = function () {
if (_root.focusManager) {
this._focusrect = false;
Selection.setFocus(this);
}
this.state = mx.video.UIManager.DOWN_STATE;
this.uiMgr.skinButtonControl(this);
};
_local3.onRelease = function () {
this.state = mx.video.UIManager.OVER_STATE;
this.uiMgr.dispatchMessage(this);
this.uiMgr.skinButtonControl(this);
};
_local3.onReleaseOutside = function () {
this.state = mx.video.UIManager.UP_STATE;
this.uiMgr.skinButtonControl(this);
};
}
if (_local3._parent == skin_mc) {
skinButtonControl(_local3);
} else {
_local3.onEnterFrame = function () {
this.uiMgr.skinButtonControl(this);
};
}
_vc.__set__activeVideoPlayerIndex(_local5);
}
function removeButtonControl(index) {
if (controls[index] == undefined) {
return(undefined);
}
controls[index].uiMgr = undefined;
controls[index].onRollOver = undefined;
controls[index].onRollOut = undefined;
controls[index].onPress = undefined;
controls[index].onRelease = undefined;
controls[index].onReleaseOutside = undefined;
controls[index] = undefined;
}
function downloadSkin() {
if (skinLoader == undefined) {
skinLoader = new MovieClipLoader();
skinLoader.addListener(this);
}
if (skin_mc == undefined) {
skin_mc = _vc.createEmptyMovieClip("skin_mc", _vc.getNextHighestDepth());
}
skin_mc._visible = false;
skin_mc._x = Stage.width + 100;
skin_mc._y = Stage.height + 100;
skinLoader.loadClip(_skin, skin_mc);
}
function onLoadError(target_mc, errorCode) {
_skinReady = true;
_vc.skinError("Unable to load skin swf");
}
function onLoadInit() {
try {
skin_mc._visible = false;
skin_mc._x = 0;
skin_mc._y = 0;
layout_mc = skin_mc.layout_mc;
if (layout_mc == undefined) {
throw new Error("No layout_mc");
}
layout_mc._visible = false;
customClips = new Array();
setCustomClips("bg");
if (layout_mc.playpause_mc != undefined) {
setSkin(PLAY_PAUSE_BUTTON, layout_mc.playpause_mc);
} else {
setSkin(PAUSE_BUTTON, layout_mc.pause_mc);
setSkin(PLAY_BUTTON, layout_mc.play_mc);
}
setSkin(STOP_BUTTON, layout_mc.stop_mc);
setSkin(BACK_BUTTON, layout_mc.back_mc);
setSkin(FORWARD_BUTTON, layout_mc.forward_mc);
setSkin(MUTE_BUTTON, layout_mc.volumeMute_mc);
setSkin(SEEK_BAR, layout_mc.seekBar_mc);
setSkin(VOLUME_BAR, layout_mc.volumeBar_mc);
setSkin(BUFFERING_BAR, layout_mc.bufferingBar_mc);
setCustomClips("fg");
layoutSkin();
setupSkinAutoHide();
skin_mc._visible = __visible;
_skinReady = true;
_vc.skinLoaded();
var _local4 = _vc.__get__activeVideoPlayerIndex();
_vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex);
var _local3 = _vc.__get__state();
var _local2 = 0;
while (_local2 < NUM_CONTROLS) {
if (controls[_local2] == undefined) {
} else {
setEnabledAndVisibleForState(_local2, _local3);
if (_local2 < NUM_BUTTONS) {
skinButtonControl(controls[_local2]);
}
}
_local2++;
}
_vc.__set__activeVideoPlayerIndex(_local4);
} catch(err:Error) {
_vc.skinError(err.message);
removeSkin();
}
}
function layoutSkin() {
if (layout_mc == undefined) {
return(undefined);
}
var _local3 = layout_mc.video_mc;
if (_local3 == undefined) {
throw new Error("No layout_mc.video_mc");
}
placeholderLeft = _local3._x;
placeholderRight = _local3._x + _local3._width;
placeholderTop = _local3._y;
placeholderBottom = _local3._y + _local3._height;
videoLeft = 0;
videoRight = _vc.width;
videoTop = 0;
videoBottom = _vc.height;
if (((!isNaN(layout_mc.minWidth)) && (layout_mc.minWidth > 0)) && (layout_mc.minWidth > videoRight)) {
videoLeft = videoLeft - ((layout_mc.minWidth - videoRight) / 2);
videoRight = layout_mc.minWidth + videoLeft;
}
if (((!isNaN(layout_mc.minHeight)) && (layout_mc.minHeight > 0)) && (layout_mc.minHeight > videoBottom)) {
videoTop = videoTop - ((layout_mc.minHeight - videoBottom) / 2);
videoBottom = layout_mc.minHeight + videoTop;
}
var _local2;
_local2 = 0;
while (_local2 < customClips.length) {
layoutControl(customClips[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < NUM_CONTROLS) {
layoutControl(controls[_local2]);
_local2++;
}
}
function layoutControl(ctrl) {
if (ctrl == undefined) {
return(undefined);
}
if (ctrl.skin.anchorRight) {
if (ctrl.skin.anchorLeft) {
ctrl._x = (ctrl.skin._x - placeholderLeft) + videoLeft;
ctrl._width = (((ctrl.skin._x + ctrl.skin._width) - placeholderRight) + videoRight) - ctrl._x;
if (ctrl.origWidth != undefined) {
ctrl.origWidth = undefined;
}
} else {
ctrl._x = (ctrl.skin._x - placeholderRight) + videoRight;
}
} else {
ctrl._x = (ctrl.skin._x - placeholderLeft) + videoLeft;
}
if (ctrl.skin.anchorTop) {
if (ctrl.skin.anchorBottom) {
ctrl._y = (ctrl.skin._y - placeholderTop) + videoTop;
ctrl._height = (((ctrl.skin._y + ctrl.skin._height) - placeholderBottom) + videoBottom) - ctrl._y;
if (ctrl.origHeight != undefined) {
ctrl.origHeight = undefined;
}
} else {
ctrl._y = (ctrl.skin._y - placeholderTop) + videoTop;
}
} else {
ctrl._y = (ctrl.skin._y - placeholderBottom) + videoBottom;
}
switch (ctrl.controlIndex) {
case SEEK_BAR :
case VOLUME_BAR :
if (ctrl.progress_mc != undefined) {
if (_progressPercent == undefined) {
_progressPercent = (_vc.__get__isRTMP() ? 100 : 0);
}
positionBar(ctrl, "progress", _progressPercent);
}
positionHandle(ctrl.controlIndex);
break;
case BUFFERING_BAR :
if (ctrl.fill_mc == undefined) {
break;
}
positionMaskedFill(ctrl, ctrl.fill_mc, 100);
}
if (ctrl.layoutSelf != undefined) {
ctrl.layoutSelf();
}
}
function removeSkin() {
if (skin_mc != undefined) {
var _local2 = 0;
while (_local2 < NUM_BUTTONS) {
removeButtonControl(_local2);
_local2++;
}
_local2 = NUM_BUTTONS;
while (_local2 < NUM_CONTROLS) {
controls[_local2] = undefined;
_local2++;
}
skin_mc.unloadMovie();
layout_mc = undefined;
border_mc = undefined;
}
}
function setCustomClips(prefix) {
var _local4 = 1;
while (true) {
var _local2 = layout_mc[(prefix + (_local4++)) + "_mc"];
if (_local2 == undefined) {
break;
}
var _local3 = _local2.mc;
if (_local3 == undefined) {
_local3 = _local2._parent._parent[_local2._name];
}
if (_local3 == undefined) {
throw new Error("Bad clip in skin: " + _local2);
}
_local3.skin = _local2;
customClips.push(_local3);
if ((prefix == "bg") && (_local4 == 2)) {
border_mc = _local3;
}
}
}
function setSkin(index, s) {
if (s == undefined) {
return(undefined);
}
var _local2 = s.mc;
if (_local2 == undefined) {
_local2 = s._parent._parent[s._name];
}
if (_local2 == undefined) {
throw new Error("Bad clip in skin: " + s);
}
_local2.skin = s;
if (index < NUM_BUTTONS) {
setupSkinStates(_local2);
} else {
switch (index) {
case PLAY_PAUSE_BUTTON :
setupSkinStates(_local2.play_mc);
setupSkinStates(_local2.pause_mc);
break;
case MUTE_BUTTON :
setupSkinStates(_local2.on_mc);
setupSkinStates(_local2.off_mc);
break;
case SEEK_BAR :
case VOLUME_BAR :
var _local4 = ((index == SEEK_BAR) ? "seekBar" : "volumeBar");
if (_local2.handle_mc == undefined) {
_local2.handle_mc = _local2.skin.seekBarHandle_mc;
if (_local2.handle_mc == undefined) {
_local2.handle_mc = _local2.skin._parent._parent[_local4 + "Handle_mc"];
}
}
if (_local2.progress_mc == undefined) {
_local2.progress_mc = _local2.skin.progress_mc;
if (_local2.progress_mc == undefined) {
_local2.progress_mc = _local2.skin._parent._parent[_local4 + "Progress_mc"];
}
}
if (_local2.fullness_mc == undefined) {
_local2.fullness_mc = _local2.skin.fullness_mc;
if (_local2.fullness_mc == undefined) {
_local2.fullness_mc = _local2.skin._parent._parent[_local4 + "Fullness_mc"];
}
}
break;
case BUFFERING_BAR :
if (_local2.fill_mc != undefined) {
break;
}
_local2.fill_mc = _local2.skin.fill_mc;
if (_local2.fill_mc != undefined) {
break;
}
_local2.fill_mc = _local2.skin._parent._parent.bufferingBarFill_mc;
}
}
setControl(index, _local2);
}
function setupSkinStates(ctrl) {
if (ctrl.up_mc == undefined) {
ctrl.up_mc = ctrl;
ctrl.over_mc = ctrl;
ctrl.down_mc = ctrl;
ctrl.disabled_mc = ctrl;
} else {
ctrl._x = 0;
ctrl._y = 0;
ctrl.up_mc._x = 0;
ctrl.up_mc._y = 0;
ctrl.up_mc._visible = true;
if (ctrl.over_mc == undefined) {
ctrl.over_mc = ctrl.up_mc;
} else {
ctrl.over_mc._x = 0;
ctrl.over_mc._y = 0;
ctrl.over_mc._visible = false;
}
if (ctrl.down_mc == undefined) {
ctrl.down_mc = ctrl.up_mc;
} else {
ctrl.down_mc._x = 0;
ctrl.down_mc._y = 0;
ctrl.down_mc._visible = false;
}
if (ctrl.disabled_mc == undefined) {
ctrl.disabled_mc_mc = ctrl.up_mc;
} else {
ctrl.disabled_mc._x = 0;
ctrl.disabled_mc._y = 0;
ctrl.disabled_mc._visible = false;
}
}
}
function skinButtonControl(ctrl) {
if (ctrl.onEnterFrame != undefined) {
delete ctrl.onEnterFrame;
ctrl.onEnterFrame = undefined;
}
if (ctrl.enabled) {
switch (ctrl.state) {
case UP_STATE :
if (ctrl.up_mc == undefined) {
ctrl.up_mc = ctrl.attachMovie(ctrl.upLinkageID, "up_mc", ctrl.getNextHighestDepth());
}
applySkinState(ctrl, ctrl.up_mc);
break;
case OVER_STATE :
if (ctrl.over_mc == undefined) {
if (ctrl.overLinkageID == undefined) {
ctrl.over_mc = ctrl.up_mc;
} else {
ctrl.over_mc = ctrl.attachMovie(ctrl.overLinkageID, "over_mc", ctrl.getNextHighestDepth());
}
}
applySkinState(ctrl, ctrl.over_mc);
break;
case DOWN_STATE :
if (ctrl.down_mc == undefined) {
if (ctrl.downLinkageID == undefined) {
ctrl.down_mc = ctrl.up_mc;
} else {
ctrl.down_mc = ctrl.attachMovie(ctrl.downLinkageID, "down_mc", ctrl.getNextHighestDepth());
}
}
applySkinState(ctrl, ctrl.down_mc);
}
} else {
ctrl.state = UP_STATE;
if (ctrl.disabled_mc == undefined) {
if (ctrl.disabledLinkageID == undefined) {
ctrl.disabled_mc = ctrl.up_mc;
} else {
ctrl.disabled_mc = ctrl.attachMovie(ctrl.disabledLinkageID, "disabled_mc", ctrl.getNextHighestDepth());
}
}
applySkinState(ctrl, ctrl.disabled_mc);
}
if (ctrl.placeholder_mc != undefined) {
ctrl.placeholder_mc.unloadMovie();
delete ctrl.placeholder_mc;
ctrl.placeholder_mc = undefined;
}
}
function applySkinState(ctrl, state) {
if (state != ctrl.currentState_mc) {
if (state != undefined) {
state._visible = true;
}
if (ctrl.currentState_mc != undefined) {
ctrl.currentState_mc._visible = false;
}
ctrl.currentState_mc = state;
}
}
function addBarControl(controlIndex) {
var _local2 = controls[controlIndex];
_local2.isDragging = false;
_local2.percentage = 0;
_local2.uiMgr = this;
_local2.controlIndex = controlIndex;
if (_local2._parent == skin_mc) {
finishAddBarControl(controlIndex);
} else {
_local2.onEnterFrame = function () {
this.uiMgr.finishAddBarControl(this.controlIndex);
};
}
}
function finishAddBarControl(controlIndex) {
var _local2 = controls[controlIndex];
delete _local2.onEnterFrame;
_local2.onEnterFrame = undefined;
if (_local2.addBarControl != undefined) {
_local2.addBarControl();
}
calcBarMargins(_local2, "handle", true);
calcBarMargins(_local2, "progress", false);
calcBarMargins(_local2.progress_mc, "fill", false);
calcBarMargins(_local2.progress_mc, "mask", false);
calcBarMargins(_local2, "fullness", false);
calcBarMargins(_local2.fullness_mc, "fill", false);
calcBarMargins(_local2.fullness_mc, "mask", false);
_local2.origWidth = _local2._width;
_local2.origHeight = _local2._height;
fixUpBar(_local2, "progress");
if (_local2.progress_mc != undefined) {
fixUpBar(_local2, "progressBarFill");
if (_progressPercent == undefined) {
_progressPercent = (_vc.__get__isRTMP() ? 100 : 0);
}
positionBar(_local2, "progress", _progressPercent);
}
fixUpBar(_local2, "fullness");
if (_local2.fullness_mc != undefined) {
fixUpBar(_local2, "fullnessBarFill");
}
fixUpBar(_local2, "handle");
_local2.handle_mc.controlIndex = controlIndex;
switch (controlIndex) {
case SEEK_BAR :
setControl(SEEK_BAR_HANDLE, _local2.handle_mc);
break;
case VOLUME_BAR :
setControl(VOLUME_BAR_HANDLE, _local2.handle_mc);
}
positionHandle(controlIndex);
}
function fixUpBar(ctrl, type) {
if ((ctrl[type + "LinkageID"] != undefined) && (ctrl[type + "LinkageID"].length > 0)) {
var _local1;
if (ctrl[type + "Below"]) {
_local1 = -1;
while (ctrl._parent.getInstanceAtDepth(_local1) != undefined) {
_local1--;
}
} else {
ctrl[type + "Below"] = false;
_local1 = ctrl._parent.getNextHighestDepth();
}
ctrl[type + "_mc"] = ctrl._parent.attachMovie(ctrl[type + "LinkageID"], type + "_mc", _local1);
}
}
function calcBarMargins(ctrl, type, symmetricMargins) {
var _local2 = ctrl[type + "_mc"];
if (_local2 == undefined) {
return(undefined);
}
if ((ctrl[type + "LeftMargin"] == undefined) && (_local2._parent == ctrl._parent)) {
ctrl[type + "LeftMargin"] = _local2._x - ctrl._x;
}
if (ctrl[type + "RightMargin"] == undefined) {
if (symmetricMargins) {
ctrl[type + "RightMargin"] = ctrl[type + "LeftMargin"];
} else if (_local2._parent == ctrl._parent) {
ctrl[type + "RightMargin"] = ((ctrl._width - _local2._width) - _local2._x) + ctrl._x;
}
}
if ((ctrl[type + "TopMargin"] == undefined) && (_local2._parent == ctrl._parent)) {
ctrl[type + "TopMargin"] = _local2._y - ctrl._y;
}
if (ctrl[type + "BottomMargin"] == undefined) {
if (symmetricMargins) {
ctrl[type + "BottomMargin"] = ctrl[type + "TopMargin"];
} else if (_local2._parent == ctrl._parent) {
ctrl[type + "BottomMargin"] = ((ctrl._height - _local2._height) - _local2._y) + ctrl._y;
}
}
if (ctrl[type + "X"] == undefined) {
if (_local2._parent == ctrl._parent) {
ctrl[type + "X"] = _local2._x - ctrl._x;
} else if (_local2._parent == ctrl) {
ctrl[type + "X"] = _local2._x;
}
}
if (ctrl[type + "Y"] == undefined) {
if (_local2._parent == ctrl._parent) {
ctrl[type + "Y"] = _local2._y - ctrl._y;
} else if (_local2._parent == ctrl) {
ctrl[type + "Y"] = _local2._y;
}
}
ctrl[type + "XScale"] = _local2._xscale;
ctrl[type + "YScale"] = _local2._yscale;
ctrl[type + "Width"] = _local2._width;
ctrl[type + "Height"] = _local2._height;
}
function finishAddBufferingBar() {
var _local2 = controls[BUFFERING_BAR];
delete _local2.onEnterFrame;
_local2.onEnterFrame = undefined;
calcBarMargins(_local2, "fill", true);
fixUpBar(_local2, "fill");
if (_local2.fill_mc != undefined) {
positionMaskedFill(_local2, _local2.fill_mc, 100);
}
}
function positionMaskedFill(ctrl, fill, percent) {
var _local5 = fill._parent;
var _local3 = ctrl.mask_mc;
if (_local3 == undefined) {
_local3 = _local5.createEmptyMovieClip(ctrl._name + "Mask_mc", _local5.getNextHighestDepth());
ctrl.mask_mc = _local3;
_local3.beginFill(16777215);
_local3.lineTo(0, 0);
_local3.lineTo(1, 0);
_local3.lineTo(1, 1);
_local3.lineTo(0, 1);
_local3.lineTo(0, 0);
_local3.endFill();
fill.setMask(_local3);
_local3._x = ctrl.fillX;
_local3._y = ctrl.fillY;
_local3._width = ctrl.fillWidth;
_local3._height = ctrl.fillHeight;
_local3._visible = false;
calcBarMargins(ctrl, "mask", true);
}
if (_local5 == ctrl) {
if (fill.slideReveal) {
fill._x = (ctrl.maskX - ctrl.fillWidth) + ((ctrl.fillWidth * percent) / 100);
} else {
_local3._width = (ctrl.fillWidth * percent) / 100;
}
} else if (_local5 == ctrl._parent) {
if (fill.slideReveal) {
_local3._x = ctrl._x + ctrl.maskLeftMargin;
_local3._y = ctrl._y + ctrl.maskTopMargin;
_local3._width = (ctrl._width - ctrl.maskRightMargin) - ctrl.maskLeftMargin;
_local3._height = (ctrl._height - ctrl.maskTopMargin) - ctrl.maskBottomMargin;
fill._x = (_local3._x - ctrl.fillWidth) + ((ctrl.maskWidth * percent) / 100);
fill._y = ctrl._y + ctrl.fillTopMargin;
} else {
fill._x = ctrl._x + ctrl.fillLeftMargin;
fill._y = ctrl._y + ctrl.fillTopMargin;
_local3._x = fill._x;
_local3._y = fill._y;
_local3._width = (((ctrl._width - ctrl.fillRightMargin) - ctrl.fillLeftMargin) * percent) / 100;
_local3._height = (ctrl._height - ctrl.fillTopMargin) - ctrl.fillBottomMargin;
}
}
}
function startHandleDrag(controlIndex) {
var _local2 = controls[controlIndex];
var _local5 = _local2.handle_mc;
if ((_local2.startHandleDrag == undefined) || (!_local2.startHandleDrag())) {
var _local3 = _local2._y + _local2.handleY;
var _local4 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth));
_local5.startDrag(false, _local2._x + _local2.handleLeftMargin, _local3, (_local2._x + _local4) - _local2.handleRightMargin, _local3);
}
_local2.isDragging = true;
}
function stopHandleDrag(controlIndex) {
var _local2 = controls[controlIndex];
var _local3 = _local2.handle_mc;
if ((_local2.stopHandleDrag == undefined) || (!_local2.stopHandleDrag())) {
_local3.stopDrag();
}
_local2.isDragging = false;
}
function positionHandle(controlIndex) {
var _local2 = controls[controlIndex];
var _local3 = _local2.handle_mc;
if (_local3 == undefined) {
return(undefined);
}
if ((_local2.positionHandle != undefined) && (_local2.positionHandle())) {
return(undefined);
}
var _local4 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth));
var _local5 = (_local4 - _local2.handleRightMargin) - _local2.handleLeftMargin;
_local3._x = (_local2._x + _local2.handleLeftMargin) + ((_local5 * _local2.percentage) / 100);
_local3._y = _local2._y + _local2.handleY;
if (_local2.fullness_mc != undefined) {
positionBar(_local2, "fullness", _local2.percentage);
}
}
function positionBar(ctrl, type, percent) {
if ((ctrl.positionBar != undefined) && (ctrl.positionBar(type, percent))) {
return(undefined);
}
var _local2 = ctrl[type + "_mc"];
if (_local2._parent == ctrl) {
if (_local2.fill_mc == undefined) {
_local2._xscale = (ctrl[type + "XScale"] * percent) / 100;
} else {
positionMaskedFill(_local2, _local2.fill_mc, percent);
}
} else {
_local2._x = ctrl._x + ctrl[type + "LeftMargin"];
_local2._y = ctrl._y + ctrl[type + "Y"];
if (_local2.fill_mc == undefined) {
_local2._width = (((ctrl._width - ctrl[type + "LeftMargin"]) - ctrl[type + "RightMargin"]) * percent) / 100;
} else {
positionMaskedFill(_local2, _local2.fill_mc, percent);
}
}
}
function calcPercentageFromHandle(controlIndex) {
var _local2 = controls[controlIndex];
var _local5 = _local2.handle_mc;
if ((_local2.calcPercentageFromHandle == undefined) || (!_local2.calcPercentageFromHandle())) {
var _local3 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth));
var _local6 = (_local3 - _local2.handleRightMargin) - _local2.handleLeftMargin;
var _local4 = _local5._x - (_local2._x + _local2.handleLeftMargin);
_local2.percentage = (_local4 / _local6) * 100;
if (_local2.fullness_mc != undefined) {
positionBar(_local2, "fullness", _local2.percentage);
}
}
if (_local2.percentage < 0) {
_local2.percentage = 0;
}
if (_local2.percentage > 100) {
_local2.percentage = 100;
}
}
function handleRelease(controlIndex) {
var _local3 = _vc.__get__activeVideoPlayerIndex();
_vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex);
if (controlIndex == SEEK_BAR) {
seekBarListener(true);
} else if (controlIndex == VOLUME_BAR) {
volumeBarListener(true);
}
stopHandleDrag(controlIndex);
_vc.__set__activeVideoPlayerIndex(_local3);
if (controlIndex == SEEK_BAR) {
_vc._scrubFinish();
}
}
function seekBarListener(finish) {
var _local3 = _vc.__get__activeVideoPlayerIndex();
_vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex);
var _local4 = controls[SEEK_BAR];
calcPercentageFromHandle(SEEK_BAR);
var _local2 = _local4.percentage;
if (finish) {
clearInterval(_seekBarIntervalID);
_seekBarIntervalID = 0;
if (_local2 != _lastScrubPos) {
_vc.seekPercent(_local2);
}
_vc.addEventListener("playheadUpdate", this);
if (_playAfterScrub) {
_vc.play();
}
} else if (_vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()).__get__state() == mx.video.VideoPlayer.SEEKING) {
} else if ((((_seekBarScrubTolerance <= 0) || (Math.abs(_local2 - _lastScrubPos) > _seekBarScrubTolerance)) || (_local2 < _seekBarScrubTolerance)) || (_local2 > (100 - _seekBarScrubTolerance))) {
if (_local2 != _lastScrubPos) {
_lastScrubPos = _local2;
_vc.seekPercent(_local2);
}
}
_vc.__set__activeVideoPlayerIndex(_local3);
}
function volumeBarListener(finish) {
var _local3 = controls[VOLUME_BAR];
calcPercentageFromHandle(VOLUME_BAR);
var _local2 = _local3.percentage;
if (finish) {
clearInterval(_volumeBarIntervalID);
_volumeBarIntervalID = 0;
_vc.addEventListener("volumeUpdate", this);
}
if ((((finish || (_volumeBarScrubTolerance <= 0)) || (Math.abs(_local2 - _lastVolumePos) > _volumeBarScrubTolerance)) || (_local2 < _volumeBarScrubTolerance)) || (_local2 > (100 - _volumeBarScrubTolerance))) {
if (_local2 != _lastVolumePos) {
if (_isMuted) {
cachedSoundLevel = _local2;
} else {
_vc.__set__volume(_local2);
}
}
}
}
function doBufferingDelay() {
clearInterval(_bufferingDelayIntervalID);
_bufferingDelayIntervalID = 0;
var _local2 = _vc.__get__activeVideoPlayerIndex();
_vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex);
if (_vc.__get__state() == mx.video.FLVPlayback.BUFFERING) {
_bufferingOn = true;
handleEvent({type:"stateChange", state:mx.video.FLVPlayback.BUFFERING, vp:_vc.__get__visibleVideoPlayerIndex()});
}
_vc.__set__activeVideoPlayerIndex(_local2);
}
function dispatchMessage(ctrl) {
if (ctrl.id == SEEK_BAR_HANDLE) {
_vc._scrubStart();
}
var _local2 = _vc.__get__activeVideoPlayerIndex();
_vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex);
switch (ctrl.id) {
case PAUSE_BUTTON :
_vc.pause();
break;
case PLAY_BUTTON :
_vc.play();
break;
case STOP_BUTTON :
_vc.stop();
break;
case SEEK_BAR_HANDLE :
calcPercentageFromHandle(SEEK_BAR);
_lastScrubPos = controls[SEEK_BAR].percentage;
_vc.removeEventListener("playheadUpdate", this);
if (_vc.__get__playing() || (_vc.__get__buffering())) {
_playAfterScrub = true;
} else if (_vc.__get__state() != mx.video.VideoPlayer.SEEKING) {
_playAfterScrub = false;
}
_seekBarIntervalID = setInterval(this, "seekBarListener", _seekBarInterval, false);
startHandleDrag(SEEK_BAR, SEEK_BAR_HANDLE);
_vc.pause();
break;
case VOLUME_BAR_HANDLE :
calcPercentageFromHandle(VOLUME_BAR);
_lastVolumePos = controls[VOLUME_BAR].percentage;
_vc.removeEventListener("volumeUpdate", this);
_volumeBarIntervalID = setInterval(this, "volumeBarListener", _volumeBarInterval, false);
startHandleDrag(VOLUME_BAR, VOLUME_BAR_HANDLE);
break;
case BACK_BUTTON :
_vc.seekToPrevNavCuePoint();
break;
case FORWARD_BUTTON :
_vc.seekToNextNavCuePoint();
break;
case MUTE_ON_BUTTON :
case MUTE_OFF_BUTTON :
if (!_isMuted) {
_isMuted = true;
cachedSoundLevel = _vc.volume;
_vc.__set__volume(0);
} else {
_isMuted = false;
_vc.__set__volume(cachedSoundLevel);
}
setEnabledAndVisibleForState(MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING);
skinButtonControl(controls[MUTE_OFF_BUTTON]);
setEnabledAndVisibleForState(MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING);
skinButtonControl(controls[MUTE_ON_BUTTON]);
break;
default :
throw new Error("Unknown ButtonControl");
}
_vc.__set__activeVideoPlayerIndex(_local2);
}
function setEnabledAndVisibleForState(index, state) {
var _local5 = _vc.__get__activeVideoPlayerIndex();
_vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex);
var _local3 = state;
if ((_local3 == mx.video.FLVPlayback.BUFFERING) && (!_bufferingOn)) {
_local3 = mx.video.FLVPlayback.PLAYING;
}
switch (index) {
case VOLUME_BAR :
case VOLUME_BAR_HANDLE :
controls[index].myEnabled = true;
controls[index].enabled = _controlsEnabled;
break;
case MUTE_ON_BUTTON :
controls[index].myEnabled = !_isMuted;
if (controls[MUTE_BUTTON] != undefined) {
controls[index]._visible = controls[index].myEnabled;
}
break;
case MUTE_OFF_BUTTON :
controls[index].myEnabled = _isMuted;
if (controls[MUTE_BUTTON] != undefined) {
controls[index]._visible = controls[index].myEnabled;
}
break;
default :
switch (_local3) {
case mx.video.FLVPlayback.LOADING :
case mx.video.FLVPlayback.CONNECTION_ERROR :
controls[index].myEnabled = false;
break;
case mx.video.FLVPlayback.DISCONNECTED :
controls[index].myEnabled = _vc.__get__contentPath() != undefined;
break;
case mx.video.FLVPlayback.SEEKING :
break;
default :
controls[index].myEnabled = true;
}
}
switch (index) {
case SEEK_BAR :
switch (_local3) {
case mx.video.FLVPlayback.STOPPED :
case mx.video.FLVPlayback.PLAYING :
case mx.video.FLVPlayback.PAUSED :
case mx.video.FLVPlayback.REWINDING :
case mx.video.FLVPlayback.SEEKING :
controls[index].myEnabled = true;
break;
case mx.video.FLVPlayback.BUFFERING :
controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined);
break;
default :
controls[index].myEnabled = false;
}
if (controls[index].myEnabled) {
controls[index].myEnabled = (!isNaN(_vc.__get__totalTime())) && (_vc.__get__totalTime() > 0);
}
controls[index].handle_mc.myEnabled = controls[index].myEnabled;
controls[index].handle_mc.enabled = controls[index].handle_mc.myEnabled;
controls[index].handle_mc._visible = controls[index].myEnabled;
var _local4 = (((!_bufferingBarHides) || (controls[index].myEnabled)) || (controls[BUFFERING_BAR] == undefined)) || (!controls[BUFFERING_BAR]._visible);
controls[index]._visible = _local4;
controls[index].progress_mc._visible = _local4;
controls[index].progress_mc.fill_mc._visible = _local4;
controls[index].fullness_mc._visible = _local4;
controls[index].progress_mc.fill_mc._visible = _local4;
break;
case BUFFERING_BAR :
switch (_local3) {
case mx.video.FLVPlayback.STOPPED :
case mx.video.FLVPlayback.PLAYING :
case mx.video.FLVPlayback.PAUSED :
case mx.video.FLVPlayback.REWINDING :
case mx.video.FLVPlayback.SEEKING :
controls[index].myEnabled = false;
break;
default :
controls[index].myEnabled = true;
}
controls[index]._visible = controls[index].myEnabled;
controls[index].fill_mc._visible = controls[index].myEnabled;
break;
case PAUSE_BUTTON :
switch (_local3) {
case mx.video.FLVPlayback.DISCONNECTED :
case mx.video.FLVPlayback.STOPPED :
case mx.video.FLVPlayback.PAUSED :
case mx.video.FLVPlayback.REWINDING :
controls[index].myEnabled = false;
break;
case mx.video.FLVPlayback.PLAYING :
controls[index].myEnabled = true;
break;
case mx.video.FLVPlayback.BUFFERING :
controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined);
}
if (controls[PLAY_PAUSE_BUTTON] != undefined) {
controls[index]._visible = controls[index].myEnabled;
}
break;
case PLAY_BUTTON :
switch (_local3) {
case mx.video.FLVPlayback.PLAYING :
controls[index].myEnabled = false;
break;
case mx.video.FLVPlayback.STOPPED :
case mx.video.FLVPlayback.PAUSED :
controls[index].myEnabled = true;
break;
case mx.video.FLVPlayback.BUFFERING :
controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined);
}
if (controls[PLAY_PAUSE_BUTTON] != undefined) {
controls[index]._visible = !controls[PAUSE_BUTTON]._visible;
}
break;
case STOP_BUTTON :
switch (_local3) {
case mx.video.FLVPlayback.DISCONNECTED :
case mx.video.FLVPlayback.STOPPED :
controls[index].myEnabled = false;
break;
case mx.video.FLVPlayback.PAUSED :
case mx.video.FLVPlayback.PLAYING :
case mx.video.FLVPlayback.BUFFERING :
controls[index].myEnabled = true;
}
break;
case BACK_BUTTON :
case FORWARD_BUTTON :
if (!(_local3 === mx.video.FLVPlayback.BUFFERING)) {
} else {
controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined);
}
}
controls[index].enabled = _controlsEnabled && (controls[index].myEnabled);
_vc.__set__activeVideoPlayerIndex(_local5);
}
function setupSkinAutoHide() {
var _local2 = _vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex());
if (_skinAutoHide && (skin_mc != undefined)) {
skinAutoHideHitTest();
if (_skinAutoHideIntervalID == 0) {
_skinAutoHideIntervalID = setInterval(this, "skinAutoHideHitTest", SKIN_AUTO_HIDE_INTERVAL);
}
} else {
skin_mc._visible = __visible;
clearInterval(_skinAutoHideIntervalID);
_skinAutoHideIntervalID = 0;
}
}
function skinAutoHideHitTest() {
if (!__visible) {
skin_mc._visible = false;
} else {
var _local4 = _vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex());
var _local3 = _local4.hitTest(_root._xmouse, _root._ymouse, true);
if ((!_local3) && (border_mc != undefined)) {
_local3 = border_mc.hitTest(_root._xmouse, _root._ymouse, true);
}
skin_mc._visible = _local3;
}
}
static var version = "1.0.0.103";
static var PAUSE_BUTTON = 0;
static var PLAY_BUTTON = 1;
static var STOP_BUTTON = 2;
static var SEEK_BAR_HANDLE = 3;
static var BACK_BUTTON = 4;
static var FORWARD_BUTTON = 5;
static var MUTE_ON_BUTTON = 6;
static var MUTE_OFF_BUTTON = 7;
static var VOLUME_BAR_HANDLE = 8;
static var NUM_BUTTONS = 9;
static var PLAY_PAUSE_BUTTON = 9;
static var MUTE_BUTTON = 10;
static var BUFFERING_BAR = 11;
static var SEEK_BAR = 12;
static var VOLUME_BAR = 13;
static var NUM_CONTROLS = 14;
static var UP_STATE = 0;
static var OVER_STATE = 1;
static var DOWN_STATE = 2;
static var SKIN_AUTO_HIDE_INTERVAL = 200;
static var VOLUME_BAR_INTERVAL_DEFAULT = 250;
static var VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT = 0;
static var SEEK_BAR_INTERVAL_DEFAULT = 250;
static var SEEK_BAR_SCRUB_TOLERANCE_DEFAULT = 5;
static var BUFFERING_DELAY_INTERVAL_DEFAULT = 1000;
}
Symbol 525 MovieClip [__Packages.mx.video.SMILManager] Frame 0
class mx.video.SMILManager
{
var _owner, _url, xml, baseURLAttr, videoTags, width, height;
function SMILManager (owner) {
_owner = owner;
}
function connectXML(url) {
_url = url;
xml = new XML();
xml.onLoad = mx.utils.Delegate.create(this, xmlOnLoad);
xml.load(url);
return(false);
}
function xmlOnLoad(success) {
try {
if (!success) {
_owner.helperDone(this, false);
} else {
baseURLAttr = new Array();
videoTags = new Array();
var _local4 = xml.firstChild;
if (_local4.nodeName == null) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" No root node found; if file is an flv it must have .flv extension");
} else if (_local4.nodeName.toLowerCase() != "smil") {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, (("URL: \"" + _url) + "\" Root node not smil: ") + _local4.nodeName);
}
var _local5 = false;
var _local3 = 0;
while (_local3 < _local4.childNodes.length) {
var _local2 = _local4.childNodes[_local3];
if (_local2.nodeType != ELEMENT_NODE) {
} else if (_local2.nodeName.toLowerCase() == "head") {
parseHead(_local2);
} else if (_local2.nodeName.toLowerCase() == "body") {
_local5 = true;
parseBody(_local2);
} else {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((((("URL: \"" + _url) + "\" Tag ") + _local2.nodeName) + " not supported in ") + _local4.nodeName) + " tag.");
}
_local3++;
}
if (!_local5) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" Tag body is required.");
}
_owner.helperDone(this, true);
}
} catch(err:Error) {
_owner.helperDone(this, false);
throw err;
}
}
function parseHead(parentNode) {
var _local4 = false;
var _local3 = 0;
while (_local3 < parentNode.childNodes.length) {
var _local2 = parentNode.childNodes[_local3];
if (_local2.nodeType != ELEMENT_NODE) {
} else if (_local2.nodeName.toLowerCase() == "meta") {
for (var _local6 in _local2.attributes) {
if (_local6.toLowerCase() == "base") {
baseURLAttr.push(_local2.attributes[_local6]);
} else {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((((("URL: \"" + _url) + "\" Attribute ") + _local6) + " not supported in ") + _local2.nodeName) + " tag.");
}
}
} else if (_local2.nodeName.toLowerCase() == "layout") {
if (!_local4) {
parseLayout(_local2);
_local4 = true;
}
}
_local3++;
}
}
function parseLayout(parentNode) {
var _local3 = 0;
while (_local3 < parentNode.childNodes.length) {
var _local2 = parentNode.childNodes[_local3];
if (_local2.nodeType != ELEMENT_NODE) {
} else if (_local2.nodeName.toLowerCase() == "root-layout") {
for (var _local5 in _local2.attributes) {
if (_local5.toLowerCase() == "width") {
width = Number(_local2.attributes[_local5]);
} else if (_local5.toLowerCase() == "height") {
height = Number(_local2.attributes[_local5]);
}
}
if (((isNaN(width) || (width < 0)) || (isNaN(height))) || (height < 0)) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Tag ") + _local2.nodeName) + " requires attributes id, width and height. Width and height must be numbers greater than or equal to 0.");
}
width = Math.round(width);
height = Math.round(height);
return(undefined);
}
_local3++;
}
}
function parseBody(parentNode) {
var _local6 = 0;
var _local3 = 0;
while (_local3 < parentNode.childNodes.length) {
var _local2 = parentNode.childNodes[_local3];
if (_local2.nodeType != ELEMENT_NODE) {
} else {
_local6++;
if (_local6 > 1) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Tag ") + parentNode.nodeName) + " is required to contain exactly one tag.");
}
if (_local2.nodeName.toLowerCase() == "switch") {
parseSwitch(_local2);
} else if ((_local2.nodeName.toLowerCase() == "video") || (_local2.nodeName.toLowerCase() == "ref")) {
var _local5 = parseVideo(_local2);
videoTags.push(_local5);
}
}
_local3++;
}
if (videoTags.length < 1) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" At least one video of ref tag is required.");
}
}
function parseSwitch(parentNode) {
var _local4 = 0;
while (_local4 < parentNode.childNodes.length) {
var _local5 = parentNode.childNodes[_local4];
if (_local5.nodeType != ELEMENT_NODE) {
} else if ((_local5.nodeName.toLowerCase() == "video") || (_local5.nodeName.toLowerCase() == "ref")) {
var _local3 = parseVideo(_local5);
if (_local3.bitrate == undefined) {
videoTags.push(_local3);
} else {
var _local6 = false;
var _local2 = 0;
while (_local2 < videoTags.length) {
if ((videoTags[_local2].bitrate == undefined) || (_local3.bitrate < videoTags[_local4].bitrate)) {
_local6 = true;
videoTags.splice(_local2, 0, videoTags);
break;
}
_local2++;
}
if (!_local6) {
videoTags.push(_local3);
}
}
}
_local4++;
}
}
function parseVideo(node) {
var _local3 = new Object();
for (var _local4 in node.attributes) {
if (_local4.toLowerCase() == "src") {
_local3.src = node.attributes[_local4];
} else if (_local4.toLowerCase() == "system-bitrate") {
_local3.bitrate = Number(node.attributes[_local4]);
} else if (_local4.toLowerCase() == "dur") {
_local3.dur = Number(node.attributes[_local4]);
}
}
if (_local3.src == undefined) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Attribute src is required in ") + node.nodeName) + " tag.");
}
return(_local3);
}
static var version = "1.0.0.103";
static var ELEMENT_NODE = 1;
}
Symbol 526 MovieClip [__Packages.mx.video.NCManager] Frame 0
class mx.video.NCManager implements mx.video.INCManager
{
var _timeoutIntervalId, _tryNCIntervalId, _timeout, _isRTMP, _serverName, _wrappedURL, _portNumber, _appName, _contentPath, _streamName, _streamLength, _streamWidth, _streamHeight, _streams, _autoSenseBW, _payload, _connTypeCounter, _bitrate, _owner, _nc, _protocol, _smilMgr, _ncUri, fallbackServerName, _tryNC;
function NCManager () {
initNCInfo();
initOtherInfo();
_timeoutIntervalId = 0;
_tryNCIntervalId = 0;
_timeout = DEFAULT_TIMEOUT;
}
function initNCInfo() {
_isRTMP = undefined;
_serverName = undefined;
_wrappedURL = undefined;
_portNumber = undefined;
_appName = undefined;
}
function initOtherInfo() {
_contentPath = undefined;
_streamName = undefined;
_streamLength = undefined;
_streamWidth = undefined;
_streamHeight = undefined;
_streams = undefined;
_autoSenseBW = false;
_payload = 0;
_connTypeCounter = 0;
cleanConns();
}
function getTimeout() {
return(_timeout);
}
function setTimeout(t) {
_timeout = t;
if (_timeoutIntervalId != 0) {
clearInterval(_timeoutIntervalId);
_timeoutIntervalId = setInterval(this, "_onFCSConnectTimeOut", _timeout);
}
}
function getBitrate() {
return(_bitrate);
}
function setBitrate(b) {
if ((_isRTMP == undefined) || (!_isRTMP)) {
_bitrate = b;
}
}
function getVideoPlayer() {
return(_owner);
}
function setVideoPlayer(v) {
_owner = v;
}
function getNetConnection() {
return(_nc);
}
function getStreamName() {
return(_streamName);
}
function isRTMP() {
return(_isRTMP);
}
function getStreamLength() {
return(_streamLength);
}
function getStreamWidth() {
return(_streamWidth);
}
function getStreamHeight() {
return(_streamHeight);
}
function connectToURL(url) {
initOtherInfo();
_contentPath = url;
if (((_contentPath == null) || (_contentPath == undefined)) || (_contentPath == "")) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH);
}
var _local2 = parseURL(_contentPath);
if ((_local2.streamName == undefined) || (_local2.streamName == "")) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url);
}
if (_local2.isRTMP) {
var _local3 = canReuseOldConnection(_local2);
_isRTMP = true;
_protocol = _local2.protocol;
_streamName = _local2.streamName;
_serverName = _local2.serverName;
_wrappedURL = _local2.wrappedURL;
_portNumber = _local2.portNumber;
_appName = _local2.appName;
if ((((_appName == undefined) || (_appName == "")) || (_streamName == undefined)) || (_streamName == "")) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url);
}
_autoSenseBW = _streamName.indexOf(",") != -1;
return(_local3 || (connectRTMP()));
}
if (_local2.streamName.slice(-4).toLowerCase() == ".flv") {
var _local3 = canReuseOldConnection(_local2);
_isRTMP = false;
_streamName = _local2.streamName;
return(_local3 || (connectHTTP()));
}
_smilMgr = new mx.video.SMILManager(this);
return(_smilMgr.connectXML(_local2.streamName));
}
function connectAgain() {
var _local2 = _appName.indexOf("/");
if (_local2 < 0) {
_local2 = _streamName.indexOf("/");
if (_local2 >= 0) {
_appName = _appName + "/";
_appName = _appName + _streamName.slice(0, _local2);
_streamName = _streamName.slice(_local2 + 1);
}
return(false);
}
var _local3 = _appName.slice(_local2 + 1);
_local3 = _local3 + "/";
_local3 = _local3 + _streamName;
_streamName = _local3;
_appName = _appName.slice(0, _local2);
close();
_payload = 0;
_connTypeCounter = 0;
cleanConns();
connectRTMP();
return(true);
}
function reconnect() {
if (!_isRTMP) {
throw new Error("Cannot call reconnect on an http connection");
}
_nc.onStatus = function (info) {
this.mc.reconnectOnStatus(this, info);
};
_nc.onBWDone = function () {
this.mc.onReconnected();
};
_nc.connect(_ncUri, false);
}
function onReconnected() {
delete _nc.onStatus;
delete _nc.onBWDone;
_owner.ncReconnected();
}
function close() {
if (_nc) {
_nc.close();
}
}
function helperDone(helper, success) {
if (helper != _smilMgr) {
return(undefined);
}
if (!success) {
_nc = undefined;
_owner.ncConnected();
delete _smilMgr;
return(undefined);
}
_streamWidth = _smilMgr.width;
_streamHeight = _smilMgr.height;
var _local2;
var _local4 = _smilMgr.baseURLAttr[0];
if ((_local4 != undefined) && (_local4 != "")) {
_local2 = parseURL(_local4);
_isRTMP = _local2.isRTMP;
_streamName = _local2.streamName;
if (_isRTMP) {
_protocol = _local2.protocol;
_serverName = _local2.serverName;
_portNumber = _local2.portNumber;
_wrappedURL = _local2.wrappedURL;
_appName = _local2.appName;
if ((_appName == undefined) || (_appName == "")) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Base RTMP URL must include application name: " + _local4);
}
if (_smilMgr.baseURLAttr.length > 1) {
_local2 = parseURL(_smilMgr.baseURLAttr[1]);
if (_local2.serverName != undefined) {
fallbackServerName = _local2.serverName;
}
}
}
}
_streams = _smilMgr.videoTags;
var _local3 = 0;
while (_local3 < _streams.length) {
_local4 = _streams[_local3].src;
_local2 = parseURL(_local4);
if (_isRTMP == undefined) {
_isRTMP = _local2.isRTMP;
if (_isRTMP) {
_protocol = _local2.protocol;
if (_streams.length > 1) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Cannot switch between multiple absolute RTMP URLs, must use meta tag base attribute.");
}
_serverName = _local2.serverName;
_portNumber = _local2.portNumber;
_wrappedURL = _local2.wrappedURL;
_appName = _local2.appName;
if ((_appName == undefined) || (_appName == "")) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Base RTMP URL must include application name: " + _local4);
}
}
} else if ((((_streamName != undefined) && (_streamName != "")) && (!_local2.isRelative)) && (_streams.length > 1)) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "When using meta tag base attribute, cannot use absolute URLs for video or ref tag src attributes.");
}
_streams[_local3].parseResults = _local2;
_local3++;
}
_autoSenseBW = _streams.length > 1;
if (!_autoSenseBW) {
if (_streamName != undefined) {
_streamName = _streamName + _streams[0].parseResults.streamName;
} else {
_streamName = _streams[0].parseResults.streamName;
}
_streamLength = _streams[0].dur;
}
if (_isRTMP) {
connectRTMP();
} else {
if (_autoSenseBW) {
bitrateMatch();
}
connectHTTP();
_owner.ncConnected();
}
}
function bitrateMatch() {
var _local3;
if (isNaN(_bitrate)) {
_local3 = 0;
} else {
var _local2 = 0;
while (_local2 < _streams.length) {
if (isNaN(_streams[_local2].bitrate) || (_bitrate <= _streams[_local2].bitrate)) {
_local3 = _local2;
break;
}
_local2++;
}
}
if (isNaN(_local3)) {
throw new mx.video.VideoError(mx.video.VideoError.NO_BITRATE_MATCH);
}
if (_streamName != undefined) {
_streamName = _streamName + _streams[_local3].src;
} else {
_streamName = _streams[_local3].src;
}
_streamLength = _streams[_local3].dur;
}
function parseURL(url) {
var _local2 = new Object();
var _local3 = 0;
var _local4 = url.indexOf(":/", _local3);
if (_local4 >= 0) {
_local4 = _local4 + 2;
_local2.protocol = url.slice(_local3, _local4);
_local2.isRelative = false;
} else {
_local2.isRelative = true;
}
if ((_local2.protocol != undefined) && (((_local2.protocol == "rtmp:/") || (_local2.protocol == "rtmpt:/")) || (_local2.protocol == "rtmps:/"))) {
_local2.isRTMP = true;
_local3 = _local4;
if (url.charAt(_local3) == "/") {
_local3++;
var _local7 = url.indexOf(":", _local3);
var _local8 = url.indexOf("/", _local3);
if (_local8 < 0) {
if (_local7 < 0) {
_local2.serverName = url.slice(_local3);
} else {
_local4 = _local7;
_local2.portNumber = url.slice(_local3, _local4);
_local3 = _local4 + 1;
_local2.serverName = url.slice(_local3);
}
return(_local2);
}
if ((_local7 >= 0) && (_local7 < _local8)) {
_local4 = _local7;
_local2.serverName = url.slice(_local3, _local4);
_local3 = _local4 + 1;
_local4 = _local8;
_local2.portNumber = url.slice(_local3, _local4);
} else {
_local4 = _local8;
_local2.serverName = url.slice(_local3, _local4);
}
_local3 = _local4 + 1;
}
if (url.charAt(_local3) == "?") {
var _local9 = url.slice(_local3 + 1);
var _local6 = parseURL(_local9);
if ((_local6.protocol == undefined) || (!_local6.isRTMP)) {
throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url);
}
_local2.wrappedURL = "?";
_local2.wrappedURL = _local2.wrappedURL + _local6.protocol;
if (_local6.server != undefined) {
_local2.wrappedURL = _local2.wrappedURL + "/";
_local2.wrappedURL = _local2.wrappedURL + _local6.server;
}
if (_local6.wrappedURL != undefined) {
_local2.wrappedURL = _local2.wrappedURL + "/?";
_local2.wrappedURL = _local2.wrappedURL + _local6.wrappedURL;
}
_local2.appName = _local6.appName;
_local2.streamName = _local6.streamName;
return(_local2);
}
_local4 = url.indexOf("/", _local3);
if (_local4 < 0) {
_local2.appName = url.slice(_local3);
return(_local2);
}
_local2.appName = url.slice(_local3, _local4);
_local3 = _local4 + 1;
_local4 = url.indexOf("/", _local3);
if (_local4 < 0) {
_local2.streamName = url.slice(_local3);
return(_local2);
}
_local2.appName = _local2.appName + "/";
_local2.appName = _local2.appName + url.slice(_local3, _local4);
_local3 = _local4 + 1;
_local2.streamName = url.slice(_local3);
} else {
_local2.isRTMP = false;
_local2.streamName = url;
}
return(_local2);
}
function canReuseOldConnection(parseResults) {
if ((_nc == undefined) || (_nc == null)) {
return(false);
}
if (!parseResults.isRTMP) {
if (!_isRTMP) {
return(true);
}
_owner.close();
_nc = null;
initNCInfo();
return(false);
}
if (_isRTMP) {
if (((((parseResults.serverName == _serverName) && (parseResults.appName == _appName)) && (parseResults.protocol == _protocol)) && (parseResults.portNumber == _portNumber)) && (parseResults.wrappedURL == _wrappedURL)) {
return(true);
}
_owner.close();
_nc = null;
}
initNCInfo();
return(false);
}
function connectHTTP() {
_nc = new NetConnection();
_nc.connect(null);
return(true);
}
function connectRTMP() {
clearInterval(_timeoutIntervalId);
_timeoutIntervalId = setInterval(this, "_onFCSConnectTimeOut", _timeout);
_tryNC = new Array();
var _local2 = 0;
while (_local2 < RTMP_CONN.length) {
_tryNC[_local2] = new NetConnection();
_tryNC[_local2].mc = this;
_tryNC[_local2].pending = false;
_tryNC[_local2].connIndex = _local2;
_tryNC[_local2].onBWDone = function (p_bw) {
this.mc.onConnected(this, p_bw);
};
_tryNC[_local2].onBWCheck = function () {
return(++this.mc._payload);
};
_tryNC[_local2].onStatus = function (info) {
this.mc.connectOnStatus(this, info);
};
_local2++;
}
nextConnect();
return(false);
}
function nextConnect() {
clearInterval(_tryNCIntervalId);
_tryNCIntervalId = 0;
var _local4;
var _local3;
if (_connTypeCounter == 0) {
_local4 = _protocol;
if (_portNumber != undefined) {
_local3 = _portNumber;
} else {
var _local2 = 0;
while (_local2 < RTMP_CONN.length) {
if (_local4 == RTMP_CONN[_local2].protocol) {
_local3 = RTMP_CONN[_local2].port;
break;
}
_local2++;
}
}
} else {
_local4 = RTMP_CONN[_connTypeCounter].protocol;
_local3 = RTMP_CONN[_connTypeCounter].port;
}
var _local5 = ((_local4 + ((_serverName == undefined) ? "" : (((("/" + _serverName) + ":") + _local3) + "/"))) + ((_wrappedURL == undefined) ? "" : (_wrappedURL + "/"))) + _appName;
_tryNC[_connTypeCounter].pending = true;
_tryNC[_connTypeCounter].connect(_local5, _autoSenseBW);
if (_connTypeCounter < (RTMP_CONN.length - 1)) {
_connTypeCounter++;
_tryNCIntervalId = setInterval(this, "nextConnect", 1500);
}
}
function cleanConns() {
clearInterval(_tryNCIntervalId);
_tryNCIntervalId = 0;
if (_tryNC != undefined) {
var _local2 = 0;
while (_local2 < _tryNC.length) {
if (_tryNC[_local2] != undefined) {
delete _tryNC[_local2].onStatus;
if (_tryNC[_local2].pending) {
_tryNC[_local2].onStatus = function (info) {
this.mc.disconnectOnStatus(this, info);
};
} else {
delete _tryNC[_local2].onStatus;
_tryNC[_local2].close();
}
}
delete _tryNC[_local2];
_local2++;
}
delete _tryNC;
}
}
function tryFallBack() {
if (((_serverName == fallbackServerName) || (fallbackServerName == undefined)) || (fallbackServerName == null)) {
delete _nc;
_nc = undefined;
_owner.ncConnected();
} else {
_connTypeCounter = 0;
cleanConns();
_serverName = fallbackServerName;
connectRTMP();
}
}
function onConnected(p_nc, p_bw) {
clearInterval(_timeoutIntervalId);
_timeoutIntervalId = 0;
delete p_nc.onBWDone;
delete p_nc.onBWCheck;
delete p_nc.onStatus;
_nc = p_nc;
_ncUri = _nc.uri;
if (_autoSenseBW) {
_bitrate = p_bw * 1024;
if (_streams != undefined) {
bitrateMatch();
} else if (_streamName.indexOf(",") != -1) {
var _local3 = _streamName.split(",");
var _local2 = 0;
while (_local2 < _local3.length) {
var _local4 = stripFrontAndBackWhiteSpace(_local3[_local2]);
if ((_local2 + 1) < _local3.length) {
if (p_bw <= Number(_local3[_local2 + 1])) {
_streamName = _local4;
break;
}
} else {
_streamName = _local4;
break;
}
_local2 = _local2 + 2;
}
}
}
if (_streamName.slice(-4).toLowerCase() == ".flv") {
_streamName = _streamName.slice(0, -4);
}
if ((!_owner.__get__isLive()) && (_streamLength == undefined)) {
var _local6 = new Object();
_local6.mc = this;
_local6.onResult = function (length) {
this.mc.getStreamLengthResult(length);
};
_nc.call("getStreamLength", _local6, _streamName);
} else {
_owner.ncConnected();
}
}
function connectOnStatus(target, info) {
target.pending = false;
if (info.code == "NetConnection.Connect.Success") {
_nc = _tryNC[target.connIndex];
_tryNC[target.connIndex] = undefined;
cleanConns();
} else if (((info.code == "NetConnection.Connect.Failed") || (info.code == "NetConnection.Connect.Rejected")) && (target.connIndex == (RTMP_CONN.length - 1))) {
if (!connectAgain()) {
tryFallBack();
}
}
}
function reconnectOnStatus(target, info) {
if ((info.code == "NetConnection.Connect.Failed") || (info.code == "NetConnection.Connect.Rejected")) {
delete _nc;
_nc = undefined;
_owner.ncReconnected();
}
}
function disconnectOnStatus(target, info) {
if (info.code == "NetConnection.Connect.Success") {
delete target.onStatus;
target.close();
}
}
function getStreamLengthResult(length) {
_streamLength = length;
_owner.ncConnected();
}
function _onFCSConnectTimeOut() {
cleanConns();
_nc = undefined;
if (!connectAgain()) {
_owner.ncConnected();
}
}
static function stripFrontAndBackWhiteSpace(p_str) {
var _local1;
var _local2 = p_str.length;
var _local4 = 0;
var _local5 = _local2;
_local1 = 0;
while (_local1 < _local2) {
switch (p_str.charCodeAt(_local1)) {
case 9 :
case 10 :
case 13 :
case 32 :
break;
default :
_local4 = _local1;
break;!//outer level
}
_local1++;
}
_local1 = _local2;
while (_local1 >= 0) {
switch (p_str.charCodeAt(_local1)) {
case 9 :
case 10 :
case 13 :
case 32 :
break;
default :
_local5 = _local1 + 1;
break;!//outer level
}
_local1--;
}
if (_local5 <= _local4) {
return("");
}
return(p_str.slice(_local4, _local5));
}
static var version = "1.0.0.103";
var DEFAULT_TIMEOUT = 60000;
static var RTMP_CONN = [{protocol:"rtmp:/", port:"1935"}, {protocol:"rtmp:/", port:"443"}, {protocol:"rtmpt:/", port:"80"}, {protocol:"rtmps:/", port:"443"}];
}
Symbol 527 MovieClip [__Packages.mx.video.CuePointManager] Frame 0
class mx.video.CuePointManager
{
var _owner, _id, _asCuePointTolerance, _linearSearchTolerance, _metadataLoaded, allCuePoints, asCuePoints, _disabledCuePoints, flvCuePoints, navCuePoints, eventCuePoints, _asCuePointIndex, __get__playheadUpdateInterval, _disabledCuePointsByNameOnly;
function CuePointManager (owner, id) {
_owner = owner;
_id = id;
reset();
_asCuePointTolerance = _owner.getVideoPlayer(_id).__get__playheadUpdateInterval() / 2000;
_linearSearchTolerance = DEFAULT_LINEAR_SEARCH_TOLERANCE;
}
function reset() {
_metadataLoaded = false;
allCuePoints = null;
asCuePoints = null;
_disabledCuePoints = null;
flvCuePoints = null;
navCuePoints = null;
eventCuePoints = null;
_asCuePointIndex = 0;
}
function get metadataLoaded() {
return(_metadataLoaded);
}
function set playheadUpdateInterval(aTime) {
_asCuePointTolerance = aTime / 2000;
//return(__get__playheadUpdateInterval());
}
function get id() {
return(_id);
}
function addASCuePoint(timeOrCuePoint, name, parameters) {
var _local3;
if (typeof(timeOrCuePoint) == "object") {
_local3 = deepCopyObject(timeOrCuePoint);
} else {
_local3 = {time:timeOrCuePoint, name:name, parameters:deepCopyObject(parameters)};
}
var _local7 = isNaN(_local3.time) || (_local3.time < 0);
if (_local7) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number");
}
var _local6 = (_local3.name == undefined) || (_local3.name == null);
if (_local6) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be undefined or null");
}
var _local2;
_local3.type = "actionscript";
if (((asCuePoints == null) || (asCuePoints == undefined)) || (asCuePoints.length < 1)) {
_local2 = 0;
asCuePoints = new Array();
asCuePoints.push(_local3);
} else {
_local2 = getCuePointIndex(asCuePoints, true, _local3.time);
_local2 = ((asCuePoints[_local2].time > _local3.time) ? 0 : (_local2 + 1));
asCuePoints.splice(_local2, 0, _local3);
}
if (((allCuePoints == null) || (allCuePoints == undefined)) || (allCuePoints.length < 1)) {
_local2 = 0;
allCuePoints = new Array();
allCuePoints.push(_local3);
} else {
_local2 = getCuePointIndex(allCuePoints, true, _local3.time);
_local2 = ((allCuePoints[_local2].time > _local3.time) ? 0 : (_local2 + 1));
allCuePoints.splice(_local2, 0, _local3);
}
var _local5 = _owner.getVideoPlayer(_id).__get__playheadTime();
if (_local5 > 0) {
if (_asCuePointIndex == _local2) {
if (_local5 > asCuePoints[_local2].time) {
_asCuePointIndex++;
}
} else if (_asCuePointIndex > _local2) {
_asCuePointIndex++;
}
} else {
_asCuePointIndex = 0;
}
var _local4 = deepCopyObject(asCuePoints[_local2]);
_local4.array = asCuePoints;
_local4.index = _local2;
return(_local4);
}
function removeASCuePoint(timeNameOrCuePoint) {
if (((asCuePoints == null) || (asCuePoints == undefined)) || (asCuePoints.length < 1)) {
return(null);
}
var _local3;
switch (typeof(timeNameOrCuePoint)) {
case "string" :
_local3 = {name:timeNameOrCuePoint};
break;
case "number" :
_local3 = {time:timeNameOrCuePoint};
break;
case "object" :
_local3 = timeNameOrCuePoint;
}
var _local2 = getCuePointIndex(asCuePoints, false, _local3.time, _local3.name);
if (_local2 < 0) {
return(null);
}
_local3 = asCuePoints[_local2];
asCuePoints.splice(_local2, 1);
_local2 = getCuePointIndex(allCuePoints, false, _local3.time, _local3.name);
if (_local2 > 0) {
allCuePoints.splice(_local2, 1);
}
if (_owner.getVideoPlayer(_id).__get__playheadTime() > 0) {
if (_asCuePointIndex > _local2) {
_asCuePointIndex--;
}
} else {
_asCuePointIndex = 0;
}
return(_local3);
}
function setFLVCuePointEnabled(enabled, timeNameOrCuePoint) {
var _local4;
switch (typeof(timeNameOrCuePoint)) {
case "string" :
_local4 = {name:timeNameOrCuePoint};
break;
case "number" :
_local4 = {time:timeNameOrCuePoint};
break;
case "object" :
_local4 = timeNameOrCuePoint;
}
var _local12 = isNaN(_local4.time) || (_local4.time < 0);
var _local11 = (_local4.name == undefined) || (_local4.name == null);
if (_local12 && (_local11)) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null");
}
var _local6 = 0;
var _local2;
var _local5;
if (_local12) {
if (!_metadataLoaded) {
if (_disabledCuePointsByNameOnly[_local4.name] == undefined) {
if (!enabled) {
if (((_disabledCuePointsByNameOnly == null) || (_disabledCuePointsByNameOnly == undefined)) || (_disabledCuePointsByNameOnly.length < 0)) {
_disabledCuePointsByNameOnly = new Object();
}
_disabledCuePointsByNameOnly[_local4.name] = new Array();
}
} else {
if (enabled) {
_disabledCuePointsByNameOnly[_local4.name] = undefined;
}
return(-1);
}
removeCuePoints(_disabledCuePoints, _local4);
return(-1);
}
if (enabled) {
_local6 = removeCuePoints(_disabledCuePoints, _local4);
} else {
var _local3;
_local2 = getCuePointIndex(flvCuePoints, true, -1, _local4.name);
while (_local2 >= 0) {
_local3 = flvCuePoints[_local2];
_local5 = getCuePointIndex(_disabledCuePoints, true, _local3.time);
if ((_local5 < 0) || (_disabledCuePoints[_local5].time != _local3.time)) {
_disabledCuePoints = insertCuePoint(_local5, _disabledCuePoints, {name:_local3.name, time:_local3.time});
_local6 = _local6 + 1;
}
_local2 = getNextCuePointIndexWithName(_local3.name, flvCuePoints, _local2);
}
}
return(_local6);
}
_local2 = getCuePointIndex(_disabledCuePoints, false, _local4.time, _local4.name);
if (_local2 < 0) {
if (enabled) {
if (!_metadataLoaded) {
_local2 = getCuePointIndex(_disabledCuePoints, false, _local4.time);
if (_local2 < 0) {
_local5 = getCuePointIndex(_disabledCuePointsByNameOnly[_local4.name], true, _local4.time);
if (cuePointCompare(_local4.time, null, _disabledCuePointsByNameOnly[_local4.name]) != 0) {
_disabledCuePointsByNameOnly[_local4.name] = insertCuePoint(_local5, _disabledCuePointsByNameOnly[_local4.name], _local4);
}
} else {
_disabledCuePoints.splice(_local2, 1);
}
}
return((_metadataLoaded ? 0 : -1));
}
} else {
if (enabled) {
_disabledCuePoints.splice(_local2, 1);
_local6 = 1;
} else {
_local6 = 0;
}
return((_metadataLoaded ? (_local6) : -1));
}
if (_metadataLoaded) {
_local2 = getCuePointIndex(flvCuePoints, false, _local4.time, _local4.name);
if (_local2 < 0) {
return(0);
}
if (_local11) {
_local4.name = flvCuePoints[_local2].name;
}
}
_local5 = getCuePointIndex(_disabledCuePoints, true, _local4.time);
_disabledCuePoints = insertCuePoint(_local5, _disabledCuePoints, _local4);
_local6 = 1;
return((_metadataLoaded ? 1 : -1));
}
function removeCuePoints(cuePointArray, cuePoint) {
var _local2;
var _local4;
var _local5 = 0;
_local2 = getCuePointIndex(cuePointArray, true, -1, cuePoint.name);
while (_local2 >= 0) {
_local4 = cuePointArray[_local2];
cuePointArray.splice(_local2, 1);
_local2--;
_local5++;
_local2 = getNextCuePointIndexWithName(_local4.name, cuePointArray, _local2);
}
return(_local5);
}
function insertCuePoint(insertIndex, cuePointArray, cuePoint) {
if (insertIndex < 0) {
cuePointArray = new Array();
cuePointArray.push(cuePoint);
} else {
if (cuePointArray[insertIndex].time > cuePoint.time) {
insertIndex = 0;
} else {
insertIndex++;
}
cuePointArray.splice(insertIndex, 0, cuePoint);
}
return(cuePointArray);
}
function isFLVCuePointEnabled(timeNameOrCuePoint) {
if (!_metadataLoaded) {
return(true);
}
var _local3;
switch (typeof(timeNameOrCuePoint)) {
case "string" :
_local3 = {name:timeNameOrCuePoint};
break;
case "number" :
_local3 = {time:timeNameOrCuePoint};
break;
case "object" :
_local3 = timeNameOrCuePoint;
}
var _local5 = isNaN(_local3.time) || (_local3.time < 0);
var _local6 = (_local3.name == undefined) || (_local3.name == null);
if (_local5 && (_local6)) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null");
}
if (_local5) {
var _local2 = getCuePointIndex(flvCuePoints, true, -1, _local3.name);
if (_local2 < 0) {
return(true);
}
while (_local2 >= 0) {
if (getCuePointIndex(_disabledCuePoints, false, flvCuePoints[_local2].time, flvCuePoints[_local2].name) < 0) {
return(true);
}
_local2 = getNextCuePointIndexWithName(_local3.name, flvCuePoints, _local2);
}
return(false);
}
return(getCuePointIndex(_disabledCuePoints, false, _local3.time, _local3.name) < 0);
}
function dispatchASCuePoints() {
var _local5 = _owner.getVideoPlayer(_id).__get__playheadTime();
if ((_owner.getVideoPlayer(_id).__get__stateResponsive() && (asCuePoints != null)) && (asCuePoints != undefined)) {
while ((_asCuePointIndex < asCuePoints.length) && (asCuePoints[_asCuePointIndex].time <= (_local5 + _asCuePointTolerance))) {
_owner.dispatchEvent({type:"cuePoint", info:deepCopyObject(asCuePoints[_asCuePointIndex++]), vp:_id});
}
}
}
function resetASCuePointIndex(time) {
if (((time <= 0) || (asCuePoints == null)) || (asCuePoints == undefined)) {
_asCuePointIndex = 0;
return(undefined);
}
var _local2 = getCuePointIndex(asCuePoints, true, time);
_asCuePointIndex = ((asCuePoints[_local2].time < time) ? (_local2 + 1) : (_local2));
}
function processFLVCuePoints(metadataCuePoints) {
_metadataLoaded = true;
if (((metadataCuePoints == undefined) || (metadataCuePoints == null)) || (metadataCuePoints.length < 1)) {
flvCuePoints = null;
navCuePoints = null;
eventCuePoints = null;
return(undefined);
}
flvCuePoints = metadataCuePoints;
navCuePoints = new Array();
eventCuePoints = new Array();
var _local5;
var _local6 = -1;
var _local2;
var _local4 = _disabledCuePoints;
var _local3 = 0;
_disabledCuePoints = new Array();
var _local9 = 0;
while (_local2 = flvCuePoints[_local9++] , _local2 != undefined) {
if ((_local6 > 0) && (_local6 >= _local2.time)) {
flvCuePoints = null;
navCuePoints = null;
eventCuePoints = null;
_disabledCuePoints = null;
_disabledCuePointsByNameOnly = null;
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "Unsorted cuePoint found after time: " + _local6);
}
_local6 = _local2.time;
while ((_local3 < _local4.length) && (cuePointCompare(_local4[_local3].time, null, _local2) < 0)) {
_local3++;
}
if ((_disabledCuePointsByNameOnly[_local2.name] != undefined) || ((_local3 < _local4.length) && (cuePointCompare(_local4[_local3].time, _local4[_local3].name, _local2) == 0))) {
_disabledCuePoints.push({time:_local2.time, name:_local2.name});
}
if (_local2.type == "navigation") {
navCuePoints.push(_local2);
} else if (_local2.type == "event") {
eventCuePoints.push(_local2);
}
if (((allCuePoints == null) || (allCuePoints == undefined)) || (allCuePoints.length < 1)) {
allCuePoints = new Array();
allCuePoints.push(_local2);
} else {
_local5 = getCuePointIndex(allCuePoints, true, _local2.time);
_local5 = ((allCuePoints[_local5].time > _local2.time) ? 0 : (_local5 + 1));
allCuePoints.splice(_local5, 0, _local2);
}
}
delete _disabledCuePointsByNameOnly;
_disabledCuePointsByNameOnly = null;
delete _disabledCuePointsByNameOnly;
_disabledCuePointsByNameOnly = null;
}
function processCuePointsProperty(cuePoints) {
if (((cuePoints == undefined) || (cuePoints == null)) || (cuePoints.length == 0)) {
return(undefined);
}
var _local4 = 0;
var _local8;
var _local6;
var _local7;
var _local5;
var _local9;
var _local2 = 0;
while (_local2 < (cuePoints.length - 1)) {
switch (_local4) {
case 6 :
addOrDisable(_local9, _local5);
_local4 = 0;
case 0 :
if (cuePoints[_local2++] != "t") {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format");
}
if (isNaN(cuePoints[_local2])) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number");
}
_local5 = new Object();
_local5.time = cuePoints[_local2] / 1000;
_local4++;
break;
case 1 :
if (cuePoints[_local2++] != "n") {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format");
}
if ((cuePoints[_local2] == undefined) || (cuePoints[_local2] == null)) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be null or undefined");
}
_local5.name = unescape(cuePoints[_local2]);
_local4++;
break;
case 2 :
if (cuePoints[_local2++] != "t") {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format");
}
if (isNaN(cuePoints[_local2])) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "type must be number");
}
switch (cuePoints[_local2]) {
case 0 :
_local5.type = "event";
break;
case 1 :
_local5.type = "navigation";
break;
case 2 :
_local5.type = "actionscript";
break;
default :
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "type must be 0, 1 or 2");
}
_local4++;
break;
case 3 :
if (cuePoints[_local2++] != "d") {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format");
}
if (isNaN(cuePoints[_local2])) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "disabled must be number");
}
_local9 = cuePoints[_local2] != 0;
_local4++;
break;
case 4 :
if (cuePoints[_local2++] != "p") {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format");
}
if (isNaN(cuePoints[_local2])) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "num params must be number");
}
_local8 = cuePoints[_local2];
_local4++;
if (_local8 == 0) {
_local4++;
} else {
_local5.parameters = new Object();
}
break;
case 5 :
_local6 = cuePoints[_local2++];
_local7 = cuePoints[_local2];
if (typeof(_local6) == "string") {
_local6 = unescape(_local6);
}
if (typeof(_local7) == "string") {
_local7 = unescape(_local7);
}
_local5.parameters[_local6] = _local7;
_local8--;
if (_local8 != 0) {
break;
}
_local4++;
}
_local2++;
}
if (_local4 == 6) {
addOrDisable(_local9, _local5);
} else {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected end of cuePoint param string");
}
}
function addOrDisable(disable, cuePoint) {
if (disable) {
if (cuePoint.type == "actionscript") {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "Cannot disable actionscript cue points");
}
setFLVCuePointEnabled(false, cuePoint);
} else if (cuePoint.type == "actionscript") {
addASCuePoint(cuePoint);
}
}
function unescape(origStr) {
var _local3 = origStr;
var _local1 = 0;
while (_local1 < cuePointsReplace.length) {
var _local2 = _local3.split(cuePointsReplace[_local1++]);
if (_local2.length > 1) {
_local3 = _local2.join(cuePointsReplace[_local1]);
}
_local1++;
}
return(_local3);
}
function getCuePointIndex(cuePointArray, closeIsOK, time, name, start, len) {
if (((cuePointArray == null) || (cuePointArray == undefined)) || (cuePointArray.length < 1)) {
return(-1);
}
var _local13 = isNaN(time) || (time < 0);
var _local16 = (name == undefined) || (name == null);
if (_local13 && (_local16)) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null");
}
if ((start == undefined) || (start == null)) {
start = 0;
}
if ((len == undefined) || (len == null)) {
len = cuePointArray.length;
}
if ((!_local16) && (closeIsOK || (_local13))) {
var _local8;
var _local2;
if (_local13) {
_local8 = start;
} else {
_local8 = getCuePointIndex(cuePointArray, closeIsOK, time);
}
_local2 = _local8;
while (_local2 >= start) {
if (cuePointArray[_local2].name == name) {
break;
}
_local2--;
}
if (_local2 >= start) {
return(_local2);
}
_local2 = _local8 + 1;
while (_local2 < len) {
if (cuePointArray[_local2].name == name) {
break;
}
_local2++;
}
if (_local2 < len) {
return(_local2);
}
return(-1);
}
var _local6;
if (len <= _linearSearchTolerance) {
var _local11 = start + len;
var _local3 = start;
while (_local3 < _local11) {
_local6 = cuePointCompare(time, name, cuePointArray[_local3]);
if (_local6 == 0) {
return(_local3);
}
if (_local6 < 0) {
break;
}
_local3++;
}
if (closeIsOK) {
if (_local3 > 0) {
return(_local3 - 1);
}
return(0);
}
return(-1);
}
var _local12 = Math.floor(len / 2);
var _local15 = start + _local12;
_local6 = cuePointCompare(time, name, cuePointArray[_local15]);
if (_local6 < 0) {
return(getCuePointIndex(cuePointArray, closeIsOK, time, name, start, _local12));
}
if (_local6 > 0) {
return(getCuePointIndex(cuePointArray, closeIsOK, time, name, _local15 + 1, (_local12 - 1) + (len % 2)));
}
return(_local15);
}
function getNextCuePointIndexWithName(name, array, index) {
if ((name == undefined) || (name == null)) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be undefined or null");
}
if ((array == null) || (array == undefined)) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint.array undefined");
}
if ((isNaN(index) || (index < -1)) || (index >= array.length)) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint.index must be number between -1 and cuePoint.array.length");
}
var _local1;
_local1 = index + 1;
while (_local1 < array.length) {
if (array[_local1].name == name) {
break;
}
_local1++;
}
if (_local1 < array.length) {
return(_local1);
}
return(-1);
}
static function cuePointCompare(time, name, cuePoint) {
var _local2 = Math.round(time * 1000);
var _local3 = Math.round(cuePoint.time * 1000);
if (_local2 < _local3) {
return(-1);
}
if (_local2 > _local3) {
return(1);
}
if ((name != null) || (name != undefined)) {
if (name == cuePoint.name) {
return(0);
}
if (name < cuePoint.name) {
return(-1);
}
return(1);
}
return(0);
}
function getCuePoint(cuePointArray, closeIsOK, timeNameOrCuePoint) {
var _local3;
switch (typeof(timeNameOrCuePoint)) {
case "string" :
_local3 = {name:timeNameOrCuePoint};
break;
case "number" :
_local3 = {time:timeNameOrCuePoint};
break;
case "object" :
_local3 = timeNameOrCuePoint;
}
var _local2 = getCuePointIndex(cuePointArray, closeIsOK, _local3.time, _local3.name);
if (_local2 < 0) {
return(null);
}
_local3 = deepCopyObject(cuePointArray[_local2]);
_local3.array = cuePointArray;
_local3.index = _local2;
return(_local3);
}
function getNextCuePointWithName(cuePoint) {
if ((cuePoint == null) || (cuePoint == undefined)) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint parameter undefined");
}
if (isNaN(cuePoint.time) || (cuePoint.time < 0)) {
throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number");
}
var _local3 = getNextCuePointIndexWithName(cuePoint.name, cuePoint.array, cuePoint.index);
if (_local3 < 0) {
return(null);
}
var _local4 = deepCopyObject(cuePoint.array[_local3]);
_local4.array = cuePoint.array;
_local4.index = _local3;
return(_local4);
}
static function deepCopyObject(obj, recurseLevel) {
if (((obj == undefined) || (obj == null)) || (typeof(obj) != "object")) {
return(obj);
}
if (recurseLevel == undefined) {
recurseLevel = 0;
}
var _local2 = new Object();
for (var _local4 in obj) {
if ((recurseLevel == 0) && ((_local4 == "array") || (_local4 == "index"))) {
} else if (typeof(obj[_local4]) == "object") {
_local2[_local4] = deepCopyObject(obj[_local4], recurseLevel + 1);
} else {
_local2[_local4] = obj[_local4];
}
}
return(_local2);
}
static var DEFAULT_LINEAR_SEARCH_TOLERANCE = 50;
static var cuePointsReplace = [""", "\"", "'", "'", ",", ",", "&", "&"];
}
Symbol 150 MovieClip Frame 1
stop();
this._visible = false;
Symbol 150 MovieClip Frame 10
this._visible = true;
Symbol 150 MovieClip Frame 43
stop();
Symbol 150 MovieClip Frame 68
stop();
this._visible = false;
Symbol 151 MovieClip [mc-FontHandler] Frame 1
#initclip 118
Object.registerClass("mc-FontHandler", framework.FontHandler);
#endinitclip
Symbol 156 MovieClip [mc-RollScroll] Frame 1
#initclip 66
Object.registerClass("mc-RollScroll", base.RollScroll);
#endinitclip
Symbol 156 MovieClip [mc-RollScroll] Frame 38
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 25
stop();
Symbol 159 MovieClip Frame 45
stop();
Symbol 163 MovieClip Frame 19
stop();
Symbol 167 MovieClip [mc-PrimaryNavItem] Frame 1
#initclip 67
Object.registerClass("mc-PrimaryNavItem", framework.ExpandingPathItem);
#endinitclip
stop();
Symbol 167 MovieClip [mc-PrimaryNavItem] Frame 15
circle.gotoAndPlay("rollover");
Symbol 167 MovieClip [mc-PrimaryNavItem] Frame 25
stop();
Symbol 167 MovieClip [mc-PrimaryNavItem] Frame 35
circle.gotoAndPlay("rollout");
Symbol 167 MovieClip [mc-PrimaryNavItem] Frame 45
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 10
stop();
Symbol 171 MovieClip Frame 20
stop();
Symbol 171 MovieClip Frame 30
stop();
Symbol 171 MovieClip Frame 40
stop();
Symbol 171 MovieClip Frame 50
stop();
Symbol 173 MovieClip [mc-AuxiliaryNavItem] Frame 1
#initclip 68
Object.registerClass("mc-AuxiliaryNavItem", base.NavItem);
#endinitclip
stop();
Symbol 173 MovieClip [mc-AuxiliaryNavItem] Frame 25
stop();
Symbol 173 MovieClip [mc-AuxiliaryNavItem] Frame 45
stop();
Symbol 176 MovieClip [mc-SecondaryNavItem] Frame 1
#initclip 69
Object.registerClass("mc-SecondaryNavItem", framework.ExpandingPathItem);
#endinitclip
stop();
Symbol 176 MovieClip [mc-SecondaryNavItem] Frame 25
stop();
Symbol 176 MovieClip [mc-SecondaryNavItem] Frame 45
stop();
Symbol 179 MovieClip Frame 1
stop();
this._visible = false;
Symbol 179 MovieClip Frame 10
this._visible = true;
Symbol 179 MovieClip Frame 43
stop();
Symbol 179 MovieClip Frame 68
stop();
this._visible = false;
this._parent.preloadDone();
Symbol 180 MovieClip [mc-Mattes] Frame 1
#initclip 70
Object.registerClass("mc-Mattes", framework.MatteSwapper);
#endinitclip
Symbol 180 MovieClip [mc-Mattes] Frame 2
stop();
Symbol 180 MovieClip [mc-Mattes] Frame 10
stop();
Symbol 180 MovieClip [mc-Mattes] Frame 16
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 10
stop();
Symbol 186 MovieClip Frame 20
stop();
Symbol 186 MovieClip Frame 30
stop();
Symbol 186 MovieClip Frame 40
stop();
Symbol 186 MovieClip Frame 50
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 10
stop();
Symbol 188 MovieClip Frame 20
stop();
Symbol 188 MovieClip Frame 30
stop();
Symbol 188 MovieClip Frame 40
stop();
Symbol 188 MovieClip Frame 50
stop();
Symbol 190 MovieClip [mc-AuxiliaryNavItem_jp] Frame 1
#initclip 71
Object.registerClass("mc-AuxiliaryNavItem_jp", base.NavItem);
#endinitclip
stop();
Symbol 190 MovieClip [mc-AuxiliaryNavItem_jp] Frame 25
stop();
Symbol 190 MovieClip [mc-AuxiliaryNavItem_jp] Frame 45
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 10
stop();
Symbol 194 MovieClip Frame 20
stop();
Symbol 194 MovieClip Frame 30
stop();
Symbol 194 MovieClip Frame 40
stop();
Symbol 194 MovieClip Frame 50
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 10
stop();
Symbol 198 MovieClip Frame 20
stop();
Symbol 198 MovieClip Frame 30
stop();
Symbol 198 MovieClip Frame 40
stop();
Symbol 198 MovieClip Frame 50
stop();
Symbol 202 MovieClip [mc-TopNav] Frame 1
#initclip 72
Object.registerClass("mc-TopNav", framework.TopNav);
#endinitclip
Symbol 202 MovieClip [mc-TopNav] Frame 15
stop();
if (!this.persisting) {
btn.onRollOver = function () {
this._parent.gotoAndPlay("show");
};
hidenavitems();
}
Symbol 202 MovieClip [mc-TopNav] Frame 28
if (!this.persisting) {
btn.enabled = true;
btn.onRollOver = function () {
this._parent.gotoAndPlay("hide");
};
this.shownavitems();
} else {
btn.enabled = false;
}
Symbol 202 MovieClip [mc-TopNav] Frame 48
activateNav();
stop();
Symbol 202 MovieClip [mc-TopNav] Frame 60
if (!this.persisting) {
btn.onRollOver = function () {
this._parent.gotoAndPlay("show");
};
deactivateNav();
hidenavitems();
}
Symbol 202 MovieClip [mc-TopNav] Frame 70
gotoAndStop ("idle");
Symbol 220 MovieClip Frame 25
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 10
this._visible = true;
Symbol 225 MovieClip Frame 41
stop();
Symbol 225 MovieClip Frame 61
stop();
this._visible = false;
Symbol 228 MovieClip Frame 30
stop();
Symbol 235 MovieClip Frame 7
stop();
Symbol 235 MovieClip Frame 16
stop();
Symbol 235 MovieClip Frame 26
stop();
Symbol 235 MovieClip Frame 36
stop();
Symbol 235 MovieClip Frame 46
stop();
Symbol 235 MovieClip Frame 56
stop();
Symbol 242 MovieClip Frame 7
stop();
Symbol 242 MovieClip Frame 16
stop();
Symbol 242 MovieClip Frame 26
stop();
Symbol 242 MovieClip Frame 36
stop();
Symbol 242 MovieClip Frame 46
stop();
Symbol 242 MovieClip Frame 56
stop();
Symbol 245 MovieClip Frame 27
stop();
Symbol 246 MovieClip [mc-ThumbCycler] Frame 1
#initclip 73
Object.registerClass("mc-ThumbCycler", framework.ThumbCycler);
#endinitclip
stop();
Symbol 246 MovieClip [mc-ThumbCycler] Frame 37
stop();
Symbol 246 MovieClip [mc-ThumbCycler] Frame 54
stop();
doLoad();
Symbol 253 MovieClip [mc-SMSmallInnerNavItem] Frame 1
#initclip 74
Object.registerClass("mc-SMSmallInnerNavItem", framework.PathItem);
#endinitclip
stop();
Symbol 253 MovieClip [mc-SMSmallInnerNavItem] Frame 25
stop();
Symbol 253 MovieClip [mc-SMSmallInnerNavItem] Frame 45
stop();
Symbol 257 MovieClip [mc-SMClientPartners] Frame 1
#initclip 75
Object.registerClass("mc-SMClientPartners", framework.subnav.SMClientPartners);
#endinitclip
Symbol 257 MovieClip [mc-SMClientPartners] Frame 15
stop();
Symbol 257 MovieClip [mc-SMClientPartners] Frame 24
stop();
Symbol 257 MovieClip [mc-SMClientPartners] Frame 34
stop();
Symbol 257 MovieClip [mc-SMClientPartners] Frame 44
stop();
Symbol 257 MovieClip [mc-SMClientPartners] Frame 54
stop();
Symbol 257 MovieClip [mc-SMClientPartners] Frame 64
stop();
Symbol 276 MovieClip Frame 7
stop();
Symbol 276 MovieClip Frame 16
stop();
Symbol 276 MovieClip Frame 26
stop();
Symbol 276 MovieClip Frame 36
stop();
Symbol 276 MovieClip Frame 46
stop();
Symbol 276 MovieClip Frame 56
stop();
Symbol 278 MovieClip [mc-SubLargeInnerNavLeft] Frame 1
#initclip 76
Object.registerClass("mc-SubLargeInnerNavLeft", base.NavItem);
#endinitclip
stop();
Symbol 278 MovieClip [mc-SubLargeInnerNavLeft] Frame 25
stop();
Symbol 278 MovieClip [mc-SubLargeInnerNavLeft] Frame 45
stop();
Symbol 289 MovieClip [mc-SMWorldMap] Frame 1
#initclip 77
Object.registerClass("mc-SMWorldMap", framework.subnav.SMWorldMap);
#endinitclip
Symbol 289 MovieClip [mc-SMWorldMap] Frame 15
stop();
Symbol 289 MovieClip [mc-SMWorldMap] Frame 24
stop();
Symbol 289 MovieClip [mc-SMWorldMap] Frame 35
stop();
Symbol 289 MovieClip [mc-SMWorldMap] Frame 44
stop();
Symbol 289 MovieClip [mc-SMWorldMap] Frame 54
stop();
Symbol 289 MovieClip [mc-SMWorldMap] Frame 64
stop();
Symbol 291 MovieClip [mc-LargeInnerNav] Frame 1
#initclip 78
Object.registerClass("mc-LargeInnerNav", base.NavItem);
#endinitclip
stop();
Symbol 291 MovieClip [mc-LargeInnerNav] Frame 25
stop();
Symbol 291 MovieClip [mc-LargeInnerNav] Frame 45
stop();
Symbol 295 MovieClip [mc-SMXtra] Frame 1
#initclip 79
Object.registerClass("mc-SMXtra", framework.subnav.SMXtra);
#endinitclip
Symbol 295 MovieClip [mc-SMXtra] Frame 15
stop();
Symbol 295 MovieClip [mc-SMXtra] Frame 24
stop();
Symbol 295 MovieClip [mc-SMXtra] Frame 35
stop();
Symbol 295 MovieClip [mc-SMXtra] Frame 44
stop();
Symbol 295 MovieClip [mc-SMXtra] Frame 54
stop();
Symbol 295 MovieClip [mc-SMXtra] Frame 64
stop();
Symbol 296 MovieClip Frame 7
stop();
Symbol 296 MovieClip Frame 16
stop();
Symbol 296 MovieClip Frame 26
stop();
Symbol 296 MovieClip Frame 36
stop();
Symbol 296 MovieClip Frame 46
stop();
Symbol 296 MovieClip Frame 56
stop();
Symbol 298 MovieClip [mc-SubSmallInnerNavPathItem] Frame 1
#initclip 80
Object.registerClass("mc-SubSmallInnerNavPathItem", framework.PathItem);
#endinitclip
stop();
Symbol 298 MovieClip [mc-SubSmallInnerNavPathItem] Frame 25
stop();
Symbol 298 MovieClip [mc-SubSmallInnerNavPathItem] Frame 45
stop();
Symbol 299 MovieClip [mc-SMNews] Frame 1
#initclip 81
Object.registerClass("mc-SMNews", framework.subnav.SMNews);
#endinitclip
Instance of Symbol 87 MovieClip [FScrollPaneSymbol] "scroller" in Symbol 299 MovieClip [mc-SMNews] Frame 1
//component parameters
onClipEvent (construct) {
scrollContent = "";
hScroll = "false";
vScroll = "auto";
dragContent = false;
}
Symbol 299 MovieClip [mc-SMNews] Frame 15
stop();
Symbol 299 MovieClip [mc-SMNews] Frame 24
stop();
Symbol 299 MovieClip [mc-SMNews] Frame 35
stop();
Symbol 299 MovieClip [mc-SMNews] Frame 44
stop();
Symbol 299 MovieClip [mc-SMNews] Frame 54
stop();
Symbol 299 MovieClip [mc-SMNews] Frame 64
stop();
Symbol 300 MovieClip [mc-FeaturedInnerNav] Frame 1
#initclip 82
Object.registerClass("mc-FeaturedInnerNav", base.NavItem);
#endinitclip
stop();
Symbol 300 MovieClip [mc-FeaturedInnerNav] Frame 25
stop();
Symbol 300 MovieClip [mc-FeaturedInnerNav] Frame 45
stop();
Symbol 307 MovieClip [mc-SMFeatured] Frame 1
#initclip 83
Object.registerClass("mc-SMFeatured", framework.subnav.SMFeatured);
#endinitclip
Symbol 307 MovieClip [mc-SMFeatured] Frame 10
_visible = true;
Symbol 307 MovieClip [mc-SMFeatured] Frame 31
stop();
Symbol 307 MovieClip [mc-SMFeatured] Frame 37
stop();
Symbol 314 MovieClip [mc-SUB] Frame 1
#initclip 84
Object.registerClass("mc-SUB", framework.subnav.SubNav);
#endinitclip
stop();
Symbol 314 MovieClip [mc-SUB] Frame 70
module1._visible = true;
Symbol 314 MovieClip [mc-SUB] Frame 80
module2._visible = true;
Symbol 314 MovieClip [mc-SUB] Frame 90
module3._visible = true;
Symbol 314 MovieClip [mc-SUB] Frame 100
module4._visible = true;
Symbol 314 MovieClip [mc-SUB] Frame 110
stop();
Symbol 314 MovieClip [mc-SUB] Frame 180
module5._visible = true;
Symbol 314 MovieClip [mc-SUB] Frame 190
module6._visible = true;
Symbol 314 MovieClip [mc-SUB] Frame 200
module3._visible = true;
Symbol 314 MovieClip [mc-SUB] Frame 210
module4._visible = true;
Symbol 314 MovieClip [mc-SUB] Frame 220
stop();
Symbol 317 MovieClip Frame 1
stop();
this._visible = false;
Symbol 317 MovieClip Frame 10
this._visible = true;
Symbol 317 MovieClip Frame 43
stop();
Symbol 317 MovieClip Frame 86
stop();
this._visible = false;
this._parent.preloadDone();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 1
#initclip 85
Object.registerClass(" mc-Transition Shell", framework.TransitionShell);
#endinitclip
Symbol 318 MovieClip [ mc-Transition Shell] Frame 4
trace(music);
music = new Sound(soundtrack);
music.setVolume(100);
stop();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 10
swapIN(0);
stop();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 20
stop();
section.shell.hide();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 30
swapIN(1);
stop();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 40
stop();
section.shell.hide();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 50
swapIN(2);
stop();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 60
stop();
section.shell.hide();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 70
swapIN(3);
stop();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 80
stop();
section.shell.hide();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 90
swapIN(4);
stop();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 100
stop();
section.shell.hide();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 110
swapIN(5);
stop();
Symbol 318 MovieClip [ mc-Transition Shell] Frame 120
stop();
section.shell.hide();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 10
stop();
Symbol 320 MovieClip Frame 20
stop();
Symbol 320 MovieClip Frame 30
stop();
Symbol 320 MovieClip Frame 40
stop();
Symbol 320 MovieClip Frame 50
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 17
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 10
stop();
Symbol 329 MovieClip Frame 20
stop();
Symbol 329 MovieClip Frame 30
stop();
Symbol 329 MovieClip Frame 40
stop();
Symbol 329 MovieClip Frame 50
stop();
Symbol 333 MovieClip [mc-PopInnerNavItem2] Frame 1
#initclip 86
Object.registerClass("mc-PopInnerNavItem2", base.NavItem);
#endinitclip
stop();
Symbol 333 MovieClip [mc-PopInnerNavItem2] Frame 25
stop();
Symbol 333 MovieClip [mc-PopInnerNavItem2] Frame 45
stop();
Symbol 337 MovieClip [mc-Preferences] Frame 1
#initclip 87
Object.registerClass("mc-Preferences", framework.midnav.PNPreferences);
#endinitclip
hideitems();
Symbol 337 MovieClip [mc-Preferences] Frame 6
stop();
btn.onRollOver = function () {
this._parent.show();
};
hideitems();
Symbol 337 MovieClip [mc-Preferences] Frame 19
btn.onRollOver = function () {
this._parent.hide();
};
this.digitizer.gotoAndPlay("digitize");
Symbol 337 MovieClip [mc-Preferences] Frame 43
stop();
Symbol 337 MovieClip [mc-Preferences] Frame 46
btn.onRollOver = function () {
this._parent.show();
};
Symbol 337 MovieClip [mc-Preferences] Frame 49
gotoAndStop ("idle");
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 10
stop();
Symbol 344 MovieClip Frame 20
stop();
Symbol 344 MovieClip Frame 30
stop();
Symbol 344 MovieClip Frame 40
stop();
Symbol 344 MovieClip Frame 50
stop();
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 27
stop();
Symbol 354 MovieClip Frame 37
stop();
Symbol 354 MovieClip Frame 47
stop();
Symbol 357 MovieClip [mc-PopNav-link] Frame 1
#initclip 88
Object.registerClass("mc-PopNav-link", base.NavItem);
#endinitclip
stop();
Symbol 357 MovieClip [mc-PopNav-link] Frame 25
stop();
Symbol 357 MovieClip [mc-PopNav-link] Frame 45
stop();
Symbol 358 MovieClip [mc-Archives] Frame 1
#initclip 89
Object.registerClass("mc-Archives", framework.midnav.PNArchive);
#endinitclip
hideitems();
Symbol 358 MovieClip [mc-Archives] Frame 6
stop();
btn.onRollOver = function () {
this._parent.show();
};
hideitems();
Symbol 358 MovieClip [mc-Archives] Frame 19
btn.onRollOver = function () {
this._parent.hide();
};
this.digitizer.gotoAndPlay("digitize");
Symbol 358 MovieClip [mc-Archives] Frame 41
stop();
Symbol 358 MovieClip [mc-Archives] Frame 44
btn.onRollOver = function () {
this._parent.show();
};
Symbol 358 MovieClip [mc-Archives] Frame 49
gotoAndStop ("idle");
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 10
stop();
Symbol 365 MovieClip Frame 20
stop();
Symbol 365 MovieClip Frame 30
stop();
Symbol 365 MovieClip Frame 40
stop();
Symbol 365 MovieClip Frame 50
stop();
Symbol 379 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 10
stop();
Symbol 379 MovieClip Frame 20
stop();
Symbol 379 MovieClip Frame 30
stop();
Symbol 379 MovieClip Frame 40
stop();
Symbol 379 MovieClip Frame 50
stop();
Symbol 380 MovieClip [mc-DownloadMatte] Frame 1
#initclip 90
Object.registerClass("mc-DownloadMatte", framework.midnav.PNWallpaper);
#endinitclip
hideitems();
Symbol 380 MovieClip [mc-DownloadMatte] Frame 6
stop();
btn.onRollOver = function () {
this._parent.show();
};
hideitems();
Symbol 380 MovieClip [mc-DownloadMatte] Frame 19
btn.onRollOver = function () {
this._parent.hide();
};
this.digitizer.gotoAndPlay("digitize");
Symbol 380 MovieClip [mc-DownloadMatte] Frame 43
stop();
Symbol 380 MovieClip [mc-DownloadMatte] Frame 46
btn.onRollOver = function () {
this._parent.show();
};
Symbol 380 MovieClip [mc-DownloadMatte] Frame 49
gotoAndStop ("idle");
Symbol 385 MovieClip [mc-DemoReel] Frame 1
#initclip 91
Object.registerClass("mc-DemoReel", framework.midnav.PNDemoReel);
#endinitclip
hideitems();
Symbol 385 MovieClip [mc-DemoReel] Frame 6
stop();
btn.onRollOver = function () {
this._parent.show();
};
hideitems();
Symbol 385 MovieClip [mc-DemoReel] Frame 19
btn.onRollOver = function () {
this._parent.hide();
};
this.digitizer.gotoAndPlay("digitize");
Symbol 385 MovieClip [mc-DemoReel] Frame 44
stop();
Symbol 385 MovieClip [mc-DemoReel] Frame 47
btn.onRollOver = function () {
this._parent.show();
};
Symbol 385 MovieClip [mc-DemoReel] Frame 50
gotoAndStop ("idle");
Symbol 386 MovieClip [mc-SubNav] Frame 1
#initclip 92
Object.registerClass("mc-SubNav", framework.midnav.MidNav);
#endinitclip
_visible = false;
Symbol 386 MovieClip [mc-SubNav] Frame 10
_visible = true;
Symbol 386 MovieClip [mc-SubNav] Frame 25
stop();
Symbol 386 MovieClip [mc-SubNav] Frame 43
stop();
_visible = false;
Symbol 392 MovieClip [mc-MiniTopNavItem] Frame 1
#initclip 93
Object.registerClass("mc-MiniTopNavItem", base.NavItem);
#endinitclip
stop();
Symbol 392 MovieClip [mc-MiniTopNavItem] Frame 25
stop();
Symbol 392 MovieClip [mc-MiniTopNavItem] Frame 45
stop();
Symbol 396 MovieClip [mc-MiniTopNav] Frame 1
#initclip 94
Object.registerClass("mc-MiniTopNav", framework.minitopnav.MiniTopNav);
#endinitclip
Symbol 396 MovieClip [mc-MiniTopNav] Frame 10
stop();
Symbol 396 MovieClip [mc-MiniTopNav] Frame 15
stop();
Symbol 396 MovieClip [mc-MiniTopNav] Frame 20
stop();
Symbol 396 MovieClip [mc-MiniTopNav] Frame 25
stop();
Symbol 396 MovieClip [mc-MiniTopNav] Frame 30
stop();
Symbol 396 MovieClip [mc-MiniTopNav] Frame 35
stop();
Symbol 396 MovieClip [mc-MiniTopNav] Frame 40
stop();
Symbol 397 Button
on (release) {
getURL ("http://www.plat4m.com", "_blank");
}
Symbol 398 Button
on (release) {
getURL ("http://www.2advanced.net", "_blank");
}
Symbol 410 MovieClip Frame 28
stop();
Symbol 411 MovieClip [mc-UI] Frame 1
#initclip 95
Object.registerClass("mc-UI", framework.UI);
#endinitclip
Instance of Symbol 228 MovieClip "temphome" in Symbol 411 MovieClip [mc-UI] Frame 1
/* no clip actions */
Symbol 411 MovieClip [mc-UI] Frame 5
this._visible = false;
stop();
Symbol 411 MovieClip [mc-UI] Frame 10
_visible = true;
showlogo();
Symbol 411 MovieClip [mc-UI] Frame 11
_root.fadeOut01 = 1;
Symbol 411 MovieClip [mc-UI] Frame 32
minitopnav.show();
Symbol 411 MovieClip [mc-UI] Frame 49
midnav.show();
Symbol 411 MovieClip [mc-UI] Frame 70
subnav.show();
Symbol 411 MovieClip [mc-UI] Frame 76
stop();
showDone();
Symbol 411 MovieClip [mc-UI] Frame 88
_visible = true;
showlogo();
Symbol 411 MovieClip [mc-UI] Frame 89
_root.fadeOut01 = 1;
Symbol 411 MovieClip [mc-UI] Frame 113
minitopnav.show();
Symbol 411 MovieClip [mc-UI] Frame 127
midnav.show();
Symbol 411 MovieClip [mc-UI] Frame 148
subnav.show();
Symbol 411 MovieClip [mc-UI] Frame 154
stop();
showDone();
Symbol 411 MovieClip [mc-UI] Frame 166
_visible = true;
showlogo();
Symbol 411 MovieClip [mc-UI] Frame 167
_root.fadeOut01 = 1;
Symbol 411 MovieClip [mc-UI] Frame 191
minitopnav.show();
Symbol 411 MovieClip [mc-UI] Frame 205
midnav.show();
Symbol 411 MovieClip [mc-UI] Frame 226
subnav.show();
Symbol 411 MovieClip [mc-UI] Frame 232
stop();
showDone();
Symbol 411 MovieClip [mc-UI] Frame 244
_visible = true;
showlogo();
Symbol 411 MovieClip [mc-UI] Frame 245
_root.fadeOut01 = 1;
Symbol 411 MovieClip [mc-UI] Frame 269
minitopnav.show();
Symbol 411 MovieClip [mc-UI] Frame 283
midnav.show();
Symbol 411 MovieClip [mc-UI] Frame 304
subnav.show();
Symbol 411 MovieClip [mc-UI] Frame 310
stop();
showDone();
Symbol 411 MovieClip [mc-UI] Frame 322
_visible = true;
showlogo();
Symbol 411 MovieClip [mc-UI] Frame 323
_root.fadeOut01 = 1;
Symbol 411 MovieClip [mc-UI] Frame 346
minitopnav.show();
Symbol 411 MovieClip [mc-UI] Frame 361
midnav.show();
Symbol 411 MovieClip [mc-UI] Frame 382
subnav.show();
Symbol 411 MovieClip [mc-UI] Frame 388
stop();
showDone();
Symbol 411 MovieClip [mc-UI] Frame 400
_visible = true;
showlogo();
Symbol 411 MovieClip [mc-UI] Frame 401
_root.fadeOut01 = 1;
Symbol 411 MovieClip [mc-UI] Frame 425
minitopnav.show();
Symbol 411 MovieClip [mc-UI] Frame 439
midnav.show();
Symbol 411 MovieClip [mc-UI] Frame 460
subnav.show();
Symbol 411 MovieClip [mc-UI] Frame 466
stop();
showDone();
Symbol 412 MovieClip [mc-fontlib] Frame 1
var formatID;
var registered;
Symbol 416 MovieClip [mc-NewsItem] Frame 1
#initclip 96
Object.registerClass("mc-NewsItem", framework.NewsItem);
#endinitclip
Symbol 423 MovieClip [mc-outerstroke ] Frame 1
#initclip 97
Object.registerClass("mc-outerstroke ", base.AtmoveClip);
#endinitclip
Symbol 423 MovieClip [mc-outerstroke ] Frame 4
stop();
Symbol 423 MovieClip [mc-outerstroke ] Frame 8
stop();
Symbol 423 MovieClip [mc-outerstroke ] Frame 13
stop();
Symbol 423 MovieClip [mc-outerstroke ] Frame 18
stop();
Symbol 423 MovieClip [mc-outerstroke ] Frame 23
stop();
Symbol 423 MovieClip [mc-outerstroke ] Frame 27
stop();
Symbol 430 MovieClip [mc-gradient] Frame 1
#initclip 98
Object.registerClass("mc-gradient", base.AtmoveClip);
#endinitclip
Symbol 430 MovieClip [mc-gradient] Frame 4
stop();
Symbol 430 MovieClip [mc-gradient] Frame 8
stop();
Symbol 430 MovieClip [mc-gradient] Frame 13
stop();
Symbol 430 MovieClip [mc-gradient] Frame 18
stop();
Symbol 430 MovieClip [mc-gradient] Frame 23
stop();
Symbol 430 MovieClip [mc-gradient] Frame 27
stop();
Symbol 437 MovieClip [mc-outerstroke copy] Frame 1
#initclip 99
Object.registerClass("mc-outerstroke copy", base.AtmoveClip);
#endinitclip
Symbol 437 MovieClip [mc-outerstroke copy] Frame 4
stop();
Symbol 437 MovieClip [mc-outerstroke copy] Frame 8
stop();
Symbol 437 MovieClip [mc-outerstroke copy] Frame 13
stop();
Symbol 437 MovieClip [mc-outerstroke copy] Frame 18
stop();
Symbol 437 MovieClip [mc-outerstroke copy] Frame 23
stop();
Symbol 437 MovieClip [mc-outerstroke copy] Frame 27
stop();
Symbol 438 MovieClip [mc-innergradient] Frame 1
#initclip 100
Object.registerClass("mc-innergradient", base.AtmoveClip);
#endinitclip
Symbol 438 MovieClip [mc-innergradient] Frame 4
stop();
Symbol 438 MovieClip [mc-innergradient] Frame 8
stop();
Symbol 438 MovieClip [mc-innergradient] Frame 13
stop();
Symbol 438 MovieClip [mc-innergradient] Frame 18
stop();
Symbol 438 MovieClip [mc-innergradient] Frame 23
stop();
Symbol 438 MovieClip [mc-innergradient] Frame 27
stop();
Symbol 440 MovieClip [mc-cropmark_br] Frame 1
#initclip 101
Object.registerClass("mc-cropmark_br", base.AtmoveClip);
#endinitclip
Symbol 442 MovieClip [mc-cropmark_bl] Frame 1
#initclip 102
Object.registerClass("mc-cropmark_bl", base.AtmoveClip);
#endinitclip
Symbol 444 MovieClip [mc-cropmark_tr] Frame 1
#initclip 103
Object.registerClass("mc-cropmark_tr", base.AtmoveClip);
#endinitclip
Symbol 446 MovieClip [mc-cropmark_tl] Frame 1
#initclip 104
Object.registerClass("mc-cropmark_tl", base.AtmoveClip);
#endinitclip
Symbol 451 MovieClip [Decoder_aboutUs] Frame 1
#initclip 105
Object.registerClass("Decoder_aboutUs", base.Decoder);
#endinitclip
Symbol 451 MovieClip [Decoder_aboutUs] Frame 2
stop();
Symbol 451 MovieClip [Decoder_aboutUs] Frame 15
stop();
Symbol 453 MovieClip [mc-bracket] Frame 1
#initclip 106
Object.registerClass("mc-bracket", base.AtmoveClip);
#endinitclip
Symbol 454 MovieClip [mc-bracketgroup] Frame 1
#initclip 107
Object.registerClass("mc-bracketgroup", base.AtmoveClip);
#endinitclip
Symbol 454 MovieClip [mc-bracketgroup] Frame 4
stop();
Symbol 454 MovieClip [mc-bracketgroup] Frame 8
stop();
Symbol 454 MovieClip [mc-bracketgroup] Frame 13
stop();
Symbol 454 MovieClip [mc-bracketgroup] Frame 18
stop();
Symbol 454 MovieClip [mc-bracketgroup] Frame 23
stop();
Symbol 454 MovieClip [mc-bracketgroup] Frame 27
stop();
Symbol 465 MovieClip [mc-closebtn] Frame 1
#initclip 108
Object.registerClass("mc-closebtn", base.AtmoveClip);
#endinitclip
format_label.autoSize = "right";
Symbol 465 MovieClip [mc-closebtn] Frame 17
stop();
Symbol 465 MovieClip [mc-closebtn] Frame 35
stop();
Symbol 465 MovieClip [mc-closebtn] Frame 55
stop();
Symbol 466 MovieClip [mc-MultiBox] Frame 1
#initclip 109
Object.registerClass("mc-MultiBox", framework.MultiBox);
#endinitclip
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 7
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 7
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 2
stop();
Symbol 489 MovieClip Frame 3
stop();
Symbol 489 MovieClip Frame 4
stop();
Symbol 489 MovieClip Frame 5
stop();
Symbol 489 MovieClip Frame 6
stop();
Symbol 495 MovieClip [SeekBarHandle] Frame 1
function setcolor(id) {
var _local3 = [2781624, 1294592, 14200884, 14549508, 14505616, 9680586];
var _local2 = new flash.geom.ColorTransform();
_local2.rgb = _local3[id];
trace("NEW HANDLE COLOR " + _local3[id]);
var _local4 = new flash.geom.Transform(this.handleGraphic);
_local4.colorTransform = _local2;
}
trace("HANDLE GRAPHIC INSTANCE : " + _global.V5UI.getSectionID());
_global.setFLVHandleColor = setcolor;
stop();
Symbol 496 MovieClip Frame 1
stop();
handleLinkageID = "SeekBarHandle";
handleLeftMargin = 2;
handleRightMargin = 2;
handleY = 5;
Symbol 501 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 7
stop();
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 7
stop();
Symbol 506 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 2
play();
Symbol 506 MovieClip Frame 7
stop();
Symbol 506 MovieClip Frame 8
play();
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 7
stop();
Symbol 509 MovieClip Frame 1
trace("FE" + this);
Symbol 514 MovieClip [VideoPlayer] Frame 1
#initclip 64
Object.registerClass("VideoPlayer", mx.video.VideoPlayer);
#endinitclip
Symbol 518 MovieClip [FLVPlayback] Frame 1
#initclip 65
Object.registerClass("FLVPlayback", mx.video.FLVPlayback);
#endinitclip
stop();
Symbol 530 MovieClip Frame 1
function setForSection(val) {
this.id = val;
skinUI(lightSkin_array, lightSkinValue_array);
skinUI(colorSkin_array, colorSkinValue_array);
skinUI(darkSkin_array, darkSkinValue_array);
trace("switching flv color to " + this.id);
seekBackground.gotoAndStop(this.id + 1);
_global.setFLVHandleColor(this.id);
}
function convertToTimeStamp(seconds) {
seconds = Math.round(seconds);
time_min = Math.floor(seconds / 60);
time_sec = seconds % 60;
if (time_min < 10) {
time_min = "0" + time_min;
}
if (time_sec < 10) {
time_sec = "0" + time_sec;
}
timeStamp = (time_min + ":") + time_sec;
return(timeStamp);
}
stop();
this.id;
FlvPlayer.playPauseButton = playpausebtn;
FlvPlayer.muteButton = mutebtn;
FlvPlayer.backButton = backbtn;
FlvPlayer.forwardButton = forbtn;
FlvPlayer.seekBar = seekbar;
FlvPlayer.bufferingBar = bufbar;
trace("FLV Player Initialized");
trace("handle mac: " + handle_mc.handleGraphic);
lightSkin_array = [playpausebtn, backbtn, forbtn, seekbar.progress_mc, mutebtn];
colorSkin_array = [videoFrame, timeStampHolder, handle_mc.handleGraphic];
darkSkin_array = [uiBar];
lightSkinValue_array = [12572913, 13760459, 16770193, 16772591, 16239326, 16777215];
colorSkinValue_array = [2781624, 1294592, 14200884, 14549508, 14505616, 9680586];
darkSkinValue_array = [858418, 5378, 1380096, 2294016, 2294295, 2239282];
skinUI = function (targetArray, skinValues) {
i = 0;
while (i < targetArray.length) {
l = targetArray[i];
var _local2 = new flash.geom.ColorTransform();
_local2.rgb = skinValues[this.id];
var _local3 = new flash.geom.Transform(l);
_local3.colorTransform = _local2;
i++;
}
};
flvButton_array = [playpausebtn.pause_mc, playpausebtn.play_mc, backbtn, forbtn, mutebtn.off_mc, mutebtn.on_mc];
i = 0;
while (i < flvButton_array.length) {
l = flvButton_array[i];
l.onRollOver = function () {
this.gotoAndPlay("over");
};
l.onRollOut = function () {
this.gotoAndPlay("out");
};
l.onReleaseOutside = l.onRollOut;
i++;
}
var listenerObject = new Object();
listenerObject.pref = this;
listenerObject.playheadUpdate = function (eventObject) {
currentTime = convertToTimeStamp(eventObject.playheadTime);
if ((FlvPlayer.flvTime != "") && (FlvPlayer.flvTime != undefined)) {
timeStamp = (currentTime + " /") + FlvPlayer.flvTime;
} else {
timeStamp = currentTime;
}
timeStampHolder.timeLabel.text = timeStamp;
trace(eventObject.playheadTime);
};
FlvPlayer.addEventListener("playheadUpdate", listenerObject);
listenerObject.ready = function (eventObject) {
trace("The FLV is ready. Push Play to start playing");
};
FlvPlayer.addEventListener("ready", listenerObject);
listenerObject.playing = function (eventObject) {
_global.setFLVHandleColor(this.pref.id);
trace("now playing");
};
FlvPlayer.addEventListener("playing", listenerObject);
Instance of Symbol 496 MovieClip "seekbar" in Symbol 530 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_visible = true;
}
Instance of Symbol 518 MovieClip [FLVPlayback] "FlvPlayer" in Symbol 530 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
autoPlay = true;
autoRewind = true;
autoSize = true;
bufferTime = 0.6;
contentPath = "";
isLive = false;
maintainAspectRatio = true;
skin = "";
skinAutoHide = false;
totalTime = 0;
volume = 100;
}
Symbol 545 MovieClip Frame 1
stop();
Symbol 545 MovieClip Frame 7
stop();
Symbol 548 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 7
stop();
Symbol 575 MovieClip Frame 1
stop();
this.comboBase.controlStroke._visible = true;
Symbol 575 MovieClip Frame 7
stop();
Symbol 575 MovieClip Frame 12
gotoAndStop ("off");
Symbol 578 MovieClip Frame 1
stop();
this.comboBase.controlStroke._visible = true;
Symbol 578 MovieClip Frame 7
stop();
Symbol 578 MovieClip Frame 12
gotoAndStop ("off");
Symbol 580 MovieClip Frame 1
stop();
this.comboBase.controlStroke._visible = true;
Symbol 580 MovieClip Frame 7
stop();
Symbol 580 MovieClip Frame 12
gotoAndStop ("off");
Symbol 582 MovieClip Frame 1
stop();
this.comboBase.controlStroke._visible = true;
Symbol 582 MovieClip Frame 7
stop();
Symbol 582 MovieClip Frame 12
gotoAndStop ("off");
Symbol 586 MovieClip Frame 2
function flush() {
ContactForm.input_fullName.text = (ContactForm.input_companyName.text = (ContactForm.input_telephoneNumber.text = (ContactForm.input_emailAddress.text = (ContactForm.input_message.text = ""))));
}
function setForSection(val) {
id = val;
skinUI(lightSkin_array, lightSkinValue_array);
skinUI(overlaySkin_array, overlaySkinValue_array);
skinUI(colorSkin_array, colorSkinValue_array);
skinUI(darkSkin_array, darkSkinValue_array);
}
ContactForm = new Object();
stop();
combobtn._visible = false;
ContactForm.mc_headerMessage = this.formText.contactHeader_mc.format_contactHeader;
ContactForm.mc_formTitle = this.format_formTitle;
ContactForm.mc_departmentTitle = this.formText.format_departmentTitle;
ContactForm.mc_emailTitle = this.formText.format_emailTitle;
ContactForm.mc_comboLabel = this.comboControl.format_comboLabel;
ContactForm.mc_comboSelectLabel1 = this.comboDropHolder.bmc1.format_comboLabel;
ContactForm.mc_comboSelectLabel2 = this.comboDropHolder.bmc2.format_comboLabel;
ContactForm.mc_comboSelectLabel3 = this.comboDropHolder.bmc3.format_comboLabel;
ContactForm.mc_titleFullName = this.formText.format_titleFullName;
ContactForm.mc_titleCompanyName = this.formText.format_titleCompanyName;
ContactForm.mc_titleTelephoneNumber = this.formText.format_titleTelephoneNumber;
ContactForm.mc_titleEmailAddress = this.formText.format_titleEmailAddress;
ContactForm.mc_titleMessage = this.formText.format_titleMessage;
ContactForm.mc_titleRequired = this.formText.format_required;
ContactForm.mc_emailButton = this.controlButton_email.format_emailLabel;
ContactForm.mc_sendButton = this.controlButton_send.format_label;
ContactForm.input_fullName = this.format_inputFullName;
ContactForm.input_companyName = this.format_inputCompanyName;
ContactForm.input_telephoneNumber = this.format_inputTelephoneNumber;
ContactForm.input_emailAddress = this.format_inputEmailAddress;
ContactForm.input_message = this.format_inputMessage;
setConfig = function (nodes) {
var _local4 = 1;
while (_local4 <= nodes.childNodes[0].childNodes.length) {
ContactForm["email" + _local4] = nodes.childNodes[1].childNodes[_local4 - 1].firstChild.nodeValue;
ContactForm["comboSelectLabel" + _local4] = nodes.childNodes[0].childNodes[_local4 - 1].firstChild.nodeValue;
ContactForm["mc_comboSelectLabel" + _local4].f = nodes.childNodes[0].childNodes[_local4 - 1].attributes.f;
_local4++;
}
ContactForm.headerMessage = nodes.childNodes[2].firstChild.nodeValue;
ContactForm.formTitle = nodes.childNodes[3].firstChild.nodeValue;
ContactForm.departmentTitle = nodes.childNodes[4].firstChild.nodeValue;
ContactForm.emailTitle = nodes.childNodes[5].firstChild.nodeValue;
ContactForm.comboLabel = nodes.childNodes[6].firstChild.nodeValue;
ContactForm.titleFullName = nodes.childNodes[7].firstChild.nodeValue;
ContactForm.titleCompanyName = nodes.childNodes[8].firstChild.nodeValue;
ContactForm.titleTelephoneNumber = nodes.childNodes[9].firstChild.nodeValue;
ContactForm.titleEmailAddress = nodes.childNodes[10].firstChild.nodeValue;
ContactForm.titleMessage = nodes.childNodes[11].firstChild.nodeValue;
ContactForm.titleRequired = nodes.childNodes[12].firstChild.nodeValue;
ContactForm.emailButton = nodes.childNodes[13].firstChild.nodeValue;
ContactForm.sendButton = nodes.childNodes[14].firstChild.nodeValue;
ContactForm.errorFullName = nodes.childNodes[15].firstChild.nodeValue;
ContactForm.errorCompanyName = nodes.childNodes[16].firstChild.nodeValue;
ContactForm.errorTelephoneNumber = nodes.childNodes[17].firstChild.nodeValue;
ContactForm.errorEmailAddress = nodes.childNodes[18].firstChild.nodeValue;
ContactForm.errorMessage = nodes.childNodes[19].firstChild.nodeValue;
ContactForm.emailTo = ContactForm.email1;
ContactForm.mc_headerMessage.text = ContactForm.headerMessage;
ContactForm.mc_formTitle.text = ContactForm.formTitle;
ContactForm.mc_departmentTitle.text = ContactForm.departmentTitle;
ContactForm.mc_emailTitle.text = ContactForm.emailTitle;
ContactForm.mc_comboLabel.text = ContactForm.comboLabel;
ContactForm.mc_comboSelectLabel1.text = ContactForm.comboSelectLabel1;
ContactForm.mc_comboSelectLabel2.text = ContactForm.comboSelectLabel2;
ContactForm.mc_comboSelectLabel3.text = ContactForm.comboSelectLabel3;
ContactForm.mc_titleFullName.text = ContactForm.titleFullName;
ContactForm.mc_titleCompanyName.text = ContactForm.titleCompanyName;
ContactForm.mc_titleTelephoneNumber.text = ContactForm.titleTelephoneNumber;
ContactForm.mc_titleEmailAddress.text = ContactForm.titleEmailAddress;
ContactForm.mc_titleMessage.text = ContactForm.titleMessage;
ContactForm.mc_titleRequired.text = ContactForm.titleRequired;
ContactForm.mc_emailButton.text = ContactForm.comboLabel + ContactForm.emailButton;
ContactForm.mc_sendButton.text = ContactForm.sendButton;
ContactForm.mc_headerMessage.f = nodes.childNodes[2].attributes.f;
ContactForm.mc_formTitle.f = nodes.childNodes[3].attributes.f;
ContactForm.mc_departmentTitle.f = nodes.childNodes[4].attributes.f;
ContactForm.mc_emailTitle.f = nodes.childNodes[5].attributes.f;
ContactForm.mc_comboLabel.f = nodes.childNodes[6].attributes.f;
ContactForm.mc_comboSelectLabel1.f = "1";
ContactForm.mc_comboSelectLabel2.f = "1";
ContactForm.mc_comboSelectLabel3.f = "1";
ContactForm.mc_titleFullName.f = nodes.childNodes[7].attributes.f;
ContactForm.mc_titleCompanyName.f = nodes.childNodes[8].attributes.f;
ContactForm.mc_titleTelephoneNumber.f = nodes.childNodes[9].attributes.f;
ContactForm.mc_titleEmailAddress.f = nodes.childNodes[10].attributes.f;
ContactForm.mc_titleMessage.f = nodes.childNodes[11].attributes.f;
ContactForm.mc_titleRequired.f = nodes.childNodes[12].attributes.f;
ContactForm.mc_emailButton.f = nodes.childNodes[13].attributes.f;
ContactForm.mc_sendButton.f = nodes.childNodes[14].attributes.f;
_global.FH.applyAllFonts(this);
};
lightSkin_array = [dottedLine];
overlaySkin_array = [starfieldOverlay_mc];
colorSkin_array = [contactBase_mc, formText, comboControl.comboBase.controlStroke, inputControl_fullName.controlStroke, inputControl_companyName.controlStroke, inputControl_telephoneNumber.controlStroke, inputControl_emailAddress.controlStroke, inputAreaControl_message.controlStroke];
darkSkin_array = [controlButton_email.controlHolder.controlBase, controlButton_send.controlHolder.controlBase, comboDropHolder.comboDrop, comboControl.comboBase.controlBase, inputControl_fullName.controlBase, inputControl_companyName.controlBase, inputControl_telephoneNumber.controlBase, inputControl_emailAddress.controlBase, inputAreaControl_message.controlBase];
lightSkinValue_array = [12572913, 13760459, 16770193, 16772591, 16239326, 16777215];
overlaySkinValue_array = [2703215, 212486, 11173902, 7602176, 5180982, 6846097];
colorSkinValue_array = [2781624, 1294592, 14200884, 14549508, 14505616, 9680586];
darkSkinValue_array = [858418, 5378, 1380096, 2294016, 2294295, 2239282];
skinUI = function (targetArray, skinValues) {
i = 0;
while (i < targetArray.length) {
l = targetArray[i];
var _local1 = new flash.geom.ColorTransform();
_local1.rgb = skinValues[id];
var _local2 = new flash.geom.Transform(l);
_local2.colorTransform = _local1;
i++;
}
};
comboControl.onRollOver = function () {
this.gotoAndPlay("over");
};
comboControl.onRollOut = function () {
this.gotoAndPlay("out");
};
comboControl.onReleaseOutside = comboControl.onRollOut;
comboControl.onRelease = function () {
combobtn._visible = true;
this._parent.comboDropHolder._visible = true;
Mouse.addListener(comboDrop_listener);
};
comboDropHolder._visible = false;
comboDropHolder.comboDrop_sales.onRollOver = function () {
this.gotoAndPlay("over");
};
comboDropHolder.comboDrop_sales.onRollOut = function () {
this.gotoAndPlay("out");
};
comboDropHolder.comboDrop_sales.onReleaseOutside = comboDropHolder.comboDrop_sales.onRollOut;
comboDropHolder.comboDrop_sales.onRelease = function () {
this._parent._parent.combobtn._visible = false;
this._parent._visible = false;
this._parent._parent.comboControl.format_comboLabel.text = ContactForm.comboLabel;
ContactForm.emailTo = ContactForm.email1;
this._parent._parent.controlButton_email.format_emailLabel.text = ContactForm.comboSelectLabel1 + ContactForm.emailButton;
};
comboDropHolder.comboDrop_info.onRollOver = function () {
this.gotoAndPlay("over");
};
comboDropHolder.comboDrop_info.onRollOut = function () {
this.gotoAndPlay("out");
};
comboDropHolder.comboDrop_info.onReleaseOutside = comboDropHolder.comboDrop_info.onRollOut;
comboDropHolder.comboDrop_info.onRelease = function () {
this._parent._parent.combobtn._visible = false;
this._parent._visible = false;
this._parent._parent.comboControl.format_comboLabel.text = ContactForm.comboSelectLabel2;
ContactForm.emailTo = ContactForm.email2;
this._parent._parent.controlButton_email.format_emailLabel.text = ContactForm.comboSelectLabel2 + ContactForm.emailButton;
};
comboDropHolder.comboDrop_jobs.onRollOver = function () {
this.gotoAndPlay("over");
};
comboDropHolder.comboDrop_jobs.onRollOut = function () {
this.gotoAndPlay("out");
};
comboDropHolder.comboDrop_jobs.onReleaseOutside = comboDropHolder.comboDrop_jobs.onRollOut;
comboDropHolder.comboDrop_jobs.onRelease = function () {
this._parent._parent.combobtn._visible = false;
this._parent._visible = false;
this._parent._parent.comboControl.format_comboLabel.text = ContactForm.comboSelectLabel3;
ContactForm.emailTo = ContactForm.email3;
this._parent._parent.controlButton_email.format_emailLabel.text = ContactForm.comboSelectLabel3 + ContactForm.emailButton;
trace(this._parent._parent.controlButton_email);
};
combobtn.onRollOver = function () {
this._visible = false;
comboDropHolder._visible = false;
};
controlButton_email.onRollOver = function () {
this.gotoAndPlay("over");
};
controlButton_email.onRollOut = function () {
this.gotoAndPlay("out");
};
controlButton_email.onReleaseOutside = controlButton_email.onRollOut;
controlButton_email.onRelease = function () {
mailtoString = "mailto:" + ContactForm.emailTo;
trace("email to - " + mailtoString);
getURL (mailtoString);
};
format_inputFullName.onSetFocus = function () {
this._parent.inputControl_fullName._alpha = 80;
if (this.text == ContactForm.errorFullName) {
this.text = "";
}
};
format_inputFullName.onKillFocus = function () {
this._parent.inputControl_fullName._alpha = 50;
};
format_inputFullName.tabIndex = 1;
format_inputCompanyName.onSetFocus = function () {
this._parent.inputControl_companyName._alpha = 80;
if (this.text == ContactForm.errorCompanyName) {
this.text = "";
}
};
format_inputCompanyName.onKillFocus = function () {
this._parent.inputControl_companyName._alpha = 50;
};
format_inputCompanyName.tabIndex = 2;
format_inputTelephoneNumber.onSetFocus = function () {
this._parent.inputControl_telephoneNumber._alpha = 80;
if (this.text == ContactForm.errorTelephoneNumber) {
this.text = "";
}
};
format_inputTelephoneNumber.onKillFocus = function () {
this._parent.inputControl_telephoneNumber._alpha = 50;
};
format_inputTelephoneNumber.tabIndex = 3;
format_inputEmailAddress.onSetFocus = function () {
this._parent.inputControl_emailAddress._alpha = 80;
if (this.text == ContactForm.errorEmailAddress) {
this.text = "";
}
};
format_inputEmailAddress.onKillFocus = function () {
this._parent.inputControl_emailAddress._alpha = 50;
};
format_inputEmailAddress.tabIndex = 4;
format_inputMessage.onSetFocus = function () {
this._parent.inputAreaControl_message._alpha = 80;
if (this.text == ContactForm.errorMessage) {
this.text = "";
}
};
format_inputMessage.onKillFocus = function () {
this._parent.inputAreaControl_message._alpha = 50;
};
format_inputMessage.tabIndex = 5;
controlButton_send.onRollOver = function () {
this.gotoAndPlay("over");
};
controlButton_send.onRollOut = function () {
this.gotoAndPlay("out");
};
controlButton_send.onReleaseOutside = controlButton_send.onRollOut;
controlButton_send.tabIndex = 6;
controlButton_send.onSetFocus = controlButton_send.onRollOver;
controlButton_send.onKillFocus = controlButton_send.onRollOut;
controlButton_send.onRelease = function () {
ContactForm.validateForm();
};
ContactForm.validateForm = function () {
fullName_valid = validateDefault(format_inputFullName, ContactForm.errorFullName);
companyName_valid = validateDefault(format_inputCompanyName, ContactForm.errorCompanyName);
telephoneNumber_valid = validateDefault(format_inputTelephoneNumber, ContactForm.errorTelephoneNumber);
emailAddress_valid = validateEmail(format_inputEmailAddress, ContactForm.errorEmailAddress);
inputMessage_valid = validateDefault(format_inputMessage, ContactForm.errorMessage);
if ((((fullName_valid && (companyName_valid)) && (telephoneNumber_valid)) && (emailAddress_valid)) && (inputMessage_valid)) {
ContactForm.sendForm();
}
};
ContactForm.sendForm = function () {
var _local3 = new LoadVars();
_local3.sendto = ContactForm.emailTo;
_local3.name = format_inputFullName.text;
_local3.company = format_inputCompanyName.text;
_local3.phone = format_inputTelephoneNumber.text;
_local3.email = format_inputEmailAddress.text;
_local3.message = format_inputMessage.text;
_local3.sendAndLoad("sendMail.php", _local3, "POST");
_local3.onLoad = function () {
format_inputFullName.text = "";
format_inputCompanyName.text = "";
format_inputTelephoneNumber.text = "";
format_inputEmailAddress.text = "";
format_inputMessage.text = "";
if (this.success == "1") {
_global.CSHELL.forcehide();
}
};
};
stringContains = function (target, arg) {
return(target.indexOf(arg) != -1);
};
validateEmail = function (target, msg) {
if (((target.length >= 7) && (stringContains(this, "@"))) && (stringContains(this, "."))) {
trace("valid");
return(true);
}
target.text = msg;
trace("invalid");
return(false);
};
validateDefault = function (target, msg) {
if ((target.length >= 1) && (!(target.text === msg))) {
return(true);
}
target.text = msg;
return(false);
};
validatePhone = function (target, msg) {
if ((target.length >= 10) && (!(target.text === msg))) {
return(true);
}
target.text = msg;
return(false);
};
Symbol 590 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 10
stop();
Symbol 598 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 7
stop();
Symbol 604 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 7
stop();
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 2
stop();
Symbol 625 MovieClip Frame 3
stop();
Symbol 625 MovieClip Frame 4
stop();
Symbol 625 MovieClip Frame 5
stop();
Symbol 625 MovieClip Frame 6
stop();
Symbol 627 MovieClip Frame 1
function setData(wpXML) {
this.colorText_mc.format_wallpaperTitle.text = ("\"" + wpXML.attributes.name.toUpperCase()) + "\"";
this.colorText_mc.format_wallpaperTitle.f = "3";
this.downloadButton1.format_sizeLabel.text = wpXML.childNodes[0].attributes.size;
this.downloadButton1.format_sizeLabel.f = "1";
this.downloadButton2.format_sizeLabel.text = wpXML.childNodes[1].attributes.size;
this.downloadButton2.format_sizeLabel.f = "1";
this.downloadButton3.format_sizeLabel.text = wpXML.childNodes[2].attributes.size;
this.downloadButton3.format_sizeLabel.f = "1";
this.downloadButton4.format_sizeLabel.text = wpXML.childNodes[3].attributes.size;
this.downloadButton4.format_sizeLabel.f = "1";
this.wallpaperSrc1 = wpXML.childNodes[0].attributes.src;
this.wallpaperSrc2 = wpXML.childNodes[1].attributes.src;
this.wallpaperSrc3 = wpXML.childNodes[2].attributes.src;
this.wallpaperSrc4 = wpXML.childNodes[3].attributes.src;
_global.FH.applyAllFonts(this);
this.loadPreview(wpXML.attributes.wppreview);
}
function setForSection(val) {
id = val;
skinUI(lightSkin_array, lightSkinValue_array);
skinUI(colorSkin_array, colorSkinValue_array);
skinUI(darkSkin_array, darkSkinValue_array);
stripes_mc.gotoAndStop(id + 1);
}
var lightSkin_array = [downloadButton1.arrowIconHolder_mc.arrowIcon_mc, downloadButton2.arrowIconHolder_mc.arrowIcon_mc, downloadButton3.arrowIconHolder_mc.arrowIcon_mc, downloadButton4.arrowIconHolder_mc.arrowIcon_mc];
colorSkin_array = [downloadButton1.sizeLabelHolder_mc.sizeLabel_mc, downloadButton2.sizeLabelHolder_mc.sizeLabel_mc, downloadButton3.sizeLabelHolder_mc.sizeLabel_mc, downloadButton4.sizeLabelHolder_mc.sizeLabel_mc, colorText_mc, wallpaperThumbStroke_mc];
darkSkin_array = [downloadButton1.buttonBaseHolder_mc.buttonBase_mc, downloadButton2.buttonBaseHolder_mc.buttonBase_mc, downloadButton3.buttonBaseHolder_mc.buttonBase_mc, downloadButton4.buttonBaseHolder_mc.buttonBase_mc];
lightSkinValue_array = [12572913, 13760459, 16770193, 16772591, 16239326, 16777215];
colorSkinValue_array = [2781624, 1294592, 14200884, 14549508, 14505616, 9680586];
darkSkinValue_array = [858418, 5378, 1380096, 2294016, 2294295, 2239282];
this.setConfig = function (wpXML) {
trace(("WALLPAPER CONFIG : \n" + wpXML.childNodes[0]) + "\n\n");
this.colorText_mc.format_pc.text = wpXML.childNodes[0].firstChild.nodeValue;
this.colorText_mc.format_mac.text = wpXML.childNodes[1].firstChild.nodeValue;
this.format_downloadTitle.text = wpXML.childNodes[2].firstChild.nodeValue;
this.format_pcInstructions.text = wpXML.childNodes[3].firstChild.nodeValue;
this.format_macInstructions.text = wpXML.childNodes[4].firstChild.nodeValue;
this.format_resolutionsTitle.text = wpXML.childNodes[5].firstChild.nodeValue;
this.downloadButton1.format_downloadLabel.text = wpXML.childNodes[6].firstChild.nodeValue;
this.downloadButton2.format_downloadLabel.text = wpXML.childNodes[6].firstChild.nodeValue;
this.downloadButton3.format_downloadLabel.text = wpXML.childNodes[6].firstChild.nodeValue;
this.downloadButton4.format_downloadLabel.text = wpXML.childNodes[6].firstChild.nodeValue;
this.colorText_mc.format_pc.f = wpXML.childNodes[0].attributes.f;
this.colorText_mc.format_mac.f = wpXML.childNodes[1].attributes.f;
this.format_downloadTitle.f = wpXML.childNodes[2].attributes.f;
this.format_pcInstructions.f = wpXML.childNodes[3].attributes.f;
this.format_macInstructions.f = wpXML.childNodes[4].attributes.f;
this.format_resolutionsTitle.f = wpXML.childNodes[5].attributes.f;
this.downloadButton1.format_downloadLabel.f = wpXML.childNodes[6].attributes.f;
this.downloadButton2.format_downloadLabel.f = wpXML.childNodes[6].attributes.f;
this.downloadButton3.format_downloadLabel.f = wpXML.childNodes[6].attributes.f;
this.downloadButton4.format_downloadLabel.f = wpXML.childNodes[6].attributes.f;
_global.FH.applyAllFonts(this);
};
this.loadPreview = function (src) {
var _local2 = new Object();
_local2.onLoadStart = function (target_mc) {
loadingClip_mc.gotoAndPlay("in");
};
_local2.onLoadProgress = function (target_mc, bytesLoaded, bytesTotal) {
trace((((target_mc + ".onLoadProgress with ") + bytesLoaded) + " bytes of ") + bytesTotal);
};
_local2.onLoadComplete = function (target_mc, httpStatus) {
loadingClip_mc.gotoAndStop("off");
};
_local2.onLoadInit = function (target_mc) {
};
var _local3 = new MovieClipLoader();
_local3.addListener(_local2);
this.imageHolder_mc.createEmptyMovieClip("mc", this.imageHolder_mc.getNextHighestDepth());
_local3.loadClip(src, this.imageHolder_mc.mc);
};
skinUI = function (targetArray, skinValues) {
i = 0;
while (i < targetArray.length) {
l = targetArray[i];
var _local1 = new flash.geom.ColorTransform();
_local1.rgb = skinValues[id];
var _local2 = new flash.geom.Transform(l);
_local2.colorTransform = _local1;
i++;
}
};
downloadButton1.onRollOver = function () {
this.gotoAndPlay("over");
};
downloadButton1.onRollOut = function () {
this.gotoAndPlay("out");
};
downloadButton1.onReleaseOutside = downloadButton1.onRollOut;
downloadButton1.onRelease = function () {
getURL (this._parent.wallpaperSrc1, "_blank");
};
downloadButton2.onRollOver = function () {
this.gotoAndPlay("over");
};
downloadButton2.onRollOut = function () {
this.gotoAndPlay("out");
};
downloadButton2.onReleaseOutside = downloadButton2.onRollOut;
downloadButton2.onRelease = function () {
getURL (this._parent.wallpaperSrc2, "_blank");
};
downloadButton3.onRollOver = function () {
this.gotoAndPlay("over");
};
downloadButton3.onRollOut = function () {
this.gotoAndPlay("out");
};
downloadButton3.onReleaseOutside = downloadButton3.onRollOut;
downloadButton3.onRelease = function () {
getURL (this._parent.wallpaperSrc3, "_blank");
};
downloadButton4.onRollOver = function () {
this.gotoAndPlay("over");
};
downloadButton4.onRollOut = function () {
this.gotoAndPlay("out");
};
downloadButton4.onReleaseOutside = downloadButton4.onRollOut;
downloadButton4.onRelease = function () {
getURL (this._parent.wallpaperSrc4, "_blank");
};
Symbol 823 MovieClip [mc-crdz] Frame 1
#initclip 110
Object.registerClass("mc-crdz", framework.floatingcontrols.cCredz);
#endinitclip
stop();
Symbol 824 MovieClip Frame 1
stop();
Symbol 824 MovieClip Frame 5
stop();
Symbol 824 MovieClip Frame 10
stop();
Symbol 824 MovieClip Frame 15
stop();
Symbol 824 MovieClip Frame 20
stop();
Symbol 824 MovieClip Frame 25
stop();
Symbol 833 MovieClip [mc-PrefsNavItem] Frame 1
#initclip 111
Object.registerClass("mc-PrefsNavItem", base.NavItem);
#endinitclip
stop();
Symbol 833 MovieClip [mc-PrefsNavItem] Frame 25
stop();
Symbol 833 MovieClip [mc-PrefsNavItem] Frame 51
stop();
Symbol 843 MovieClip Frame 1
stop();
Symbol 851 MovieClip [mc-PrefLanguages] Frame 1
#initclip 112
Object.registerClass("mc-PrefLanguages", framework.floatingcontrols.PrefLanguages);
#endinitclip
Symbol 856 MovieClip [mc-PrefAudio] Frame 1
#initclip 113
Object.registerClass("mc-PrefAudio", framework.floatingcontrols.PrefAudio);
#endinitclip
Symbol 861 MovieClip [mc-PrefTopNavigation] Frame 1
#initclip 114
Object.registerClass("mc-PrefTopNavigation", framework.floatingcontrols.PrefTopNav);
#endinitclip
Symbol 874 MovieClip [mc-PrefSave] Frame 1
#initclip 115
Object.registerClass("mc-PrefSave", framework.floatingcontrols.PrefSave);
#endinitclip
Symbol 885 MovieClip Frame 1
stop();
Symbol 899 MovieClip [mc-cPreferences] Frame 1
#initclip 116
Object.registerClass("mc-cPreferences", framework.floatingcontrols.cPreferences);
#endinitclip
_visible = false;
Symbol 899 MovieClip [mc-cPreferences] Frame 5
stop();
Symbol 899 MovieClip [mc-cPreferences] Frame 23
stop();
Symbol 899 MovieClip [mc-cPreferences] Frame 38
stop();
Symbol 899 MovieClip [mc-cPreferences] Frame 53
stop();
Symbol 899 MovieClip [mc-cPreferences] Frame 69
stop();
Symbol 900 MovieClip [mc-componentshell] Frame 1
#initclip 117
Object.registerClass("mc-componentshell", framework.ComponentShell);
#endinitclip
_visible = false;
Symbol 903 MovieClip Frame 36
stop();
Symbol 904 MovieClip Frame 2
stop();
Symbol 904 MovieClip Frame 14
stop();
Symbol 919 MovieClip [Mc-AudioSoundtrack] Frame 1
#initclip 119
Object.registerClass("Mc-AudioSoundtrack", framework.SoundControl);
#endinitclip
Symbol 919 MovieClip [Mc-AudioSoundtrack] Frame 11
setupButtons();
Symbol 919 MovieClip [Mc-AudioSoundtrack] Frame 18
stop();
Symbol 919 MovieClip [Mc-AudioSoundtrack] Frame 39
stop();
Symbol 919 MovieClip [Mc-AudioSoundtrack] Frame 59
stop();
Symbol 919 MovieClip [Mc-AudioSoundtrack] Frame 79
stop();
Symbol 919 MovieClip [Mc-AudioSoundtrack] Frame 99
stop();
Symbol 919 MovieClip [Mc-AudioSoundtrack] Frame 119
stop();
Symbol 919 MovieClip [Mc-AudioSoundtrack] Frame 140
stop();