Frame 1
function getWords_Result(result) {
var _local1 = result;
var _local2 = _root;
str_exactNaughtyWords = _local1.getItemAt(0).exactNaughtyWords.toString();
str_searchNaughtyWords = _local1.getItemAt(0).searchNaughtyWords.toString();
str_exceptionNaughtyWordssplit = _local1.getItemAt(0).exceptionNaughtyWordssplit.toString();
str_exceptionWordssplit = _local1.getItemAt(0).exceptionWordssplit.toString();
String.exactNaughtyWords = str_exactNaughtyWords.split(",");
String.searchNaughtyWords = str_searchNaughtyWords.split(",");
String.exceptionNaughtyWordssplit = str_exceptionNaughtyWordssplit.split(",");
String.exceptionWordssplit = str_exceptionWordssplit.split(",");
trace("exactNaughtyWords = " + String.exactNaughtyWords);
trace("searchNaughtyWords = " + String.searchNaughtyWords);
trace("exceptionNaughtyWordssplit = " + String.exceptionNaughtyWordssplit);
trace("exceptionWordssplit = " + String.exceptionWordssplit);
_local2.exactNaughtyWords = String.exactNaughtyWords;
_local2.searchNaughtyWords = String.searchNaughtyWords;
_local2.exceptionNaughtyWordssplit = String.exceptionNaughtyWordssplit;
_local2.exceptionWordssplit = String.exceptionWordssplit;
}
function activatePalette(paletteObj, props) {
CENTCOM.activatePalette(paletteObj, props);
}
function execute() {
CENTCOM.execute();
}
function finishEditing() {
CENTCOM.saveAs("myMakeover");
gotoAndStop ("done");
}
function undo() {
CENTCOM.unexecute();
}
function showDialogue(label) {
dialogue_mc.open(label);
showInterface(false);
}
function hideDialogue() {
dialogue_mc.close();
showInterface(true);
}
function showInterface(bool) {
var _local1 = bool;
i = 0;
while (i < interface.length) {
interface[i]._visible = _local1;
i++;
}
}
function reset() {
CENTCOM.revert();
gotoAndPlay ("init");
}
function showCustomCursor() {
if (activeCursor != undefined) {
activeCursor.startDrag(true);
activeCursor._visible = true;
Mouse.hide();
}
}
function hideCustomCursor() {
activeCursor.stopDrag();
activeCursor._visible = false;
Mouse.show();
}
function updateCurrentPalette(propName, value) {
activePalette.setProperty(propName, value);
}
function selectStamp(stampSymbol) {
var _local1 = stampSymbol;
var _local2 = this;
if (stampSource == null) {
stampSource = _local1;
s = (currentStamper = _local2.attachMovie("FStamperSymbol", "stamper_mc", 20000));
s.setItemSymbol(_local1.getItemSymbol());
s.setStampSymbol(_local1.getStampSymbol());
s.setChangeHandler("stampClick", _local2);
s.startDrag(true);
stampSource._visible = false;
stampInt = setInterval(_local2, "screenRefresh", 50);
updateAfterEvent();
}
}
function stampClick() {
if (palettes_mc.hitTest(_root._xmouse, _root._ymouse, false)) {
currentStamper.removeMovieClip();
stampSource._visible = true;
currentStamper = null;
stampSource = null;
clearInterval(stampInt);
} else {
execute();
}
}
function navRelease(id) {
hideDialogue();
switch (id) {
case 1 :
activatePalette(PSkin, ["color"]);
return;
case 2 :
activatePalette(PHair, ["color"]);
return;
case 3 :
activatePalette(PEyes, ["color"]);
return;
case 4 :
activatePalette(PLips, ["color", "lipgloss"]);
return;
case 5 :
activatePalette(PTops, ["style"]);
return;
case 6 :
activatePalette(PStamps, ["flowers"]);
return;
case 7 :
activatePalette(PSunglasses, ["style"]);
return;
default :
return(undefined);
}
}
function onSaveClick() {
showDialogue("save");
}
function onLoadClick() {
showDialogue("load");
}
function getSaveNames() {
return(CENTCOM.getSaveNames());
}
function saveMakeover(name) {
CENTCOM.saveAs(name);
}
function loadMakeover(name) {
CENTCOM.loadMakeover(name);
}
function setMagTitle(idx, label) {
CENTCOM.setMagTitle(idx, label);
}
function screenRefresh() {
updateAfterEvent();
}
function onActivatePalette(paletteObj, props) {
var _local1 = paletteObj;
var _local2 = this;
activePalette = _local1;
switch (_local1) {
case PSkin :
activeCursor = _local2.cursorSkin_mc;
break;
case PHair :
activeCursor = _local2.cursorHair_mc;
break;
case PLips :
activeCursor = _local2.cursorLips_mc;
break;
case PEyes :
if (props[0] == "color") {
activeCursor = _local2.cursorEyeColor_mc;
} else if (props[0] == "shadow") {
activeCursor = _local2.cursorEyeShadow_mc;
} else {
activeCursor = _local2.cursorEyeLashes_mc;
}
break;
default :
activeCursor = null;
if (!debugMode) {
break;
}
trace("onActivatePalette -> no custom cursor is associated with this palette.");
}
i = 1;
while (i <= 5) {
if (i == _local1.getProperty("id")) {
navAnim_mc.gotoAndStop("nav" + i);
break;
}
i++;
}
palettes_mc.gotoAndStop(_local1.getProperty("name"));
}
_global.EventBroadcaster = function () {
this._listeners = new Array();
};
EventBroadcaster.prototype.addListener = function (obj) {
this.removeListener(obj);
this._listeners.push(obj);
return(true);
};
EventBroadcaster.prototype.removeListener = function (obj) {
var _local3 = obj;
var _local2 = this._listeners;
var _local1 = _local2.length;
while (_local1--) {
if (_local2[_local1] == _local3) {
_local2.splice(_local1, 1);
return(true);
}
}
return(false);
};
EventBroadcaster.prototype.broadcastMessage = function () {
var eventName = arguments.shift();
var _local2 = this._listeners;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1][eventName].apply(_local2[_local1], arguments);
_local1++;
}
};
ASSetPropFlags(EventBroadcaster.prototype, ["addListener", "removeListener", "broadcastMessage"], 1);
Object.prototype.compare = function (obj) {
var _local1 = this;
var _local2 = obj;
for (i in _local1) {
if (typeof(_local1[i]) == "object") {
bool = _local1[i].compare(_local2[i]);
if (bool == false) {
return(false);
}
}
if (_local1[i] != _local2[i]) {
return(false);
}
}
return(true);
};
Object.prototype.parseToXML = function (tagName) {
var _local1 = this;
var _local3 = ((tagName == undefined) ? "ITEM" : (tagName));
var _local2 = new XML(("<" + _local3) + "/>");
_local2.ignoreWhite = true;
for (j in _local1) {
if ((typeof(_local1[j]) == "object") && (!(_local1[j] instanceof Array))) {
_local2.firstChild.appendChild(_local1[j].parseToXML(String(j)));
} else {
attribName = ((String(Number(j)) == "NaN") ? (j) : ("item" + j));
_local2.firstChild.attributes[attribName] = _local1[j].toString();
}
}
return(_local2);
};
ASSetPropFlags(Object.prototype, ["compare", "parseToXML"], 1);
_global.CentralCommand = function () {
this.init.apply(this, arguments);
};
CentralCommand.prototype = new EventBroadcaster();
CentralCommand.prototype.init = function (soName) {
var _local1 = this;
_local1._listeners = new Array();
_local1.commandObjects = new Array();
_local1.commandIndex = 0;
_local1.soName = soName;
_local1.so = SharedObject.getLocal(soName);
_local1.so.data.document = new Object();
_local1.document = _local1.so.data.document;
_local1.document.items = new Object();
_local1.document.palettes = new Array();
_local1.document.magTitles = new Array(0, 0, 0);
_local1.activePalette = "";
};
CentralCommand.prototype.execute = function () {
var _local1 = this;
lastObj = _local1.commandObjects[_local1.commandIndex - 1];
thisObj = _local1.activePalette.returnProperties();
if (lastObj[1].compare(thisObj) == true) {
return(false);
}
_local1.activePalette.execute();
if (_local1.activePalette.reversible) {
_local1.commandObjects[_local1.commandIndex] = [_local1.activePalette, thisObj];
_local1.commandObjects.splice(++_local1.commandIndex);
return(true);
}
return(false);
};
CentralCommand.prototype.unexecute = function () {
var _local1 = this;
if ((_local1.commandIndex - 1) >= 0) {
_local1.commandObjects[--_local1.commandIndex][0].unexecute();
}
};
CentralCommand.prototype.reExecute = function () {
var _local1 = this;
if ((_local1.commandIndex + 1) < _local1.commandObjects.length) {
_local1.commandObjects[++_local1.commandIndex].execute();
}
};
CentralCommand.prototype.revert = function () {
var _local1 = this;
for (q in _local1.document.items) {
_local1.document.items[q].onRevert();
}
_local1.commandObjects = [];
_local1.commandIndex = 0;
_local1.document.items = {};
_local1.document.palettes = [];
_local1.document.magTitles = [0, 0, 0];
_local1.activePalette = "";
};
CentralCommand.prototype.addPalettes = function () {
var _local1 = arguments;
var _local2 = this;
i = 0;
while (i < _local1.length) {
if (_local2.document.palettes.search(_local1[i]) == -1) {
_local2.document.palettes.push(_local1[i]);
}
i++;
}
};
CentralCommand.prototype.activatePalette = function (paletteObj, props) {
var _local1 = this;
var _local2 = paletteObj;
var _local3 = props;
if (_local1.document.palettes.search(_local2) != -1) {
_local1.broadcastMessage("onActivatePalette", _local2, _local3);
_local1.activePalette = _local2;
i = 0;
while (i < _local1.document.palettes.length) {
p = _local1.document.palettes[i];
((p == _local2) ? (p.activate(_local3)) : (p.deactivate()));
i++;
}
return(true);
}
return(false);
};
CentralCommand.prototype.clearPalettes = function () {
this.document.palettes = [];
};
CentralCommand.prototype.addItem = function (obj, name) {
this.document.items[name] = obj;
};
CentralCommand.prototype.removeItem = function (name) {
if (this.document.items[i] != undefined) {
delete this.document.items[name];
return(true);
}
return(false);
};
CentralCommand.prototype.clearItems = function () {
this.document.items = {};
};
CentralCommand.prototype.setMagTitle = function (idx, label) {
this.so.data.saves.myMakeover.magTitles[idx] = (this.document.magTitles[idx] = label);
};
CentralCommand.prototype.getMagTitle = function (idx) {
return(this.document.magTitles[idx]);
};
CentralCommand.prototype.getSaveNames = function () {
var _local1 = this;
saveArray = new Array();
for (i in _local1.so.data.saves) {
saveArray.push(String(i));
}
return(saveArray);
};
CentralCommand.prototype.setUsername = function (uname) {
this.so.data.saves.myMakeover.username = (this.document.username = uname);
};
CentralCommand.prototype.getUsername = function () {
return(this.document.username);
};
CentralCommand.prototype.saveAs = function (saveName) {
var _local1 = this;
if (_local1.so.data.saves == undefined) {
_local1.so.data.saves = new Object();
}
var _local2 = new Object();
_local2.username = _local1.document.username;
_local2.items = {};
_local2.magTitles = [];
for (i in _local1.document.items) {
_local2.items[i] = _local1.document.items[i].getValues();
}
q = 0;
while (q < _local1.document.magTitles.length) {
_local2.magTitles[q] = _local1.document.magTitles[q];
q++;
}
_local1.so.data.saves[saveName] = _local2;
_local1.broadcastMessage("onSave", _local1);
};
CentralCommand.prototype.loadMakeover = function (saveName) {
var _local2 = this;
var _local1 = _local2.so.data.saves[saveName];
_local2.document.username = _local1.username;
for (i in _local1.items) {
_local2.document.items[i].setValues(_local1.items[i]);
}
q = 0;
while (q < _local1.magTitles.length) {
_local2.document.magTitles[q] = _local1.magTitles[q];
q++;
}
_local2.broadcastMessage("onLoad", _local2);
};
CentralCommand.prototype.returnXML = function (saveName) {
var _local2 = this.so.data.saves[saveName];
var tmpXML = new XML(("<MAKEOVER username=\"" + _local2.username) + "\" generator=\"http://www.barbie.com\" appVersion=\"2.0\"><ITEMS/><MAGTITLES/></MAKEOVER>");
tmpXML.ignoreWhite = true;
var _local3 = tmpXML.firstChild.firstChild;
for (i in _local2.items) {
var _local1 = _local2.items[i].parseToXML(String(i));
_local3.appendChild(_local1);
}
var titlesNode = _local3.nextSibling;
titlesNode.attributes.titles = _local2.magTitles.toString();
_root.feedback.text = _root.feedback.text + tmpXML;
return(tmpXML);
};
CentralCommand.prototype.loadXMLMakeover = function (xmlObj) {
if (typeof(xmlObj) == "string") {
xmlObj = new XML(xmlObj);
}
var _local3 = new Object();
_local3.items = {};
_local3.magTitles = [];
_local3.username = xmlObj.firstChild.attributes.username;
var itemsNode = xmlObj.firstChild.firstChild;
var _local1 = itemsNode.firstChild;
while (_local1 != undefined) {
currItem = (_local3.items[_local1.nodeName] = new Object());
for (i in _local1.attributes) {
if (i != "color") {
currItem[i] = _local1.attributes[i];
}
}
if (_local1.firstChild != null) {
if (_local1.nodeName == "stampControl") {
currItem = (_local3.items[_local1.nodeName] = new Array());
for (j in _local1.childNodes) {
var _local2 = new Object();
for (k in _local1.childNodes[j].attributes) {
_local2[k] = _local1.childNodes[j].attributes[k];
}
currItem.push(_local2);
}
} else {
for (j in _local1.childNodes) {
curr = (currItem[_local1.childNodes[j].nodeName] = new Object());
for (k in _local1.childNodes[j].attributes) {
curr[k] = _local1.childNodes[j].attributes[k];
}
}
}
}
_local1 = _local1.nextSibling;
}
var titlesNode = itemsNode.nextSibling;
_local3.magTitles = titlesNode.attributes.titles.split(",");
this.so.data.saves.tmpXMLSave = _local3;
this.loadMakeover("tmpXMLSave");
};
_global.Palette = function (name) {
var _local1 = this;
_local1._listeners = new Array();
_local1.oldPropertes = new Object();
_local1.properties = {name:name};
_local1.activeProperties = new Array();
_local1.reversible = true;
};
Palette.prototype = new EventBroadcaster();
Palette.prototype.addProperty = function (name, val, public) {
if (this.properties[name] == undefined) {
this.properties[name] = val;
}
};
Palette.prototype.setProperty = function (label, val) {
this.properties[label] = val;
};
Palette.prototype.getProperty = function (label) {
return(this.properties[label]);
};
Palette.prototype.setActiveProperties = function () {
var _local1 = arguments;
var _local2 = this;
_local2.activeProperties = [];
i = 0;
while (i < _local1.length) {
_local2.activeProperties.push = _local1[i];
i++;
}
};
Palette.prototype.getActiveProperties = function () {
return(this.activeProperties);
};
Palette.prototype.returnProperties = function () {
var _local1 = this;
tmpObj = new Object();
for (i in _local1.properties) {
tmpObj[i] = _local1.properties[i];
}
tmpObj.active = _local1.activeProperties;
return(tmpObj);
};
Palette.prototype.removeProperty = function (name) {
if (this.properties[name] != undefined) {
delete this.properties[name];
}
};
Palette.prototype.activate = function (props) {
var _local1 = props;
var _local2 = this;
_local2.activeProperties = [];
q = 0;
while (q < _local1.length) {
_local2.activeProperties.push(_local1[q]);
q++;
}
_local2.broadcastMessage("onActivate", _local2);
};
Palette.prototype.deactivate = function () {
this.broadcastMessage("onDeactivate", this);
};
Palette.prototype.execute = function () {
this.broadcastMessage("onExecute", this.properties);
};
Palette.prototype.unexecute = function () {
this.broadcastMessage("onUnexecute", this.properties);
};
Palette.prototype.setReversible = function (bool) {
this.reversible = bool;
};
Palette.prototype.initItems = function () {
this.broadcastMessage("onInitialize", this);
};
ASSetPropFlags(Palette.prototype, ["addProperty", "setProperty", "removeProperty", "execute", "unexecute", "setReversible"], 1);
Array.prototype.search = function (term) {
var _local2 = this;
var _local3 = term;
var _local1 = 0;
while ((_local2[_local1] != _local3) && (_local1 < _local2.length)) {
_local1++;
}
if (_local1 == _local2.length) {
_local1 = -1;
}
return(_local1);
};
ASSetPropFlags(Array, "search", 7);
Color.prototype.setPercentageTransform = function (colorObj, perc) {
var _local1 = perc;
var _local2 = colorObj;
tmpColor = new Object();
tmpColor.ra = (tmpColor.ga = (tmpColor.ba = 100 - _local1));
tmpColor.rb = _local2.rb * (_local1 / 100);
tmpColor.gb = _local2.gb * (_local1 / 100);
tmpColor.bb = _local2.bb * (_local1 / 100);
tmpColor.aa = 100;
tmpColor.ab = 0;
this.setTransform(tmpColor);
};
_global.RsDataProviderClass = function () {
this.init();
};
RsDataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
};
RsDataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {event:"updateAll"};
viewRef.modelChanged(_local1);
};
RsDataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if (_local1 < 0) {
} else {
if (_local1 < _local2.getLength()) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(value) == "object") {
_local2.items[_local1] = value;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var _local3 = {event:"addRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
}
};
RsDataProviderClass.prototype.addItem = function (value) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.addItemAt(_local1.getLength(), value);
}
};
RsDataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {event:"deleteRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
return(tmpItm);
}
return(undefined);
};
RsDataProviderClass.prototype.removeAll = function () {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items = new Array();
_local1.updateViews({event:"deleteRows", firstRow:0, lastRow:_local1.getLength() - 1});
}
};
RsDataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var _local3 = _local2.getItemID(_local1);
_local2.items[_local1] = itemObj;
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
RsDataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
RsDataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
RsDataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
RsDataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({event:"sort"});
}
};
RsDataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = this;
var _local3 = eventObj;
var _local1 = 0;
while (_local1 < _local2.views.length) {
_local2.views[_local1].modelChanged(_local3);
_local1++;
}
};
_global.RecordSet = function (columnNames) {
var _local1 = this;
if (_local1.mTitles != null) {
_local1.views = new Array();
} else {
_local1.init();
if (_local1.serverInfo == null) {
_local1.mTitles = columnNames;
} else if (_local1.serverInfo.version != 1) {
NetServices.trace("RecordSet", "warning", 100, "Received incompatible recordset version from server");
} else {
_local1.mTitles = _local1.serverInfo.columnNames;
_local1.mRecordsAvailable = 0;
_local1.setData(((_local1.serverInfo.cursor == null) ? 0 : (_local1.serverInfo.cursor - 1)), _local1.serverInfo.initialData);
if (_local1.serverInfo.initialData.length != _local1.serverInfo.totalCount) {
_local1.mRecordSetId = _local1.serverInfo.id;
if (_local1.mRecordSetId != null) {
_local1.serviceName = ((_local1.serverInfo.serviceName == null) ? "RecordSet" : (_local1.serverInfo.serviceName));
_local1.mTotalCount = _local1.serverInfo.totalCount;
_local1.mDeliveryMode = "ondemand";
_local1.mAllNotified = false;
_local1.mOutstandingRecordCount = 0;
} else {
NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no recordset id");
}
}
_local1.serverInfo = null;
}
}
};
RecordSet.prototype = new RsDataProviderClass();
Object.registerClass("RecordSet", RecordSet);
RecordSet.prototype._setParentService = function (service) {
this.gateway_conn = service.nc;
};
RecordSet.prototype.getRecordSetService = function () {
var _local1 = this;
if (_local1.mRecordSetService == null) {
if (_local1.gateway_conn == null) {
_local1.gateway_conn = NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
_local1.gateway_conn = _local1.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
_local1.gateway_conn.setupRecordset();
_local1.gateway_conn.setDebugId("RecordSet " + _local1.mRecordSetId);
}
_local1.mRecordSetService = _local1.gateway_conn.getService(_local1.serviceName, _local1);
if (_local1.mRecordSetService == null) {
NetServices.trace("RecordSet", "warning", 101, "Failed to create recordset service");
_local1.mRecordSetService = 0;
}
}
return(_local1.mRecordSetService);
};
RecordSet.prototype.getColumnNames = function () {
return(this.mTitles);
};
RecordSet.prototype.getLength = function () {
var _local1 = this;
if (_local1.mRecordSetID != null) {
return(_local1.mTotalCount);
}
return(_local1.items.length);
};
RecordSet.prototype.getItemAt = function (index) {
var _local1 = index;
var _local2 = this;
if (_local2.mRecordSetId == null) {
return(_local2.items[_local1]);
}
if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
NetServices.trace("RecordSet", "warning", 104, ("getItemAt(" + _local1) + ") index out of range");
return(null);
}
_local2.requestRecord(_local1);
var _local3 = _local2.items[_local1];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
};
RecordSet.prototype.setField = function (index, fieldName, value) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
_local2.items[_local1][fieldName] = value;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
RecordSet.prototype.filter = function (filterFunction, context) {
var _local3 = this;
if (!_local3.checkLocal()) {
} else {
var result = new RecordSet(_local3.mTitles);
var _local2 = 0;
while (_local2 < _local3.getLength()) {
var _local1 = _local3.getItemAt(_local2);
if (((_local1 != null) && (_local1 != 1)) && (filterFunction(_local1, context))) {
result.addItem(_local1);
}
_local2++;
}
return(result);
}
return(undefined);
};
RecordSet.prototype.sort = function (compareFunc) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
_local1.updateViews({event:"sort"});
}
};
RecordSet.prototype.isLocal = function () {
return(this.mRecordSetID == null);
};
RecordSet.prototype.isFullyPopulated = function () {
return(this.isLocal());
};
RecordSet.prototype.getNumberAvailable = function () {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.getLength());
}
return(_local1.mRecordsAvailable);
};
RecordSet.prototype.setDeliveryMode = function (mode, pagesize, numPrefetchPages) {
var _local1 = this;
var _local2 = pagesize;
var _local3 = mode;
_local1.mDeliveryMode = _local3;
_local1.stopFetchAll();
if (_local3 == "ondemand") {
} else {
if (_local2 == null) {
_local2 = _local1.views[0].getRowCount();
if (_local2 == null) {
_local2 = 25;
}
}
if (_local3 == "page") {
if (numPrefetchPages == null) {
numPrefetchPages = 0;
}
_local1.mPageSize = _local2;
_local1.mNumPrefetchPages = numPrefetchPages;
} else if (_local3 == "fetchall") {
_local1.stopFetchAll();
_local1.startFetchAll(_local2);
} else {
NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
};
RecordSet.prototype.getRecords_Result = function (info) {
var _local1 = this;
var _local2 = info;
_local1.setData(_local2.Cursor - 1, _local2.Page);
_local1.mOutstandingRecordCount = _local1.mOutstandingRecordCount - _local2.Page.length;
_local1.updateViews({event:"updateRows", firstRow:_local2.Cursor - 1, lastRow:((_local2.Cursor - 1) + _local2.Page.length) - 1});
if ((_local1.mRecordsAvailable == _local1.mTotalCount) && (!_local1.mAllNotified)) {
_local1.updateViews({event:"allRows"});
_local1.mRecordSetService.release();
_local1.mAllNotified = true;
_local1.mRecordSetID = null;
_local1.mRecordSetService = null;
}
};
RecordSet.prototype.release_Result = function () {
};
RecordSet.prototype.arrayToObject = function (anArray) {
var _local3 = anArray;
if (this.mTitles == null) {
NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var result = new Object();
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = this.mTitles[_local1];
if (_local2 == null) {
_local2 = ("column" + _local1) + 1;
}
result[_local2] = _local3[_local1];
_local1++;
}
return(result);
};
RecordSet.prototype.setData = function (start, dataArray) {
var _local1 = this;
var _local2 = 0;
while (_local2 < dataArray.length) {
var _local3 = _local2 + start;
var rec = _local1.items[_local3];
if ((rec != null) && (rec != 1)) {
NetServices.trace("RecordSet", "warning", 106, "Already got record # " + recordIndex);
} else {
_local1.mRecordsAvailable = _local1.mRecordsAvailable + 1;
}
_local1.items[_local3] = _local1.arrayToObject(dataArray[_local2]);
_local1.items[_local3].__ID__ = _local1.uniqueID++;
_local2++;
}
};
RecordSet.prototype.requestOneRecord = function (index) {
var _local1 = this;
var _local2 = index;
if (_local1.items[_local2] == null) {
_local1.getRecordSetService().getRecords(_local1.mRecordSetId, _local2 + 1, 1);
_local1.mOutstandingRecordCount++;
_local1.items[_local2] = 1;
_local1.updateViews({event:"fetchRows", firstRow:_local2, lastRow:_local2});
}
};
RecordSet.prototype.requestRecord = function (index) {
var _local1 = this;
if (_local1.mDeliveryMode != "page") {
_local1.requestOneRecord(index);
} else {
var _local2 = int(index / _local1.mPageSize) * _local1.mPageSize;
var _local3 = (_local2 + (_local1.mPageSize * (_local1.mNumPrefetchPages + 1))) - 1;
_local1.requestRecordRange(_local2, _local3);
}
};
RecordSet.prototype.requestRecordRange = function (index, lastIndex) {
var _local1 = index;
var _local2 = this;
var highestRequested = -1;
if (_local1 < 0) {
_local1 = 0;
}
if (lastIndex >= _local2.getLength()) {
lastIndex = _local2.getLength() - 1;
}
while (_local1 <= lastIndex) {
while ((_local1 <= lastIndex) && (_local2.items[_local1] != null)) {
_local1++;
}
var _local3 = _local1;
while ((_local1 <= lastIndex) && (_local2.items[_local1] == null)) {
_local2.mOutstandingRecordCount++;
_local2.items[_local1] = 1;
_local1++;
}
var last = (_local1 - 1);
if (_local3 <= last) {
_local2.getRecordSetService().getRecords(_local2.mRecordSetId, _local3 + 1, (last - _local3) + 1);
highestRequested = last;
_local2.updateViews({event:"fetchRows", firstRow:_local3, lastRow:last});
}
}
return(highestRequested);
};
RecordSet.prototype.startFetchAll = function (pagesize) {
var _local1 = this;
_local1.mDataFetcher.disable();
_local1.mDataFetcher = new RsDataFetcher(_local1, pagesize);
};
RecordSet.prototype.stopFetchAll = function () {
this.mDataFetcher.disable();
this.mDataFetcher = null;
};
RecordSet.prototype.checkLocal = function () {
if (this.isLocal()) {
return(true);
}
NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(false);
};
_global.RsDataFetcher = function (recordSet, increment) {
var _local1 = this;
_local1.mRecordSet = recordSet;
_local1.mRecordSet.addView(_local1);
_local1.mIncrement = increment;
_local1.mNextRecord = 0;
_local1.mEnabled = true;
_local1.doNext();
};
RsDataFetcher.prototype.disable = function () {
var _local1 = this;
_local1.mEnabled = false;
_local1.mRecordSet.removeView(_local1);
};
RsDataFetcher.prototype.doNext = function () {
var _local1 = this;
if (!_local1.mEnabled) {
} else {
do {
if (_local1.mNextRecord >= _local1.mRecordSet.getLength()) {
return;
}
_local1.mHighestRequested = _local1.mRecordSet.requestRecordRange(_local1.mNextRecord, (_local1.mNextRecord + _local1.mIncrement) - 1);
_local1.mNextRecord = _local1.mNextRecord + _local1.mIncrement;
} while (_local1.mHighestRequested <= 0);
}
};
RsDataFetcher.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (((_local2.event == "updateRows") && (_local2.firstRow <= _local1.mHighestRequested)) && (_local2.lastRow >= _local1.mHighestRequested)) {
_local1.doNext();
}
if (_local2.event == "allRows") {
_local1.disable();
}
};
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder.prototype.onResult = function (result) {
var _local3 = result;
var _local1 = this.service.client;
_local3._setParentService(this.service);
var _local2 = this.methodName + "_Result";
if (typeof(_local1[_local2]) == "function") {
_local1[_local2](_local3);
} else if (typeof(_local1.onResult) == "function") {
_local1.onResult(_local3);
} else {
NetServices.trace("NetServices", "info", 1, (_local2 + " was received from server: ") + _local3);
}
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var _local1 = result;
var _local2 = this.service.client;
var _local3 = this.methodName + "_Status";
if (typeof(_local2[_local3]) == "function") {
_local2[_local3](_local1);
} else if (typeof(_local2.onStatus) == "function") {
_local2.onStatus(_local1);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(_local1);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(_local1);
} else {
NetServices.trace("NetServices", "info", 2, (((_local3 + " was received from server: ") + _local1.class) + " ") + _local1.description);
}
};
Object.registerClass("NetServiceProxy", NetServiceProxy);
_global.NetServiceProxy = function (nc, serviceName, client) {
var _local1 = this;
if (nc != null) {
_local1.nc = nc;
_local1.serviceName = serviceName;
_local1.client = client;
}
};
NetServiceProxy.prototype._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
NetServiceProxy.prototype.__resolve = function (methodName) {
var _local1 = this;
var _local2 = arguments;
var _local3 = function () {
var _local1 = this;
var _local2 = arguments;
if (_local1.client != null) {
_local2.unshift(new NetServiceProxyResponder(_local1, methodName));
} else if (typeof(_local2[0].onResult) != "function") {
NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, but no responder was given in call to " + methodName);
_local2.unshift(new NetServiceProxyResponder(_local1, methodName));
}
_local2.unshift((_local1.serviceName + ".") + methodName);
return(_local1.nc.call.apply(_local1.nc, _local2));
};
return(_local3);
};
NetConnection.prototype.getService = function (serviceName, client) {
var _local1 = new NetServiceProxy(this, serviceName, client);
return(_local1);
};
NetConnection.prototype.setCredentials = function (userid, password) {
this.addHeader("Credentials", false, {userid:userid, password:password});
};
NetConnection.prototype.RequestPersistentHeader = function (info) {
var _local1 = info;
this.addHeader(_local1.name, _local1.mustUnderstand, _local1.data);
};
NetConnection.prototype.ReplaceGatewayUrl = function (newUrl) {
this.connect(newUrl);
};
NetConnection.prototype.clone = function () {
var _local1 = new NetConnection();
_local1.connect(this.uri);
return(_local1);
};
if (_global.NetServices == null) {
_global.NetServices = new Object();
NetServices.gatewayUrl = gatewayUrl;
}
NetServices.setDefaultGatewayUrl = function (url) {
NetServices.defaultGatewayUrl = url;
};
NetServices.setGatewayUrl = function (url) {
NetServices.gatewayUrl = url;
};
NetServices.createGatewayConnection = function (url) {
var _local1 = url;
if (_local1 == undefined) {
if (NetServices.isHttpUrl(_root._url)) {
_local1 = NetServices.gatewayUrl;
if (_local1 == undefined) {
_local1 = NetServices.defaultGatewayUrl;
if (_local1 != undefined) {
if (NetServices.isHttpUrl(_local1)) {
var _local2 = _local1.indexOf("/", 8);
if (_local2 >= 0) {
_local1 = _local1.substring(_local2);
}
}
var _local3 = NetServices.getHostUrl();
if (_local3 != null) {
_local1 = _local3 + _local1;
}
}
}
} else {
_local1 = NetServices.defaultGatewayUrl;
}
}
if (_local1 == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var nc = new NetConnection();
nc.connect(_local1);
return(nc);
};
NetServices.getHostUrl = function () {
var _local2 = _root;
if (!NetServices.isHttpUrl(_local2._url)) {
return(null);
}
var _local1 = _local2._url.indexOf("/", 8);
if (_local1 < 0) {
return(null);
}
return(_local2._url.substring(0, _local1));
};
NetServices.isHttpUrl = function (url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
};
NetServices.trace = function (who, severity, number, message) {
var _local1 = (((((who + " ") + severity) + " ") + number) + ": ") + message;
trace(_local1);
NetDebug.traceNetServices(who, severity, number, message);
};
NetServices.getVersion = function () {
return(1);
};
_global.DataGlue = function (dataProvider) {
this.dataProvider = dataProvider;
};
_global.DataGlue.bindFormatStrings = function (dataConsumer, dataProvider, labelString, dataString) {
var _local1 = new DataGlue(dataProvider);
_local1.labelString = labelString;
_local1.dataString = dataString;
_local1.getItemAt = _global.DataGlue.getItemAt_FormatString;
dataConsumer.setDataProvider(_local1);
};
_global.DataGlue.bindFormatFunction = function (dataConsumer, dataProvider, formatFunction) {
var _local1 = new DataGlue(dataProvider);
_local1.formatFunction = formatFunction;
_local1.getItemAt = _global.DataGlue.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local1);
};
_global.DataGlue.prototype.addView = function (viewRef) {
return(this.dataProvider.addView(viewRef));
};
_global.DataGlue.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
_global.DataGlue.prototype.format = function (formatString, record) {
var _local2 = formatString.split("#");
var _local3 = "";
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + _local2[_local1];
_local3 = _local3 + ((_local2[_local1 + 1] == "") ? "#" : (record[_local2[_local1 + 1]]));
_local1 = _local1 + 2;
}
return(_local3);
};
_global.DataGlue.getItemAt_FormatString = function (index) {
var _local2 = this;
var _local1 = _local2.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return({label:_local2.format(_local2.labelString, _local1), data:((_local2.dataString == null) ? (_local1) : (_local2.format(_local2.dataString, _local1)))});
};
_global.DataGlue.getItemAt_FormatFunction = function (index) {
var _local1 = this.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return(this.formatFunction(_local1));
};
_global.DataGlue.prototype.getItemID = function (index) {
return(this.dataProvider.getItemID(index));
};
_global.DataGlue.prototype.addItemAt = function (index, value) {
return(this.dataProvider.addItemAt(index, value));
};
_global.DataGlue.prototype.addItem = function (value) {
return(this.dataProvider.addItem(value));
};
_global.DataGlue.prototype.removeItemAt = function (index) {
return(this.dataProvider.removeItemAt(index));
};
_global.DataGlue.prototype.removeAll = function () {
return(this.dataProvider.removeAll());
};
_global.DataGlue.prototype.replaceItemAt = function (index, itemObj) {
return(this.dataProvider.replaceItemAt(index, itemObj));
};
_global.DataGlue.prototype.sortItemsBy = function (fieldName, order) {
return(this.dataProvider.sortItemsBy(fieldName, order));
};
String.exactNaughtyWords = new Array();
String.searchNaughtyWords = new Array();
String.exceptionNaughtyWordssplit = new Array();
String.exceptionWordssplit = new Array();
String.exceptionNaughtyWords = [[], [], [], []];
NetServices.setDefaultGatewayURL("/gateway.aspx");
connection = NetServices.createGatewayConnection();
DirtyWordsService = connection.getService("samples.remoting.RemoteWords", this);
DirtyWordsService.getWords();
String.prototype.isNaughty = function () {
x = 0;
while (x < exactNaughtyWords.length) {
exactNaughtyWords[x] = exactNaughtyWords[x].trim();
x++;
}
x = 0;
while (x < searchNaughtyWords.length) {
searchNaughtyWords[x] = searchNaughtyWords[x].trim();
x++;
}
x = 0;
while (x < exceptionNaughtyWordssplit.length) {
exceptionNaughtyWordssplit[x] = exceptionNaughtyWordssplit[x].trim();
x++;
}
x = 0;
while (x < exceptionWordssplit.length) {
exceptionWordssplit[x] = exceptionWordssplit[x].trim();
x++;
}
var s = this.toString().toLowerCase().replace("-", " ").replace("_", " ");
if (s != "") {
var _local3 = s.split(" ");
var _local2 = 0;
var i = 0;
while (_local2 < _local3.length) {
i = 0;
while (i < String.exactNaughtyWords.length) {
trace(("String.exactNaughtyWords.length =|" + String.exactNaughtyWords.length) + "|");
trace(("s_array[q] =|" + _local3[_local2]) + "|");
trace(("String.exactNaughtyWords=|" + String.exactNaughtyWords) + "|");
trace(("String.exactNaughtyWords[ i ]=|" + String.exactNaughtyWords[i]) + "|");
if (_local3[_local2] == String.exactNaughtyWords[i]) {
return(true);
}
i++;
}
i = 0;
dirtyWordCount = 0;
exceptionWordCount = 0;
while (i < String.searchNaughtyWords.length) {
trace(("String.searchNaughtyWords.length =|" + String.searchNaughtyWords.length) + "|");
trace(("s_array[q] =|" + _local3[_local2]) + "|");
trace(("String.searchNaughtyWords[i] =|" + String.searchNaughtyWords[i]) + "|");
if (_local3[_local2].indexOf(String.searchNaughtyWords[i]) != -1) {
dirtyWordCount++;
searchStart = _local3[_local2].indexOf(String.searchNaughtyWords[i]);
trace(("String.exceptionNaughtyWordssplit.length =|" + String.exceptionNaughtyWordssplit.length) + "|");
trace(("String.exceptionNaughtyWordssplit =|" + String.exceptionNaughtyWordssplit) + "|");
foundException = "NO";
var _local1 = 0;
while (_local1 < String.exceptionNaughtyWordssplit.length) {
trace(((("i am in the for loop...|" + _local1) + "| String.exceptionNaughtyWords.length=|") + String.exceptionNaughtyWords.length) + "|");
trace(((("TRACE IF 1 = String.exceptionNaughtyWordssplit[j]==String.searchNaughtyWords[ i ]== |" + String.exceptionNaughtyWordssplit[_local1]) + "| equals |") + String.searchNaughtyWords[i]) + "|");
trace(((((("TRACE IF 2 = s_array[ q ].indexOf(String.exceptionWordssplit[j])==(searchStart - String.exceptionWordssplit[j].indexOf(String.exceptionNaughtyWordssplit[j]))== |" + _local3[_local2].indexOf(String.exceptionWordssplit[_local1])) + "| equals |") + searchStart) + "-") + String.exceptionWordssplit[_local1].indexOf(String.exceptionNaughtyWordssplit[_local1])) + "|");
trace(("TRACE IF 3 = s_array[ q ].indexOf( String.searchNaughtyWords[ i ] , s_array[ q ].indexOf(String.exceptionWordssplit[j]) + String.exceptionWordssplit[j].length)== -1 |" + _local3[_local2].indexOf(String.searchNaughtyWords[i], _local3[_local2].indexOf(String.exceptionWordssplit[_local1]) + String.exceptionWordssplit[_local1].length)) + "| equals -1");
if (((String.exceptionNaughtyWordssplit[_local1] == String.searchNaughtyWords[i]) and ((_local3[_local2].indexOf(String.exceptionWordssplit[_local1]) != -1) and (_local3[_local2].indexOf(String.exceptionWordssplit[_local1]) == (searchStart - String.exceptionWordssplit[_local1].indexOf(String.exceptionNaughtyWordssplit[_local1]))))) and (_local3[_local2].indexOf(String.searchNaughtyWords[i], _local3[_local2].indexOf(String.exceptionWordssplit[_local1]) + String.exceptionWordssplit[_local1].length) == -1)) {
exceptionWordCount++;
foundException = "YES";
trace("found exception");
_local1 = exceptionWordssplit.length;
}
_local1++;
}
}
i++;
}
trace(("dirtyWordCount=|" + dirtyWordCount) + "|");
trace(("exceptionWordCount=|" + exceptionWordCount) + "|");
if (dirtyWordCount > exceptionWordCount) {
return(true);
}
_local2++;
}
}
return(false);
};
String.prototype.lTrim = function () {
var _local2 = this.toString();
var _local1 = 0;
var _local3 = _local2.length;
while ((_local1 < _local3) && (_local2.charCodeAt(_local1) <= 32)) {
_local1++;
}
return(_local2.substring(_local1, _local3));
};
String.prototype.rTrim = function () {
var _local2 = this.toString();
var _local1 = _local2.length - 1;
while ((_local1 >= 0) && (_local2.charCodeAt(_local1) <= 32)) {
_local1--;
}
return(_local2.substring(0, _local1 + 1));
};
String.prototype.trim = function () {
var _local1 = this.toString();
_local1 = _local1.lTrim();
_local1 = _local1.rTrim();
return(_local1);
};
String.prototype.isEmpty = function () {
var _local1 = this.toString().trim();
return((_local1 == null) || (_local1.length == 0));
};
String.prototype.isEmail = function () {
var _local2 = this;
if (_local2.length < 5) {
return(false);
}
var iChars = "*|,\":<>[]{}`';()&$#%";
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
if (iChars.indexOf(_local2.charAt(_local1)) != -1) {
return(false);
}
_local1++;
}
var atIndex = _local2.lastIndexOf("@");
if ((atIndex < 1) || (atIndex == (_local3 - 1))) {
return(false);
}
var pIndex = _local2.lastIndexOf(".");
if ((pIndex < 4) || (pIndex == (_local3 - 1))) {
return(false);
}
if (atIndex > pIndex) {
return(false);
}
return(true);
};
String.prototype.replace = function (searchStr, replaceStr) {
var _local3 = this.toString();
var tempStr = "";
var _local1 = 0;
var _local2;
if (searchStr == "") {
return(_local3);
}
if (_local3.indexOf(searchStr) != -1) {
while (_local2 = _local3.indexOf(searchStr, _local1) , _local2 != -1) {
tempStr = tempStr + _local3.substring(_local1, _local2);
tempStr = tempStr + replaceStr;
_local1 = _local2 + searchStr.length;
}
return(tempStr + _local3.substring(_local1));
}
return(_local3);
};
String.prototype.sprintf = function () {
var _local3 = this.toString();
var _local2 = _local3.splitMultiChar("%s");
_local3 = "";
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + (_local2[_local1] + arguments[_local1]);
_local1++;
}
if (!q) {
return(_local3);
}
return(_local3 + "?");
};
String.prototype.splitMultiChar = function (c) {
var _local1 = this.toString();
_local1 = _local1.replace(c, "\u00B6");
var _local2 = _local1.split("\u00B6");
return(_local2);
};
ASSetPropFlags(String, ["exactNaughtyWords", "searchNaughtyWords"], 1);
ASSetPropFlags(String.prototype, ["isNaughty", "lTrim", "rTrim", "trim", "isEmpty", "isEmail", "replace", "sprintf", "splitMultiChar"], 1);
Object.version = getVersion().split(",");
Object.majorVersion = int(substring(Object.version[0], Object.version[0].length, 1));
Object.minorVersion = int(Object.version[2]);
if (Object.majorVersion == 5) {
String.prototype.charAt = function (index) {
return(substring(this, index + 1, 1));
};
String.prototype.concat = function () {
var _local2 = arguments;
var _local3 = this.toString();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + _local2[_local1];
_local1++;
}
return(_local3);
};
String.prototype.indexOf = function (sub, i) {
var _local1 = i;
if (_local1 == null) {
_local1 = 0;
}
var _local2 = sub.length;
var _local3 = (this.length - _local2) + 1;
while ((_local1 <= _local3) && ((substring(this, 1 + (_local1++), _local2)) != sub)) {
}
if (_local1 > _local3) {
return(-1);
}
return(_local1 - 1);
};
String.prototype.lastIndexOf = function (sub, i) {
var _local1 = i;
var _local2 = sub;
var _local3 = this;
size = _local2.length;
((_local1 == null) ? (_local1 = (_local3.length - size) + 1) : (_local1++));
if (_local2.length == 0) {
return(_local1 - 1);
}
while ((_local1 >= 0) && ((substring(_local3, _local1--, size)) != _local2)) {
}
if (_local1 != -1) {
return(_local1);
}
return(-1);
};
String.prototype.slice = function (s, e) {
return(substring(this, s + 1, e - s));
};
String.prototype.split = function (d) {
var _local3 = this;
if (d != null) {
var r = new Array();
var size = _local3.length;
var _local2 = 0;
var n = 0;
if (d != "") {
var _local1 = 0;
while (_local1 <= size) {
if ((substring(_local3, _local1 + 1, 1)) == d) {
r[n] = substring(_local3, _local2 + 1, _local1 - _local2);
_local2 = _local1 + 1;
n++;
}
_local1++;
}
if (_local2 != _local1) {
r[n] = substring(_local3, _local2 + 1, _local1 - _local2);
}
} else {
var _local1 = 0;
while (_local1 < size) {
r[_local1] = substring(_local3, _local1 + 1, 1);
_local1++;
}
}
} else {
r = new Array(_local3.toString());
}
return(r);
};
String.prototype.substr = function (s, l) {
var _local1 = l;
if (_local1 == null) {
_local1 = this.length - s;
}
return(substring(this, s + 1, _local1));
};
}
Object.prototype.FlashTrack = function () {
this.init();
};
FlashTrack.prototype.init = function () {
var _local1 = this;
_local1.DCS = new Object();
_local1.WT = new Object();
_local1.DCSext = new Object();
};
FlashTrack.prototype.setDCSVar = function (name, value) {
this.DCS[name] = value;
};
FlashTrack.prototype.setWTVar = function (name, value) {
this.WT[name] = value;
};
FlashTrack.prototype.setDCSExtVar = function (name, value) {
this.DCSext[name] = value;
};
FlashTrack.prototype.track = function () {
var _local1 = this.$getParams();
if (_local1.length > 0) {
trace("FlashTrack-> Tracking " + _local1);
getURL (("javascript:FlashTrack(" + _local1) + ");");
return(true);
}
trace("FlashTrack-> Nothing to track.");
return(false);
};
FlashTrack.prototype.trackRedir = function () {
var _local1 = this.$getParams();
if (_local1.length > 0) {
getURL (("javascript:FlashTrackRedir(" + _local1) + ");");
return(true);
}
trace("FlashTrack-> Nothing to track.");
return(false);
};
FlashTrack.prototype.trackRedirPopup = function () {
var _local1 = this.$getParams();
if (_local1.length > 0) {
getURL (("javascript:FlashTrackRedirPopup(" + _local1) + ");");
return(true);
}
trace("FlashTrack-> Nothing to track.");
return(false);
};
FlashTrack.prototype.trackRedirParent = function () {
var _local1 = this.$getParams();
if (_local1.length > 0) {
getURL (("javascript:FlashTrackRedirParent(" + _local1) + ");");
return(true);
}
return(false);
};
FlashTrack.prototype.trackRedirParentOpen = function () {
var _local1 = this.$getParams();
if (_local1.length > 0) {
getURL (("javascript:FlashTrackRedirParentOpen(" + _local1) + ");");
return(true);
}
return(false);
};
FlashTrack.prototype.$getParams = function () {
var _local1 = this;
var _local2 = new Array();
for (i in _local1.DCS) {
_local2.push(("'DCS." + i) + "'", ("'" + _local1.DCS[i]) + "'");
}
for (i in _local1.WT) {
_local2.push(("'WT." + i) + "'", ("'" + _local1.WT[i]) + "'");
}
for (i in _local1.DCSext) {
_local2.push(("'DCSext." + i) + "'", ("'" + _local1.DCSext[i]) + "'");
}
return(_local2);
};
ASSetPropFlags(Object.prototype, ["FlashTrack"], 1);
_global.__FlashTrackGetURL = function (url, ft) {
var _local1 = this;
_local1.ft = ft;
_local1.url = url;
_local1.ft.track();
_local1.myInt = setInterval(_local1, "wait", 1000);
};
__FlashTrackGetURL.prototype.wait = function () {
clearInterval(this.myInt);
getURL (this.url);
};
_global.getURLAndTrack = function (url, ft) {
var ftgu = new __FlashTrackGetURL(url, ft);
};
this.__getbarbieServer = function () {
url = _root._url;
if (url.indexOf("barbie.com") != -1) {
return("http://barbie.everythinggirl.com");
}
if (url.indexOf("everythinggirl.com") != -1) {
return("http://barbie.everythinggirl.com");
}
if (url.indexOf("mattel.net") != -1) {
return("http://barbie.mattel.net");
}
if (url.indexOf("estwr-12-26") != -1) {
return("http://estwr-12-26.eshq.mattel.com");
}
if (url.indexOf("file") != -1) {
return("http://estwr-12-26.eshq.mattel.com");
}
if (url.indexOf("origin") != -1) {
return("http://origin.barbie.com");
}
return("http://barbie.everythinggirl.com");
};
this.__getegServer = function () {
url = _root._url;
if (url.indexOf("everythinggirl.com") != -1) {
return("http://www.everythinggirl.com");
}
if (url.indexOf("mattel.net") != -1) {
return("http://everythinggirl.mattel.net");
}
if (url.indexOf("eshq.mattel.com") != -1) {
return("http://estwr-12-82.eshq.mattel.com");
}
if (url.indexOf("file") != -1) {
return("http://estwr-12-82.eshq.mattel.com");
}
if (url.indexOf("origin") != -1) {
return("http://www.everythinggirl.com");
}
return("http://www.everythinggirl.com");
};
_global.barbieserver = this.__getbarbieServer();
_global.egserver = this.__getegServer();
StringExtensions.getNaughtyWordList();
send_ft = new FlashTrack();
send_ft.setWTVar("ti", "makeover_sendemail");
send_ft.setDCSVar("dcsuri", "/activities/fashion/makeover/makeover_sendemail.ftrk");
receive_ft = new FlashTrack();
receive_ft.setWTVar("ti", "makeover_receiveemail");
receive_ft.setDCSVar("dcsuri", "/activities/fashion/makeover/makeover_receiveemail.ftrk");
_global.isFromEmail = fromEmail == "true";
_global.userID = uID;
_global.swanViewed = false;
_global.debugMode = false;
_global.stampSource = null;
_global.currentStamper = null;
_global.activeCursor = null;
_global.activePalette = null;
_global.interface = [];
_global.CENTCOM = new CentralCommand("Makeover");
CENTCOM.addListener(this);
skin0 = new FadePoint(0, 255, 211, 173);
skin1 = new FadePoint(33.33, 240, 193, 168);
skin2 = new FadePoint(66.66, 218, 174, 149);
skin3 = new FadePoint(100, 141, 102, 83);
_global.skinGradient = new Array(skin0, skin1, skin2, skin3);
hair0 = new FadePoint(0, 255, 255, 215);
hair1 = new FadePoint(33.33, 179, 110, 80);
hair2 = new FadePoint(66.66, 165, 118, 73);
hair3 = new FadePoint(100, 0, 0, 0);
_global.hairGradient = new Array(hair0, hair1, hair2, hair3);
eyes0 = new FadePoint(0, 153, 167, 238);
eyes1 = new FadePoint(20, 77, 208, 230);
eyes2 = new FadePoint(40, 107, 147, 0);
eyes3 = new FadePoint(60, 156, 205, 79);
eyes4 = new FadePoint(80, 216, 169, 97);
eyes5 = new FadePoint(100, 138, 102, 59);
_global.eyeGradient = new Array(eyes0, eyes1, eyes2, eyes3, eyes4, eyes5);
shadow0 = new FadePoint(0, 191, 127, 132);
shadow1 = new FadePoint(20, 227, 144, 176);
shadow2 = new FadePoint(40, 201, 169, 208);
shadow3 = new FadePoint(60, 138, 129, 175);
shadow4 = new FadePoint(80, 210, 213, 241);
shadow5 = new FadePoint(100, 223, 228, 189);
_global.shadowGradient = new Array(shadow0, shadow1, shadow2, shadow3, shadow4, shadow5);
mascara0 = new FadePoint(0, 0, 0, 0);
mascara1 = new FadePoint(25, 63, 128, 200);
mascara2 = new FadePoint(50, 169, 62, 29);
mascara3 = new FadePoint(75, 108, 181, 85);
mascara4 = new FadePoint(100, 0, 0, 0);
_global.mascaraGradient = new Array(mascara0, mascara1, mascara2, mascara3, mascara4);
lips0 = new FadePoint(0, 229, 102, 163);
lips1 = new FadePoint(20, 241, 164, 135);
lips2 = new FadePoint(40, 225, 109, 102);
lips3 = new FadePoint(60, 225, 180, 181);
lips4 = new FadePoint(80, 253, 149, 219);
lips5 = new FadePoint(100, 255, 32, 109);
_global.lipsGradient = new Array(lips0, lips1, lips2, lips3, lips4, lips5);
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.face = 0;
globalStyleFormat.shadow = 0;
globalStyleFormat.darkshadow = 16777215 /* 0xFFFFFF */;
globalStyleFormat.arrow = 16777215 /* 0xFFFFFF */;
globalStyleFormat.foregroundDisabled = 16777215 /* 0xFFFFFF */;
globalStyleFormat.scrollTrack = 12050681 /* 0xB7E0F9 */;
globalStyleFormat.background = 16777215 /* 0xFFFFFF */;
globalStyleFormat.backgroundDisabled = 7909837 /* 0x78B1CD */;
globalStyleFormat.highlight = 4041709 /* 0x3DABED */;
globalStyleFormat.highlight3D = 16777215 /* 0xFFFFFF */;
globalStyleFormat.selection = 0;
globalStyleFormat.textColor = 0;
globalStyleFormat.textSelected = 16777215 /* 0xFFFFFF */;
globalStyleFormat.formDefaultColor = 16777215 /* 0xFFFFFF */;
globalStyleFormat.formHighlightColor = 16777215 /* 0xFFFFFF */;
globalStyleFormat.formBorderColor = 0;
gotoAndStop ("preload");
Instance of Symbol 281 MovieClip [FaderSymbol] "fader" in Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 290 MovieClip [PreloaderSymbol] "preloader_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
onDoneLoading = "defaultValue";
onLoadUpdate = "defaultValue";
}
Frame 8
function doneLoading() {
gotoAndStop ("init");
}
preloader_mc.setCallback("onDoneLoading", "doneLoading");
preloader_mc.setLoadTarget(_root);
Frame 15
function onData() {
if (this.getBytesLoaded() == this.getBytesTotal()) {
gotoAndStop ("payoff");
}
}
function playsound(idname, loops, vol) {
var _local1 = _root;
_local1.mysoundobj = new Sound(this);
_local1.mysoundobj.setVolume(vol);
_local1.mysoundobj.attachSound(idname);
_local1.mysoundobj.start(0, loops);
}
function stopsound() {
_root.mysoundobj.stop();
}
if (isFromEmail) {
this.loadVariables("makeoverActions.aspx?action=get&userID=" + userID, "POST");
} else {
gotoAndStop ("home");
}
randnum = random(4);
homeface.gotoAndStop("face" + randnum);
_root.catalogshow = true;
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "colorSwatchButton" in Frame 15
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 272 MovieClip [FUIComponentSymbol] in Frame 15
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "styleSwatchButton" in Frame 15
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 917 MovieClip [VisualPaletteSymbol] in Frame 15
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 903 MovieClip [FStamperSymbol] in Frame 15
//component parameters
onClipEvent (initialize) {
itemSymbol = "defaultValue";
changeHandler = "defaultValue";
}
Instance of Symbol 1113 MovieClip [NameBuilderSymbol] in Frame 15
//component parameters
onClipEvent (initialize) {
align = "left";
}
Frame 21
play_btn.onRelease = function () {
gotoAndStop ("face");
};
nameBuilder_mc.setName("Scott");
swanLake_mc._visible = false;
Frame 26
function setNextBtnLabel(btn_num) {
var _local1 = _root;
var _local2 = btn_num;
if (_local2 == 1) {
_local1.NextLabelNumber = 1;
} else if (_local2 == 2) {
_local1.NextLabelNumber = 3;
} else if (_local2 == 3) {
_local1.NextLabelNumber = 7;
} else if (_local2 == 4) {
_local1.NextLabelNumber = 10;
} else if (_local2 == 5) {
_local1.NextLabelNumber = 11;
}
}
function setNextBtnInside(btn_num2) {
_root.NextLabelNumber = btn_num2;
trace(("_root.NextLabelNumber==|" + _root.NextLabelNumber) + "|");
}
_global.PSkin = new Palette("skin");
PSkin.addProperty("color", null);
PSkin.addProperty("id", 1);
PSkin.addListener(barbie_mc.face_mc);
PSkin.addListener(barbie_mc.brow1_mc);
PSkin.addListener(barbie_mc.brow2_mc);
_global.PHair = new Palette("hair");
PHair.addProperty("color", null);
PHair.addProperty("style", "style5");
PHair.addProperty("id", 2);
PHair.addListener(barbie_mc.hairFront_mc);
PHair.addListener(barbie_mc.hairBack_mc);
PHair.addListener(barbie_mc.stampControl_mc);
_global.PEyes = new Palette("eyes");
PEyes.addProperty("color", null);
PEyes.addProperty("shadow", null);
PEyes.addProperty("lashes", "lash1");
PEyes.addProperty("lashColor", null);
PEyes.addProperty("sparkles", "sparkle0");
PEyes.addProperty("id", 3);
PEyes.addListener(barbie_mc.eye1_mc);
PEyes.addListener(barbie_mc.eye2_mc);
_global.PLips = new Palette("lips");
PLips.addProperty("color", null);
PLips.addProperty("lipgloss", "gloss0");
PLips.addProperty("id", 4);
PLips.addListener(barbie_mc.lips_mc);
_global.PTops = new Palette("tops");
PTops.addProperty("style", "tops0");
PTops.addProperty("id", 5);
PTops.addListener(barbie_mc.face_mc.tops_mc);
_global.PStamps = new Palette("stamps");
PStamps.addProperty("flowers", null);
PStamps.addProperty("hairClips", null);
PStamps.addProperty("id", 6);
PStamps.addProperty("stampCount", 0);
PStamps.addListener(barbie_mc.stampControl_mc);
_global.PSunglasses = new Palette("sunglasses");
PSunglasses.addProperty("style", "sunglasses0");
PSunglasses.addProperty("id", 7);
PSunglasses.addListener(barbie_mc.sunglasses_mc);
PStamps.execute = function () {
var _local1 = this;
_local1.properties.stampCount++;
_local1.broadcastMessage("onExecute", _local1.properties);
};
with (barbie_mc) {
_global.featureComponents = [face_mc, brow1_mc, brow2_mc, hairFront_mc, hairBack_mc, eye1_mc, eye2_mc, lips_mc, face_mc.tops_mc, sunglasses_mc];
}
i = 0;
while (i < featureComponents.length) {
featureComponents[i].setController(this);
featureComponents[i].setOverFunction("showCustomCursor");
featureComponents[i].setOutFunction("hideCustomCursor");
i++;
}
palettes_mc.setController(this);
barbie_mc.stampControl_mc.setController(this);
barbie_mc.stampControl_mc.setValidHitAreas([barbie_mc.hairFront_mc, barbie_mc.hairBack_mc]);
barbie_mc.stampControl_mc.setInvalidHitAreas([barbie_mc.noHitArea_mc]);
CENTCOM.addPalettes(PSkin, PHair, PEyes, PLips, PTops, PStamps, PSunglasses);
CENTCOM.addItem(barbie_mc.face_mc, "face");
CENTCOM.addItem(barbie_mc.brow1_mc, "eyebrow1");
CENTCOM.addItem(barbie_mc.brow2_mc, "eyebrow2");
CENTCOM.addItem(barbie_mc.hairFront_mc, "hairFront");
CENTCOM.addItem(barbie_mc.hairBack_mc, "hairBack");
CENTCOM.addItem(barbie_mc.stampControl_mc, "stampControl");
CENTCOM.addItem(barbie_mc.eye1_mc, "eye1");
CENTCOM.addItem(barbie_mc.eye2_mc, "eye2");
CENTCOM.addItem(barbie_mc.lips_mc, "lips");
CENTCOM.addItem(barbie_mc.face_mc.tops_mc, "tops");
CENTCOM.addItem(barbie_mc.sunglasses_mc, "sunglasses");
i = 1;
while (i <= 5) {
n = this[("nav" + i) + "_btn"];
n.id = i;
n.onRelease = function () {
var _local1 = this;
_local1._parent.setNextBtnLabel(_local1.id);
_local1._parent.navRelease(_local1.id);
};
i++;
}
done_btn.onRelease = function () {
finishEditing();
};
undo_btn.onRelease = function () {
undo();
};
help_btn.onRelease = function () {
showDialogue("help");
};
playAgain_btn.onRelease = function () {
reset();
};
labelArray = new Array("skinColor", "skinColor", "hairColor", "hairLong", "hairShort", "hats", "eyeColor", "eyeShadow", "eyeMascara", "lipColor", "tops", "flowers", "sunglasses");
next_btn.onRelease = function () {
var _local1 = _root;
var _local2 = this;
trace(("_root.NextLabelNumber=|" + _local1.NextLabelNumber) + "|");
palettes_mc.gotoAndStop(labelArray[_local1.NextLabelNumber]);
_local1.NextLabelNumber = _local1.NextLabelNumber + 1;
if (_local1.NextLabelNumber == 1) {
_local2._parent.navRelease(1);
} else if (_local1.NextLabelNumber == 3) {
_local2._parent.navRelease(2);
} else if (_local1.NextLabelNumber == 7) {
_local2._parent.navRelease(3);
} else if (_local1.NextLabelNumber == 10) {
_local2._parent.navRelease(4);
} else if (_local1.NextLabelNumber == 11) {
_local2._parent.navRelease(5);
} else if (_local1.NextLabelNumber == 14) {
finishEditing();
}
if (_local1.NextLabelNumber == 3) {
palettes_mc.onTabClick(["color"], "hairColor");
} else if (_local1.NextLabelNumber == 4) {
palettes_mc.onTabClick(["style"], "hairLong");
} else if (_local1.NextLabelNumber == 5) {
palettes_mc.onTabClick(["style"], "hairShort");
} else if (_local1.NextLabelNumber == 6) {
palettes_mc.onTabClick(["style"], "hats");
} else if (_local1.NextLabelNumber == 7) {
palettes_mc.onTabClick(["color"], "eyeColor");
} else if (_local1.NextLabelNumber == 8) {
palettes_mc.onTabClick(["shadow", "sparkles"], "eyeShadow");
} else if (_local1.NextLabelNumber == 9) {
palettes_mc.onTabClick(["lashes", "lashColor"], "eyeMascara");
} else if (_local1.NextLabelNumber == 11) {
palettes_mc.onTabClick(["style"], "tops", PTops);
} else if (_local1.NextLabelNumber == 12) {
palettes_mc.onTabClick(["hairClips"], "flowers", PStamps);
} else if (_local1.NextLabelNumber == 13) {
palettes_mc.onTabClick(["style"], "sunglasses", PSunglasses);
}
};
PSkin.initItems();
PHair.initItems();
PEyes.initItems();
PLips.initItems();
PTops.initItems();
PStamps.initItems();
PSunglasses.initItems();
_global.interface = [palettes_mc, done_btn, undo_btn, help_btn, playAgain_btn];
showDialogue("welcome");
Instance of Symbol 917 MovieClip [VisualPaletteSymbol] "palettes_mc" in Frame 26
//component parameters
onClipEvent (initialize) {
}
Frame 31
cornerMask_mc._visible = false;
hairSpray_btn.onRelease = (play_btn.onRelease = function () {
this._parent.playsound("camerashutter", 1, 100);
gotoAndStop ("info");
});
Frame 36
function viewPayoff() {
gotoAndStop ("payoff");
}
Frame 41
function setMagProps() {
activatePalette(null, null);
b = magCover_mc.frontCover_mc.barbie_mc;
CENTCOM.clearItems();
CENTCOM.clearPalettes();
CENTCOM.clearStamps();
CENTCOM.addItem(b.face_mc, "face");
CENTCOM.addItem(b.brow1_mc, "eyebrow1");
CENTCOM.addItem(b.brow2_mc, "eyebrow2");
CENTCOM.addItem(b.hairFront_mc, "hairFront");
CENTCOM.addItem(b.hairBack_mc, "hairBack");
CENTCOM.addItem(b.stampControl_mc, "stampControl");
CENTCOM.addItem(b.eye1_mc, "eye1");
CENTCOM.addItem(b.eye2_mc, "eye2");
CENTCOM.addItem(b.lips_mc, "lips");
CENTCOM.addItem(b.face_mc.tops_mc, "tops");
CENTCOM.addItem(b.sunglasses_mc, "sunglasses");
if (isFromEmail) {
CENTCOM.loadXMLMakeover(makeoverData);
receive_ft.track();
} else {
CENTCOM.loadMakeover("myMakeover");
}
cover = magCover_mc.frontCover_mc;
var _local2 = Number(CENTCOM.getMagTitle(0)) + 1;
var _local1 = Number(CENTCOM.getMagTitle(1)) + 1;
cover.title1_mc.userName = CENTCOM.getUsername();
cover.title1_mc.gotoAndStop(_local2);
cover.title2_mc.gotoAndStop(_local1);
}
function resizeCover(size) {
switch (size) {
case "all" :
magCover_mc._xscale = (magCover_mc._yscale = 37.5);
magCover_mc._x = 152.7;
magCover_mc._y = 161.3;
return;
case "front" :
magCover_mc._xscale = (magCover_mc._yscale = 76.2);
magCover_mc._x = 36.8;
magCover_mc._y = 9.4;
}
}
function printCover() {
printAsBitmap (magCover_mc.frontCover_mc, "bmax");
}
function printMag() {
printAsBitmap (magCover_mc, "bmax");
}
function prepEmail() {
gotoAndStop ("email");
}
function catalogscreen() {
clearInterval(_root.catalogscreen_ID);
_root.gotoAndStop("catalog");
}
if (isFromEmail) {
dBox_mc.gotoAndStop("fromEmail");
}
setMagProps();
egPointsNotice_mc.partName = "superstar";
egPointsNotice_mc.setComplete();
if (_root.catalogshow == true) {
_root.catalogscreen_ID = setInterval(catalogscreen, 6000);
}
Frame 43
stop();
_root.catalogshow = false;
keepplaying.onRelease = function () {
gotoAndStop ("payoff");
};
seemore.onRelease = function () {
getURL ("/catalog/subcatalogbrd.aspx?cat_id=200002&subcat_id=210015", "_new");
};
Frame 46
function sendEmail(uName, fName, fEmail) {
var _local1 = this;
_local1.userName = uName;
_local1.friendName = fName;
_local1.friendEmail = fEmail;
_local1.makeoverData = escape(CENTCOM.returnXML("myMakeover").toString());
_local1.onData = function () {
if (this.mail_sent == "y") {
goTo = "thanks";
send_ft.track();
} else {
goTo = "mailError";
}
this.gotoAndStop(goTo);
};
_local1.loadVariables("makeoveractions.aspx?action=send", "POST");
}
clearInterval(_root.catalogscreen_ID);
_root.catalogshow = false;
Symbol 15 MovieClip Frame 12
stop();
Symbol 70 MovieClip [FPointsNoticeSymbol] Frame 1
#initclip 5
function getNetDebugVersion() {
return(1);
}
function NetDebugConfig() {
}
function attachNetDebugConfigFunctions(ndc) {
var _local1 = ndc;
_local1.setDebug = function (setval) {
this.m_debug = setval;
};
_local1.getDebug = function () {
return(this.m_debug);
};
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "object") {
attachNetDebugConfigFunctions(_local1[_local2]);
}
}
}
function getDefaultNetDebugConfig(iscontroller) {
var _local1 = _global;
if (_local1.netDebugConfigSO == undefined) {
var _local2 = "TestMovie_Config_Info";
if (iscontroller) {
_local2 = "Controller_Config_Info";
}
_local1.netDebugConfigSO = SharedObject.getLocal(_local2);
}
if (_local1.netDebugConfigSO.data.config == undefined) {
_local1.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_local1.netDebugConfigSO.flush();
return(_local1.netDebugConfigSO.data.config);
}
function getRealDefaultNetDebugConfig() {
var _local1 = new NetDebugConfig();
_local1.m_debug = true;
_local1.client = new NetDebugConfig();
_local1.client.m_debug = true;
_local1.client.trace = true;
_local1.client.recordset = true;
_local1.client.http = true;
_local1.client.rtmp = true;
_local1.realtime_server = new NetDebugConfig();
_local1.realtime_server.m_debug = true;
_local1.realtime_server.trace = true;
_local1.app_server = new NetDebugConfig();
_local1.app_server.m_debug = true;
_local1.app_server.trace = true;
_local1.app_server.error = true;
_local1.app_server.recordset = true;
_local1.app_server.httpheaders = false;
_local1.app_server.amf = false;
_local1.app_server.amfheaders = false;
_local1.app_server.coldfusion = true;
return(_local1);
}
function NetDebugEvent() {
}
function NetDebugErrorEvent(dataobj) {
var _local1 = this;
_local1.init();
_local1.EventType = "NetDebugError";
_local1.Error = dataobj;
}
function NetDebugTraceEvent(traceobj) {
var _local1 = this;
_local1.init();
_local1.EventType = "Trace";
_local1.Trace = traceobj;
}
function NetDebugTraceNetServicesEvent(w, s, n, m) {
var _local1 = this;
_local1.init();
_local1.EventType = "NetServicesTrace";
_local1.Trace = m;
_local1.Who = w;
_local1.Severity = s;
_local1.Number = n;
}
function NetDebugNCEvent() {
}
function NetDebugResultEvent(resultobj) {
var _local1 = this;
_local1.init();
_local1.EventType = "Result";
_local1.Result = resultobj;
}
function NetDebugStatusEvent(statusobj) {
var _local1 = this;
_local1.init();
_local1.EventType = "Status";
_local1.Status = statusobj;
}
function NetDebugConnectEvent(args) {
var _local1 = this;
var _local2 = args;
_local1.init();
_local1.EventType = "Connect";
_local1.ConnectString = _local2[0];
if (_local2[1] != null) {
_local1.UserName = _local2[1];
}
if (_local2[2] != null) {
_local1.Password = _local2[2];
}
}
function NetDebugCallEvent(args) {
var _local2 = args;
var _local3 = this;
_local3.init();
_local3.EventType = "Call";
_local3.MethodName = _local2[0];
_local3.Parameters = new Array();
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.Parameters[_local1 - 2] = _local2[_local1];
_local1++;
}
}
function NetDebugCloseEvent() {
this.init();
this.EventType = "Close";
}
function NetDebugAddHeaderEvent(args) {
var _local1 = this;
var _local2 = args;
_local1.init();
_local1.EventType = "AddHeader";
_local1.HeaderName = _local2[0];
_local1.MustUnderstand = _local2[1];
if (_local2[2] != null) {
_local1.HeaderObject = _local2[2];
}
}
function NetDebugRtmpLogEvent(infoobj) {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Trace";
_local1.Source = "RealTime";
_local1.Info = infoobj;
_local1.Trace = infoobj.description;
}
function NetDebugDuplicateNCDErrorEvent() {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Error";
_local1.Source = "NCD";
_local1.Message = "NCD_ALREADY_RUNNING";
}
function NetDebugFailedSendErrorEvent(ev) {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Error";
_local1.Source = "NCD";
_local1.OriginalEvent = ev;
_local1.Message = "NCD_FAILED_TO_SEND_EVENT";
}
function NetDebugInfoErrorEvent(infoobj, mes) {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Error";
_local1.Source = "NCD";
_local1.Info = infoobj;
if (mes != null) {
_local1.Message = mes;
}
}
function NetDebugReceiveCallEvent(mName, args) {
var _local1 = this;
_local1.init();
_local1.EventType = "ReceivedCall";
_local1.MethodName = mName;
_local1.Parameters = args;
}
function netDebugProxyConnect() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
var _local3 = _local2[0].substr(0, 4);
if ((_local3 == "http") || (_local3 == "rtmp")) {
_local1.m_Protocol = _local3;
} else {
_local1.m_Protocol = "http";
}
_local1.sendClientEvent(new NetDebugConnectEvent(_local2));
if (_local1.isRealTime()) {
_local1.m_ConnectString = _local2[0];
getNetDebug().sendCommand(new StartRTMPTraceCommand(_local2[0]));
var ret = _local1.realconnect.apply(_local1, _local2);
_local1.realcall("@getClientID", new RTMPClientIDResponse(_local2[0], _local1));
return(ret);
}
return(_local1.realconnect.apply(_local1, _local2));
}
function netDebugProxyCall() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
_local1.sendClientEvent(new NetDebugCallEvent(_local2));
_local1.addNetDebugHeader();
if (_local1.m_Config.app_server) {
_local2[1] = new NetDebugResponseProxy(_local1, _local2[1]);
return(_local1.realcall.apply(_local1, _local2));
}
return(_local1.realcall.apply(_local1, _local2));
}
function netDebugProxyClose() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new NetDebugCloseEvent());
if (_local1.isRealTime()) {
getNetDebug().sendCommand(new StopRTMPTraceCommand(_local1.m_ConnectString, _local1.m_ClientId));
}
var _local2 = _local1.realclose();
getNetDebug().removeNetConnection(_local1);
return(_local2);
}
function netDebugProxyAddHeader() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new NetDebugAddHeaderEvent(arguments));
return(_local1.realaddHeader.apply(_local1, arguments));
}
function RTMPClientIDResponse(cs, nc) {
this.m_ConnectString = cs;
this.m_NC = nc;
}
function NetDebugResponseProxy(source, original) {
this.m_SourceNC = source;
this.m_OriginalNR = original;
}
function GlobalLocalConnection(iscontroller, receiver, domainname) {
var _local2 = this;
var _local3 = _global;
_local2.maxConnections = 10;
var sToMovie = "_NetDebugLocalToDebugMovie";
var sToController = "_NetDebugLocalToController";
var connectname = null;
if (iscontroller) {
connectname = sToController;
_local2.sendnames = new Array();
_local2.sendnames.push(sToMovie);
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
_local2.sendnames.push(sToMovie + _local1);
_local1++;
}
_local2.maxConnections = 0;
} else {
connectname = sToMovie;
_local2.sendnames = new Array();
_local2.sendnames.push(sToController);
}
_local2.setDomainName(domainname);
if (_local3.g_NetDebugLocalConnection == undefined) {
_local3.g_NetDebugLocalConnection = new LocalConnection();
_local3.g_NetDebugLocalConnection.allowDomain = function () {
return(true);
};
}
if (receiver != null) {
_local3.g_NetDebugLocalConnection.m_Receiver = receiver;
_local3.g_NetDebugLocalConnection.onData = function (dataobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
};
_local3.g_NetDebugLocalConnection.onCommand = function (commandobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
};
if (!_local3.g_NetDebugLocalConnection.connect(connectname)) {
var connected = false;
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
if (_local3.g_NetDebugLocalConnection.connect(connectname + _local1)) {
connected = true;
break;
}
_local1++;
}
if (!connected) {
if (iscontroller) {
receiver.onReceiveError(new NetDebugDuplicateNCDErrorEvent());
}
}
}
}
}
function LocalCommand() {
}
function UpdateNetDebugConfigCommand(dataobj) {
this.init("updateConfig", dataobj);
}
function GetConfigCommand() {
this.init("getConfig", null);
}
function StartRTMPTraceCommand(cs) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
this.init("startRealTimeTrace", _local1);
}
function AddRTMPClientCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
this.init("addRealTimeClient", _local1);
}
function StopRTMPTraceCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
this.init("stopRealTimeTrace", _local1);
}
function NetDebug() {
var _local1 = this;
_local1.m_ncs = new Array();
_local1.m_Config = getDefaultNetDebugConfig();
_local1.m_glc = new GlobalLocalConnection(false, _local1);
_local1.m_glc.sendCommand(new GetConfigCommand());
_local1.m_NextNewId = 0;
}
function getNetDebug() {
return(_global.netDebugInstance);
}
_global.RsDataProviderClass = function () {
this.init();
};
RsDataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
};
RsDataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {event:"updateAll"};
viewRef.modelChanged(_local1);
};
RsDataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if (_local1 < 0) {
} else {
if (_local1 < _local2.getLength()) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(value) == "object") {
_local2.items[_local1] = value;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var _local3 = {event:"addRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
}
};
RsDataProviderClass.prototype.addItem = function (value) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.addItemAt(_local1.getLength(), value);
}
};
RsDataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {event:"deleteRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
return(tmpItm);
}
return(undefined);
};
RsDataProviderClass.prototype.removeAll = function () {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items = new Array();
_local1.updateViews({event:"deleteRows", firstRow:0, lastRow:_local1.getLength() - 1});
}
};
RsDataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var _local3 = _local2.getItemID(_local1);
_local2.items[_local1] = itemObj;
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
RsDataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
RsDataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
RsDataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
RsDataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({event:"sort"});
}
};
RsDataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = this;
var _local3 = eventObj;
var _local1 = 0;
while (_local1 < _local2.views.length) {
_local2.views[_local1].modelChanged(_local3);
_local1++;
}
};
_global.RecordSet = function (columnNames) {
var _local1 = this;
if (_local1.mTitles != null) {
_local1.views = new Array();
} else {
_local1.init();
if (_local1.serverInfo == null) {
_local1.mTitles = columnNames;
} else if (_local1.serverInfo.version != 1) {
NetServices.trace("RecordSet", "warning", 100, "Received incompatible recordset version from server");
} else {
_local1.mTitles = _local1.serverInfo.columnNames;
_local1.mRecordsAvailable = 0;
_local1.setData(((_local1.serverInfo.cursor == null) ? 0 : (_local1.serverInfo.cursor - 1)), _local1.serverInfo.initialData);
if (_local1.serverInfo.initialData.length != _local1.serverInfo.totalCount) {
_local1.mRecordSetId = _local1.serverInfo.id;
if (_local1.mRecordSetId != null) {
_local1.serviceName = ((_local1.serverInfo.serviceName == null) ? "RecordSet" : (_local1.serverInfo.serviceName));
_local1.mTotalCount = _local1.serverInfo.totalCount;
_local1.mDeliveryMode = "ondemand";
_local1.mAllNotified = false;
_local1.mOutstandingRecordCount = 0;
} else {
NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no recordset id");
}
}
_local1.serverInfo = null;
}
}
};
RecordSet.prototype = new RsDataProviderClass();
Object.registerClass("RecordSet", RecordSet);
RecordSet.prototype._setParentService = function (service) {
this.gateway_conn = service.nc;
};
RecordSet.prototype.getRecordSetService = function () {
var _local1 = this;
if (_local1.mRecordSetService == null) {
if (_local1.gateway_conn == null) {
_local1.gateway_conn = NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
_local1.gateway_conn = _local1.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
_local1.gateway_conn.setupRecordset();
_local1.gateway_conn.setDebugId("RecordSet " + _local1.mRecordSetId);
}
_local1.mRecordSetService = _local1.gateway_conn.getService(_local1.serviceName, _local1);
if (_local1.mRecordSetService == null) {
NetServices.trace("RecordSet", "warning", 101, "Failed to create recordset service");
_local1.mRecordSetService = 0;
}
}
return(_local1.mRecordSetService);
};
RecordSet.prototype.getColumnNames = function () {
return(this.mTitles);
};
RecordSet.prototype.getLength = function () {
var _local1 = this;
if (_local1.mRecordSetID != null) {
return(_local1.mTotalCount);
}
return(_local1.items.length);
};
RecordSet.prototype.getItemAt = function (index) {
var _local1 = index;
var _local2 = this;
if (_local2.mRecordSetId == null) {
return(_local2.items[_local1]);
}
if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
NetServices.trace("RecordSet", "warning", 104, ("getItemAt(" + _local1) + ") index out of range");
return(null);
}
_local2.requestRecord(_local1);
var _local3 = _local2.items[_local1];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
};
RecordSet.prototype.setField = function (index, fieldName, value) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
_local2.items[_local1][fieldName] = value;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
RecordSet.prototype.filter = function (filterFunction, context) {
var _local3 = this;
if (!_local3.checkLocal()) {
} else {
var result = new RecordSet(_local3.mTitles);
var _local2 = 0;
while (_local2 < _local3.getLength()) {
var _local1 = _local3.getItemAt(_local2);
if (((_local1 != null) && (_local1 != 1)) && (filterFunction(_local1, context))) {
result.addItem(_local1);
}
_local2++;
}
return(result);
}
return(undefined);
};
RecordSet.prototype.sort = function (compareFunc) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
_local1.updateViews({event:"sort"});
}
};
RecordSet.prototype.isLocal = function () {
return(this.mRecordSetID == null);
};
RecordSet.prototype.isFullyPopulated = function () {
return(this.isLocal());
};
RecordSet.prototype.getNumberAvailable = function () {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.getLength());
}
return(_local1.mRecordsAvailable);
};
RecordSet.prototype.setDeliveryMode = function (mode, pagesize, numPrefetchPages) {
var _local1 = this;
var _local2 = pagesize;
var _local3 = mode;
_local1.mDeliveryMode = _local3;
_local1.stopFetchAll();
if (_local3 == "ondemand") {
} else {
if (_local2 == null) {
_local2 = _local1.views[0].getRowCount();
if (_local2 == null) {
_local2 = 25;
}
}
if (_local3 == "page") {
if (numPrefetchPages == null) {
numPrefetchPages = 0;
}
_local1.mPageSize = _local2;
_local1.mNumPrefetchPages = numPrefetchPages;
} else if (_local3 == "fetchall") {
_local1.stopFetchAll();
_local1.startFetchAll(_local2);
} else {
NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
};
RecordSet.prototype.getRecords_Result = function (info) {
var _local1 = this;
var _local2 = info;
_local1.setData(_local2.Cursor - 1, _local2.Page);
_local1.mOutstandingRecordCount = _local1.mOutstandingRecordCount - _local2.Page.length;
_local1.updateViews({event:"updateRows", firstRow:_local2.Cursor - 1, lastRow:((_local2.Cursor - 1) + _local2.Page.length) - 1});
if ((_local1.mRecordsAvailable == _local1.mTotalCount) && (!_local1.mAllNotified)) {
_local1.updateViews({event:"allRows"});
_local1.mRecordSetService.release();
_local1.mAllNotified = true;
_local1.mRecordSetID = null;
_local1.mRecordSetService = null;
}
};
RecordSet.prototype.release_Result = function () {
};
RecordSet.prototype.arrayToObject = function (anArray) {
var _local3 = anArray;
if (this.mTitles == null) {
NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var result = new Object();
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = this.mTitles[_local1];
if (_local2 == null) {
_local2 = ("column" + _local1) + 1;
}
result[_local2] = _local3[_local1];
_local1++;
}
return(result);
};
RecordSet.prototype.setData = function (start, dataArray) {
var _local1 = this;
var _local2 = 0;
while (_local2 < dataArray.length) {
var _local3 = _local2 + start;
var rec = _local1.items[_local3];
if ((rec != null) && (rec != 1)) {
NetServices.trace("RecordSet", "warning", 106, "Already got record # " + recordIndex);
} else {
_local1.mRecordsAvailable = _local1.mRecordsAvailable + 1;
}
_local1.items[_local3] = _local1.arrayToObject(dataArray[_local2]);
_local1.items[_local3].__ID__ = _local1.uniqueID++;
_local2++;
}
};
RecordSet.prototype.requestOneRecord = function (index) {
var _local1 = this;
var _local2 = index;
if (_local1.items[_local2] == null) {
_local1.getRecordSetService().getRecords(_local1.mRecordSetId, _local2 + 1, 1);
_local1.mOutstandingRecordCount++;
_local1.items[_local2] = 1;
_local1.updateViews({event:"fetchRows", firstRow:_local2, lastRow:_local2});
}
};
RecordSet.prototype.requestRecord = function (index) {
var _local1 = this;
if (_local1.mDeliveryMode != "page") {
_local1.requestOneRecord(index);
} else {
var _local2 = int(index / _local1.mPageSize) * _local1.mPageSize;
var _local3 = (_local2 + (_local1.mPageSize * (_local1.mNumPrefetchPages + 1))) - 1;
_local1.requestRecordRange(_local2, _local3);
}
};
RecordSet.prototype.requestRecordRange = function (index, lastIndex) {
var _local1 = index;
var _local2 = this;
var highestRequested = -1;
if (_local1 < 0) {
_local1 = 0;
}
if (lastIndex >= _local2.getLength()) {
lastIndex = _local2.getLength() - 1;
}
while (_local1 <= lastIndex) {
while ((_local1 <= lastIndex) && (_local2.items[_local1] != null)) {
_local1++;
}
var _local3 = _local1;
while ((_local1 <= lastIndex) && (_local2.items[_local1] == null)) {
_local2.mOutstandingRecordCount++;
_local2.items[_local1] = 1;
_local1++;
}
var last = (_local1 - 1);
if (_local3 <= last) {
_local2.getRecordSetService().getRecords(_local2.mRecordSetId, _local3 + 1, (last - _local3) + 1);
highestRequested = last;
_local2.updateViews({event:"fetchRows", firstRow:_local3, lastRow:last});
}
}
return(highestRequested);
};
RecordSet.prototype.startFetchAll = function (pagesize) {
var _local1 = this;
_local1.mDataFetcher.disable();
_local1.mDataFetcher = new RsDataFetcher(_local1, pagesize);
};
RecordSet.prototype.stopFetchAll = function () {
this.mDataFetcher.disable();
this.mDataFetcher = null;
};
RecordSet.prototype.checkLocal = function () {
if (this.isLocal()) {
return(true);
}
NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(false);
};
_global.RsDataFetcher = function (recordSet, increment) {
var _local1 = this;
_local1.mRecordSet = recordSet;
_local1.mRecordSet.addView(_local1);
_local1.mIncrement = increment;
_local1.mNextRecord = 0;
_local1.mEnabled = true;
_local1.doNext();
};
RsDataFetcher.prototype.disable = function () {
var _local1 = this;
_local1.mEnabled = false;
_local1.mRecordSet.removeView(_local1);
};
RsDataFetcher.prototype.doNext = function () {
var _local1 = this;
if (!_local1.mEnabled) {
} else {
do {
if (_local1.mNextRecord >= _local1.mRecordSet.getLength()) {
return;
}
_local1.mHighestRequested = _local1.mRecordSet.requestRecordRange(_local1.mNextRecord, (_local1.mNextRecord + _local1.mIncrement) - 1);
_local1.mNextRecord = _local1.mNextRecord + _local1.mIncrement;
} while (_local1.mHighestRequested <= 0);
}
};
RsDataFetcher.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (((_local2.event == "updateRows") && (_local2.firstRow <= _local1.mHighestRequested)) && (_local2.lastRow >= _local1.mHighestRequested)) {
_local1.doNext();
}
if (_local2.event == "allRows") {
_local1.disable();
}
};
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder.prototype.onResult = function (result) {
var _local3 = result;
var _local1 = this.service.client;
_local3._setParentService(this.service);
var _local2 = this.methodName + "_Result";
if (typeof(_local1[_local2]) == "function") {
_local1[_local2](_local3);
} else if (typeof(_local1.onResult) == "function") {
_local1.onResult(_local3);
} else {
NetServices.trace("NetServices", "info", 1, (_local2 + " was received from server: ") + _local3);
}
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var _local1 = result;
var _local2 = this.service.client;
var _local3 = this.methodName + "_Status";
if (typeof(_local2[_local3]) == "function") {
_local2[_local3](_local1);
} else if (typeof(_local2.onStatus) == "function") {
_local2.onStatus(_local1);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(_local1);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(_local1);
} else {
NetServices.trace("NetServices", "info", 2, (((_local3 + " was received from server: ") + _local1.class) + " ") + _local1.description);
}
};
Object.registerClass("NetServiceProxy", NetServiceProxy);
_global.NetServiceProxy = function (nc, serviceName, client) {
var _local1 = this;
if (nc != null) {
_local1.nc = nc;
_local1.serviceName = serviceName;
_local1.client = client;
}
};
NetServiceProxy.prototype._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
NetServiceProxy.prototype.__resolve = function (methodName) {
var _local1 = this;
var _local2 = arguments;
var _local3 = function () {
var _local1 = this;
var _local2 = arguments;
if (_local1.client != null) {
_local2.unshift(new NetServiceProxyResponder(_local1, methodName));
} else if (typeof(_local2[0].onResult) != "function") {
NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, but no responder was given in call to " + methodName);
_local2.unshift(new NetServiceProxyResponder(_local1, methodName));
}
_local2.unshift((_local1.serviceName + ".") + methodName);
return(_local1.nc.call.apply(_local1.nc, _local2));
};
return(_local3);
};
NetConnection.prototype.getService = function (serviceName, client) {
var _local1 = new NetServiceProxy(this, serviceName, client);
return(_local1);
};
NetConnection.prototype.setCredentials = function (userid, password) {
this.addHeader("Credentials", false, {userid:userid, password:password});
};
NetConnection.prototype.RequestPersistentHeader = function (info) {
var _local1 = info;
this.addHeader(_local1.name, _local1.mustUnderstand, _local1.data);
};
NetConnection.prototype.ReplaceGatewayUrl = function (newUrl) {
this.connect(newUrl);
};
NetConnection.prototype.clone = function () {
var _local1 = new NetConnection();
_local1.connect(this.uri);
return(_local1);
};
if (_global.NetServices == null) {
_global.NetServices = new Object();
NetServices.gatewayUrl = gatewayUrl;
}
NetServices.setDefaultGatewayUrl = function (url) {
NetServices.defaultGatewayUrl = url;
};
NetServices.setGatewayUrl = function (url) {
NetServices.gatewayUrl = url;
};
NetServices.createGatewayConnection = function (url) {
var _local1 = url;
if (_local1 == undefined) {
if (NetServices.isHttpUrl(_root._url)) {
_local1 = NetServices.gatewayUrl;
if (_local1 == undefined) {
_local1 = NetServices.defaultGatewayUrl;
if (_local1 != undefined) {
if (NetServices.isHttpUrl(_local1)) {
var _local2 = _local1.indexOf("/", 8);
if (_local2 >= 0) {
_local1 = _local1.substring(_local2);
}
}
var _local3 = NetServices.getHostUrl();
if (_local3 != null) {
_local1 = _local3 + _local1;
}
}
}
} else {
_local1 = NetServices.defaultGatewayUrl;
}
}
if (_local1 == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var nc = new NetConnection();
nc.connect(_local1);
return(nc);
};
NetServices.getHostUrl = function () {
var _local2 = _root;
if (!NetServices.isHttpUrl(_local2._url)) {
return(null);
}
var _local1 = _local2._url.indexOf("/", 8);
if (_local1 < 0) {
return(null);
}
return(_local2._url.substring(0, _local1));
};
NetServices.isHttpUrl = function (url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
};
NetServices.trace = function (who, severity, number, message) {
var _local1 = (((((who + " ") + severity) + " ") + number) + ": ") + message;
trace(_local1);
NetDebug.traceNetServices(who, severity, number, message);
};
NetServices.getVersion = function () {
return(1);
};
_global.copyProperties = function (to, from) {
var _local1 = from;
var _local2 = to;
for (var _local3 in _local1) {
if ((_local3 == "__proto__") || (_local3 == "function")) {
continue;
}
if (typeof(_local1[_local3]) == "object") {
if (_local2[_local3] == undefined) {
_local2[_local3] = new _local1[_local3].__proto__.constructor();
}
copyProperties(_local2[_local3], _local1[_local3]);
} else {
_local2[_local3] = _local1[_local3];
}
}
};
_global.copyObject = function (obj) {
var _local2 = obj;
if (typeof(_local2) == "object") {
var _local1 = new _local2.__proto__.constructor();
copyProperties(_local1, _local2);
return(_local1);
}
return(_local2);
};
_global.objectToStringTree = function (obj, openstr, typesepstr, valuesepstr, closestr) {
var _local1 = new StringLineAdder(obj, new TreeLineRenderer(((openstr == null) ? "{" : (openstr)), ((typesepstr == null) ? ":" : (typesepstr)), ((valuesepstr == null) ? ", " : (valuesepstr)), ((closestr == null) ? "}" : (closestr))));
return(_local1.getString());
};
_global.objectToListboxTree = function (listbox, obj, openstr, typesepstr, valuesepstr, closestr) {
new ListLineAdder(listbox, obj, new TreeLineRenderer(((openstr == null) ? "{" : (openstr)), ((typesepstr == null) ? ":" : (typesepstr)), ((valuesepstr == null) ? ", " : (valuesepstr)), ((closestr == null) ? "}" : (closestr))));
};
_global.StringLineAdder = function (obj, renderer) {
var _local1 = this;
_local1.linerenderer = renderer;
_local1.output = "";
nestedObjectDump(0, null, obj, _local1);
};
StringLineAdder.prototype.getString = function () {
return(this.output);
};
StringLineAdder.prototype.addLine = function (level, objname, objtype, objvalue, objnum) {
var _local1 = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (_local1 != null) {
this.output = this.output + (_local1 + newline);
}
return(true);
};
_global.ListLineAdder = function (listbox, obj, renderer) {
var _local1 = this;
_local1.linerenderer = renderer;
_local1.output_lb = listbox;
nestedObjectDump(0, null, obj, _local1);
};
ListLineAdder.prototype.addLine = function (level, objname, objtype, objvalue, objnum) {
var _local1 = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (_local1 != null) {
this.output_lb.addItem(_local1);
}
return(true);
};
_global.TreeLineRenderer = function (pre, typedelim, valuedelim, post) {
this.init(pre, typedelim, valuedelim, post);
};
TreeLineRenderer.prototype.init = function (pre, typedelim, valuedelim, post) {
var _local1 = this;
_local1.prechar = pre;
_local1.typechar = typedelim;
_local1.valuechar = valuedelim;
_local1.postchar = post;
};
TreeLineRenderer.prototype.getLine = function (level, objname, objtype, objvalue, objnum) {
var _local3 = this;
var _local2 = "";
var _local1 = 0;
while (_local1 < level) {
_local2 = _local2 + "\t";
_local1++;
}
var valuedelim = _local3.valuechar;
if ((objname != null) && (objtype != "object")) {
_local2 = _local2 + (((_local3.prechar + objtype) + _local3.typechar) + objname);
} else if (objtype == "object") {
if (typeof(objvalue) == "number") {
_local2 = _local2 + (((_local3.prechar + objtype) + _local3.typechar) + objname);
_local2 = _local2 + ((valuedelim + "object#") + objvalue);
objvalue = null;
} else {
_local2 = _local2 + (((((_local3.prechar + objtype) + "#") + objnum) + _local3.typechar) + objname);
}
} else {
_local2 = _local2 + (_local3.prechar + objtype);
valuedelim = _local3.typechar;
}
if (objvalue != null) {
_local2 = _local2 + (valuedelim + objvalue);
}
_local2 = _local2 + _local3.postchar;
return(_local2);
};
_global.nestedObjectDump = function (level, objname, obj, lineadder) {
var _local1 = obj;
if (level == 0) {
nestedObjectDump.callcount++;
nestedObjectDump.objcount = -1;
}
if (_local1 == null) {
return(lineadder.addLine(level, objname, "undefined"));
}
if (typeof(_local1) == "function") {
return(lineadder.addLine(level, objname, "function"));
}
if (typeof(_local1) == "object") {
if ((_local1.__nestedObjectDump_id != undefined) && (_local1.__nestedObjectDump_ref == nestedObjectDump.callcount)) {
return(lineadder.addLine(level, objname, "object", _local1.__nestedObjectDump_id));
}
nestedObjectDump.objcount++;
if (lineadder.addLine(level, objname, "object", null, nestedObjectDump.objcount) == nestedObjectDump.skip) {
return(nestedObjectDump.proceed);
}
_local1.__nestedObjectDump_id = nestedObjectDump.objcount;
_local1.__nestedObjectDump_ref = nestedObjectDump.callcount;
var props = new Array();
var _local3 = new Array();
for (var prop in _local1) {
if (((prop == "__proto__") || (prop == "__nestedObjectDump_id")) || (prop == "__nestedObjectDump_ref")) {
continue;
}
if (typeof(_local1[prop]) == "object") {
_local3.push(prop);
} else {
props.push(prop);
}
}
if ((_local3.length == 0) && (props.length == 0)) {
if ((typeof(_local1.toString) == "function") && (_local1.toString() != "")) {
return(lineadder.addLine(level + 1, null, "string", _local1.toString()));
}
if (lineadder.noProps != undefined) {
lineadder.noProps(level + 1);
return(nestedObjectDump.proceed);
}
}
props.sort();
_local3.sort();
var bret = true;
var _local2 = 0;
while (_local2 < props.length) {
if (nestedObjectDump(level + 1, props[_local2], _local1[props[_local2]], lineadder) == nestedObjectDump.stop) {
bret = false;
break;
}
_local2++;
}
if (bret) {
_local2 = 0;
while (_local2 < _local3.length) {
if (!nestedObjectDump(level + 1, _local3[_local2], _local1[_local3[_local2]], lineadder)) {
bret = false;
}
_local2++;
}
}
return(nestedObjectDump.proceed);
}
return(lineadder.addLine(level, objname, typeof(_local1), _local1));
};
nestedObjectDump.proceed = 1;
nestedObjectDump.skip = 2;
nestedObjectDump.stop = 3;
nestedObjectDump.callcount = 0;
nestedObjectDump.objcount = 0;
Object.registerClass("NetDebugConfig", NetDebugConfig);
NetDebugEvent.prototype.init = function () {
var _local1 = this;
_local1.EventType = "DebugEvent";
_local1.Source = "Client";
_local1.MovieUrl = unescape(_root._url);
_local1.initDate();
};
NetDebugEvent.prototype.initDate = function () {
var _local1 = new Date();
this.Date = _local1;
this.Time = _local1.getTime();
};
NetDebugErrorEvent.prototype = new NetDebugEvent();
NetDebugTraceEvent.prototype = new NetDebugEvent();
NetDebugTraceNetServicesEvent.prototype = new NetDebugEvent();
NetDebugNCEvent.prototype = new NetDebugEvent();
NetDebugResultEvent.prototype = new NetDebugNCEvent();
NetDebugStatusEvent.prototype = new NetDebugNCEvent();
NetDebugConnectEvent.prototype = new NetDebugNCEvent();
NetDebugCallEvent.prototype = new NetDebugNCEvent();
NetDebugCloseEvent.prototype = new NetDebugNCEvent();
NetDebugAddHeaderEvent.prototype = new NetDebugNCEvent();
NetDebugRtmpLogEvent.prototype = new NetDebugNCEvent();
NetDebugDuplicateNCDErrorEvent.prototype = new NetDebugNCEvent();
NetDebugFailedSendErrorEvent.prototype = new NetDebugNCEvent();
NetDebugInfoErrorEvent.prototype = new NetDebugNCEvent();
NetDebugResultEvent.prototype = new NetDebugNCEvent();
_global.StripNCDEventToMinmal = function (ev) {
var _local1 = ev;
var _local2 = new Object();
if (_local1.EventType != null) {
_local2.EventType = _local1.EventType;
}
if (_local1.Source != null) {
_local2.Source = _local1.Source;
}
if (_local1.MovieUrl != null) {
_local2.MovieUrl = _local1.MovieUrl;
}
if (_local1.Date != null) {
_local2.Date = _local1.Date;
}
if (_local1.Time != null) {
_local2.Time = _local1.Time;
}
if (_local1.Protocol != null) {
_local2.Protocol = _local1.Protocol;
}
if (_local1.DebugId != null) {
_local2.DebugId = _local1.DebugId;
}
return(_local2);
};
NetConnection.prototype.attachDebug = function () {
var _local1 = this;
if (!_local1.m_Attached) {
_local1.m_Attached = true;
_local1.m_HeaderAdded = false;
_local1.m_Config = new NetDebugConfig();
copyProperties(_local1.m_Config, getNetDebug().m_Config);
_local1.m_Protocol = "none";
_local1.m_Id = getNetDebug().addNetConnection(_local1);
}
};
NetConnection.prototype.sendDebugEvent = function (eventobj) {
var _local1 = eventobj;
_local1.Protocol = this.m_Protocol;
_local1.DebugId = this.m_Id;
return(getNetDebug().onEvent(_local1));
};
NetConnection.prototype.sendServerEvent = function (eventobj) {
eventobj.MovieUrl = unescape(_root._url);
if (!this.sendDebugEvent(eventobj)) {
}
};
NetConnection.prototype.sendClientEvent = function (eventobj) {
var _local1 = this;
if (_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) {
if ((_local1.m_Config.client.http && (_local1.m_Protocol == "http")) || (_local1.m_Config.client.rtmp && (_local1.m_Protocol == "rtmp"))) {
if (!_local1.sendDebugEvent(eventobj)) {
}
}
}
};
NetConnection.prototype.addNetDebugHeader = function () {
var _local1 = this;
if (!_local1.m_HeaderAdded) {
_local1.m_HeaderAdded = true;
if ((_local1.m_Config.m_debug && (_local1.m_Config.app_server.m_debug)) && (_local1.m_Protocol == "http")) {
_local1.realaddHeader("amf_server_debug", true, _local1.m_Config.app_server);
} else {
_local1.realaddHeader("amf_server_debug", true, undefined);
}
}
};
NetConnection.prototype.updateConfig = function (config) {
var _local1 = this;
_local1.attachDebug();
copyProperties(_local1.m_Config, config);
_local1.m_HeaderAdded = false;
};
NetConnection.prototype.isRealTime = function () {
var _local1 = this;
return((_local1.m_Config.m_debug && (_local1.m_Config.realtime_server.m_debug)) && (_local1.m_Protocol == "rtmp"));
};
NetConnection.prototype.setupRecordset = function () {
var _local1 = this;
_local1.attachDebug();
_local1.m_Config.client.http = _local1.m_Config.client.recordset;
};
NetConnection.prototype.setDebugId = function (id) {
this.attachDebug();
this.m_Id = id;
};
NetConnection.prototype.getDebugId = function () {
this.attachDebug();
return(this.m_Id);
};
NetConnection.prototype.trace = function (traceobj) {
var _local1 = this;
_local1.attachDebug();
if ((_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) && (_local1.m_Config.client.trace)) {
_local1.sendDebugEvent(new NetDebugTraceEvent(traceobj));
}
};
NetConnection.prototype.getDebugConfig = function () {
this.attachDebug();
return(this.m_Config);
};
if (!NetConnection.prototype.netDebugProxyFunctions) {
NetConnection.prototype.netDebugProxyFunctions = true;
NetConnection.prototype.realconnect = NetConnection.prototype.connect;
NetConnection.prototype.realcall = NetConnection.prototype.call;
NetConnection.prototype.realclose = NetConnection.prototype.close;
NetConnection.prototype.realaddHeader = NetConnection.prototype.addHeader;
NetConnection.prototype.connect = netDebugProxyConnect;
NetConnection.prototype.call = netDebugproxyCall;
NetConnection.prototype.close = netDebugproxyClose;
NetConnection.prototype.addHeader = netDebugproxyAddHeader;
}
RTMPClientIDResponse.prototype.onResult = function (cid) {
this.m_NC.m_ClientId = cid;
getNetDebug().sendCommand(new AddRTMPClientCommand(this.m_ConnectString, cid));
};
NetDebugResponseProxy.prototype.onDebugEvents = function (debugevents) {
var _local2 = debugevents;
var _local3 = this;
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.m_SourceNC.sendServerEvent(_local2[_local1]);
_local1++;
}
};
NetDebugResponseProxy.prototype.onResult = function (resultobj) {
this.m_SourceNC.sendClientEvent(new NetDebugResultEvent(resultobj));
this.m_OriginalNR.onResult(resultobj);
};
NetDebugResponseProxy.prototype.onStatus = function (statusobj) {
var _local1 = this;
var _local2 = statusobj;
_local1.m_SourceNC.sendClientEvent(new NetDebugStatusEvent(_local2));
if (_local1.m_OriginalNR.onStatus != undefined) {
_local1.m_OriginalNR.onStatus(_local2);
} else {
_global.System.onStatus(_local2);
}
};
NetDebugResponseProxy.prototype.__resolve = function (name) {
var _local1 = name;
trace("NetDebugResponseProxy.prototype.__resolve name: " + _local1);
this.m_SourceNC.sendClientEvent(new NetDebugReceiveCallEvent(_local1, arguments));
this.m_OriginalNR[_local1].apply(arguments);
};
GlobalLocalConnection.prototype.setDomainName = function (domainname) {
var _local1 = domainname;
if ((_local1 != null) && (_local1 != "")) {
this.sendPrefix = _local1 + ":";
} else {
this.sendPrefix = "";
}
};
GlobalLocalConnection.prototype.send = function (dataobj) {
return(this.sendRaw("onData", dataobj));
};
GlobalLocalConnection.prototype.sendCommand = function (commandobj) {
return(this.sendRaw("onCommand", commandobj));
};
GlobalLocalConnection.prototype.sendRaw = function (functionname, obj) {
var _local2 = this;
var _local3 = true;
var _local1 = 0;
while (_local1 < _local2.sendnames.length) {
_local3 = _local3 & _global.g_NetDebugLocalConnection.send(_local2.sendPrefix + _local2.sendnames[_local1], functionname, obj);
_local1++;
}
return(_local3);
};
LocalCommand.prototype.init = function (commandname, dataobj) {
this.command = commandname;
this.data = dataobj;
};
UpdateNetDebugConfigCommand.prototype = new LocalCommand();
GetConfigCommand.prototype = new LocalCommand();
StartRTMPTraceCommand.prototype = new LocalCommand();
AddRTMPClientCommand.prototype = new LocalCommand();
StopRTMPTraceCommand.prototype = new LocalCommand();
NetDebug.prototype.addNetConnection = function (nc) {
this.m_ncs.push(nc);
return(this.m_NextNewId++);
};
NetDebug.prototype.removeNetConnection = function (nc) {
var _local2 = this;
var _local3 = nc;
var _local1 = 0;
while (_local1 < _local2.m_ncs.length) {
if (_local3 == _local2.m_ncs[_local1]) {
_local2.m_ncs.splice(_local1, 1);
return;
}
_local1++;
}
};
NetDebug.prototype.sendDebugEvent = function (eventobj) {
if (!this.m_glc.send(eventobj)) {
this.m_glc.send(new NetDebugFailedSendErrorEvent(StripNCDEventToMinmal(eventobj)));
return(false);
}
return(true);
};
NetDebug.prototype.sendCommand = function (commandobj) {
return(this.m_glc.sendCommand(commandobj));
};
NetDebug.prototype.requestNewConfig = function () {
return(this.sendCommand(new GetConfigCommand()));
};
NetDebug.prototype.updateConfig = function (config) {
var _local2 = this;
var _local3 = config;
copyProperties(_local2.m_Config, _local3);
var _local1 = 0;
while (_local1 < _local2.m_ncs.length) {
if (_local2.m_ncs[_local1] != null) {
_local2.m_ncs[_local1].updateConfig(_local3);
}
_local1++;
}
};
NetDebug.prototype.sendStatus = function (statusobj) {
var _local1 = this;
if (_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) {
return(_local1.m_glc.send(new NetDebugStatusEvent(statusobj)));
}
return(undefined);
};
NetDebug.prototype.onEvent = function (eventobj) {
return(this.sendDebugEvent(eventobj));
};
NetDebug.prototype.onEventError = function (errorobj) {
return(this.sendDebugEvent(new NetDebugErrorEvent(errorobj)));
};
NetDebug.prototype.onReceiveCommand = function (commandobj) {
this[commandobj.command](commandobj.data);
};
NetDebug.prototype.onReceiveError = function (errorobj) {
this.sendDebugEvent(new NetDebugErrorEvent(errorobj));
};
NetDebug.prototype.traceNetServices = function (who, severity, number, message) {
var _local1 = this;
if ((_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) && (_local1.m_Config.client.trace)) {
if (!_local1.sendDebugEvent(new NetDebugTraceNetServicesEvent(who, severity, number, message))) {
}
}
};
NetDebug.prototype.trace = function (traceobj) {
var _local1 = this;
if ((_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) && (_local1.m_Config.client.trace)) {
if (!_local1.sendDebugEvent(new NetDebugTraceEvent(traceobj))) {
}
}
};
if (_global.netDebugInstance == undefined) {
_global.netDebugInstance = new NetDebug();
}
NetDebug.trace = function (obj) {
getNetDebug().trace(obj);
};
NetDebug.traceNetServices = function (who, severity, number, message) {
getNetDebug().traceNetServices(who, severity, number, message);
};
NetDebug.getVersion = function () {
return(getNetDebugVersion());
};
NetDebug.globalOnStatus = function (statusobj) {
getNetDebug().sendStatus(statusobj);
};
if (_global.System.onStatus == undefined) {
_global.System.onStatus = NetDebug.globalOnStatus;
}
_global.DataGlue = function (dataProvider) {
this.dataProvider = dataProvider;
};
_global.DataGlue.bindFormatStrings = function (dataConsumer, dataProvider, labelString, dataString) {
var _local1 = new DataGlue(dataProvider);
_local1.labelString = labelString;
_local1.dataString = dataString;
_local1.getItemAt = _global.DataGlue.getItemAt_FormatString;
dataConsumer.setDataProvider(_local1);
};
_global.DataGlue.bindFormatFunction = function (dataConsumer, dataProvider, formatFunction) {
var _local1 = new DataGlue(dataProvider);
_local1.formatFunction = formatFunction;
_local1.getItemAt = _global.DataGlue.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local1);
};
_global.DataGlue.prototype.addView = function (viewRef) {
return(this.dataProvider.addView(viewRef));
};
_global.DataGlue.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
_global.DataGlue.prototype.format = function (formatString, record) {
var _local2 = formatString.split("#");
var _local3 = "";
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + _local2[_local1];
_local3 = _local3 + ((_local2[_local1 + 1] == "") ? "#" : (record[_local2[_local1 + 1]]));
_local1 = _local1 + 2;
}
return(_local3);
};
_global.DataGlue.getItemAt_FormatString = function (index) {
var _local2 = this;
var _local1 = _local2.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return({label:_local2.format(_local2.labelString, _local1), data:((_local2.dataString == null) ? (_local1) : (_local2.format(_local2.dataString, _local1)))});
};
_global.DataGlue.getItemAt_FormatFunction = function (index) {
var _local1 = this.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return(this.formatFunction(_local1));
};
_global.DataGlue.prototype.getItemID = function (index) {
return(this.dataProvider.getItemID(index));
};
_global.DataGlue.prototype.addItemAt = function (index, value) {
return(this.dataProvider.addItemAt(index, value));
};
_global.DataGlue.prototype.addItem = function (value) {
return(this.dataProvider.addItem(value));
};
_global.DataGlue.prototype.removeItemAt = function (index) {
return(this.dataProvider.removeItemAt(index));
};
_global.DataGlue.prototype.removeAll = function () {
return(this.dataProvider.removeAll());
};
_global.DataGlue.prototype.replaceItemAt = function (index, itemObj) {
return(this.dataProvider.replaceItemAt(index, itemObj));
};
_global.DataGlue.prototype.sortItemsBy = function (fieldName, order) {
return(this.dataProvider.sortItemsBy(fieldName, order));
};
EventBroadcaster = function () {
this.init();
};
EventBroadcaster.prototype.init = function () {
this.$listeners = new Array();
};
EventBroadcaster.prototype.addEventListener = function (ev, obj, evHand) {
if (!this.eventListenerExists()) {
this.$listeners.push({ev:ev, obj:obj, evHand:evHand});
return(true);
}
return(false);
};
EventBroadcaster.prototype.removeEventListener = function (ev, obj, evHand) {
var _local1 = this.$indexOfEventListener(ev, obj, evHand);
if (_local1 != -1) {
this.$listeners.splice(_local1, 1);
return(true);
}
return(false);
};
EventBroadcaster.prototype.addListener = function (obj) {
return(this.addEventListener("ALL", obj));
};
EventBroadcaster.prototype.removeListener = function (obj) {
return(this.removeEventListener("ALL", obj));
};
EventBroadcaster.prototype.removeAllEventListeners = function (ev) {
var _local1 = this;
if (ev == null) {
_local1.$listeners = new Array();
} else {
var _local3;
var _local2;
for (_local2 in _local1.$listeners) {
_local3 = _local1.$listeners[_local2];
if (_local3.ev == ev) {
_local1.$listeners.splice(_local2, 1);
}
}
}
};
EventBroadcaster.prototype.eventListenerExists = function (ev, obj, evHand) {
return(this.$indexOfEventListener(ev, obj, evHand) != -1);
};
EventBroadcaster.prototype.notify = function () {
var _local3 = arguments;
var _local2 = _local3.shift();
var _local1;
var i;
for (i in this.$listeners) {
_local1 = this.$listeners[i];
if ((_local1.ev == _local2) || (_local1.ev == "ALL")) {
if (_local1.evHand == null) {
_local1.obj[_local2].apply(_local1.obj, _local3);
} else {
_local1.obj[_local1.evHand].apply(_local1.obj, _local3);
}
}
}
};
EventBroadcaster.prototype.$indexOfEventListener = function (ev, obj, evHand) {
var _local3 = this;
var _local1;
var _local2;
for (_local2 in _local3.$listeners) {
_local1 = _local3.$listeners[_local2];
if (((_local1.ev == ev) && (_local1.obj == obj)) && (_local1.evHand == evHand)) {
return(_local2);
}
}
return(-1);
};
EventBroadcaster.initialize = function (obj) {
var _local3 = obj;
var _local2 = new EventBroadcaster();
var _local1;
for (_local1 in _local2) {
_local3[_local1] = _local2[_local1];
}
};
if (EventBroadcaster == null) {
trace("UserServices: Cannot find EventBroadcaster. It is required for this class.");
}
UserServices = function () {
this.init.apply(this, arguments);
};
UserServices.prototype = new EventBroadcaster();
UserServices.prototype.init = function (connection, altService) {
var _local1 = this;
super.init();
_local1.user_service = connection.getService(((altService == null) ? "Mattel.EverythingGirl.ServiceInterfaces.UserServices" : (altService)), _local1);
_local1.userID = -1;
_local1.avatar = "";
_local1.background = "";
_local1.emailAddressUser = "";
_local1.emailAddressParent = "";
_local1.lastBirthdayEmailSentDate = new Date();
_local1.countedBirthdayYear = -1;
_local1.userHint = "";
};
UserServices.prototype.logIn = function (userName, password) {
this.user_service.LogIn(userName, password);
};
UserServices.prototype.logOut = function () {
var _local1 = this;
_local1.userID = -1;
_local1.notify("onLogOut", _local1);
};
UserServices.prototype.join = function (userName, password, passwordClueID, userEmail, parentEmail) {
this.user_service.Join(userName, password, passwordClueID, userEmail, parentEmail);
};
UserServices.prototype.getLoggedInUserID = function () {
var _local1 = this;
_local1.lvData = new LoadVars();
_local1.lvData.controller = _local1;
_local1.lvData.onLoad = function () {
var _local1 = this;
_local1.controller.userID = _local1.userID;
_local1.controller.notify("onLoggedInUserID", _local1.userID);
};
_local1.lv = new LoadVars();
_local1.lv.randID = Math.random();
_local1.lv.sendAndLoad(_global.server + "/common/getauthcookie.aspx", _local1.lvData);
};
UserServices.prototype.getUserInfo = function (userID, flag) {
if (flag == null) {
this.user_service.GetUserInfo(int(userID));
} else {
this.user_service.GetUserInfo(int(userID), flag);
}
};
UserServices.prototype.addExistingUser = function (userID, userEmail, parentEmail) {
this.user_service.AddExistingUser(userID, userEmail, parentEmail);
};
UserServices.prototype.sendNickName = function (email) {
this.user_service.SendNickName(email);
};
UserServices.prototype.getUserHint = function (nickname) {
this.user_service.UserHint(nickname);
};
UserServices.prototype.hintList = function () {
this.user_service.HintList();
};
UserServices.prototype.getPrettyPage = function (userid) {
this.user_service.GetPrettyPage(userid);
};
UserServices.prototype.setPrettyPage = function (userID, avatarID, backgroundID, birthdayYear, linksSelected) {
this.user_service.SetPrettyPage(userID, avatarID, backgroundID, birthdayYear, linksSelected);
};
UserServices.prototype.parentOptOutService = function (encUID) {
this.user_service.ParentOptOutService(encUID);
};
UserServices.prototype.checkCrankyEmail = function (useremail, parentemail) {
this.user_service.CheckCrankyEmail(useremail, parentemail);
};
UserServices.prototype.LogIn_Result = function (result) {
var _local1 = this;
var _local2 = result.Table.getItemAt(0);
var _local3 = result.Table1.getItemAt(0);
_local1.userID = _local2.UserId;
if (int(_local3.UserID) == -1) {
_local1.userID = _local3.UserID;
}
_local1.nickname = _local2.Nickname;
_local1.avatar = _local2.Avatar;
_local1.background = _local2.Background;
_local1.backgroundID = _local2.BackgroundID;
_local1.emailAddressUser = _local2.EmailAddressUser;
_local1.emailAddressParent = _local2.EmailAddressParent;
_local1.lastBirthdayEmailSentDate = _local2.LastBirthdayEmailSentDate;
_local1.countedBirthdayYear = _local2.CountBirthdayYear;
_local1.faveLinks = result.Table2;
_local1.elloPoints = _local2.ElloPoints;
_local1.notify("onLogIn", _local1);
};
UserServices.prototype.Join_Result = function (result) {
var _local2 = this;
var _local1 = result.Table.getItemAt(0);
_local2.userID = _local1.UserId;
_local2.avatar = _local1.Avatar;
_local2.background = _local1.Background;
_local2.emailAddressUser = _local1.EmailAddressUser;
_local2.emailAddressParent = _local1.EmailAddressParent;
_local2.lastBirthdayEmailSentDate = _local1.LastBirthdayEmailSentDate;
_local2.countedBirthdayYear = _local1.CountBirthdayYear;
_local2.newName = _local1.NewName;
_local2.notify("onJoin", _local1);
};
UserServices.prototype.AddExistingUser_Result = function (result) {
this.notify("onAddExistingUser", result);
};
UserServices.prototype.SendNickName_Result = function (result) {
this.notify("onSendNickName", result);
};
UserServices.prototype.UserHint_Result = function (result) {
this.userHint = result;
this.notify("onUserHint", result);
};
UserServices.prototype.HintList_Result = function (result) {
var _local1 = result.Table;
this.hintList = _local1;
this.notify("onHintList", _local1);
};
UserServices.prototype.GetPrettyPage_Result = function (result) {
var _local1 = this;
var _local2 = result;
_local1.avatarFileList = _local2.Table;
_local1.faveLinkList = _local2.Table1;
_local1.backgroundList = _local2.Table2;
_local1.newsletterList = _local2.Table3;
_local1.notify("onPrettyPage", _local1);
};
UserServices.prototype.SetPrettyPage_Result = function (result) {
this.notify("onSetPrettyPage", result);
};
UserServices.prototype.ParentOptOutService_Result = function (result) {
this.notify("onParentOptOut", result);
};
UserServices.prototype.CheckCrankyEmail_Result = function (result) {
var _local1 = this;
_local1.whoIsCranky = result;
_local1.notify("onNextClick", _local1);
};
UserServices.prototype.handleBirthday = function (userid) {
this.user_service.HandleBirthdayEmail(userid);
};
UserServices.prototype.GetUserInfo_Result = function (result) {
var _local2 = this;
var _local1 = result.Table.getItemAt(0);
_local2.userID = _local1.UserId;
_local2.nickname = _local1.Nickname;
_local2.avatar = _local1.Avatar;
_local2.background = _local1.Background;
_local2.backgroundID = _local1.BackgroundID;
_local2.emailAddressUser = _local1.EmailAddressUser;
_local2.emailAddressParent = _local1.EmailAddressParent;
_local2.lastBirthdayEmailSentDate = _local1.LastBirthdayEmailSentDate;
_local2.countedBirthdayYear = _local1.CountBirthdayYear;
_local2.faveLinks = result.Table2;
_local2.elloPoints = _local1.ElloPoints;
_local2.notify("onUserInfo", _local1);
};
if (EventBroadcaster == null) {
trace("PointsServices: Cannot find EventBroadcaster. It is required for this class.");
}
PointsServices = function () {
this.init.apply(this, arguments);
};
PointsServices.prototype = new EventBroadcaster();
PointsServices.prototype.init = function (connection, altService) {
var _local1 = this;
super.init();
_local1.points_service = connection.getService(((altService == null) ? "Mattel.EverythingGirl.ServiceInterfaces.PointsServices" : (altService)), _local1);
_local1.totalEarned = 0;
_local1.totalCharms = 0;
_local1.pointsToNextCharm = 0;
_local1.promotionPart = -1;
};
PointsServices.prototype.getPointsCharmData = function (userID) {
this.points_service.GetPointsCharmData(userID);
};
PointsServices.prototype.getAwardPoints = function (userID, partName) {
this.points_service.GetAwardPoints(userID, partName);
};
PointsServices.prototype.awardTransferPoints = function (userID, partOne, partTwo) {
this.points_service.AwardTransferPoints(userID, partOne, partTwo);
};
PointsServices.prototype.getPromotionPart = function (partName) {
this.points_service.GetPromotionPart(partName);
};
PointsServices.prototype.getHighScores = function () {
this.points_service.GetHighScores();
};
PointsServices.prototype.GetPointsCharmData_Result = function (result) {
var _local2 = this;
var _local1 = result.Table.getItemAt(0);
_local2.totalEarned = _local1.Total_Earned;
_local2.totalCharms = _local1.Total_Charms;
_local2.pointsToNextCharm = _local1.Points_To_Next_Charm;
_local2.notify("onPointsCharmData", _local2);
};
PointsServices.prototype.GetAwardPoints_Result = function (result) {
var _local2 = this;
var _local1 = result.Table.getItemAt(0);
_local2.points = _local1.Points;
_local2.partID = _local1.PartID;
_local2.charmSetName = _local1.CharmSet_Name;
_local2.haveInSet = _local1.Have_In_Set;
_local2.totalInSet = _local1.Total_In_Set;
_local2.tourLabel = _local1.Tour_Label;
_local2.nameOfPart = _local1.Name_of_Part;
_local2.totalCharms = _local1.Total_Charms;
_local2.totalEarned = _local1.Total_Earned;
_local2.pointsToNextCharm = _local1.Points_To_Next_Charm;
_local2.charmID = _local1.CharmID;
_local2.charmSetID = _local1.CharmSetID;
_local2.description = _local1.Description;
_local2.charmName = _local1.Charm_Name;
_local2.dayComplete = _local1.Day_Complete;
_local2.tourComplete = _local1.Tour_Complete;
_local2.charmFile = _local1.CharmFile;
_local2.notify("onAwardPoints", _local2);
};
PointsServices.prototype.AwardTransferPoints_Result = function (result) {
var _local2 = this;
var _local1 = result.Table.getItemAt(0);
_local2.points = _local1.Points;
_local2.partID = _local1.PartID;
_local2.charmSetName = _local1.CharmSet_Name;
_local2.haveInSet = _local1.Have_In_Set;
_local2.totalInSet = _local1.Total_In_Set;
_local2.tourLabel = _local1.Tour_Label;
_local2.nameOfPart = _local1.Name_of_Part;
_local2.totalCharms = _local1.Total_Charms;
_local2.totalEarned = _local1.Total_Earned;
_local2.pointsToNextCharm = _local1.Points_To_Next_Charm;
_local2.charmID = _local1.CharmID;
_local2.charmSetID = _local1.CharmSetID;
_local2.description = _local1.Description;
_local2.charmName = _local1.Charm_Name;
_local2.dayComplete = _local1.Day_Complete;
_local2.tourComplete = _local1.Tour_Complete;
_local2.charmFile = _local1.CharmFile;
_local2.secpoints = _local1.Sec_Points;
_local2.secPartName = _local1.Sec_Part_Name;
_local2.notify("onAwardTransferPoints", _local2);
};
PointsServices.prototype.GetPromotionPart_Result = function (result) {
var _local1 = this;
_local1.promotionPart = result;
_local1.notify("onPromotionPart", _local1);
};
PointsServices.prototype.GetHighScores_Result = function (result) {
var _local1 = this;
_local1.highScores = result.Table;
_local1.notify("onHighScores", _local1.highScores);
};
FPointsNoticeClass = function () {
var _local1 = this;
_local1.partName = _root._url.split("/");
_local1.partName = _local1.partName[_local1.partName.length - 1].split("?");
_local1.partName = _local1.partName[0];
NetServices.setDefaultGatewayURL("/gateway.aspx");
connection = NetServices.createGatewayConnection();
_local1.myUserServices = new UserServices(connection, "Mattel.EverythingGirl.Data.EG_UserService");
_local1.myUserServices.addListener(_local1);
_local1.myUserServices.getLoggedInUserID();
_local1.myPointsServices = new PointsServices(connection, "Mattel.EverythingGirl.Data.EG_PointService");
_local1.myPointsServices.addListener(_local1);
_local1.stop();
};
FPointsNoticeClass.prototype = new MovieClip();
Object.registerClass("FPointsNoticeSymbol", FPointsNoticeClass);
FPointsNoticeClass.prototype.onLoggedInUserID = function (userID) {
var _local1 = this;
_local1.userID = int(userID);
if (_local1.userID != -1) {
_local1.myUserServices.getUserInfo(_local1.userID, "N");
}
};
FPointsNoticeClass.prototype.onPromotionPart = function (c) {
var _local1 = this;
if (c.promotionPart != -1) {
_local1.myPointsServices.getAwardPoints(_local1.userID, _local1.partName);
}
};
FPointsNoticeClass.prototype.onAwardPoints = function (c) {
var _local1 = this;
var _local2 = c;
if (_local2.points == -1) {
} else if (_local1.userID == -1) {
_local1.gotoAndStop(2);
} else if (_local2.dayComplete == "Y") {
_local1.gotoAndStop(5);
} else if (_local2.charmID > 0) {
_local1.gotoAndStop(4);
} else if (_local2.charmID <= 0) {
_local1.gotoAndStop(3);
}
};
FPointsNoticeClass.prototype.setComplete = function () {
this.myPointsServices.getPromotionPart(this.partName);
};
#endinitclip
stop();
Symbol 70 MovieClip [FPointsNoticeSymbol] Frame 2
egLink.onRelease = function () {
getURL ("http://estwr-12-82.eshq.mattel.com/");
};
login_btn.onRelease = function () {
getURL ("http://estwr-12-82.eshq.mattel.com/Registration/login.aspx?partName=" + this._parent.partName);
};
join_btn.onRelease = function () {
getURL ("http://estwr-12-82.eshq.mattel.com/Registration/join.aspx?partName=" + this._parent.partName);
};
close_btn.onRelease = function () {
this._parent.gotoAndStop(1);
};
Symbol 70 MovieClip [FPointsNoticeSymbol] Frame 3
nickname.text = myUserServices.nickname;
points_number.text = myPointsServices.points;
actpoints1_number.text = myPointsServices.points;
activity1.text = myPointsServices.nameOfPart;
done_btn.onRelease = function () {
getURL ("http://estwr-12-82.eshq.mattel.com/");
};
close_btn.onRelease = function () {
this._parent.gotoAndStop(1);
};
egLink.onRelease = function () {
getURL ("http://estwr-12-82.eshq.mattel.com/");
};
Symbol 70 MovieClip [FPointsNoticeSymbol] Frame 4
nickname.text = myUserServices.nickname;
name_charm.text = myPointsServices.charmName;
set_charm.text = myPointsServices.charmSetName;
message_charm.text = myPointsServices.description;
charmsEarned_number.text = myPointsServices.haveInSet;
charmsNeeded_number.text = myPointsServices.haveInSet;
mycharms_btn.onRelease = function () {
getURL ("http://estwr-12-82.eshq.mattel.com/CharmsManager/");
};
close_btn.onRelease = function () {
this._parent.gotoAndStop(1);
};
egLink.onRelease = function () {
getURL ("http://estwr-12-82.eshq.mattel.com/");
};
Symbol 70 MovieClip [FPointsNoticeSymbol] Frame 5
nickname.text = myUserServices.nickname;
points_number.text = myPointsServices.points;
actpoints1_number.text = myPointsServices.points;
egLink.onRelease = function () {
getURL ("http://estwr-12-82.eshq.mattel.com/");
};
close_btn.onRelease = function () {
this._parent.gotoAndStop(1);
};
Symbol 78 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 85 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");
component.registerSkinElement(face_mc, "face");
Symbol 90 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 94 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(trackLeftCap, "scrollTrack");
Symbol 96 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(trackMiddle, "scrollTrack");
Symbol 98 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(track, "scrollTrack");
Symbol 104 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 104 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 107 MovieClip [FProgressBarSymbol] Frame 1
#initclip 8
function ProgressBarClass() {
var _local1 = this;
_local1.init();
if (_local1.displayBar == undefined) {
_local1.displayBar = true;
_local1.kBTally = true;
}
_local1.maxV = 100;
_local1.minV = 0;
_local1.value = 0;
_local1.oldValue = 0;
_local1.width = _local1._xscale;
_local1._xscale = (_local1._yscale = 100);
_local1.boundingBox_mc._visible = false;
_local1.setChangeHandler(_local1.changeHandler);
if (_local1.displayBar) {
_local1.attachMovie("Track", "track", 0);
}
_local1.setDisplayText(_local1.kBTally);
_local1.setSize(_local1.width);
}
Object.registerClass("FProgressBarSymbol", ProgressBarClass);
ProgressBarClass.prototype = new FUIComponentClass();
ProgressBarClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = w;
_local1.width = _local2;
_local1.height = h;
_local1.stretchToSize(_local2, _local1.track.leftTrack, _local1.track.midTrack, _local1.track.rightTrack);
_local1.KBText._x = _local1.track._x;
_local1.KBText._y = (_local1.track._y + _local1.track._height) + 0;
_local1.KBText.setSize(_local2);
_local1.renderBar();
};
ProgressBarClass.prototype.setLoadTarget = function (mcRef) {
var _local1 = this;
_local1.loadTarget = mcRef;
_local1.createEmptyMovieClip("loadPoller", 10);
_local1.loadPoller.onEnterFrame = function () {
var _local1 = this;
var _local2 = _local1._parent.loadTarget;
_local1._parent.setProgress(_local2.getBytesLoaded(), _local2.getBytesTotal());
if ((_local1._parent.getPercentComplete() >= 100) && (_local1._parent.getValue() > 4)) {
delete _local1.onEnterFrame;
}
};
};
ProgressBarClass.prototype.getLoadTarget = function () {
return(this.loadTarget);
};
ProgressBarClass.prototype.setValue = function (v) {
this.value = v;
this.invalidate("renderBar");
};
ProgressBarClass.prototype.getValue = function () {
return(this.value);
};
ProgressBarClass.prototype.setMinimum = function (m) {
this.minV = m;
};
ProgressBarClass.prototype.getMinimum = function () {
return(this.minV);
};
ProgressBarClass.prototype.setMaximum = function (m) {
this.maxV = m;
this.invalidate("renderBar");
};
ProgressBarClass.prototype.getMaximum = function () {
return(this.maxV);
};
ProgressBarClass.prototype.setDisplayText = function (tOrF) {
var _local1 = this;
if (tOrF) {
_local1.KBText = _local1.attachMovie("FLabelSymbol", "KBT", 4, {hostComponent:_local1});
_local1.setStyleProperty("textAlign", "center");
} else {
_local1.KBText.removeMovieClip();
_local1.KBText = undefined;
}
};
ProgressBarClass.prototype.setDisplayGraphics = function (tOrF) {
var _local1 = this;
_local1.displayBar = tOrF;
if (!tOrF) {
_local1.growBar.removeMovieClip();
_local1.growBar = undefined;
_local1.track.removeMovieClip();
} else {
_local1.attachMovie("Track", "track", 0);
_local1.setSize(_local1.width);
}
};
ProgressBarClass.prototype.getPercentComplete = function () {
var _local1 = this;
return(Math.round(((_local1.value - _local1.minV) / _local1.maxV) * 100));
};
ProgressBarClass.prototype.setPercentComplete = function (p) {
var _local1 = this;
_local1.value = ((_local1.maxV * p) / 100) + _local1.minV;
_local1.invalidate("renderBar");
};
ProgressBarClass.prototype.setProgress = function (v, t) {
var _local1 = this;
_local1.value = v;
_local1.maxV = t;
_local1.invalidate("renderBar");
};
ProgressBarClass.prototype.stretchToSize = function (w, leftCap, mid, rightCap) {
var _local1 = mid;
var _local2 = leftCap;
var _local3 = Math.max(0, (w - _local2._width) - rightCap._width);
_local1._width = _local3;
_local1._x = _local2._x + _local2._width;
rightCap._x = _local1._x + _local1._width;
};
ProgressBarClass.prototype.renderBar = function () {
var _local1 = this;
if ((_local1.maxV == 0) || (_local1.value == 0)) {
_local1.growBar.removeMovieClip();
} else {
_local1.value = Math.min(_local1.maxV, _local1.value);
if (_local1.value != _local1.oldValue) {
_local1.executeCallBack();
}
if ((_local1.growBar == undefined) && (_local1.displayBar)) {
_local1.growBar = _local1.attachMovie("GrowBar", "gBar", 2);
}
var _local2 = (_local1.getPercentComplete() * (_local1.width - 2)) / 100;
_local1.stretchToSize(_local2, _local1.growBar.leftBar, _local1.growBar.midBar, _local1.growBar.rightBar);
_local1.oldValue = _local1.value;
_local1.KBText.setLabel(((Math.round(_local1.getValue() / 1024) + " / ") + Math.round(_local1.maxV / 1024)) + " KB");
}
};
#endinitclip
Symbol 108 MovieClip [DataProviderSymbol] Frame 1
#initclip 2
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {event:"updateAll"};
viewRef.modelChanged(_local1);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
var _local3 = value;
if (_local1 < _local2.getLength()) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(_local3) == "object") {
_local2.items[_local1] = _local3;
} else {
_local2.items[_local1].label = _local3;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var eventObj = {event:"addRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {event:"deleteRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
var _local1 = this;
_local1.items = new Array();
_local1.updateViews({event:"deleteRows", firstRow:0, lastRow:_local1.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var _local3 = _local2.getItemID(_local1);
if (typeof(itemObj) == "object") {
_local2.items[_local1] = itemObj;
} else {
_local2.items[_local1].label = itemObj;
}
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = this;
var _local3 = eventObj;
var _local1 = 0;
while (_local1 < _local2.views.length) {
_local2.views[_local1].modelChanged(_local3);
_local1++;
}
};
#endinitclip
Symbol 109 MovieClip [FAdvancedProgressBarSymbol] Frame 1
#initclip 18
function FAdvancedProgressBarClass() {
this.init();
}
FAdvancedProgressBarClass.prototype = new FUIComponentClass();
Object.registerClass("FAdvancedProgressBarSymbol", FAdvancedProgressBarClass);
FAdvancedProgressBarClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1._xscale = (_local1._yscale = 100);
_local1.progressBar_mc.setSize(_local1.width, _local1.height);
super.init();
_local1.setSize();
};
FAdvancedProgressBarClass.prototype.setDataProvider = function (obj) {
var _local2 = obj;
var _local3 = this;
if (_local2 instanceof Array) {
_local3.dataProvider = new DataProviderClass();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.dataProvider.addItem(_local2[_local1]);
_local1++;
}
} else {
_local3.dataProvider = _local2;
}
_local3.dataProvider.addView(_local3);
};
FAdvancedProgressBarClass.prototype.setSize = function () {
var _local1 = this;
_local1.progressBar_mc.setChangeHandler("checkProgress", _local1);
_local1.selectedIndex = 0;
if (_local1.getLength() > 0) {
var _local2 = _local1.getItemAt(_local1.selectedIndex);
if (_local2.url != null) {
_local2.loadTarget.loadMovie(_local2.url);
}
_local1.progressBar_mc.setLoadTarget(_local2.loadTarget);
_local1.checkProgress(_local1.progressBar_mc);
}
};
FAdvancedProgressBarClass.prototype.checkProgress = function (c) {
var _local1 = this;
if (c.getPercentComplete() == 100) {
_local1.selectedIndex++;
if (_local1.selectedIndex < _local1.getLength()) {
var _local2 = _local1.getItemAt(_local1.selectedIndex);
if (_local2.url != null) {
_local2.loadTarget.loadMovie(_local2.url);
}
_local1.progressBar_mc.setLoadTarget(_local2.loadTarget);
}
_local1.executeCallback();
}
};
FAdvancedProgressBarClass.prototype.setStyleProperty = function (p, v) {
this.progressBar_mc.setStyleProperty(p, v);
};
FAdvancedProgressBarClass.prototype.getPercentComplete = function () {
return(this.progressBar_mc.getPercentComplete());
};
FAdvancedProgressBarClass.prototype.getSelectedIndex = function () {
return(this.selectedIndex);
};
FAdvancedProgressBarClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FAdvancedProgressBarClass.prototype.getItemAt = function (idx) {
return(this.dataProvider.getItemAt(idx));
};
FAdvancedProgressBarClass.prototype.addItem = function (obj) {
this.dataProvider.addItem(obj);
};
FAdvancedProgressBarClass.prototype.addItemAt = function (idx, obj) {
this.dataProvider.addItemAt(idx, obj);
};
FAdvancedProgressBarClass.prototype.removeItemAt = function (idx) {
this.dataProvider.removeItemAt(idx);
};
FAdvancedProgressBarClass.prototype.replaceItemAt = function (idx, obj) {
this.dataProvider.replaceItemAt(idx, obj);
};
FAdvancedProgressBarClass.prototype.modelChanged = function () {
this.invalidate("setSize");
};
FAdvancedProgressBarClass.prototype.setDisplayGraphics = function (tOrF) {
this.progressBar_mc.setDisplayGraphics(tOrF);
};
FAdvancedProgressBarClass.prototype.setDisplayText = function (tOrF) {
this.progressBar_mc.setDisplayText(tOrF);
};
#endinitclip
Instance of Symbol 107 MovieClip [FProgressBarSymbol] "progressBar_mc" in Symbol 109 MovieClip [FAdvancedProgressBarSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
displayBar = true;
kBTally = true;
changeHandler = "";
}
Instance of Symbol 108 MovieClip [DataProviderSymbol] in Symbol 109 MovieClip [FAdvancedProgressBarSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 121 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 131 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 140 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 141 MovieClip [UpArrow] Frame 1
stop();
Symbol 141 MovieClip [UpArrow] Frame 2
stop();
Symbol 141 MovieClip [UpArrow] Frame 3
stop();
Symbol 146 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 152 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 156 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 157 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 165 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 173 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 181 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 182 MovieClip [DownArrow] Frame 1
stop();
Symbol 182 MovieClip [DownArrow] Frame 2
stop();
Symbol 182 MovieClip [DownArrow] Frame 3
stop();
Symbol 185 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 185 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 185 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 186 MovieClip [FListItemSymbol] Frame 1
#initclip 19
function FListItemClass() {
this.init();
}
FListItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FListItemSymbol", FListItemClass);
#endinitclip
Symbol 189 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 190 MovieClip [FScrollBarSymbol] Frame 1
#initclip 15
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 191 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 17
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
var _local1 = this;
if (_local1._name != "itemAsset") {
_local1.highlighted = false;
_local1.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
var _local1 = this;
var _local2 = selected;
_local1.displayContent(itmObj, _local2);
if ((_local1.highlighted != _local2) || ((_local1.controller.focused != _local1.oldFocus) && (_local2))) {
_local1.setHighlighted(_local2);
}
_local1.oldFocus = _local1.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local1 = this;
var _local3 = width;
var _local2 = -16384;
_local1.width = _local3;
_local1.layoutContent(_local3);
_local1.attachMovie("FHighlightSymbol", "highlight_mc", _local2);
_local1.highlight_mc._x = 0.5;
_local1.highlight_mc._width = _local3 - 0.5;
_local1.highlight_mc._height = height;
_local1.highlight_mc.controller = _local1;
_local1.highlight_mc._alpha = 0;
_local1.highlight_mc.trackAsMenu = true;
_local1.highlight_mc.onPress = function () {
var _local1 = this;
if (_local1.controller.enable) {
_local1.controller.controller.clickHandler(_local1.controller.itemNum);
}
};
_local1.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
_local1.highlight_mc.useHandCursor = false;
_local1.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local1.enable = _local2;
_local1.fLabel_mc.setEnabled(_local2);
_local1.highlight_mc.gotoAndStop((_local2 ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
var _local1 = this;
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:_local1.controller});
_local1.fLabel_mc._x = 2;
_local1.fLabel_mc._y = 0;
_local1.fLabel_mc.setSize(width - 2);
_local1.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local2 = itmObj;
var _local1 = "";
if (_local2.label != undefined) {
_local1 = _local2.label;
} else if (typeof(_local2) == "object") {
for (var _local3 in _local2) {
if (_local3 != "__ID__") {
_local1 = (_local2[_local3] + ", ") + _local1;
}
}
_local1 = _local1.substring(0, _local1.length - 2);
} else {
_local1 = _local2;
}
if (this.fLabel_mc.labelField.text != _local1) {
this.fLabel_mc.setLabel(_local1);
}
var clr = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (clr == undefined) {
clr = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(clr);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
var _local1 = this;
var _local2 = flag;
fade = _local1.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!_local2)) {
_local1.highlight_mc._alpha = (_local2 ? 100 : 0);
delete _local1.onEnterFrame;
} else {
_local1.fadeN = fade;
_local1.fadeX = 1;
_local1.highLight_mc._alpha = 20;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.highLight_mc._alpha = (60 * Math.sqrt((_local1.fadeX++) / _local1.fadeN)) + 40;
if (_local1.fadeX > _local1.fadeN) {
delete _local1.onEnterFrame;
}
};
}
_local1.highlighted = _local2;
};
#endinitclip
Symbol 192 MovieClip [FSelectableListSymbol] Frame 1
#initclip 7
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
var _local1 = this;
super.init();
_local1.enable = true;
_local1.selected = new Array();
_local1.topDisplayed = (_local1.numDisplayed = 0);
_local1.lastSelected = 0;
_local1.tabChildren = false;
if (_local1._name != undefined) {
_local1.dataProvider = new DataProviderClass();
_local1.dataProvider.addView(_local1);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
var _local1 = this;
_local1.selectHolder = _local1.getSelectedIndex();
var _local2 = _local1.getItemAt(index);
_local1.dataProvider.removeItemAt(index);
return(_local2);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
_local1.lastSelID = _local1.dataProvider.getItemID(_local1.lastSelected);
_local1.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
var _local2 = this;
for (var _local3 in _local2.selected) {
var _local1 = _local2.selected[_local3].sIndex;
if (_local1 != undefined) {
return(_local1);
}
}
return(undefined);
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var _local1 = this.getSelectedItem();
if (_local1.data != undefined) {
return(_local1.data);
}
return(_local1.label);
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
var _local2 = index;
if (((_local2 >= 0) && (_local2 < _local1.getLength())) && (_local1.enable)) {
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.lastSelected = _local2;
_local1.invalidate("updateControl");
if (flag != false) {
_local1.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
var _local2 = obj;
this.setScrollPosition(0);
this.clearSelected();
if (_local2 instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = ((typeof(_local2[_local1]) == "string") ? ({label:_local2[_local1]}) : (_local2[_local1]));
this.dataProvider.addItem(_local3);
_local1++;
}
} else {
this.dataProvider = _local2;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
var _local1 = this;
_local1.tmpPos = _local1.getScrollPosition();
_local1.itemSymbol = linkID;
_local1.invalidate("setSize");
_local1.setScrollPosition(_local1.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
var _local2 = this;
_local2.cleanUI();
super.setEnabled(enabledFlag);
_local2.enable = enabledFlag;
_local2.boundingBox_mc.gotoAndStop((_local2.enable ? "enabled" : "disabled"));
var _local3 = Math.min(_local2.numDisplayed, _local2.getLength());
var _local1 = 0;
while (_local1 < _local3) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].setEnabled(_local2.enable);
_local1++;
}
if (_local2.enable) {
_local2.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].drawItem(_local2.getItemAt(_local2.topDisplayed + _local1), _local2.isSelected(_local2.topDisplayed + _local1));
_local1++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.boundingBox_mc._xscale = (_local1.boundingBox_mc._yscale = 100);
_local1.boundingBox_mc._xscale = (_local1.width * 100) / _local1.boundingBox_mc._width;
_local1.boundingBox_mc._yscale = (_local1.height * 100) / _local1.boundingBox_mc._height;
var _local2 = 0;
while (_local2 < _local1.numDisplayed) {
_local1.container_mc.attachMovie(_local1.itemSymbol, ("fListItem" + _local2) + "_mc", 10 + _local2, {controller:_local1, itemNum:_local2});
var _local3 = _local1.container_mc[("fListItem" + _local2) + "_mc"];
var offset = ((_local1.scrollOffset == undefined) ? 0 : (_local1.scrollOffset));
_local3.setSize(_local1.width - offset, _local1.itmHgt);
_local3._y = (_local1.itmHgt - 2) * _local2;
_local2++;
}
_local1.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var _local2 in _local1.selected) {
if ((_local1.selected[_local2].sIndex != undefined) && (_local1.selected[_local2].sIndex >= firstRow)) {
_local1.selected[_local2].sIndex = _local1.selected[_local2].sIndex + ((lastRow - firstRow) + 1);
_local1.setSelectedIndex(_local1.selected[_local2].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (_local1.selectHolder == index) {
_local1.selectionDeleted = true;
}
if (((_local1.topDisplayed + _local1.numDisplayed) >= _local1.getLength()) && (_local1.topDisplayed > 0)) {
_local1.topDisplayed--;
if (_local1.selectionDeleted && ((index - 1) >= 0)) {
_local1.setSelectedIndex(index - 1, false);
}
} else if (_local1.selectionDeleted) {
var len = _local1.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
_local1.setSelectedIndex(index - 1, false);
} else {
_local1.setSelectedIndex(index, false);
}
}
for (var _local2 in _local1.selected) {
if (_local1.selected[_local2].sIndex > firstRow) {
_local1.selected[_local2].sIndex--;
}
}
} else {
_local1.clearSelected();
_local1.topDisplayed = 0;
}
} else if (event == "sort") {
var len = _local1.getLength();
var _local2 = 0;
while (_local2 < len) {
if (_local1.isSelected(_local2)) {
var _local3 = _local1.dataProvider.getItemID(_local2);
if (_local3 == _local1.lastSelID) {
_local1.lastSelected = _local2;
}
_local1.selected[String(_local3)].sIndex = _local2;
}
_local2++;
}
}
_local1.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
var _local1 = this;
_local1.attachMovie(_local1.itemSymbol, "tmpItem_mc", 0, {controller:_local1});
_local1.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
_local1.itmHgt = _local1.tmpItem_mc._height;
_local1.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
var _local1 = this;
var _local2 = index;
if (selectedFlag && (!_local1.isSelected(_local2))) {
_local1.selected[String(_local1.dataProvider.getItemID(_local2))] = {sIndex:_local2};
} else if (!selectedFlag) {
delete _local1.selected[String(_local1.dataProvider.getItemID(_local2))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
var _local1 = this;
for (var _local3 in _local1.selected) {
var _local2 = _local1.selected[_local3].sIndex;
if (((_local2 != undefined) && (_local1.topDisplayed <= _local2)) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), false);
}
}
delete _local1.selected;
_local1.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
var _local2 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local2 == undefined)) {
_local1.changeFlag = false;
} else {
_local1.changeFlag = true;
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local1 = this;
var _local3 = _local1.getSelectedIndex();
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(_local1.getLength() - 1, _local2);
if (_local2 == _local3) {
} else {
if ((_local3 < _local1.topDisplayed) || (_local3 >= (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.setScrollPosition(_local3);
}
if ((_local2 >= (_local1.topDisplayed + _local1.numDisplayed)) || (_local2 < _local1.topDisplayed)) {
_local1.setScrollPosition(_local1.topDisplayed + incr);
}
_local1.selectionHandler(_local2 - _local1.topDisplayed);
}
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (!_local1.focused) {
_local1.pressFocus();
}
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
var _local1 = this;
if (_local1.changeFlag) {
_local1.executeCallBack();
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
var _local2 = this;
super.myOnSetFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local1++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
var _local2 = this;
super.myOnKillFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local1++;
}
};
#endinitclip
Instance of Symbol 108 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 192 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 191 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 192 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 193 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 16
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
var _local1 = pos;
var _local2 = this;
if (_local2.enable) {
_local1 = Math.min(_local1, _local2.getLength() - _local2.numDisplayed);
_local1 = Math.max(_local1, 0);
_local2.scrollBar_mc.setScrollPosition(_local1);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
var _local1 = this;
_local1.permaScrollBar = !flag;
_local1.setSize(_local1.width, _local1.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = _local1.getScrollPosition();
super.setSize(w, h);
if (_local1.scrollBar_mc != undefined) {
_local1.removed = true;
}
_local1.scrollBar_mc = undefined;
_local1.initScrollBar();
_local1.setScrollPosition(_local2);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
var _local1 = this;
if ((!_local1.permaScrollBar) && (_local1.getLength() <= _local1.numDisplayed)) {
if (_local1.removed) {
_local1.scrollBar_mc.removeMovieClip();
_local1.scrollBar_mc = undefined;
_local1.scrollOffset = undefined;
_local1.invalidate("setSize");
}
} else {
if (_local1.scrollBar_mc == undefined) {
_local1.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:_local1.styleTable});
_local1.scrollBar_mc = _local1.container_mc.scrollBar_mc;
_local1.scrollBar_mc.setChangeHandler("scrollHandler", _local1);
_local1.scrollBar_mc.setSize(_local1.height);
_local1.scrollBar_mc._x = _local1.width - _local1.scrollBar_mc._width;
_local1.scrollBar_mc._y = 0;
_local1.scrollBar_mc.setLargeScroll(_local1.numDisplayed - 1);
_local1.scrollOffset = _local1.scrollBar_mc._width;
_local1.invalidate("setSize");
}
_local1.scrollBar_mc.setScrollProperties(_local1.numDisplayed, 0, _local1.getLength() - _local1.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = this;
var _local1 = scrollBar.getScrollPosition();
_local2.topDisplayed = _local1;
if (_local2.lastPosition != _local1) {
_local2.updateControl();
}
_local2.lastPosition = _local1;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
super.clickHandler(itmNum);
if ((_local1.dragScrolling == undefined) && (_local1.scrollBar_mc != undefined)) {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
var _local1 = this;
clearInterval(_local1.dragScrolling);
if (_local1.container_mc._ymouse < 0) {
_local1.setScrollPosition(_local1.getScrollPosition() - 1);
_local1.selectionHandler(0);
_local1.scrollInterval = Math.max(25, (-23.8 * (-_local1.container_mc._ymouse)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else if (_local1.container_mc._ymouse > ((_local1.itmHgt - 2) * _local1.numDisplayed)) {
_local1.setScrollPosition(_local1.getScrollPosition() + 1);
_local1.selectionHandler(_local1.numDisplayed - 1);
_local1.scrollInterval = Math.max(25, (-23.8 * Math.abs((_local1.container_mc._ymouse - ((_local1.itmHgt - 2) * _local1.numDisplayed)) - 2)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
var _local2 = this;
if (_local2.focused) {
_local2.keyCodes = new Array(40, 38, 34, 33, 36, 35);
_local2.keyIncrs = new Array(1, -1, _local2.numDisplayed - 1, -(_local2.numDisplayed - 1), -_local2.getLength(), _local2.getLength());
var _local1 = 0;
while (_local1 < _local2.keyCodes.length) {
if (Key.isDown(_local2.keyCodes[_local1])) {
_local2.moveSelBy(_local2.keyIncrs[_local1]);
return;
}
_local1++;
}
_local2.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local1 = Key.getAscii();
if ((_local1 >= 33) && (_local1 <= 126)) {
this.findString(String.fromCharCode(_local1));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
} else {
var _local3 = this.getSelectedIndex();
var jump = 0;
var _local1 = _local3 + 1;
while (_local1 != _local3) {
var _local2 = this.getItemAt(_local1).label.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
var jump = (_local1 - _local3);
break;
}
if (_local1 >= (this.getLength() - 1)) {
_local1 = -1;
}
_local1++;
}
if (jump != 0) {
this.moveSelBy(jump);
}
}
};
#endinitclip
Instance of Symbol 190 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 193 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 192 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 193 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 196 MovieClip [FListBoxSymbol] Frame 1
#initclip 20
function FListBoxClass() {
var _local1 = this;
_local1.itemSymbol = "FListItemSymbol";
_local1.init();
_local1.permaScrollBar = true;
var _local2 = 0;
while (_local2 < _local1.labels.length) {
_local1.addItem(_local1.labels[_local2], _local1.data[_local2]);
_local2++;
}
_local1.boundingBox_mc.gotoAndStop(1);
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._yscale = (_local1._xscale = 100);
_local1.setSize(_local1.width, _local1.height);
if (_local1.changeHandler.length > 0) {
_local1.setChangeHandler(_local1.changeHandler);
}
}
FListBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FListBoxSymbol", FListBoxClass);
FListBoxClass.prototype.getSelectedIndices = function () {
var _local1 = this;
var _local2 = new Array();
for (var _local3 in _local1.selected) {
_local2.push(_local1.selected[_local3].sIndex);
}
if (_local2.length <= 0) {
return(undefined);
}
return(_local2);
};
FListBoxClass.prototype.getSelectedItems = function () {
var _local2 = this.getSelectedIndices();
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(this.getItemAt(_local2[_local1]));
_local1++;
}
if (_local3.length <= 0) {
return(undefined);
}
return(_local3);
};
FListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
FListBoxClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FListBoxClass.prototype.setSelectedIndices = function (indexArray) {
var _local2 = indexArray;
var _local3 = this;
_local3.clearSelected();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.selectItem(_local2[_local1], true);
_local1++;
}
_local3.updateControl();
};
FListBoxClass.prototype.setSelectMultiple = function (flag) {
this.selectMultiple = flag;
};
FListBoxClass.prototype.setRowCount = function (count) {
var _local2 = this;
var _local1 = (count * (_local2.itmHgt - 2)) + 2;
_local2.setSize(_local2.width, _local1);
};
FListBoxClass.prototype.setWidth = function (wdt) {
this.setSize(wdt, this.height);
};
FListBoxClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (!_local1.enable) {
} else {
_local3 = Math.max(_local3, 20);
_local2 = Math.max(_local2, 40);
_local1.container_mc.removeMovieClip();
_local1.container_mc = _local1.createEmptyMovieClip("container", 3);
_local1.measureItmHgt();
_local1.numDisplayed = Math.floor(_local2 / (_local1.itmHgt - 2));
_local1.height = (_local1.numDisplayed * (_local1.itmHgt - 2)) + 2;
super.setSize(_local3, _local1.height);
}
};
FListBoxClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndices();
return(super.removeItemAt(index));
};
FListBoxClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
if (_local1.clickFilter) {
var _local3 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local3) == undefined) {
_local1.changeFlag = false;
return;
}
_local1.changeFlag = true;
if (((!_local1.selectMultiple) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
_local1.clearSelected();
_local1.selectItem(_local3, true);
_local1.lastSelected = _local3;
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local3), _local1.isSelected(_local3));
} else if (Key.isDown(16) && (_local1.selectMultiple)) {
if (_local1.lastSelected == -1) {
_local1.lastSelected = _local3;
}
var incr = ((_local1.lastSelected < _local3) ? 1 : -1);
_local1.clearSelected();
var _local2 = _local1.lastSelected;
while (_local2 != _local3) {
_local1.selectItem(_local2, true);
if ((_local2 >= _local1.topDisplayed) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
_local2 = _local2 + incr;
}
_local1.selectItem(_local3, true);
_local1.container_mc[("fListItem" + (_local3 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local3), _local1.isSelected(_local3));
} else if (key.isDown(17)) {
var selectedFlag = _local1.isSelected(_local3);
if (!_local1.selectMultiple) {
_local1.clearSelected();
}
if (!((!_local1.selectMultiple) && (selectedFlag))) {
_local1.selectItem(_local3, !selectedFlag);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local1.topDisplayed + itemNum), _local1.isSelected(_local1.topDisplayed + itemNum));
}
_local1.lastSelected = _local3;
}
} else {
_local1.clickFilter = true;
}
};
FListBoxClass.prototype.moveSelBy = function (itemNum) {
super.moveSelBy(itemNum);
this.releaseHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 193 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 196 MovieClip [FListBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 200 MovieClip [FLabelSymbol] Frame 1
#initclip 3
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 206 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 212 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 218 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 224 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 225 MovieClip [fpb_states] Frame 1
stop();
Symbol 225 MovieClip [fpb_states] Frame 2
stop();
Symbol 225 MovieClip [fpb_states] Frame 3
stop();
Symbol 225 MovieClip [fpb_states] Frame 4
stop();
Symbol 228 MovieClip [FPushButtonSymbol] Frame 1
#initclip 11
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fpb_states", "fpbState_mc", 1);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2);
_local1.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
_local1.btnState = false;
_local1.setClickHandler(_local1.clickHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_PUSHBUTTON = 43;
_local1.STATE_SYSTEM_PRESSED = 8;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var _local1 = this.fpb_hitArea_mc;
this.hitArea = _local1;
_local1._visible = false;
_local1._width = w;
_local1._height = ((arguments.length > 1) ? (h) : (_local1._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = w;
var _local3 = h;
_local2 = ((_local2 < 6) ? 6 : (_local2));
if (arguments.length > 1) {
if (_local3 < 6) {
_local3 = 6;
}
}
super.setSize(_local2, _local3);
_local1.setLabel(_local1.getLabel());
_local1.arrangeLabel();
_local1.setHitArea(_local2, _local3);
_local1.boundingBox_mc._width = _local2;
_local1.boundingBox_mc._height = _local3;
_local1.drawFrame();
if (_local1.focused) {
super.myOnSetFocus();
}
_local1.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var _local3 = this;
var _local1 = _local3.fLabel_mc;
var h = _local3.height;
var w = (_local3.width - 2);
var _local2 = 1;
_local3.fLabel_mc.setSize(w - (_local2 * 4));
_local1._x = _local2 * 3;
_local1._y = (h / 2) - (_local1._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
_local1.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if (enable || (enable == undefined)) {
_local1.gotoFrame(1);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(true);
_local1.enabled = true;
super.setEnabled(true);
} else {
_local1.gotoFrame(4);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(false);
_local1.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = "center")) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 1)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 1)) : undefined);
if (_local1.fLabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.fLabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var _local3 = this;
var _local2 = 1;
var x1 = 0;
var y1 = 0;
var x2 = _local3.width;
var y2 = _local3.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[_local3.fpbState_mc._currentframe - 1];
var mc = "frame";
var _local1 = 0;
while (_local1 < 6) {
x1 = x1 + ((_local1 % 2) * _local2);
y1 = y1 + ((_local1 % 2) * _local2);
x2 = x2 - (((_local1 + 1) % 2) * _local2);
y2 = y2 - (((_local1 + 1) % 2) * _local2);
var w = (Math.abs(x1 - x2) + (2 * _local2));
var h = (Math.abs(y1 - y2) + (2 * _local2));
_local3.fpbState_mc[frame][mc + _local1]._width = w;
_local3.fpbState_mc[frame][mc + _local1]._height = h;
_local3.fpbState_mc[frame][mc + _local1]._x = x1 - _local2;
_local3.fpbState_mc[frame][mc + _local1]._y = y1 - _local2;
_local1++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((arguments.length < 2) ? (_local1._parent) : (obj));
_local1.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.clickHandler](_local1);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
var _local1 = this;
_local1.incrVal = 1;
_local1.initx = _local1[mc]._x - (_local1.getBtnState() * _local1.incrVal);
_local1.inity = _local1[mc]._y - (_local1.getBtnState() * _local1.incrVal);
_local1.togx = _local1.initx + _local1.incrVal;
_local1.togy = _local1.inity + _local1.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
var _local1 = this;
_local1.btnState = state;
if (state) {
_local1.fLabel_mc._x = _local1.togx;
_local1.fLabel_mc._y = _local1.togy;
} else {
_local1.fLabel_mc._x = _local1.initx;
_local1.fLabel_mc._y = _local1.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
var _local1 = this;
_local1.pressFocus();
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
_local1.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fpbState_mc.gotoAndStop(2);
_local1.drawFrame();
_local1.executeCallBack();
_local1.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
var _local1 = this;
_local1.setBtnState(true);
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1.pressOnce == undefined)) {
_local1.onPress();
_local1.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
var _local1 = this;
if (_local1.pressOnce) {
return(_local1.master.STATE_SYSTEM_PRESSED);
}
return(_local1.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 229 MovieClip [BarbieFeatureClassSymbol] Frame 1
#initclip 1
_global.BarbieFeatureClass = function () {
this.init();
};
BarbieFeatureClass.prototype = new MovieClip();
Object.registerClass("BarbieFeatureClassSymbol", BarbieFeatureClass);
BarbieFeatureClass.prototype.init = function () {
var _local1 = this;
_local1.commandObjects = [null];
_local1.commandIndex = 0;
_local1.values = new Object();
if (_local1.controller == undefined) {
_local1.controller = _parent;
}
if (_local1.overFunction == undefined) {
_local1.overFunction = _local1.controller.showCustomCursor;
}
if (_local1.outFunction == undefined) {
_local1.outFunction = _local1.controller.hideCustomcursor;
}
};
BarbieFeatureClass.prototype.initValues = function (valueObj) {
var _local1 = valueObj;
var _local2 = this;
initObj = new Object();
for (i in _local1) {
initObj[i] = _local1[i];
initObj.active.push(String(i));
}
_local2.commandObjects[0] = initObj;
_local2.updateValues(initObj);
_local2.repaint();
};
BarbieFeatureClass.prototype.setController = function (controlObj) {
this.controller = controlObj;
};
BarbieFeatureClass.prototype.getController = function () {
return(this.controller);
};
BarbieFeatureClass.prototype.setOverFunction = function (method, obj) {
var _local1 = this;
if (obj != null) {
_local1.setController(obj);
}
_local1.overFunction = _local1.controller[method];
};
BarbieFeatureClass.prototype.getOverFunction = function () {
return(this.overFunction);
};
BarbieFeatureClass.prototype.setOutFunction = function (method, obj) {
var _local1 = this;
if (obj != null) {
_local1.setController(obj);
}
_local1.outFunction = _local1.controller[method];
};
BarbieFeatureClass.prototype.getOutFunction = function () {
return(this.outFunction);
};
BarbieFeatureClass.prototype.getValues = function () {
var _local1 = this;
valObj = new Object();
for (i in _local1.values) {
valObj[i] = _local1.values[i];
}
return(valObj);
};
BarbieFeatureClass.prototype.setValues = function (valObj) {
var _local1 = this;
_local1.updateValues(valObj);
_local1.commandIndex++;
if (_local1.commandObjects.length > _local1.commandIndex) {
_local1.commandObjects.splice(_local1.commandIndex);
}
_local1.commandObjects[_local1.commandIndex] = _local1.getValues();
_local1.repaint();
};
BarbieFeatureClass.prototype.onExecute = function () {
var _local1 = this;
tmpObj = _local1.controller.activePalette.returnProperties();
lastObj = _local1.commandObjects[_local1.commandIndex];
doExecute = !tmpObj.compare(lastObj);
if (doExecute) {
_local1.updateValues(tmpObj);
_local1.commandIndex++;
if (_local1.commandObjects.length > _local1.commandIndex) {
_local1.commandObjects.splice(_local1.commandIndex);
}
_local1.commandObjects[_local1.commandIndex] = _local1.getValues();
_local1.repaint();
}
if (debugMode) {
trace("BarbieFeatureClass -> Executing: " + _local1._name);
_local1.traceComm();
}
};
BarbieFeatureClass.prototype.onUnexecute = function () {
var _local1 = this;
if (_local1.commandIndex > 0) {
_local1.commandIndex--;
_local1.updateValues(_local1.commandObjects[_local1.commandIndex]);
_local1.repaint();
}
if (debugMode) {
trace("BarbieFeatureClass -> Unexecuting: " + _local1._name);
_local1.traceComm();
}
};
BarbieFeatureClass.prototype.onRevert = function () {
var _local1 = this;
_local1.initValues(_local1.commandObjects[0]);
if (_local1.commandObjects.length > 1) {
_local1.commandObjects.splice(1);
}
_local1.commandIndex = 0;
};
BarbieFeatureClass.prototype.onActivate = function () {
var _local1 = this;
_local1.onRollOver = (_local1.onDragOver = (_local1.onRelease = _local1.overFunction));
_local1.onRollOut = (_local1.onDragOut = (_local1.onReleaseOutside = _local1.outFunction));
_local1.onPress = _local1.exec;
if (debugMode) {
trace("BarbieFeatureClass -> Activating: " + _local1._name);
}
};
BarbieFeatureClass.prototype.onDeactivate = function () {
var _local1 = this;
delete _local1.onRollOver;
delete _local1.onDragOver;
delete _local1.onRelease;
delete _local1.onRollOut;
delete _local1.onDragOut;
delete _local1.onReleaseOutside;
delete _local1.onPress;
if (debugMode) {
trace("BarbieFeatureClass -> Deactivating: " + _local1._name);
}
};
BarbieFeatureClass.prototype.onInitialize = function (paletteObj) {
this.initValues(paletteObj.returnProperties());
};
BarbieFeatureClass.prototype.exec = function () {
this.controller.execute();
};
BarbieFeatureClass.prototype.updateValues = function (valueObj) {
var _local1 = valueObj;
var _local2 = this;
for (i in _local1) {
if (_local1.active.search(i) != -1) {
_local2.values[i] = _local1[i];
}
}
};
BarbieFeatureClass.prototype.repaint = function () {
};
BarbieFeatureClass.prototype.traceComm = function () {
var _local1 = this;
i = 0;
while (i < _local1.commandObjects.length) {
trace("BarbieFeatureClass -> CommandObject " + i);
for (j in _local1.commandObjects[i]) {
trace("\t" + _local1.commandObjects[i][j]);
}
i++;
}
trace(newline);
};
Object.prototype.compare = function (obj) {
var _local1 = this;
var _local2 = obj;
for (i in _local1) {
if (typeof(_local1[i]) == "object") {
bool = _local1[i].compare(_local2[i]);
if (bool == false) {
return(false);
}
}
if (_local1[i] != _local2[i]) {
return(false);
}
}
return(true);
};
ASSetPropFlags(Object.prototype, ["compare"], 1);
Array.prototype.search = function (term) {
var _local2 = this;
var _local3 = term;
var _local1 = 0;
while ((_local2[_local1] != _local3) && (_local1 < _local2.length)) {
_local1++;
}
if (_local1 == _local2.length) {
_local1 = -1;
}
return(_local1);
};
ASSetPropFlags(Array.prototype, "search", 7);
#endinitclip
Symbol 234 MovieClip [Barbie_neck] Frame 1
#initclip 13
_global.BNeck = function () {
this.init();
};
BNeck.prototype = new BarbieFeatureClass();
Object.registerClass("Barbie_Neck", BNeck);
BNeck.prototype.init = function () {
var _local1 = this;
super.init();
_local1.baseClips = new Array();
_local1.alphaClips = new Array();
_local1.onInit();
};
BNeck.prototype.addBaseClips = function () {
var _local1 = arguments;
var _local2 = this;
_local2.baseClips = [];
i = 0;
while (i < _local1.length) {
_local2.baseClips.push(new Color(_local1[i]));
i++;
}
};
BNeck.prototype.addAlphaClips = function () {
var _local1 = arguments;
var _local2 = this;
_local2.alphaClips = [];
i = 0;
while (i < _local1.length) {
_local2.alphaClips.push(new Color(_local1[i]));
i++;
}
};
BNeck.prototype.repaint = function () {
var _local1 = this;
if (_local1.values.color != undefined) {
i = 0;
while (i < _local1.baseClips.length) {
_local1.baseClips[i].setTransform(_local1.values.color);
i++;
}
i = 0;
while (i < _local1.alphaClips.length) {
_local1.alphaClips[i].setPercentageTransform(_local1.values.color, 30);
i++;
}
} else {
noTrans = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
i = 0;
while (i < _local1.baseClips.length) {
_local1.baseClips[i].setTransform(noTrans);
i++;
}
i = 0;
while (i < _local1.alphaClips.length) {
_local1.alphaClips[i].setTransform(noTrans);
i++;
}
}
};
BNeck.prototype.onInit = function () {
var _local1 = this;
_local1.addBaseClips(_local1.baseTone_mc);
_local1.addAlphaClips(_local1.alphaTones_mc);
};
#endinitclip
stop();
Symbol 241 MovieClip [FComboBoxItemSymbol] Frame 1
#initclip 21
function FComboBoxItemClass() {
this.init();
}
FComboBoxItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FComboBoxItemSymbol", FComboBoxItemClass);
FComboBoxItemClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.highlight_mc.onRollOver = function () {
this.controller.controller.selectionHandler(this.controller.itemNum);
};
};
#endinitclip
Symbol 244 MovieClip [FComboBoxSymbol] Frame 1
#initclip 22
function FComboBoxClass() {
var _local1 = this;
_global._popUpLevel = ((_global._popUpLevel == undefined) ? 20000 : (_global._popUpLevel + 1));
_local1.superHolder = _root.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
var _local3 = _local1.superHolder.createEmptyMovieClip("testCont", 20000);
var testBox = _local3.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
if (testBox._name == undefined) {
_local1.superHolder.removeMovieClip();
_local1.superHolder = _local1._parent.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
} else {
_local3.removeMovieClip();
}
if (_local1.rowCount == undefined) {
_local1.rowCount = 8;
_local1.editable = false;
}
_local1.itemSymbol = "FComboBoxItemSymbol";
_local1.init();
_local1.permaScrollBar = false;
_local1.proxyBox_mc.gotoAndStop(1);
_local1.width = _local1._width;
_local1.height = (_local1.proxyBox_mc._height * _local1._yscale) / 100;
var _local2 = 0;
while (_local2 < _local1.labels.length) {
_local1.addItem(_local1.labels[_local2], _local1.data[_local2]);
_local2++;
}
_local1.lastSelected = 0;
_local1.selectItem(0);
_local1._xscale = (_local1._yscale = 100);
_local1.opened = false;
_local1.setSize(_local1.width);
_local1.highlightTop(false);
if (_local1.changeHandler.length > 0) {
_local1.setChangeHandler(_local1.changeHandler);
}
_local1.onUnload = function () {
this.superHolder.removeMovieClip();
};
_local1.setSelectedIndex(0, false);
_local1.value = "";
_local1.focusEnabled = true;
_local1.changeFlag = false;
}
FComboBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FComboBoxSymbol", FComboBoxClass);
FComboBoxClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
super.modelChanged(eventObj);
var _local2 = eventObj.event;
if ((_local2 == "addRows") || (_local2 == "deleteRows")) {
var diff = ((eventObj.lastRow - eventObj.firstRow) + 1);
var mode = ((_local2 == "addRows") ? 1 : -1);
var _local3 = _local1.getLength();
var lenBefore = (_local3 - (mode * diff));
if ((_local1.rowCount > lenBefore) || (_local1.rowCount > _local3)) {
_local1.invalidate("setSize");
}
if (_local1.getSelectedIndex() == undefined) {
_local1.setSelectedIndex(0, false);
}
} else if (_local2 == "updateAll") {
_local1.invalidate("setSize");
}
};
FComboBoxClass.prototype.removeAll = function () {
var _local1 = this;
if (!_local1.enable) {
} else {
super.removeAll();
if (_local1.editable) {
_local1.value = "";
}
_local1.invalidate("setSize");
}
};
FComboBoxClass.prototype.setSize = function (w) {
var _local1 = this;
var _local2 = w;
if ((((_local2 == undefined) || (typeof(_local2) != "number")) || (_local2 <= 0)) || (!_local1.enable)) {
} else {
_local1.proxyBox_mc._width = _local2;
_local1.container_mc.removeMovieClip();
_local1.measureItmHgt();
_local1.container_mc = _local1.superHolder.createEmptyMovieClip("container", 3);
_local1.container_mc.tabChildren = false;
_local1.setPopUpLocation(_local1.container_mc);
_local1.container_mc.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
_local1.boundingBox_mc = _local1.container_mc.boundingBox_mc;
_local1.boundingBox_mc.component = _local1;
_local1.registerSkinElement(_local1.boundingBox_mc.boundingBox, "background");
_local1.proxyBox_mc._height = _local1.itmHgt;
_local1.numDisplayed = Math.min(_local1.rowCount, _local1.getLength());
if (_local1.numDisplayed < 3) {
_local1.numDisplayed = Math.min(3, _local1.getLength());
}
_local1.height = (_local1.numDisplayed * (_local1.itmHgt - 2)) + 2;
super.setSize(_local2, _local1.height);
_local1.attachMovie("DownArrow", "downArrow", 10);
_local1.downArrow._y = 0;
_local1.downArrow._width = _local1.itmHgt;
_local1.downArrow._height = _local1.itmHgt;
_local1.downArrow._x = _local1.proxyBox_mc._width - _local1.downArrow._width;
_local1.setEditable(_local1.editable);
_local1.container_mc._visible = _local1.opened;
_local1.highlightTop(false);
_local1.fader = _local1.superHolder.attachMovie("FBoundingBoxSymbol", "faderX", 4);
_local1.registerSkinElement(_local1.fader.boundingBox, "background");
_local1.fader._width = _local1.width;
_local1.fader._height = _local1.height;
_local1.fader._visible = false;
}
};
FComboBoxClass.prototype.setDataProvider = function (dp) {
super.setDataProvider(dp);
this.invalidate("setSize");
this.setSelectedIndex(0);
};
FComboBoxClass.prototype.getValue = function () {
if (this.editable) {
return(this.fLabel_mc.getLabel());
}
return(super.getValue());
};
FComboBoxClass.prototype.getRowCount = function () {
return(this.rowCount);
};
FComboBoxClass.prototype.setRowCount = function (count) {
var _local1 = this;
var _local3 = count;
_local1.rowCount = ((_local1.getLength() > _local3) ? (Math.max(_local3, 3)) : (_local3));
_local1.setSize(_local1.width);
var _local2 = _local1.getLength();
if ((_local2 - _local1.getScrollPosition()) < _local1.rowCount) {
_local1.setScrollPosition(_local2 - Math.min(_local1.rowCount, _local2));
_local1.invalidate("updateControl");
}
};
FComboBoxClass.prototype.setEditable = function (editableFlag) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.editable = editableFlag;
if (!_local1.editable) {
_local1.onPress = _local1.pressHandler;
_local1.useHandCursor = false;
_local1.trackAsMenu = true;
_local1.attachMovie("FComboBoxItemSymbol", "fLabel_mc", 5, {controller:_local1, itemNum:-1});
_local1.fLabel_mc.onRollOver = undefined;
_local1.fLabel_mc.setSize((_local1.width - _local1.itmHgt) + 1, _local1.itmHgt);
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
_local1.highlightTop(false);
} else {
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 5);
_local1.fLabel_txt = _local1.fLabel_mc.labelField;
_local1.fLabel_txt.type = "input";
_local1.fLabel_txt._x = 4;
_local1.fLabel_txt.onSetFocus = _local1.onLabelFocus;
_local1.fLabel_mc.setSize((_local1.width - _local1.itmHgt) - 3);
delete _local1.onPress;
_local1.fLabel_txt.onKillFocus = function () {
this._parent._parent.myOnKillFocus();
};
_local1.fLabel_mc.setLabel(_local1.value);
_local1.fLabel_txt.onChanged = function () {
this._parent._parent.findInputText();
};
_local1.downArrow.onPress = _local1.buttonPressHandler;
_local1.downArrow.useHandCursor = false;
_local1.downArrow.trackAsMenu = true;
}
}
};
FComboBoxClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local2 = (((_local2 == undefined) || (typeof(_local2) != "boolean")) ? true : (_local2));
super.setEnabled(_local2);
_local1.registerSkinElement(_local1.boundingBox_mc.boundingBox, "background");
_local1.proxyBox_mc.gotoAndStop((_local1.enable ? "enabled" : "disabled"));
_local1.downArrow.gotoAndStop((_local1.enable ? 1 : 3));
if (_local1.editable) {
_local1.fLabel_txt.type = (_local2 ? "input" : "dynamic");
_local1.fLabel_txt.selectable = _local2;
} else if (_local2) {
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
_local1.setSelectedIndex(_local1.getSelectedIndex(), false);
}
_local1.fLabel_mc.setEnabled(_local1.enable);
_local1.fLabel_txt.onSetFocus = (_local2 ? (_local1.onLabelFocus) : undefined);
};
FComboBoxClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
super.setSelectedIndex(index, flag);
if (!_local1.editable) {
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
} else {
_local1.value = ((flag != undefined) ? "" : (_local1.getSelectedItem().label));
_local1.fLabel_mc.setLabel(_local1.value);
}
_local1.invalidate("updateControl");
};
FComboBoxClass.prototype.setValue = function (value) {
var _local1 = this;
if (_local1.editable) {
_local1.fLabel_mc.setLabel(value);
_local1.value = value;
}
};
FComboBoxClass.prototype.pressHandler = function () {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (_local1.enable) {
if (!_local1.opened) {
_local1.onMouseUp = _local1.releaseHandler;
} else {
_local1.onMouseUp = undefined;
}
_local1.changeFlag = false;
if (!_local1.focused) {
_local1.pressFocus();
_local1.clickFilter = (_local1.editable ? false : true);
}
if (!_local1.clickFilter) {
_local1.openOrClose(!_local1.opened);
} else {
_local1.clickFilter = false;
}
}
};
FComboBoxClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
if (!_local1.focused) {
if (_local1.editable) {
_local1.fLabel_txt.onKillFocus = undefined;
}
_local1.pressFocus();
}
super.clickHandler(itmNum);
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FComboBoxClass.prototype.highlightTop = function (flag) {
var _local1 = this;
if (!_local1.editable) {
_local1.fLabel_mc.drawItem(_local1.topLabel, flag);
}
};
FComboBoxClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
this.fLabel_mc.highlight_mc.gotoAndStop("enabled");
this.highlightTop(true);
};
FComboBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1._height + 4);
};
FComboBoxClass.prototype.myOnKillFocus = function () {
var _local1 = this;
if (Selection.getFocus().indexOf("labelField") != -1) {
} else {
super.myOnKillFocus();
delete _local1.fLabel_txt.onKeyDown;
_local1.openOrClose(false);
_local1.highlightTop(false);
}
};
FComboBoxClass.prototype.setPopUpLocation = function (mcRef) {
var _local1 = this;
var _local3 = mcRef;
_local3._x = _local1._x;
var _local2 = {x:_local1._x, y:_local1._y + _local1.proxyBox_mc._height};
_local1._parent.localToGlobal(_local2);
_local3._parent.globalToLocal(_local2);
_local3._x = _local2.x;
_local3._y = _local2.y;
if ((_local1.height + _local3._y) >= Stage.height) {
_local1.upward = true;
_local3._y = (_local2.y - _local1.height) - _local1.proxyBox_mc._height;
} else {
_local1.upward = false;
}
};
FComboBoxClass.prototype.openOrClose = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.getLength() == 0) {
} else {
_local1.setPopUpLocation(_local1.container_mc);
if ((_local1.lastSelected != -1) && ((_local1.lastSelected < _local1.topDisplayed) || (_local1.lastSelected > (_local1.topDisplayed + _local1.numDisplayed)))) {
super.moveSelBy(_local1.lastSelected - _local1.getSelectedIndex());
}
if (!_local2) {
(_local1.downArrow.gotoAndStop(1));// not popped
} else {
(_local1.downArrow.gotoAndStop(2));// not popped
}
if (_local2 == _local1.opened) {
} else {
_local1.highlightTop(!_local2);
_local1.fadeRate = _local1.styleTable.popUpFade.value;
if (((!_local2) || (_local1.fadeRate == undefined)) || (_local1.fadeRate == 0)) {
_local1.opened = (_local1.container_mc._visible = _local2);
} else {
_local1.setPopUpLocation(_local1.fader);
_local1.time = 0;
_local1.const = 85 / Math.sqrt(_local1.fadeRate);
_local1.fader._alpha = 85;
_local1.container_mc._visible = (_local1.fader._visible = true);
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.fader._alpha = 100 - ((_local1.const * Math.sqrt(++_local1.time)) + 15);
if (_local1.time >= _local1.fadeRate) {
_local1.fader._visible = false;
delete _local1.onEnterFrame;
_local1.opened = true;
}
};
}
}
}
};
FComboBoxClass.prototype.fireChange = function () {
var _local1 = this;
_local1.lastSelected = _local1.getSelectedIndex();
if (!_local1.editable) {
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, true);
} else {
_local1.value = _local1.getSelectedItem().label;
_local1.fLabel_mc.setLabel(_local1.value);
}
_local1.executeCallback();
};
FComboBoxClass.prototype.releaseHandler = function () {
var _local1 = this;
var _local2 = _root;
var _local3 = _local1.boundingBox_mc.hitTest(_local2._xmouse, _local2._ymouse);
if (_local1.changeFlag) {
if (_local3) {
_local1.fireChange();
}
_local1.openOrClose(!_local1.opened);
} else if (_local3) {
_local1.openOrClose(false);
} else {
_local1.onMouseDown = function () {
var _local1 = this;
var _local2 = _root;
if ((!_local1.boundingBox_mc.hitTest(_local2._xmouse, _local2._ymouse)) && (!_local1.hitTest(_local2._xmouse, _local2._ymouse))) {
_local1.onMouseDown = undefined;
_local1.openOrClose(false);
}
};
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
clearInterval(_local1.dragScrolling);
_local1.dragScrolling = undefined;
};
FComboBoxClass.prototype.moveSelBy = function (itemNum) {
var _local1 = this;
if (itemNum != 0) {
super.moveSelBy(itemNum);
if (_local1.editable) {
_local1.setValue(_local1.getSelectedItem().label);
}
if (!_local1.opened) {
if (_local1.changeFlag && (!_local1.isSelected(_local1.lastSelected))) {
_local1.fireChange();
}
}
}
};
FComboBoxClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if (!_local1.focused) {
} else {
if (_local1.editable && (Key.isDown(13))) {
_local1.setValue(_local1.fLabel_mc.getLabel());
_local1.executeCallback();
_local1.openOrClose(false);
} else if ((Key.isDown(13) || (Key.isDown(32) && (!_local1.editable))) && (_local1.opened)) {
if (_local1.getSelectedIndex() != _local1.lastSelected) {
_local1.fireChange();
}
_local1.openOrClose(false);
_local1.fLabel_txt.hscroll = 0;
}
super.myOnKeyDown();
}
};
FComboBoxClass.prototype.findInputText = function () {
if (!this.editable) {
super.findInputText();
}
};
FComboBoxClass.prototype.onLabelFocus = function () {
var _local1 = this;
_local1._parent._parent.tabFocused = false;
_local1._parent._parent.focused = true;
_local1.onKeyDown = function () {
this._parent._parent.myOnKeyDown();
};
Key.addListener(_local1);
};
FComboBoxClass.prototype.buttonPressHandler = function () {
this._parent.pressHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 193 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 244 MovieClip [FComboBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 249 Button
on (press) {
this.pressFunc();
}
on (release) {
this.releaseFunc();
}
Symbol 254 Button
on (press) {
this.pressFunc();
}
on (release) {
this.releaseFunc();
}
Symbol 256 Button
on (press) {
this.pressFunc();
}
on (release) {
this.releaseFunc();
}
Symbol 258 Button
on (press) {
this.pressFunc();
}
on (release) {
this.releaseFunc();
}
Symbol 259 MovieClip [Barbie_Sunglasses] Frame 1
#initclip 12
_global.BSunglasses = function () {
this.init();
};
BSunglasses.prototype = new BarbieFeatureClass();
Object.registerClass("Barbie_Sunglasses", BSunglasses);
BSunglasses.prototype.init = function () {
super.init();
};
BSunglasses.prototype.repaint = function () {
var _local1 = this;
if (_local1.values.style != null) {
_local1.gotoAndStop(_local1.values.style);
} else {
_local1.gotoAndStop("sunglasses0");
}
};
#endinitclip
stop();
Symbol 260 MovieClip [FPointsNoticeLoaderSymbol] Frame 1
#initclip 23
FPointsNoticeLoaderClass = function () {
this.init();
};
FPointsNoticeLoaderClass.prototype = new MovieClip();
Object.registerClass("FPointsNoticeLoaderSymbol", FPointsNoticeLoaderClass);
FPointsNoticeLoaderClass.prototype.init = function () {
this.loadMovie(_global.server + "/ActivityOverlay/PointsNotice_v2.swf");
};
#endinitclip
Symbol 268 MovieClip [Barbie_Lipgloss] Frame 1
#initclip 10
_global.BLipgloss = function () {
this.init();
};
BLipgloss.prototype = new BarbieFeatureClass();
Object.registerClass("Barbie_Lipgloss", BLipgloss);
BLipgloss.prototype.init = function () {
super.init();
};
BLipgloss.prototype.repaint = function () {
var _local1 = this;
if (_local1.values.style != null) {
_local1.gotoAndStop(_local1.values.style);
} else {
_local1.gotoAndStop("gloss0");
}
};
#endinitclip
stop();
Symbol 271 MovieClip [Barbie_Sparkles] Frame 1
#initclip 9
_global.BSparkles = function () {
this.init();
};
BSparkles.prototype = new BarbieFeatureClass();
Object.registerClass("Barbie_Sparkles", BSparkles);
BSparkles.prototype.init = function () {
super.init();
};
BSparkles.prototype.repaint = function () {
var _local1 = this;
if (_local1.values.style != null) {
_local1.gotoAndStop(_local1.values.style);
} else {
_local1.gotoAndStop("sparkle0");
}
};
#endinitclip
stop();
Symbol 272 MovieClip [FUIComponentSymbol] Frame 1
#initclip 4
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 281 MovieClip [FaderSymbol] Frame 1
#initclip 6
Fader = function () {
this.init();
};
Fader.prototype = new FUIComponentClass();
Object.registerClass("FaderSymbol", Fader);
Fader.prototype.init = function () {
var _local1 = this;
if (_local1.padding == undefined) {
_local1.padding = 5;
}
if (_local1.width == undefined) {
_local1.width = _local1._width;
}
_local1.setSize(_local1.width);
_local1.points = new Array();
if (_local1.propName == undefined) {
_local1.propName = "default value";
}
_local1._listeners = new Array();
_local1.colors = new Array();
_local1.alphas = new Array();
_local1.ratios = new Array();
_local1.matrix = {matrixType:"box", x:0, y:0, w:_local1.gutter_mc._width, h:_local1.gutter_mc._height, r:0};
_local1.isDragging = false;
_local1.minDragX = _local1.gutter_mc._x;
_local1.maxDragX = _local1.gutter_mc._x + _local1.gutter_mc._width;
_local1.dragRange = _local1.maxDragX - _local1.minDragX;
_local1.dragY = _local1.gutter_mc._y;
_local1.sampleColor = new Color(_local1.highlight_mc);
_local1.createEmptyMovieClip("gradient_mc", 100);
_local1.slider_mc.swapDepths(200);
};
Fader.prototype.setSize = function (w) {
var _local1 = this;
var _local2 = w;
bound = _local1.bounding_mc;
hl = _local1.highlight_mc;
gut = _local1.gutter_mc;
sli = _local1.slider_mc;
_local1.width = _local2;
bound._width = _local2;
bound._x = _local2 / 2;
hl._x = _local1.padding;
gut._x = (hl._x + hl._width) + (2 * _local1.padding);
gut._width = (bound._width - gut._x) - _local1.padding;
sli._x = gut._x;
_local1._xscale = (_local1._yscale = 100);
};
Fader.prototype.addListener = function (obj) {
this.removeListener(obj);
this._listeners.push(obj);
return(true);
};
Fader.prototype.broadcastMessage = function () {
var eventName = arguments.shift();
var _local2 = this._listeners;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1][eventName].apply(_local2[_local1], arguments);
_local1++;
}
};
Fader.prototype.removeListener = function (obj) {
var _local3 = obj;
var _local2 = this._listeners;
var _local1 = _local2.length;
while (_local1--) {
if (_local2[_local1] == _local3) {
_local2.splice(_local1, 1);
return(true);
}
}
return(false);
};
Fader.prototype.clearListeners = function () {
this._listeners = [];
};
Fader.prototype.setGradient = function (gradArray) {
var _local1 = this;
var _local2 = gradArray;
_local1.points = [];
_local1.colors = [];
_local1.alphas = [];
_local1.ratios = [];
q = 0;
while (q < _local2.length) {
_local1.points.push(_local2[q]);
q++;
}
q = 0;
while (q < _local1.points.length) {
p = _local1.points[q];
rb = p.rb.toString(16);
if (rb.length < 2) {
rb = "0" + rb;
}
gb = p.gb.toString(16);
if (gb.length < 2) {
gb = "0" + gb;
}
bb = p.bb.toString(16);
if (bb.length < 2) {
bb = "0" + bb;
}
hexVal = (("0x" + rb) + gb) + bb;
_local1.colors[q] = Number(hexVal);
_local1.alphas[q] = p.aa;
_local1.ratios[q] = p.pos;
q++;
}
_local1.updateGradient();
};
Fader.prototype.getColorAt = function (percent) {
var _local1 = this;
currRatio = (percent / 100) * 255;
q = 1;
while (_local1.points[q].pos < currRatio) {
q++;
}
p1 = _local1.points[q - 1];
p2 = _local1.points[q];
pDist = (currRatio - p1.pos) / (p2.pos - p1.pos);
ct = new Object();
ct.ra = Math.round((p2.ra * pDist) + (p1.ra * (1 - pDist)));
ct.ga = Math.round((p2.ga * pDist) + (p1.ga * (1 - pDist)));
ct.ba = Math.round((p2.ba * pDist) + (p1.ba * (1 - pDist)));
ct.aa = Math.round((p2.aa * pDist) + (p1.aa * (1 - pDist)));
ct.rb = Math.round((p2.rb * pDist) + (p1.rb * (1 - pDist)));
ct.gb = Math.round((p2.gb * pDist) + (p1.gb * (1 - pDist)));
ct.bb = Math.round((p2.bb * pDist) + (p1.bb * (1 - pDist)));
return(ct);
};
Fader.prototype.getSliderPos = function () {
var _local1 = this;
pos = ((_local1.slider_mc._x - _local1.minDragX) / _local1.dragRange) * 100;
return(pos);
};
Fader.prototype.setSliderPos = function (percent) {
var _local1 = this;
xPos = ((percent / 100) * _local1.dragRange) + _local1.minDragX;
_local1.slider_mc._x = xPos;
_local1.onChangeColor();
};
Fader.prototype.getCurrentColor = function () {
return(this.currentColor);
};
Fader.prototype.setPropName = function (propName) {
this.propName = propName;
};
Fader.prototype.getPropName = function () {
return(this.propName);
};
Fader.prototype.onMouseDown = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.slider_mc.hitTest(_local2._xmouse, _local2._ymouse, false)) {
_local1.isDragging = true;
_local1.slider_mc.startDrag(false, _local1.minDragX, _local1.dragY, _local1.maxDragX, _local1.dragY);
_local1.dragInt = setInterval(_local1, "onChangeColor", 50);
} else if (_local1.gutter_mc.hitTest(_local2._xmouse, _local2._ymouse, false)) {
}
};
Fader.prototype.onMouseUp = function () {
var _local1 = this;
if (_local1.isDragging) {
_local1.slider_mc.stopDrag();
_local1.isDragging = false;
clearInterval(_local1.dragInt);
}
};
Fader.prototype.onChangeColor = function () {
var _local1 = this;
_local1.currentColor = _local1.getColorAt(_local1.getSliderPos());
_local1.sampleColor.setTransform(_local1.currentColor);
_local1.broadcastMessage("onChangeColor", _local1.currentColor);
_local1.executeCallback();
};
Fader.prototype.updateGradient = function () {
this.clear();
g = this.gutter_mc;
with (this.gradient_mc) {
_x = g._x;
_y = g._y;
linesStyle(0, 16777215, 0);
beginGradientFill("linear", this.colors, this.alphas, this.ratios, this.matrix);
moveTo(0, 0);
lineTo(0 + g._width, 0);
lineTo(0 + g._width, 0 + g._height);
lineTo(0, 0 + g._height);
lineTo(0, 0);
endFill();
}
this.onChangeColor();
};
Fader.prototype.toHex = function (num) {
vals = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "A", "B", "C", "D", "E", "F"];
idx1 = Math.floor(num / 16);
idx2 = num - (idx1 * 16);
return(String(vals[idx1]) + String(vals[idx2]));
};
FadePoint = function (pos, rb, gb, bb, percent) {
var _local1 = this;
_local1.pos = (pos / 100) * 255;
_local1.ra = (_local1.ga = (_local1.ba = 0));
_local1.ab = 0;
_local1.aa = 100;
_local1.rb = rb;
_local1.gb = gb;
_local1.bb = bb;
};
#endinitclip
Instance of Symbol 272 MovieClip [FUIComponentSymbol] in Symbol 281 MovieClip [FaderSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 290 MovieClip [PreloaderSymbol] Frame 1
#initclip 14
_global.PreLoader = function () {
this.init();
};
PreLoader.prototype = new MovieClip();
PreLoader.prototype.init = function () {
var _local1 = this;
if (_local1.onDoneLoading == null) {
_local1.onDoneLoading = "";
}
if (_local1.onLoadUpdate == null) {
_local1.onLoadUpdate = "";
}
_local1.queue = new Array();
_local1._listeners = new Array();
_local1.maxV = 100;
_local1.minV = 0;
_local1.value = 0;
_local1.oldValue = 0;
_local1.count = 0;
_local1.msg = "loading";
_local1.isListening = false;
_local1.isLoading = false;
_local1.handlerObj = _local1._parent;
_local1.maxBarWidth = _local1.bar_mc._width;
_local1.maxBarHeight = _local1.bar_mc._height;
_local1.bar_mc._xscale = 0;
};
Object.registerClass("PreloaderSymbol", PreLoader);
PreLoader.prototype.setLoadTarget = function () {
var _local2 = arguments;
var _local3 = this;
tmp = _local2[0];
if (typeof(tmp) == "string") {
url = _local2.shift();
loc = _local2.shift();
msg = _local2.shift();
var _local1 = new Object();
_local1.locIsMC = typeof(loc) == "movieclip";
_local1.loc = loc;
_local1.url = url;
_local1.msg = ((msg == null) ? "loading" : (msg));
_local1.id = _local3.addToQueue(_local1);
if (debugMode) {
globalTrace((((("PreLoader -> Queueing " + url) + " into ") + loc) + ", display message = ") + msg);
}
} else {
mcRef = _local2.shift();
msg = _local2.shift();
var _local1 = new Object();
_local1.mcRef = mcRef;
_local1.msg = ((msg == null) ? "loading" : (msg));
_local1.id = _local3.addToQueue(_local1);
if (debugMode) {
globalTrace((("PreLoader -> Queueing " + mcRef) + ", display message = ") + msg);
}
}
if (!_local3.isListening) {
_local3.isListening = true;
_local3.sI = setInterval(_local3, "loadInterval", 50);
}
};
PreLoader.prototype.getPercentComplete = function () {
var _local1 = this;
return(Math.round(((_local1.value - _local1.minV) / _local1.maxV) * 100));
};
PreLoader.prototype.getValue = function () {
return(this.value);
};
PreLoader.prototype.setHandlerObj = function (obj) {
this.handlerObj = obj;
};
PreLoader.prototype.setCallback = function (cbName, newMethod) {
this[cbName] = newMethod;
};
Preloader.prototype.addListener = function (obj) {
this.removeListener(obj);
this._listeners.push(obj);
return(true);
};
Preloader.prototype.removeListener = function (obj) {
var _local3 = obj;
var _local2 = this._listeners;
var _local1 = _local2.length;
while (_local1--) {
if (_local2[_local1] == _local3) {
_local2.splice(_local1, 1);
return(true);
}
}
return(false);
};
PreLoader.prototype.addToQueue = function (obj) {
var _local1 = this.queue.push(obj) - 1;
return(_local1);
};
PreLoader.prototype.getNextSWF = function () {
var _local1 = this;
if (_local1.queue.length > 0) {
_local1.isLoading = true;
_local1.currentObj = _local1.queue.shift();
_local1.msg = ((_local1.currentObj.msg == null) ? "loading" : (_local1.currentObj.msg));
if (debugMode) {
globalTrace("\n-----------------------------------");
globalTrace(" LOADING NEW ELEMENT ");
globalTrace("-----------------------------------");
for (var _local2 in _local1.currentObj) {
globalTrace((_local2 + "\t\t\t") + _local1.currentObj[_local2]);
}
globalTrace("-----------------------------------");
}
if (_local1.currentObj.mcRef != null) {
_local1.count++;
_local1.update(0);
if (debugMode) {
globalTrace(("Preloader -> current object " + _local1.currentObj.mcRef) + " is INTERNAL.");
}
} else if (_local1.currentObj.locIsMC) {
if (typeof(_local1.currentObj.loc) == "movieclip") {
_local1.count++;
_local1.update(0);
_local1.currentObj.loc.loadMovie(_local1.currentObj.url);
if (debugMode) {
globalTrace(("Preloader -> current object " + _local1.currentObj.url) + " is EXTERNAL.");
globalTrace(" current object loading into " + _local1.currentObj.loc);
}
} else {
_local1.isLoading = false;
if (debugMode) {
globalTrace("Preloader -> Invalid load target; target references non-existing movie clip.");
}
}
} else {
_local1.count++;
_local1.update(0);
loadMovieNum (_local1.currentObj.url, _local1.currentObj.loc);
if (debugMode) {
globalTrace(("Preloader -> current object " + _local1.currentObj.url) + " is EXTERNAL.");
globalTrace(" current object loading into " + _local1.currentObj.loc);
}
}
} else {
_local1.isListening = false;
_local1.isLoading = false;
clearInterval(_local1.sI);
_local1.doneLoading();
_local1.broadcastMessage("onDoneLoading");
if (debugMode) {
globalTrace("\nPreloader -> All elements loaded.");
globalTrace("-----------------------------------");
}
}
};
PreLoader.prototype.loadInterval = function () {
var _local1 = this;
if (_local1.isLoading) {
var _local2 = ((_local1.currentObj.loc != null) ? (_local1.currentObj.loc) : (_local1.currentObj.mcRef));
total = _local2.getBytesTotal();
loaded = _local2.getBytesLoaded();
_local1.setProgress(loaded, total);
if (debugMode) {
text = ((_local1.currentObj.mcRef != null) ? "loading" : "loading into");
globalTrace(((((((("PreLoader -> loadInterval -> " + text) + " ") + _local2) + " | ") + loaded) + " of ") + total) + " bytes");
}
if ((_local1.getPercentComplete() >= 100) && (_local1.getValue() > 4)) {
if (debugMode) {
globalTrace(((("PreLoader -> loadInterval -> " + _local2) + " is ") + _local1.getPercentComplete()) + "% complete. Getting next SWF...");
}
_local1.currentObj = null;
_local1.getNextSWF();
}
} else {
_local1.getNextSWF();
if (debugMode) {
globalTrace("PreLoader -> loadInterval -> not loading, (re)starting load process");
}
}
};
PreLoader.prototype.setProgress = function (v, t) {
var _local1 = this;
_local1.value = v;
_local1.maxV = t;
_local1.update(v / t);
};
PreLoader.prototype.update = function (percent) {
var _local1 = this;
p = Math.ceil(percent * 100);
_local1.bar_mc._xscale = p;
_local1.percent_tb = p + "%";
loc = ((_local1.currentObj.mcRef == null) ? (_local1.currentObj.loc) : (_local1.currentObj.mcRef));
_local1.loadUpdate(p, _local1.count, loc);
_local1.broadcastMessage("onLoadUpdate", [p, _local1.count, loc]);
};
PreLoader.prototype.doneLoading = function () {
this.handlerObj[this.onDoneLoading]();
};
PreLoader.prototype.loadUpdate = function () {
this.handlerObj[this.onLoadUpdate]();
};
Preloader.prototype.broadcastMessage = function () {
var eventName = arguments.shift();
var _local2 = this._listeners;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1][eventName].apply(_local2[_local1], arguments);
_local1++;
}
};
ASSetPropFlags(Object.prototype, ["PreLoader"], 1);
#endinitclip
Symbol 292 MovieClip [SwatchButtonSymbol] Frame 1
#initclip 36
_global.SwatchButton = function () {
this.init();
};
SwatchButton.prototype = new FUIComponentClass();
Object.registerClass("SwatchButtonSymbol", SwatchButton);
SwatchButton.prototype.init = function () {
var _local1 = this;
_local1.myColor = new Color(_local1);
_local1.useHandCursor = true;
};
SwatchButton.prototype.setColorTransform = function (transformObj) {
this.myColor.setTransform(transformObj);
};
SwatchButton.prototype.setColorRGB = function (rgbObj) {
this.myColor.setRGB(rgbObj);
};
SwatchButton.prototype.onPress = function () {
this.executeCallback();
};
#endinitclip
Instance of Symbol 272 MovieClip [FUIComponentSymbol] in Symbol 292 MovieClip [SwatchButtonSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 299 MovieClip [MNav1] Frame 1
stop();
Symbol 304 MovieClip [MNav2] Frame 1
stop();
Symbol 308 MovieClip [MNav3] Frame 1
stop();
Symbol 312 MovieClip [MNav4] Frame 1
stop();
Symbol 317 MovieClip [MNav5] Frame 1
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 1
#initclip 34
_global.BHair = function () {
this.init();
};
BHair.prototype = new BarbieFeatureClass();
Object.registerClass("Barbie_HairFront", BHair);
Object.registerClass("Barbie_HairBack", BHair);
BHair.prototype.init = function () {
var _local1 = this;
super.init();
_local1.baseClips = new Array();
_local1.highlightClips = new Array();
_local1.shadowClips = new Array();
};
BHair.prototype.addBaseClips = function () {
var _local1 = arguments;
var _local2 = this;
_local2.baseClips = [];
i = 0;
while (i < _local1.length) {
_local2.baseClips.push(new Color(_local1[i]));
i++;
}
};
BHair.prototype.addHighlightClips = function () {
var _local1 = arguments;
var _local2 = this;
_local2.highlightClips = [];
i = 0;
while (i < _local1.length) {
_local2.highlightClips.push(new Color(_local1[i]));
i++;
}
};
BHair.prototype.addShadowClips = function () {
var _local1 = arguments;
var _local2 = this;
_local2.shadowClips = [];
i = 0;
while (i < _local1.length) {
_local2.shadowClips.push(new Color(_local1[i]));
i++;
}
};
BHair.prototype.repaint = function () {
var _local1 = this;
if (_local1.values.style != null) {
_local1.gotoAndStop(_local1.values.style);
} else {
_local1.gotoAndStop("style5");
}
if (_local1.values.color != null) {
i = 0;
while (i < _local1.baseClips.length) {
_local1.baseClips[i].setTransform(_local1.values.color);
i++;
}
i = 0;
while (i < _local1.highlightClips.length) {
_local1.highlightClips[i].setPercentageTransform(_local1.values.color, 30);
i++;
}
i = 0;
while (i < _local1.shadowClips.length) {
_local1.shadowClips[i].setPercentageTransform(_local1.values.color, 30);
i++;
}
} else {
noTrans = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
i = 0;
while (i < _local1.baseClips.length) {
_local1.baseClips[i].setTransform(noTrans);
i++;
}
i = 0;
while (i < _local1.highlightClips.length) {
_local1.highlightClips[i].setTransform(noTrans);
i++;
}
i = 0;
while (i < _local1.shadowClips.length) {
_local1.shadowClips[i].setTransform(noTrans);
i++;
}
}
};
#endinitclip
Symbol 456 MovieClip [Barbie_HairBack] Frame 1
this.gotoAndStop("style5");
Symbol 456 MovieClip [Barbie_HairBack] Frame 7
this.setMyPalette(PHair);
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 13
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 18
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 24
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 31
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 37
this.addBaseClips(this.baseTone_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 49
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlight_mc, this.darkHighlight_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 55
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 61
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 67
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 73
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 80
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 456 MovieClip [Barbie_HairBack] Frame 85
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 477 MovieClip [Barbie_Tops] Frame 1
#initclip 33
_global.BTops = function () {
this.init();
};
BTops.prototype = new BarbieFeatureClass();
Object.registerClass("Barbie_Tops", BTops);
BTops.prototype.init = function () {
super.init();
};
BTops.prototype.repaint = function () {
var _local1 = this;
if (_local1.values.style != null) {
_local1.gotoAndStop(_local1.values.style);
} else {
_local1.gotoAndStop("tops0");
}
};
#endinitclip
stop();
Symbol 482 MovieClip [Barbie_Skin] Frame 1
#initclip 35
_global.BSkin = function () {
this.init();
};
BSkin.prototype = new BarbieFeatureClass();
Object.registerClass("Barbie_Skin", BSkin);
BSkin.prototype.init = function () {
var _local1 = this;
super.init();
_local1.baseClips = new Array();
_local1.alphaClips = new Array();
_local1.onInit();
};
BSkin.prototype.addBaseClips = function () {
var _local1 = arguments;
var _local2 = this;
_local2.baseClips = [];
i = 0;
while (i < _local1.length) {
_local2.baseClips.push(new Color(_local1[i]));
i++;
}
};
BSkin.prototype.addAlphaClips = function () {
var _local1 = arguments;
var _local2 = this;
_local2.alphaClips = [];
i = 0;
while (i < _local1.length) {
_local2.alphaClips.push(new Color(_local1[i]));
i++;
}
};
BSkin.prototype.repaint = function () {
var _local1 = this;
if (_local1.values.color != undefined) {
i = 0;
while (i < _local1.baseClips.length) {
_local1.baseClips[i].setTransform(_local1.values.color);
i++;
}
i = 0;
while (i < _local1.alphaClips.length) {
_local1.alphaClips[i].setPercentageTransform(_local1.values.color, 30);
i++;
}
} else {
noTrans = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
i = 0;
while (i < _local1.baseClips.length) {
_local1.baseClips[i].setTransform(noTrans);
i++;
}
i = 0;
while (i < _local1.alphaClips.length) {
_local1.alphaClips[i].setTransform(noTrans);
i++;
}
}
};
BSkin.prototype.onInit = function () {
var _local1 = this;
_local1.addBaseClips(_local1.baseTone_mc, _local1.baseTone_neck_mc);
_local1.addAlphaClips(_local1.alphaTones_mc, _local1.alphaTones_neck_mc);
};
#endinitclip
stop();
Symbol 707 MovieClip [Barbie_HairFront] Frame 1
gotoAndStop ("style5");
Symbol 707 MovieClip [Barbie_HairFront] Frame 7
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 13
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlight_mc, this.darkHighlight_mc, this.curlHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 18
this.addBaseClips(this.baseTone_mc, this.braidBase_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc, this.braidDark2_mc, this.braidLight1_mc, this.braidLight2_mc);
this.addShadowClips(this.shadowTones_mc, this.braidDark1_mc, this.braidBlends_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 24
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 31
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 37
this.addBaseClips(this.baseTone_mc, this.curlBase_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc, this.curlShadow_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 43
this.addBaseClips(this.baseTone_mc, this.bunBase_mc, this.bangBase_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc, this.bunLight_mc, this.bunDark_mc);
this.addShadowClips(this.shadowTones_mc, this.bunShadow_mc, this.bangShadow_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 49
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlight_mc, this.darkHighlight_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 55
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 61
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 67
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 73
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 80
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 707 MovieClip [Barbie_HairFront] Frame 85
this.addBaseClips(this.baseTone_mc);
this.addHighlightClips(this.lightHighlights_mc, this.darkHighlights_mc);
this.addShadowClips(this.shadowTones_mc);
this.repaint(this.values);
Symbol 718 MovieClip Frame 1
stop();
Symbol 722 MovieClip Frame 1
stop();
Symbol 724 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 1
stop();
Symbol 727 MovieClip [Barbie_Eye] Frame 1
#initclip 27
_global.BEye = function () {
this.init();
};
BEye.prototype = new BarbieFeatureClass();
Object.registerClass("Barbie_Eye", BEye);
BEye.prototype.init = function () {
var _local1 = this;
super.init();
_local1.cShadow = new Color(_local1.shadow_mc);
_local1.cPupil = new Color(_local1.pupil_mc);
_local1.cLashes = new Color(_local1.lashes_mc);
};
BEye.prototype.repaint = function () {
var _local1 = this;
noTrans = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
if (_local1.values.lashes != null) {
_local1.gotoAndStop(_local1.values.lashes);
} else {
_local1.gotoAndStop("lash1");
}
if (_local1.values.sparkles != null) {
_local1.sparkles_mc.gotoAndStop(_local1.values.sparkles);
} else {
_local1.sparkles_mc.gotoAndStop("sparkle0");
}
if (_local1.values.color != null) {
_local1.cPupil.setTransform(_local1.values.color);
} else {
_local1.cPupil.setTransform(noTrans);
}
if (_local1.values.shadow != null) {
_local1.cShadow.setTransform(_local1.values.shadow);
} else {
_local1.cShadow.setTransform(noTrans);
}
if (_local1.values.lashColor != null) {
_local1.cLashes.setTransform(_local1.values.lashColor);
} else {
_local1.cLashes.setTransform(noTrans);
}
};
#endinitclip
stop();
Symbol 729 MovieClip [Barbie_Eyebrow] Frame 1
#initclip 28
_global.BEyebrow = function () {
this.init();
};
BEyebrow.prototype = new BarbieFeatureClass();
Object.registerClass("Barbie_Eyebrow", BEyebrow);
BEyebrow.prototype.init = function () {
super.init();
this.myColor = new Color(this);
};
BEyebrow.prototype.repaint = function () {
var _local1 = this;
if (_local1.values.color != null) {
_local1.myColor.setPercentageTransform(_local1.values.color, 55);
} else {
noTrans = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:0, ab:0};
_local1.myColor.setTransform(noTrans);
}
};
#endinitclip
stop();
Symbol 740 MovieClip [Barbie_Lips] Frame 1
#initclip 29
_global.BLips = function () {
this.init();
};
BLips.prototype = new BarbieFeatureClass();
Object.registerClass("Barbie_Lips", BLips);
BLips.prototype.init = function () {
var _local1 = this;
super.init();
_local1.cTopLip = new Color(_local1.topLip_mc);
_local1.cBotLip = new Color(_local1.bottomLip_mc);
};
BLips.prototype.repaint = function () {
var _local1 = this;
if (_local1.values.color != null) {
_local1.cTopLip.setPercentageTransform(_local1.values.color, 70);
_local1.cBotLip.setPercentageTransform(_local1.values.color, 70);
} else {
noTrans = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local1.cTopLip.setTransform(noTrans);
_local1.cBotLip.setTransform(noTrans);
}
if (_local1.values.lipgloss != null) {
_local1.gloss_mc.gotoAndStop(_local1.values.lipgloss);
} else {
_local1.gloss_mc.gotoAndStop("gloss0");
}
};
#endinitclip
stop();
Symbol 742 MovieClip [StyleButtonSymbol] Frame 1
#initclip 30
_global.StyleButton = function () {
this.init();
};
StyleButton.prototype = new FUIComponentClass();
Object.registerClass("StyleButtonSymbol", StyleButton);
StyleButton.prototype.init = function () {
var _local1 = this;
_local1.style = new String();
_local1.isExecutable = false;
_local1.useHandCursor = true;
};
StyleButton.prototype.setStyleName = function (style) {
this.style = style;
};
StyleButton.prototype.getStyleName = function () {
return(this.style);
};
StyleButton.prototype.setPropName = function (propName) {
this.propName = propName;
};
StyleButton.prototype.getPropName = function () {
return(this.propName);
};
StyleButton.prototype.setExecutable = function (bool) {
this.isExecutable = bool;
};
StyleButton.prototype.getExecutable = function () {
return(this.isExecutable);
};
StyleButton.prototype.onPress = function () {
this.executeCallback();
};
#endinitclip
Instance of Symbol 272 MovieClip [FUIComponentSymbol] in Symbol 742 MovieClip [StyleButtonSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 903 MovieClip [FStamperSymbol] Frame 1
#initclip 31
_global.FStamper = function () {
this.init();
};
FStamper.prototype = new FUIComponentClass();
Object.registerClass("FStamperSymbol", FStamper);
FStamper.prototype.init = function () {
var _local1 = this;
super.init();
_local1.version_mc._visible = false;
_local1.itemSymbol = null;
_local1.stampSymbol = null;
_local1.useHandCursor = true;
if (_local1.itemSymbol != null) {
_local1.setItemSymbol(_local1.itemSymbol);
}
if (_local1.changeHandler != null) {
_local1.setChangeHandler(_local1.changeHandler);
}
};
FStamper.prototype.setItemSymbol = function (linkName) {
var _local1 = this;
if ((_local1.stampSymbol == null) || (_local1.stampSymbol == _local1.itemSymbol)) {
_local1.stampSymbol = linkName;
}
_local1.itemSymbol = linkName;
_local1.paint();
};
FStamper.prototype.getItemSymbol = function () {
return(this.itemSymbol);
};
FStamper.prototype.setStampSymbol = function (linkName) {
this.stampSymbol = linkName;
};
FStamper.prototype.getStampSymbol = function () {
return(this.stampSymbol);
};
FStamper.prototype.enable = function () {
trace("enabling: " + this);
this.enabled = true;
};
FStamper.prototype.disable = function () {
trace("disabling: " + this);
this.enabled = false;
};
FStamper.prototype.paint = function () {
this.attachMovie(this.itemSymbol, "symbol_mc", 100);
};
FStamper.prototype.onRelease = function () {
if (this.enabled) {
this.executeCallback();
}
};
#endinitclip
Instance of Symbol 272 MovieClip [FUIComponentSymbol] in Symbol 903 MovieClip [FStamperSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 915 Button
on (release) {
_root.mainMakeOver.setTiara(0);
}
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 1
#initclip 32
_global.VisualPalette = function () {
this.init();
};
VisualPalette.prototype = new MovieClip();
Object.registerClass("VisualPaletteSymbol", VisualPalette);
VisualPalette.prototype.init = function () {
this.controller = this._parent;
};
VisualPalette.prototype.setController = function (obj) {
this.controller = obj;
};
VisualPalette.prototype.onColorSwatchClick = function (obj) {
this.currentFader.setSliderPos(obj.position);
};
VisualPalette.prototype.onStyleSwatchClick = function (obj) {
var _local1 = obj;
this.controller.updateCurrentPalette(_local1.getPropName(), _local1.getStyleName());
if (_local1.getExecutable()) {
this.controller.execute();
}
};
VisualPalette.prototype.onChangeColor = function (faderObj) {
this.controller.updateCurrentPalette(faderObj.getPropName(), faderObj.getCurrentColor());
};
VisualPalette.prototype.onTabClick = function (props, goTo, paletteObj) {
var _local1 = this;
obj = ((paletteObj != null) ? (paletteObj) : (_local1.controller.activePalette));
_local1.controller.activatePalette(obj, props);
_local1.gotoAndStop(goTo);
};
VisualPalette.prototype.onStampClick = function (stampSymbol) {
this.controller.selectStamp(stampSymbol);
};
#endinitclip
this.currentFader = this.skinFader_mc;
this.skinFader_mc.setGradient(skinGradient);
this.skinFader_mc.setPropName("color");
this.skinFader_mc.setChangeHandler("onChangeColor");
this.skinFader_mc.executeCallback();
i = 1;
while (i < 5) {
swatch = this[("swatch" + i) + "_mc"];
tmpPos = (i - 1) * 33.3333333333333;
swatch.setColorTransform(this.skinFader_mc.getColorAt(tmpPos));
swatch.setChangeHandler("onColorSwatchClick");
swatch.position = tmpPos;
i++;
}
stop();
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "swatch1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "swatch2_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "swatch3_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "swatch4_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 281 MovieClip [FaderSymbol] "skinFader_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 11
this.currentFader = this.hairFader_mc;
this.hairFader_mc.setGradient(hairGradient);
this.hairFader_mc.setPropName("color");
this.hairFader_mc.setChangeHandler("onChangeColor");
this.hairFader_mc.executeCallback();
i = 1;
while (i < 5) {
swatch = this[("swatch" + i) + "_mc"];
tmpPos = (i - 1) * 33.3333333333333;
swatch.setColorTransform(this.hairFader_mc.getColorAt(tmpPos));
swatch.setChangeHandler("onColorSwatchClick");
swatch.position = tmpPos;
i++;
}
this.hairLong_btn.onRelease = function () {
this._parent.onTabClick(["style"], "hairLong");
_root.setNextBtnInside(4);
};
this.hairShort_btn.onRelease = function () {
this._parent.onTabClick(["style"], "hairShort");
_root.setNextBtnInside(5);
};
this.hatsShort_btn.onRelease = function () {
this._parent.onTabClick(["style"], "hats");
_root.setNextBtnInside(6);
};
Instance of Symbol 281 MovieClip [FaderSymbol] "hairFader_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 11
//component parameters
onClipEvent (initialize) {
}
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 21
i = 1;
while (i < 6) {
swatch = this[("hairSwatch" + i) + "_mc"];
swatch._alpha = 0;
swatch.setChangeHandler("onStyleSwatchClick");
swatch.setPropName("style");
swatch.setExecutable(true);
swatch.setStyleName("style" + i);
i++;
}
this.hairColor_btn.onRelease = function () {
this._parent.onTabClick(["color"], "hairColor");
_root.setNextBtnInside(3);
};
this.hairShort_btn.onRelease = function () {
this._parent.onTabClick(["style"], "hairShort");
_root.setNextBtnInside(5);
};
this.hatsShort_btn.onRelease = function () {
this._parent.onTabClick(["style"], "hats");
_root.setNextBtnInside(6);
};
stop();
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "hairSwatch1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 21
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "hairSwatch2_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 21
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "hairSwatch3_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 21
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "hairSwatch4_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 21
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "hairSwatch5_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 21
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 30
i = 1;
while (i < 6) {
swatch = this[("hairSwatch" + i) + "_mc"];
swatch._alpha = 0;
swatch.setChangeHandler("onStyleSwatchClick");
swatch.setPropName("style");
swatch.setExecutable(true);
swatch.setStyleName("style" + (i + 5));
i++;
}
this.hairColor_btn.onRelease = function () {
this._parent.onTabClick(["color"], "hairColor");
_root.setNextBtnInside(3);
};
this.hairLong_btn.onRelease = function () {
this._parent.onTabClick(["style"], "hairLong");
_root.setNextBtnInside(4);
};
this.hatsShort_btn.onRelease = function () {
this._parent.onTabClick(["style"], "hats");
_root.setNextBtnInside(6);
};
stop();
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 38
i = 1;
while (i < 5) {
swatch = this[("hatSwatch" + i) + "_mc"];
swatch._alpha = 0;
swatch.setChangeHandler("onStyleSwatchClick");
swatch.setPropName("style");
swatch.setExecutable(true);
swatch.setStyleName("style" + (i + 10));
i++;
}
this.hairColor_btn.onRelease = function () {
this._parent.onTabClick(["color"], "hairColor");
_root.setNextBtnInside(3);
};
this.hairLong_btn.onRelease = function () {
this._parent.onTabClick(["style"], "hairLong");
_root.setNextBtnInside(4);
};
this.hairShort_btn.onRelease = function () {
this._parent.onTabClick(["style"], "hairShort");
_root.setNextBtnInside(5);
};
stop();
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "hatSwatch1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 38
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "hatSwatch2_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 38
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "hatSwatch3_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 38
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "hatSwatch4_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 38
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 49
this.currentFader = this.eyeFader_mc;
this.eyeFader_mc.setGradient(eyeGradient);
this.eyeFader_mc.setPropName("color");
this.eyeFader_mc.setChangeHandler("onChangeColor");
this.eyeFader_mc.executeCallback();
i = 1;
while (i < 7) {
swatch = this[("eyeSwatch" + i) + "_mc"];
tmpPos = (i - 1) * 20;
swatch.setColorTransform(this.eyeFader_mc.getColorAt(tmpPos));
swatch.setChangeHandler("onColorSwatchClick");
swatch.position = tmpPos;
i++;
}
this.eyeShadow_btn.onRelease = function () {
this._parent.onTabClick(["shadow", "sparkles"], "eyeShadow");
_root.setNextBtnInside(8);
};
this.eyeMascara_btn.onRelease = function () {
this._parent.onTabClick(["lashes", "lashColor"], "eyeMascara");
_root.setNextBtnInside(9);
};
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "eyeSwatch1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 49
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "eyeSwatch3_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 49
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "eyeSwatch2_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 49
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "eyeSwatch5_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 49
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "eyeSwatch4_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 49
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "eyeSwatch6_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 49
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 281 MovieClip [FaderSymbol] "eyeFader_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 49
//component parameters
onClipEvent (initialize) {
}
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 59
i = 0;
while (i < 3) {
swatch = this[("sparklesSwatch" + i) + "_mc"];
swatch._alpha = 0;
swatch.setChangeHandler("onStyleSwatchClick");
swatch.setPropName("sparkles");
swatch.setExecutable(true);
swatch.setStyleName("sparkle" + i);
i++;
}
sparkles_btn.onPress = function () {
nosparkles_btn._visible = true;
sparklesSwatch0_mc._visible = true;
this._visible = false;
sparklesSwatch1_mc._visible = false;
sparklesSwatch1_mc.executeCallback();
};
nosparkles_btn.onPress = function () {
sparkles_btn._visible = true;
sparklesSwatch0_mc._visible = false;
this._visible = false;
sparklesSwatch1_mc._visible = true;
sparklesSwatch0_mc.executeCallback();
};
this.currentFader = this.shadowFader_mc;
this.shadowFader_mc.setGradient(shadowGradient);
this.shadowFader_mc.setPropName("shadow");
this.shadowFader_mc.setChangeHandler("onChangeColor");
this.shadowFader_mc.executeCallback();
i = 1;
while (i < 7) {
swatch = this[("shadowSwatch" + i) + "_mc"];
tmpPos = (i - 1) * 20;
swatch.setColorTransform(this.shadowFader_mc.getColorAt(tmpPos));
swatch.setChangeHandler("onColorSwatchClick");
swatch.position = tmpPos;
swatch._xscale = (swatch._yscale = 72);
i++;
}
this.eyeColor_btn.onRelease = function () {
this._parent.onTabClick(["color"], "eyeColor");
_root.setNextBtnInside(7);
};
this.eyeMascara_btn.onRelease = function () {
this._parent.onTabClick(["lashes", "lashColor"], "eyeMascara");
_root.setNextBtnInside(9);
};
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "shadowSwatch1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 59
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "shadowSwatch2_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 59
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "shadowSwatch3_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 59
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "shadowSwatch4_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 59
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "shadowSwatch5_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 59
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "shadowSwatch6_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 59
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "sparklesSwatch1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 59
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "sparklesSwatch0_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 59
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 281 MovieClip [FaderSymbol] "shadowFader_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 59
//component parameters
onClipEvent (initialize) {
}
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 69
this.currentFader = this.lashFader_mc;
this.lashFader_mc.setGradient(mascaraGradient);
this.lashFader_mc.setPropName("lashColor");
this.lashFader_mc.setChangeHandler("onChangeColor");
this.lashFader_mc.executeCallback();
i = 1;
while (i < 5) {
swatch = this[("lashSwatch" + i) + "_mc"];
swatch._alpha = 0;
swatch.setChangeHandler("onStyleSwatchClick");
swatch.setPropName("lashes");
swatch.setExecutable(false);
swatch.setStyleName("lash" + i);
i++;
}
this.eyeColor_btn.onRelease = function () {
this._parent.onTabClick(["color"], "eyeColor");
_root.setNextBtnInside(7);
};
this.eyeShadow_btn.onRelease = function () {
this._parent.onTabClick(["shadow", "sparkles"], "eyeShadow");
_root.setNextBtnInside(8);
};
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "lashSwatch1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 69
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "lashSwatch2_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 69
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "lashSwatch3_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 69
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "lashSwatch4_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 69
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 281 MovieClip [FaderSymbol] "lashFader_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 69
//component parameters
onClipEvent (initialize) {
}
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 79
i = 0;
while (i < 3) {
swatch = this[("glossSwatch" + i) + "_mc"];
swatch._alpha = 0;
swatch.setChangeHandler("onStyleSwatchClick");
swatch.setPropName("lipgloss");
swatch.setExecutable(true);
swatch.setStyleName("gloss" + i);
i++;
}
gloss_btn.onPress = function () {
nogloss_btn._visible = true;
glossSwatch0_mc._visible = true;
this._visible = false;
glossSwatch1_mc._visible = false;
glossSwatch1_mc.executeCallback();
};
nogloss_btn.onPress = function () {
gloss_btn._visible = true;
glossSwatch0_mc._visible = false;
this._visible = false;
glossSwatch1_mc._visible = true;
glossSwatch0_mc.executeCallback();
};
this.currentFader = this.lipFader_mc;
this.lipFader_mc.setGradient(lipsGradient);
this.lipFader_mc.setPropName("color");
this.lipFader_mc.setChangeHandler("onChangeColor");
this.lipFader_mc.executeCallback();
i = 1;
while (i < 7) {
swatch = this[("lipSwatch" + i) + "_mc"];
tmpPos = (i - 1) * 20;
swatch.setColorTransform(this.lipFader_mc.getColorAt(tmpPos));
swatch.setChangeHandler("onColorSwatchClick");
swatch.position = tmpPos;
i++;
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "lipSwatch1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 79
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "lipSwatch2_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 79
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "lipSwatch3_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 79
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "lipSwatch4_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 79
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "lipSwatch5_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 79
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 292 MovieClip [SwatchButtonSymbol] "lipSwatch6_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 79
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 281 MovieClip [FaderSymbol] "lipFader_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 79
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "glossSwatch1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 79
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "glossSwatch0_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 79
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 89
i = 0;
while (i < 7) {
swatch = this[("topsSwatch" + i) + "_mc"];
swatch._alpha = 0;
swatch.setChangeHandler("onStyleSwatchClick");
swatch.setPropName("style");
swatch.setExecutable(true);
swatch.setStyleName("tops" + i);
i++;
}
noTops_btn.onPress = function () {
this._parent.topsSwatch0_mc.executeCallback();
};
this.accFlowers_btn.onRelease = function () {
this._parent.onTabClick(["hairClips"], "flowers", PStamps);
_root.setNextBtnInside(12);
};
this.accSunglasses_btn.onRelease = function () {
this._parent.onTabClick(["style"], "sunglasses", PSunglasses);
_root.setNextBtnInside(13);
};
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "topsSwatch1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 89
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "topsSwatch2_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 89
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "topsSwatch3_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 89
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "topsSwatch4_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 89
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "tiaraSwatch0_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 89
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "topsSwatch5_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 89
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "topsSwatch6_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 89
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 99
i = 1;
while (i <= 8) {
f = this[("flower" + i) + "_mc"];
f.setItemSymbol("stamp_flower" + i);
f.setChangeHandler("onStampClick");
i++;
}
this.accTops_btn.onRelease = function () {
this._parent.onTabClick(["style"], "tops", PTops);
_root.setNextBtnInside(11);
};
this.accSunglasses_btn.onRelease = function () {
this._parent.onTabClick(["style"], "sunglasses", PSunglasses);
_root.setNextBtnInside(13);
};
Instance of Symbol 903 MovieClip [FStamperSymbol] "flower1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 99
//component parameters
onClipEvent (initialize) {
itemSymbol = "stamp_flower1";
changeHandler = "defaultValue";
}
Instance of Symbol 903 MovieClip [FStamperSymbol] "flower3_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 99
//component parameters
onClipEvent (initialize) {
itemSymbol = "stamp_flower3";
changeHandler = "defaultValue";
}
Instance of Symbol 903 MovieClip [FStamperSymbol] "flower5_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 99
//component parameters
onClipEvent (initialize) {
itemSymbol = "stamp_flower5";
changeHandler = "defaultValue";
}
Instance of Symbol 903 MovieClip [FStamperSymbol] "flower7_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 99
//component parameters
onClipEvent (initialize) {
itemSymbol = "stamp_flower7";
changeHandler = "defaultValue";
}
Instance of Symbol 903 MovieClip [FStamperSymbol] "flower2_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 99
//component parameters
onClipEvent (initialize) {
itemSymbol = "stamp_flower2";
changeHandler = "defaultValue";
}
Instance of Symbol 903 MovieClip [FStamperSymbol] "flower4_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 99
//component parameters
onClipEvent (initialize) {
itemSymbol = "stamp_flower4";
changeHandler = "defaultValue";
}
Instance of Symbol 903 MovieClip [FStamperSymbol] "flower6_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 99
//component parameters
onClipEvent (initialize) {
itemSymbol = "stamp_flower6";
changeHandler = "defaultValue";
}
Instance of Symbol 903 MovieClip [FStamperSymbol] "flower8_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 99
//component parameters
onClipEvent (initialize) {
itemSymbol = "stamp_flower8";
changeHandler = "defaultValue";
}
Symbol 917 MovieClip [VisualPaletteSymbol] Frame 109
i = 0;
while (i < 5) {
swatch = this[("sunglassesSwatch" + i) + "_mc"];
swatch._alpha = 0;
swatch.setChangeHandler("onStyleSwatchClick");
swatch.setPropName("style");
swatch.setExecutable(true);
swatch.setStyleName("sunglasses" + i);
i++;
}
nosunglasses_btn.onPress = function () {
this._parent.sunglassesSwatch0_mc.executeCallback();
};
this.accFlowers_btn.onRelease = function () {
this._parent.onTabClick(["hairClips"], "flowers", PStamps);
_root.setNextBtnInside(12);
};
this.accTops_btn.onRelease = function () {
this._parent.onTabClick(["style"], "tops", PTops);
_root.setNextBtnInside(11);
};
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "sunglassesSwatch2_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 109
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "sunglassesSwatch3_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 109
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "sunglassesSwatch4_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 109
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "sunglassesSwatch1_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 109
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Instance of Symbol 742 MovieClip [StyleButtonSymbol] "sunglassesSwatch0_mc" in Symbol 917 MovieClip [VisualPaletteSymbol] Frame 109
//component parameters
onClipEvent (initialize) {
changeHandler = "defaultValue";
}
Symbol 1004 MovieClip [DBoxesSymbol] Frame 1
#initclip 24
_global.DBoxes = function () {
this.init();
};
DBoxes.prototype = new MovieClip();
Object.registerClass("DBoxesSymbol", DBoxes);
DBoxes.prototype.init = function () {
};
DBoxes.prototype.open = function (label) {
this.gotoAndStop(label);
};
DBoxes.prototype.close = function () {
this.gotoAndStop("off");
};
#endinitclip
stop();
Symbol 1004 MovieClip [DBoxesSymbol] Frame 5
play_btn.onRelease = function () {
this._parent._parent.navRelease(1);
_root.NextLabelNumber = 2;
};
Symbol 1004 MovieClip [DBoxesSymbol] Frame 12
close_btn.onRelease = function () {
this._parent._parent.hideDialogue();
};
Symbol 1004 MovieClip [DBoxesSymbol] Frame 18
function saveIt() {
var _local1 = this;
_local1._parent.saveMakeover(_local1.saveName_tb.text);
_local1._parent.navRelease(1);
}
Symbol 1004 MovieClip [DBoxesSymbol] Frame 24
function setSaveItem(obj) {
var _local1 = this;
_local1.selectedMakeover = obj.getSelectedItem().label;
trace((_local1 + " -> setSaveItem -> selectedMakeover = ") + _local1.selectedMakeover);
}
function loadIt() {
var _local1 = this;
_local1._parent.loadMakeover(_local1.selectedMakeover);
_local1._parent.navRelease(1);
}
this.saveNames = this._parent.getSaveNames();
this.saves_lb.setDataProvider(this.saveNames);
Symbol 1005 MovieClip [StampControlSymbol] Frame 1
#initclip 25
_global.StampControl = function () {
this.init();
};
StampControl.prototype = new MovieClip();
Object.registerClass("StampControlSymbol", StampControl);
StampControl.prototype.init = function () {
var _local1 = this;
_local1.commandObjects = [];
_local1.commandIndex = 0;
_local1.stampData = [];
_local1.initDepth = (_local1.stampDepth = 1);
_local1.currItem = null;
if (_local1.validHitAreas == undefined) {
_local1.validHitAreas = [_local1._parent];
}
if (_local1.invalidHitAreas == undefined) {
_local1.invalidHitAreas = null;
}
if (_local1.controller == undefined) {
_local1.controller = _local1._parent;
}
};
StampControl.prototype.setController = function (controlObj) {
this.controller = controlObj;
};
StampControl.prototype.getController = function () {
return(this.controller);
};
StampControl.prototype.getStamps = function () {
var _local1 = this;
var _local2 = [];
i = 0;
while (i < _local1.stampData.length) {
_local2[i] = _local1.stampData[i];
i++;
}
return(_local2);
};
StampControl.prototype.setStamps = function (valueArr) {
var _local1 = valueArr;
var _local2 = this;
i = 0;
while (i <= _local1.length) {
_local2.stampData[_local1[i]._depth] = _local1[i];
i++;
}
_local2.repaint();
_local2.save();
};
StampControl.prototype.getValues = function () {
var _local1 = this.getStamps();
return(_local1);
};
StampControl.prototype.setValues = function (valueArr) {
this.setStamps(valueArr);
};
StampControl.prototype.initValues = function (valueArr) {
this.setStamps(valueArr);
};
StampControl.prototype.setValidHitAreas = function (mcArr) {
this.validHitAreas = mcArr;
};
StampControl.prototype.setInvalidHitAreas = function (mcArr) {
this.invalidHitAreas = mcArr;
};
StampControl.prototype.onActivate = function () {
var _local1 = this;
activeName = _local1.controller.activePalette.getProperty("name");
if (activeName == "stamps") {
q = _local1.initDepth;
while (q <= _local1.stampDepth) {
tmpStamp = _local1[("stamp" + q) + "_mc"];
if (tmpStamp != undefined) {
tmpStamp.setChangeHandler("itemClick", _local1);
}
q++;
}
}
};
StampControl.prototype.onDeactivate = function () {
var _local1 = this;
q = _local1.initDepth;
while (q <= _local1.stampDepth) {
tmpStamp = _local1[("stamp" + q) + "_mc"];
if (tmpStamp != undefined) {
tmpStamp.setChangeHandler(null);
}
q++;
}
};
StampControl.prototype.onExecute = function () {
var _local1 = this;
switch (_local1.controller.activePalette.getProperty("name")) {
case "stamps" :
stampSymbol = _local1.controller.currentStamper.getStampSymbol();
if ((stampSymbol != null) && (_local1.testConditions())) {
_local1.stampDepth++;
stampObj = {x:_local1._xmouse, y:_local1._ymouse, symbol:stampSymbol, _depth:_local1.stampDepth};
_local1.addStamp(stampObj);
}
return;
case "hair" :
if (_local1.controller.activePalette.getActiveProperties().search("style") == -1) {
break;
}
_local1.clearStamps();
}
};
StampControl.prototype.onUnexecute = function () {
this.unSave();
};
StampControl.prototype.onRevert = function () {
var _local1 = this;
i = _local1.initDepth;
while (i <= _local1.stampDepth) {
tmpStamp = _local1[("stamp" + i) + "_mc"];
if (tmpStamp != undefined) {
tmpStamp.removeMovieClip();
}
i++;
}
_local1.stampData = [];
_local1.commandObjects = [];
_local1.commandIndex = 0;
_local1.stampDepth = _local1.initDepth;
};
StampControl.prototype.addStamp = function (stampObj) {
var _local1 = this;
_local1.stampData[stampObj._depth] = stampObj;
_local1.repaint();
_local1.save();
};
StampControl.prototype.removeStamp = function (stampObj) {
delete this.stampData[stampObj._depth];
stampObj.removeMovieClip();
this.save();
};
StampControl.prototype.clearStamps = function () {
var _local1 = this;
i = _local1.initDepth;
while (i <= _local1.stampDepth) {
_local1[("stamp" + i) + "_mc"].removeMovieClip();
i++;
}
_local1.stampData = [];
_local1.repaint();
_local1.save();
};
StampControl.prototype.itemClick = function (stampMC) {
var _local1 = this;
var _local2 = stampMC;
if (_local1.currItem == null) {
_local1.currItem = _local2;
_local1.currItem.startDrag(true);
} else {
if (_local1.testConditions()) {
_local1.controller.execute();
stampObj = {x:_local2._x, y:_local2._y, symbol:_local2.getItemSymbol(), _depth:_local2._depth};
_local1.addStamp(stampObj);
} else {
_local1.removeStamp(_local1.currItem);
}
_local1.currItem.stopDrag();
_local1.currItem = null;
}
};
StampControl.prototype.save = function () {
var _local1 = this;
tmpArray = new Array();
i = _local1.initDepth;
while (i <= _local1.stampDepth) {
tmpArray[i] = _local1.stampData[i];
i++;
}
_local1.commandIndex++;
_local1.commandObjects[_local1.commandIndex] = tmpArray;
};
StampControl.prototype.unSave = function () {
var _local1 = this;
if (_local1.commandIndex > 0) {
_local1.stampData = [];
_local1.commandObjects.splice(_local1.commandIndex);
_local1.commandIndex--;
last = _local1.commandObjects[_local1.commandIndex];
i = _local1.initDepth;
while (i < last.length) {
if (last[i] != undefined) {
_local1.stampData[i] = last[i];
}
i++;
}
_local1.repaint();
}
};
StampControl.prototype.repaint = function () {
var _local1 = this;
i = _local1.initDepth;
while (i <= _local1.stampDepth) {
_local1[("stamp" + i) + "_mc"].removeMovieClip();
i++;
}
i = _local1.initDepth;
while (i <= _local1.stampData.length) {
if (_local1.stampData[i] != undefined) {
sD = _local1.stampData[i];
newStamp = _local1.attachMovie("FStamperSymbol", ("stamp" + i) + "_mc", i);
newStamp._x = sD.x;
newStamp._y = sD.y;
newStamp._depth = sD._depth;
newStamp.setItemSymbol(sD.symbol);
newStamp.setChangeHandler("itemClick", _local1);
}
i++;
}
};
StampControl.prototype.testConditions = function () {
var _local1 = this;
var _local2 = _root;
var _local3 = false;
var overInvalid = false;
q = 0;
while (q < _local1.validHitAreas.length) {
if (_local1.validHitAreas[q].hitTest(_local2._xmouse, _local2._ymouse, true)) {
_local3 = true;
break;
}
q++;
}
q = 0;
while (q < _local1.invalidHitAreas.length) {
if (_local1.invalidHitAreas[q].hitTest(_local2._xmouse, _local2._ymouse, true)) {
overInvalid = true;
break;
}
q++;
}
return(_local3 && (!overInvalid));
};
#endinitclip
Symbol 1113 MovieClip [NameBuilderSymbol] Frame 1
#initclip 26
_global.NameBuilder = function () {
var _local1 = this;
_local1.deadPreview_mc._visible = false;
_local1.kerning = -5;
_local1.symbols = [];
_local1.clips = [];
if (_local1.align == undefined) {
_local1.align = "left";
}
_local1.upper = new Array();
_local1.lower = new Array();
i = 65;
while (i <= 90) {
_local1.upper.push(String.fromCharCode(i));
i++;
}
i = 97;
while (i <= 122) {
_local1.lower.push(String.fromCharCode(i));
i++;
}
_local1.upperSymbols = new Object();
_local1.lowerSymbols = new Object();
i = 0;
while (i < _local1.upper.length) {
_local1.upperSymbols[_local1.upper[i]] = "upper" + _local1.upper[i];
_local1.lowerSymbols[_local1.lower[i]] = "lower" + _local1.lower[i];
i++;
}
};
NameBuilder.prototype = new MovieClip();
Object.registerClass("NameBuilderSymbol", NameBuilder);
NameBuilder.prototype.setName = function (name) {
var _local2 = this;
var _local3 = name;
trace("NameBuilder -> setName -> name: " + _local3);
_local3 = _local3.trim();
_local2.symbols = [];
_local2.clips = [];
var _local1 = 0;
while (_local1 < _local3.length) {
if (_local2.upper.search(_local3.charAt(_local1)) != -1) {
_local2.symbols[_local1] = _local2.upperSymbols[_local3.charAt(_local1)];
} else if (_local2.lower.search(_local3.charAt(_local1)) != -1) {
_local2.symbols[_local1] = _local2.lowerSymbols[_local3.charAt(_local1)];
} else {
_local2.symbols[_local1] = "defaultCharacter";
}
var currSym = _local2.attachMovie(_local2.symbols[_local1], "character" + _local1, _local1);
_local2.clips.push(currSym);
_local1++;
}
_local2.symbols.push("apostrophe");
var apost = _local2.attachMovie("apostrophe", "character" + _local1, _local1);
_local2.clips.push(apost);
_local1++;
var lastChar = _local3.charAt(_local3.length - 1);
if ((lastChar != "s") && (lastChar != "S")) {
_local2.symbols.push("lowerS");
var lastS = _local2.attachMovie("lowerS", "character" + _local1, _local1);
_local2.clips.push(lastS);
}
_local2.paint();
};
NameBuilder.prototype.paint = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.clips.length) {
if (_local1 == 0) {
_local2.clips[_local1]._x = 0;
} else {
_local2.clips[_local1]._x = (_local2.clips[_local1 - 1]._x + _local2.clips[_local1 - 1]._width) + _local2.kerning;
}
_local1++;
}
var lastClip = _local2.clips[_local2.clips.length - 1];
var _local3 = lastClip._x + lastClip._width;
switch (_local2.align) {
case "middle" :
_local3 = _local3 / 2;
break;
case "right" :
_local3 = _local3 / 1;
break;
default :
_local3 = 0;
}
_local1 = 0;
while (_local1 < _local2.clips.length) {
_local2.clips[_local1]._x = _local2.clips[_local1]._x - _local3;
_local1++;
}
};
NameBuilder.prototype.setAlign = function (alignment) {
this.align = alignment;
this.paint();
};
#endinitclip
Symbol 1132 MovieClip Frame 1
stop();
Symbol 1132 MovieClip Frame 2
stop();
Symbol 1132 MovieClip Frame 3
stop();
Symbol 1132 MovieClip Frame 4
stop();
Symbol 1163 MovieClip Frame 92
stop();
Symbol 1179 MovieClip Frame 1
function onItemSelect(obj) {
this._parent.setMagTitle(obj.ID, obj.getSelectedIndex());
}
function validate() {
var _local2 = this;
var _local1 = true;
if (_root.myname.isNaughty()) {
_local1 = false;
gotoAndStop ("naughtyword");
} else if ((_root.myname.isEmpty() or (uname.text == "")) or (uname.text == null)) {
_local1 = false;
gotoAndStop ("empty");
} else {
_local2.uname.backgroundColor = globalStyleFormat.formDefaultColor;
}
if (_local1) {
CENTCOM.setUsername(_local2.uname.text);
_local2._parent.viewPayoff();
}
}
menu1Items = ["Top 10 Beauty Secrets", "Fresh & Flirty Fashion Picks", "Hottest Looks This Season!", "Special Edition: Friends & Fashion!", "Amazing Outfits for EVERY Occasion", "Hip Looks That RULE at School!", "Tips for Super-Long Friendships"];
menu2Items = ["How to Chat With the Cutest Crushes", "Take Our Style Quiz!", "What's Your Dream Date?", "Be Sassy & Stylin' ALL the Time!", "Don't Follow Trends, Set Them!", "What Colors Look Fab on You?", "20 Ways to Totally ROCK!"];
i = 1;
while (i < 3) {
box = this[("box" + i) + "_cb"];
box.setDataProvider(this[("menu" + i) + "Items"]);
box.setChangeHandler("onItemSelect", this);
box.ID = i - 1;
i++;
}
this.next_btn.onRelease = function () {
validate();
};
stop();
Instance of Symbol 244 MovieClip [FComboBoxSymbol] "box1_cb" in Symbol 1179 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
editable = false;
rowCount = 8;
changeHandler = "";
}
Instance of Symbol 244 MovieClip [FComboBoxSymbol] "box2_cb" in Symbol 1179 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
editable = false;
rowCount = 8;
changeHandler = "";
}
Symbol 1179 MovieClip Frame 7
stop();
try_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 1179 MovieClip Frame 18
stop();
try_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 1213 MovieClip Frame 1
function setNames() {
var _local1 = this;
_local1.name_mc.setName(_local1.username);
_local1.nameShadow_mc.setName(_local1.username);
}
setNames();
Instance of Symbol 1113 MovieClip [NameBuilderSymbol] "nameShadow_mc" in Symbol 1213 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
align = "right";
}
Instance of Symbol 1113 MovieClip [NameBuilderSymbol] "name_mc" in Symbol 1213 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
align = "right";
}
Symbol 1213 MovieClip Frame 2
setNames();
Symbol 1213 MovieClip Frame 3
setNames();
Symbol 1213 MovieClip Frame 4
setNames();
Symbol 1213 MovieClip Frame 5
setNames();
Symbol 1213 MovieClip Frame 6
setNames();
Symbol 1213 MovieClip Frame 7
setNames();
Instance of Symbol 1239 MovieClip in Symbol 1250 MovieClip Frame 1
onClipEvent (load) {
num = Math.round(Math.random() * 3) + 1;
gotoAndStop(num);
}
Symbol 1263 MovieClip Frame 1
stop();
Symbol 1263 MovieClip Frame 5
stop();
Symbol 1265 MovieClip Frame 1
stop();
Symbol 1265 MovieClip Frame 5
stop();
Symbol 1283 MovieClip Frame 1
playAgain_btn.onRelease = function () {
clearInterval(_root.catalogscreen_ID);
_root.catalogshow = false;
this._parent._parent.reset();
};
printCover_btn.onRollOver = (printCover_btn.onDragOver = function () {
this._parent.icon1.gotoAndPlay("in");
this._parent._parent.resizeCover("front");
});
printCover_btn.onRollOut = (printCover_btn.onDragOut = function () {
this._parent.icon1.gotoAndPlay("out");
});
printCover_btn.onRelease = function () {
this._parent._parent.printCover();
};
printMag_btn.onRollOver = (printMag_btn.onDragOver = function () {
this._parent.icon2.gotoAndPlay("in");
this._parent._parent.resizeCover("all");
});
printMag_btn.onRollOut = (printMag_btn.onDragOut = function () {
this._parent.icon2.gotoAndPlay("out");
});
printMag_btn.onRelease = function () {
this._parent._parent.printMag();
};
email_btn.onRelease = function () {
this._parent._parent.prepEmail();
};
stop();
Symbol 1283 MovieClip Frame 11
clearInterval(_root.catalogscreen_ID);
this.playAgain_btn.onRelease = function () {
clearInterval(_root.catalogscreen_ID);
_root.catalogshow = false;
_global.isFromEmail = false;
this._parent._parent.reset();
};
Symbol 1297 MovieClip Frame 21
stop();
Symbol 1298 MovieClip Frame 1
stop();
Symbol 1298 MovieClip Frame 6
stop();
Symbol 1298 MovieClip Frame 12
stop();
Symbol 1298 MovieClip Frame 18
stop();
Instance of Symbol 1310 MovieClip "in_stores_now" in Symbol 1311 MovieClip Frame 48
/* no clip actions */
Symbol 1311 MovieClip Frame 51
stop();
in_stores_now.onRelease = function () {
getURL ("/activities/btv/as_seen_on_tv/");
};
Symbol 1316 MovieClip Frame 1
stop();
Symbol 1316 MovieClip Frame 6
stop();
Symbol 1316 MovieClip Frame 12
stop();
Symbol 1316 MovieClip Frame 18
stop();
Symbol 1319 MovieClip Frame 1
stop();
Symbol 1319 MovieClip Frame 6
stop();
Symbol 1319 MovieClip Frame 12
stop();
Symbol 1319 MovieClip Frame 18
stop();
Instance of Symbol 1298 MovieClip "btn_bag" in Symbol 1320 MovieClip Frame 1
on (release) {
getURL ("/catalog/catalogbrd.aspx?cat_id=200002", "_new");
}
Symbol 1320 MovieClip Frame 34
stop();
btn_go.onRelease = function () {
getURL ("/activities/btv/as_seen_on_tv/");
};
btn_close.onRelease = function () {
_parent.gotoAndStop("payoff");
};
btn_bag.onRelease = function () {
getURL ("/activities/btv/as_seen_on_tv/");
};
Instance of Symbol 1316 MovieClip "btn_go" in Symbol 1320 MovieClip Frame 34
on (release) {
getURL ("/catalog/catalogbrd.aspx?cat_id=200002", "_new");
}
Instance of Symbol 1319 MovieClip "btn_close" in Symbol 1320 MovieClip Frame 34
on (release) {
_root.gotoAndStop("payoff");
}
Symbol 1330 MovieClip Frame 1
function validate() {
var _local3 = this;
var _local1 = true;
var _local2 = [_local3.uName, _local3.fName, _local3.fEmail];
i = 0;
while (i < _local2.length) {
tmpText = String(_local2[i].text);
if (tmpText.isEmpty()) {
_local1 = false;
trace("missinginfo??");
gotoAndStop ("naughtyword");
}
if (i < 2) {
if (tmpText.isNaughty()) {
_local1 = false;
gotoAndStop ("naughtyword");
}
} else if (!tmpText.isEmail()) {
_local1 = false;
gotoAndStop ("invalidemail");
}
i++;
}
if (_local1) {
_local3._parent.sendEmail(_local3.uName.text, _local3.fName.text, _local3.fEmail.text);
} else {
_local3._parent.gotoAndStop("error");
}
}
this.uName.borderColor = (this.fName.borderColor = (this.fEmail.borderColor = globalStyleFormat.formBordercolor));
this.uName.text = CENTCOM.getUsername();
send_btn.onRelease = function () {
this._parent.validate();
};
stop();
Symbol 1330 MovieClip Frame 7
stop();
try_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 1330 MovieClip Frame 17
stop();
try_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 1330 MovieClip Frame 27
stop();
try_btn.onRelease = function () {
gotoAndStop ("main");
};
Symbol 1333 MovieClip Frame 1
send_btn.onRelease = function () {
this._parent._parent.gotoAndStop("email");
};
playAgain_btn.onRelease = function () {
this._parent._parent.reset();
};
Symbol 1335 MovieClip Frame 1
try_btn.onRelease = function () {
this._parent._parent.gotoAndStop("email");
};