Frame 1
language = "en";
Frame 3
if (getBytesLoaded() < getBytesTotal()) {
percentLoaded = int((getBytesLoaded() / getBytesTotal()) * 100);
mcLoadingBar.gotoAndStop(percentLoaded);
gotoAndPlay(_currentframe - 1);
} else {
mcLoadingBar.gotoAndStop(100);
gotoAndStop ("LoadData");
}
Frame 10
var timeOut = (getTimer() + 5000);
var url = ((("http://www.miniclip.com/php/" + language) + "/gamesroom_main.php?deCache=") + random(1000000));
this.loadVariables(url);
play();
Frame 12
if (loadDone != undefined) {
gotoAndStop ("Tracker");
} else if (getTimer() > timeOut) {
gotoAndStop ("LoadError");
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 23
if ((_root.preview != "true") && (_root.preview != true)) {
var d = new Date();
var deCache = d.getTime();
var trackerUrl = ("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/gamesroom_plays/142334@x01?deCache=" + deCache);
var lv = new LoadVars();
lv.load(trackerUrl);
lv.onLoad = function () {
trace("loaded");
};
}
gotoAndStop ("Main");
Frame 35
btnTryAgain.onRelease = function () {
gotoAndStop ("LoadData");
};
stop();
Frame 59
function setLink(btn, txt, caption, url) {
btn.onRollOver = function () {
txt.htmlText = caption;
};
btn.onRollOut = function () {
txt.htmlText = ("<u>" + caption) + "</u>";
};
btn.onDragOut = function () {
txt.htmlText = ("<u>" + caption) + "</u>";
};
btn.onRelease = function () {
var _local1 = int(url);
if (_local1 > 0) {
activeSection = _local1;
gotoAndStop ("LoadingSection");
} else {
getURL (url, "_blank");
}
};
txt.htmlText = ("<u>" + caption) + "</u>";
}
setLink(btnUseForFree, txtUseForFree, "Use for FREE on your site or blog - click here!", "http://www.miniclip.com/games/en/webmaster-games.php");
setLink(btnLatestGame, txtPlayNow, "<b>Play now!</b>", urlLatestGame);
txtLatestGameDescription.text = descLatestGame;
mcLatestGameIcon.loadMovie(iconLatestGame);
var i = 1;
while (i <= 10) {
setLink(this["btnTopTenGames" + i], this["txtTopTenGames" + i], this["titleTopTenGames" + i], this["urlTopTenGames" + i]);
i++;
}
var i = 1;
while (i <= 6) {
var z = 0;
while (z < totalSections) {
if (this["fullSectionListLabel" + z] == this["titleGameCat" + i]) {
var id = this["fullSectionID" + z];
}
z++;
}
setLink(this["btnGameCat" + i], this["txtGameCat" + i], ("<b>" + this["titleGameCat" + i]) + "</b>", id);
this["mcGameCat" + i].loadMovie(this["iconGameMain" + i]);
i++;
}
btnGame1.onRelease = function () {
getURL (urlGame1, "_blank");
};
btnGame2.onRelease = function () {
getURL (urlGame2, "_blank");
};
btnGame3.onRelease = function () {
getURL (urlGame3, "_blank");
};
btnGame4.onRelease = function () {
getURL (urlGame4, "_blank");
};
btnGame5.onRelease = function () {
getURL (urlGame5, "_blank");
};
btnGame6.onRelease = function () {
getURL (urlGame6, "_blank");
};
drpFullSectionList.setDataProvider();
drpFullGamesList.setDataProvider();
play();
Instance of Symbol 91 MovieClip [GWComboBox] "drpFullGamesList" in Frame 59
//component parameters
onClipEvent (construct) {
labels = [];
labels[0] = "All games...";
data = [];
data[0] = "";
idx = 0;
font = "Tahoma";
fontsize = 11;
rowHeight = 16;
rowCount = 12;
useEdgeScroll = true;
listPos = "bottom";
listborder = 4210752 /* 0x404040 */;
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
fontcolor = 0;
fontcolor_on = 16777215 /* 0xFFFFFF */;
fontcolor_off = 0;
itemcolor_on = 664682 /* 0x0A246A */;
itemcolor_off = 16777215 /* 0xFFFFFF */;
sb_face = 13947080 /* 0xD4D0C8 */;
sb_highlight = 16777215 /* 0xFFFFFF */;
sb_highlight3D = 13947080 /* 0xD4D0C8 */;
sb_shadow = 8421504 /* 0x808080 */;
sb_darkshadow = 4210752 /* 0x404040 */;
sb_face_down = 13947080 /* 0xD4D0C8 */;
sb_highlight_down = 13947080 /* 0xD4D0C8 */;
sb_highlight3D_down = 8421504 /* 0x808080 */;
sb_shadow_down = 13947080 /* 0xD4D0C8 */;
sb_darkshadow_down = 8421504 /* 0x808080 */;
sb_face_off = 13947080 /* 0xD4D0C8 */;
sb_highlight_off = 16777215 /* 0xFFFFFF */;
sb_highlight3D_off = 13947080 /* 0xD4D0C8 */;
sb_shadow_off = 8421504 /* 0x808080 */;
sb_darkshadow_off = 4210752 /* 0x404040 */;
sb_arrow = 0;
sb_arrow_down = 0;
sb_arrow_off = 8421504 /* 0x808080 */;
sb_track = 15527148 /* 0xECECEC */;
useEmbedFonts = false;
pad = 1;
listpad = 1;
cbDepth = 17002;
spawnAtRoot = false;
}
Instance of Symbol 91 MovieClip [GWComboBox] "drpFullSectionList" in Frame 59
//component parameters
onClipEvent (construct) {
labels = [];
labels[0] = "All sections...";
data = [];
data[0] = "";
idx = 0;
font = "Tahoma";
fontsize = 11;
rowHeight = 16;
rowCount = 12;
useEdgeScroll = true;
listPos = "bottom";
listborder = 4210752 /* 0x404040 */;
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
fontcolor = 0;
fontcolor_on = 16777215 /* 0xFFFFFF */;
fontcolor_off = 0;
itemcolor_on = 664682 /* 0x0A246A */;
itemcolor_off = 16777215 /* 0xFFFFFF */;
sb_face = 13947080 /* 0xD4D0C8 */;
sb_highlight = 16777215 /* 0xFFFFFF */;
sb_highlight3D = 13947080 /* 0xD4D0C8 */;
sb_shadow = 8421504 /* 0x808080 */;
sb_darkshadow = 4210752 /* 0x404040 */;
sb_face_down = 13947080 /* 0xD4D0C8 */;
sb_highlight_down = 13947080 /* 0xD4D0C8 */;
sb_highlight3D_down = 8421504 /* 0x808080 */;
sb_shadow_down = 13947080 /* 0xD4D0C8 */;
sb_darkshadow_down = 8421504 /* 0x808080 */;
sb_face_off = 13947080 /* 0xD4D0C8 */;
sb_highlight_off = 16777215 /* 0xFFFFFF */;
sb_highlight3D_off = 13947080 /* 0xD4D0C8 */;
sb_shadow_off = 8421504 /* 0x808080 */;
sb_darkshadow_off = 4210752 /* 0x404040 */;
sb_arrow = 0;
sb_arrow_down = 0;
sb_arrow_off = 8421504 /* 0x808080 */;
sb_track = 15527148 /* 0xECECEC */;
useEmbedFonts = false;
pad = 1;
listpad = 1;
cbDepth = 17001;
spawnAtRoot = false;
}
Frame 73
arrFullSectionList = new Array();
var i = 0;
while (i < totalSections) {
var objFullSectionList = new Object();
objFullSectionList.label = this["fullSectionListLabel" + i];
objFullSectionList.data = this["fullSectionListURL" + i];
objFullSectionList.id = this["fullSectionID" + i];
objFullSectionList.icon = "mcArrowBlueRight";
arrFullSectionList.push(objFullSectionList);
i++;
}
drpFullSectionList.setDataProvider(arrFullSectionList);
drpFullSectionList.onSelect = function (index) {
activeSection = this.getSelectedItem().id;
gotoAndStop ("LoadingSection");
};
play();
Frame 77
arrFullGamesList = new Array();
var i = 0;
while (i < totalGamesMain) {
var objFullGamesList = new Object();
objFullGamesList.label = this["fullGamesListLabel" + i];
objFullGamesList.data = this["fullGamesListURL" + i];
objFullGamesList.icon = "mcArrowOrangeRight";
arrFullGamesList.push(objFullGamesList);
i++;
}
drpFullGamesList.setDataProvider(arrFullGamesList);
drpFullGamesList.onSelect = function (index) {
getURL (this.getValue(), "_blank");
};
stop();
Frame 83
var timeOut = (getTimer() + 5000);
var url = ((((("http://www.miniclip.com/php/" + language) + "/gamesroom_section.php?id=") + activeSection) + "&deCache=") + random(1000000));
this.loadVariables(url);
loadDone = false;
play();
Frame 85
if ((loadDone != undefined) && (loadDone != false)) {
gotoAndStop ("Section");
} else if (getTimer() > timeOut) {
gotoAndStop ("LoadError");
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 107
if (mainMenu == undefined) {
mainMenu = "Main Menu";
}
btnMainMenu.onRollOver = function () {
txtMainMenu.htmlText = (("<b>" + mainMenu) + "</b> / ") + sectionName;
};
btnMainMenu.onRollOut = function () {
txtMainMenu.htmlText = (("<b><u>" + mainMenu) + "</u></b> / ") + sectionName;
};
btnMainMenu.onDragOut = function () {
txtMainMenu.htmlText = (("<b><u>" + mainMenu) + "</u></b> / ") + sectionName;
};
txtMainMenu.htmlText = (("<b><u>" + mainMenu) + "</u></b> / ") + sectionName;
txtGame1.text = descGame1;
mcGame1.loadMovie(iconGame1);
setLink(btnGame1, txtPlayNow1, "<b>Play now!</b>", urlGame1);
txtGame2.text = descGame2;
mcGame2.loadMovie(iconGame2);
setLink(btnGame2, txtPlayNow2, "<b>Play now!</b>", urlGame2);
arrSectionGamesList = new Array();
trace(totalSectionGames);
var i = 6;
while (i <= totalGames) {
var objSectionGamesList = new Object();
objSectionGamesList.label = this["sectionGameLabel" + i];
objSectionGamesList.data = this["sectionGameURL" + i];
objSectionGamesList.icon = "mcArrowOrangeRight";
arrSectionGamesList.push(objSectionGamesList);
i++;
}
lstGames.setDataProvider(arrSectionGamesList);
lstGames.onSelect = function (index) {
url = this.getValue();
getURL (url, "_blank");
};
var i = 3;
while (i <= 5) {
this["mcGame" + i].loadMovie(this["iconGame" + i]);
i++;
}
this.btnGame3.onRelease = function () {
getURL (urlGame3, "_blank");
};
this.btnGame4.onRelease = function () {
getURL (urlGame4, "_blank");
};
this.btnGame5.onRelease = function () {
getURL (urlGame5, "_blank");
};
btnMainMenu.onRelease = function () {
gotoAndStop ("LoadData");
};
Instance of Symbol 89 MovieClip [GWListBox] "lstGames" in Frame 107
//component parameters
onClipEvent (construct) {
selectMultiple = false;
font = "Tahoma";
fontsize = 11;
rowHeight = 16;
checkFocus = false;
fontcolor_on = 16777215 /* 0xFFFFFF */;
fontcolor_off = 0;
fontcolor_out = 0;
itemcolor_on = 664682 /* 0x0A246A */;
itemcolor_off = 16777215 /* 0xFFFFFF */;
itemcolor_out = 14078926 /* 0xD6D3CE */;
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
sb_face = 13947080 /* 0xD4D0C8 */;
sb_highlight = 16777215 /* 0xFFFFFF */;
sb_highlight3D = 13947080 /* 0xD4D0C8 */;
sb_shadow = 8421504 /* 0x808080 */;
sb_darkshadow = 4210752 /* 0x404040 */;
sb_face_down = 13947080 /* 0xD4D0C8 */;
sb_highlight_down = 13947080 /* 0xD4D0C8 */;
sb_highlight3D_down = 8421504 /* 0x808080 */;
sb_shadow_down = 13947080 /* 0xD4D0C8 */;
sb_darkshadow_down = 8421504 /* 0x808080 */;
sb_face_off = 13947080 /* 0xD4D0C8 */;
sb_highlight_off = 16777215 /* 0xFFFFFF */;
sb_highlight3D_off = 13947080 /* 0xD4D0C8 */;
sb_shadow_off = 8421504 /* 0x808080 */;
sb_darkshadow_down = 4210752 /* 0x404040 */;
sb_arrow = 0;
sb_arrow_down = 0;
sb_arrow_off = 8421504 /* 0x808080 */;
sb_track = 15527148 /* 0xECECEC */;
pad = 2;
useEmbedFonts = false;
}
Symbol 18 MovieClip Frame 1
stop();
Symbol 62 MovieClip [GWBaseClass] Frame 1
#initclip 1
_global.GWBaseClass = function () {
this.init();
};
GWBaseClass.prototype = new MovieClip();
GWBaseClass.prototype.init = function (c) {
this.classHolder._visible = 0;
this._targetInstanceName = ((this._targetInstanceName == undefined) ? (this._name) : (this._targetInstanceName));
var _local2 = this._parent[this._targetInstanceName];
if (this._targetInstanceName.length) {
for (i in this) {
_local2[i] = this[i];
}
this.inherit(c, _local2);
_local2.init();
this.snapToPixels(_local2);
} else {
this.snapToPixels(this);
}
};
GWBaseClass.prototype.inherit = function (c, o) {
o = o || this;
for (i in c.prototype) {
o[i] = c.prototype[i];
}
};
GWBaseClass.prototype.snapToPixels = function (t) {
t.classHolder._visible = 0;
while (t._parent) {
t._x = Math.round(t._x);
t._y = Math.round(t._y);
t = t._parent;
}
};
GWBaseClass.prototype.drawBox = function (n, d, x, y, w, h, c, a, o) {
a = ((a == undefined) ? 100 : (a));
o = o || this;
o.createEmptyMovieClip(n, d);
o[n].beginFill(c, a);
o[n].moveTo(x, y);
o[n].lineTo(x + w, y);
o[n].lineTo(x + w, y + h);
o[n].lineTo(x, y + h);
o[n].lineTo(x, y);
o[n].endFill();
};
GWBaseClass.prototype.sizeMe = function (w, h, o) {
if (o == undefined) {
return(undefined);
}
w = Math.round(w);
h = Math.round(h);
if (o.setSize) {
o.setSize(w, h);
} else if (o.TL) {
o._xscale = (o._yscale = 100);
o.T._width = (w - o.TL._width) - o.TR._width;
o.B._width = (w - o.BL._width) - o.BR._width;
o.L._height = (h - o.TL._height) - o.BL._height;
o.R._height = (h - o.TR._height) - o.BR._height;
o.BL._y = h - o.BL._height;
o.BR._y = h - o.BR._height;
o.B._y = h - o.B._height;
o.TR._x = w - o.TR._width;
o.BR._x = w - o.BR._width;
o.R._x = w - o.R._width;
o.C._width = o.T._width;
o.C._height = o.L._height;
o.width = w;
o.height = h;
} else if ((o._width != w) || (o._height != h)) {
o.width = (o._width = w);
o.height = (o._height = h);
}
};
MovieClip.prototype.drag = function (lock, left, top, right, bottom) {
if (lock == -1) {
delete this.onMouseMove;
this.onDrop();
return(undefined);
}
var _local4 = function () {
var _local2 = arguments.callee;
var _local4 = _local2.t._parent._xmouse + _local2.xd;
var _local3 = _local2.t._parent._ymouse + _local2.yd;
if ((_local4 < _local2.left) && (_local2.left != null)) {
_local4 = _local2.left;
}
if ((_local4 > _local2.right) && (_local2.right != null)) {
_local4 = _local2.right;
}
if ((_local3 < _local2.top) && (_local2.top != null)) {
_local3 = _local2.top;
}
if ((_local3 > _local2.bottom) && (_local2.bottom != null)) {
_local3 = _local2.bottom;
}
_local2.t._x = _local4;
_local2.t._y = _local3;
_local2.t.onDrag();
updateAfterEvent();
};
_local4.t = this;
if ((lock == false) or (lock == undefined)) {
_local4.xd = this._x - this._parent._xmouse;
_local4.yd = this._y - this._parent._ymouse;
}
if (left != undefined) {
_local4.left = left;
} else {
_local4.left = null;
}
if (right != undefined) {
_local4.right = right;
} else {
_local4.right = null;
}
if (top != undefined) {
_local4.top = top;
} else {
_local4.top = null;
}
if (bottom != undefined) {
_local4.bottom = bottom;
} else {
_local4.bottom = null;
}
this.onMouseMove = _local4;
};
ASSetPropFlags(MovieClip.prototype, "drag", 1);
#endinitclip
Symbol 63 MovieClip [GWListBoxClass] Frame 1
#initclip 6
_global.GWListBoxClass = function () {
super.init(GWListBoxClass);
};
GWListBoxClass.prototype = new GWBaseClass();
Object.registerClass("GWListBoxClass", GWListBoxClass);
GWListBoxClass.prototype.init = function () {
this.width = this.width || (this._width);
this.height = this.height || (this._height);
this._xscale = (this._yscale = 100);
this.createEmptyMovieClip("list_mc", 1);
this.list_mc.createEmptyMovieClip("content_mc", 1);
this.list_mc.content_mc.createEmptyMovieClip("holder_mc", 1);
this.list_mc.content_mc._x = (this.list_mc.content_mc._y = this.pad);
this.list_mc.content_mc.root = this;
this.drawBox("mask_mc", 2, 0, 0, 1, 1, 0, 100, this.list_mc.content_mc);
this.list_mc.content_mc.setMask(this.list_mc.content_mc.mask_mc);
this.sbprops.height = this.height - (this.pad * 2);
this.list_mc.attachMovie(this.sbSymbol, "vscroll_mc", 3, this.sbprops);
this.barwidth = this.list_mc.vscroll_mc._width;
delete this.sb_props;
this.list_mc.vscroll_mc._y = this.pad;
this.list_mc.vscroll_mc.setScrollTarget(this.list_mc.content_mc);
this.list_mc.content_mc.addListener(this);
this.face = ((this.face == undefined) ? 16777215 : (this.face));
this.highlight = ((this.highlight == undefined) ? 4210752 : (this.highlight));
this.highlight3D = ((this.highlight3D == undefined) ? 8421504 : (this.highlight3D));
this.shadow = ((this.shadow == undefined) ? 13947080 : (this.shadow));
this.darkshadow = ((this.darkshadow == undefined) ? 16777215 : (this.darkshadow));
this.width = Math.round(Math.max(this.barwidth * 3, this.width));
this.height = Math.round(Math.max(this.barwidth * 3, this.height));
this.frame_mc.colorObj = {face:this.face, highlight:this.highlight, highlight3D:this.highlight3D, shadow:this.shadow, darkshadow:this.darkshadow};
this.list_mc.frame_mc = this.frame_mc;
this.rowHeight = this.rowHeight || 18;
this.itemcolor_on = ((this.itemcolor_on == undefined) ? 664682 : (this.itemcolor_on));
this.itemcolor_off = ((this.itemcolor_off == undefined) ? 16777215 : (this.itemcolor_off));
this.itemcolor_out = ((this.itemcolor_out == undefined) ? 16777215 : (this.itemcolor_out));
this.fontcolor_on = ((this.fontcolor_on == undefined) ? 16777215 : (this.fontcolor_on));
this.fontcolor_off = ((this.fontcolor_off == undefined) ? 0 : (this.fontcolor_off));
this.fontcolor_out = ((this.fontcolor_out == undefined) ? 0 : (this.fontcolor_out));
this.setFrameColor({face:this.face, highlight:this.highlight, highlight3D:this.highlight3D, shadow:this.shadow, darkshadow:this.darkshadow});
this.list = this.list_mc.content_mc.holder_mc;
this.setVScroll("auto");
this.setSmallScroll(this.rowHeight);
this.setLargeScroll(this.rowHeight * 2);
this.item_mc.unloadMovie();
this.items = [];
var _local4 = this.labels.length;
var _local3 = 0;
while (_local3 < _local4) {
this.items.push({label:this.labels[_local3], data:this.data[_local3], icon:this.icons[_local3]});
_local3++;
}
this.rowCount = this.rowCount || (Math.ceil(this.height / this.rowHeight));
if (this.items.length) {
this.setDataProvider(this.items);
} else {
this.refreshPane();
}
if (this.checkFocus) {
this.onMouseDown = function () {
var _local4 = this.items.length;
if (this.list_mc.frame_mc.hitTest(_root._xmouse, _root._ymouse, 1)) {
var _local3 = 0;
while (_local3 < _local4) {
if (this.items[_local3].selected) {
this.list["item" + _local3].setLabelColor(this.list["item" + _local3].fontcolor_on);
this.list["item" + _local3].setBaseColor(this.itemcolor_on);
}
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < _local4) {
if (this.items[_local3].selected) {
this.list["item" + _local3].setLabelColor(this.list["item" + _local3].fontcolor_out);
this.list["item" + _local3].setBaseColor(this.itemcolor_out);
}
_local3++;
}
}
};
}
};
GWListBoxClass.prototype.getLength = function () {
var _local2 = 0;
for (var _local3 in this.items) {
_local2++;
}
return(_local2);
};
GWListBoxClass.prototype.setDataProvider = function (d) {
this.items = [];
this.list_mc.content_mc.createEmptyMovieClip("holder_mc", 1);
if (!(d[0] instanceof Object)) {
this.items = [];
var _local6 = d.length;
var _local2 = 0;
while (_local2 < _local6) {
this.items.push({data:d[_local2], label:d[_local2]});
_local2++;
}
} else {
this.items = d;
}
this.drawBox("height_mc", -1, 0, (this.items.length - 1) * this.rowHeight, 1, 1, 0, 0, this.list);
if (this.items.length) {
this.rowCount = this.rowCount || (Math.ceil(this.height / this.rowHeight));
var _local2 = 0;
while (_local2 < this.rowCount) {
this._buildItem(_local2);
_local2++;
}
}
this.refreshPane();
return(this.items);
};
GWListBoxClass.prototype.deSelect = function (i) {
if (!this.items[i].isHeader) {
this.items[i].selected = 0;
this.list["item" + i].setLabelColor(this.list["item" + i].fontcolor_off);
this.list["item" + i].setBaseColor(this.itemcolor_off);
}
};
GWListBoxClass.prototype.deSelectAll = function () {
var _local3 = this.items.length;
var _local2 = 0;
while (_local2 < _local3) {
this.deSelect(_local2);
_local2++;
}
};
GWListBoxClass.prototype.selectAll = function () {
if (this.selectMultiple) {
var _local3 = this.items.length;
var _local2 = 0;
while (_local2 < _local3) {
this.select(_local2);
_local2++;
}
}
};
GWListBoxClass.prototype.setFrameColor = function (c) {
for (var _local3 in c) {
this.list_mc.frame_mc[_local3] = c[_local3];
}
this.list_mc.frame_mc.setColor(c);
};
GWListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
GWListBoxClass.prototype.setSelectMultiple = function (f) {
this.selectMultiple = f;
if (!f) {
this.deSelectAll();
this.select(this.lastIdx);
}
};
GWListBoxClass.prototype.select = function (i) {
if ((!this.selectMultiple) && (this.getSelectedIndices().length)) {
return(undefined);
}
if (!this.items[i].isHeader) {
this.items[i].selected = 1;
this.list["item" + i].setLabelColor(this.list["item" + i].fontcolor_on);
this.list["item" + i].setBaseColor(this.itemcolor_on);
}
};
GWListBoxClass.prototype.setSelectedIndex = function (i) {
this.lastIdx = i;
this.select(i);
if ((i >= (this.getScrollPosition() + this.getRowCount())) || (i <= this.getScrollPosition())) {
this.setScrollPosition(i - 1);
}
this.onSelect(i);
};
GWListBoxClass.prototype.setSelectedIndices = function (a) {
this.deSelectAll();
for (var _local3 in a) {
this.select(a[_local3]);
}
};
GWListBoxClass.prototype.getValue = function () {
return(this.getSelectedItem().data);
};
GWListBoxClass.prototype.getSelectedItem = function () {
if (this.items[this.lastIdx].selected) {
return({data:((this.items[this.lastIdx].data == undefined) ? (this.items[this.lastIdx].label) : (this.items[this.lastIdx].data)), label:this.items[this.lastIdx].label, icon:this.items[this.lastIdx].icon});
}
return(null);
};
GWListBoxClass.prototype.getSelectedIndices = function () {
var _local3 = [];
var _local4 = this.items.length;
var _local2 = 0;
while (_local2 < _local4) {
if (this.items[_local2].selected) {
_local3.push(_local2);
}
_local2++;
}
return(_local3);
};
GWListBoxClass.prototype.getSelectedItems = function () {
var _local5 = [];
var _local6 = this.items.length;
var _local2 = 0;
while (_local2 < _local6) {
if (this.items[_local2].selected) {
_local5.push({data:((this.items[_local2].data == undefined) ? (this.items[_local2].label) : (this.items[_local2].data)), label:this.items[_local2].label});
}
_local2++;
}
return(_local5);
};
GWListBoxClass.prototype.getRowCount = function () {
this.rowCount = Math.ceil((this.list_mc.content_mc.mask_mc._height - (this.pad * 2)) / this.rowHeight);
return(this.rowCount);
};
GWListBoxClass.prototype.setRowCount = function (n) {
if (n) {
this.rowCount = n;
if (this.getLength() > 1) {
if ((n * this.rowHeight) < (this.barwidth * 2)) {
this.setRowHeight((this.barwidth * 2) / n);
}
}
this.setSize(this.width, (this.rowHeight * n) + (this.pad * 2));
}
};
GWListBoxClass.prototype.getRowHeight = function () {
return(this.rowHeight);
};
GWListBoxClass.prototype.setRowHeight = function (n) {
this.rowHeight = n;
this.setSmallScroll(n);
this.setLargeScroll(n * 2);
this.setDataProvider(this.items);
this.setSize(this.width, Math.max(this.getRowCount() * n, this.height));
};
GWListBoxClass.prototype.getEnabled = function () {
return(this.enabled);
};
GWListBoxClass.prototype.setEnabled = function (f) {
this.enabled = f;
this.list_mc.vscroll_mc.setEnabled(f);
};
GWListBoxClass.prototype.removeAll = function () {
this.items = [];
this.list_mc.content_mc.createEmptyMovieClip("holder_mc", 1);
this.setSize(this.width, this.height);
};
GWListBoxClass.prototype.getSize = function () {
return({width:this.width, height:this.height});
};
GWListBoxClass.prototype.setSize = function (w, h) {
if (((arguments.length > 2) || (this.width != w)) || (this.height != h)) {
var _local4 = this.pad * 2;
h = (this.height = (Math.floor(h / this.rowHeight) * this.rowHeight) + _local4);
this.list_mc.content_mc.maxscroll = Math.max(0, Math.ceil((this.list_mc.content_mc.holder_mc._height - this.list_mc.content_mc.mask_mc._height) / this.smallScroll) * this.smallScroll);
this.setVScroll("auto");
w = (this.width = Math.round(Math.max(((this.list_mc.vscroll_mc._visible ? (this.barwidth) : 0) * 3) + _local4, w)));
h = (this.height = Math.round(Math.max((this.barwidth * 2) + _local4, h)));
this.list_mc.content_mc.bottomScroll = (this.list_mc.content_mc.mask_mc._height = h - _local4);
this.list_mc.vscroll_mc.setSize(this.barwidth, h - _local4);
this.list_mc.vscroll_mc._x = (w - this.barwidth) - this.pad;
this.list_mc.content_mc.maxscroll = Math.max(0, Math.ceil((this.list_mc.content_mc.holder_mc._height - this.list_mc.content_mc.mask_mc._height) / this.smallScroll) * this.smallScroll);
this.list_mc.content_mc.onChanged();
this.setVScroll("auto");
this.list_mc.content_mc.mask_mc._width = (w - (this.list_mc.vscroll_mc._visible ? (this.barwidth) : 0)) - _local4;
this.sizeMe(this.width, this.height, this.list_mc.frame_mc);
for (var _local5 in this.list) {
this.list[_local5].setSize(w, this.rowHeight);
}
this.rowCount = Math.ceil(this.height / this.rowHeight);
this.setScrollPosition(this.getScrollPosition());
}
};
GWListBoxClass.prototype.getEnabled = function () {
return(this.enabled);
};
GWListBoxClass.prototype.setEnabled = function (f) {
this.list_mc.vscroll_mc.setEnabled(f);
this.enabled = f;
};
GWListBoxClass.prototype.getSize = function () {
return({width:this.width, height:this.height});
};
GWListBoxClass.prototype.getScrollPosition = function () {
return(this.list_mc.vscroll_mc.getScrollPosition() / this.rowHeight);
};
GWListBoxClass.prototype.setScrollPosition = function (pos) {
if (this.getEnabled()) {
this.list_mc.vscroll_mc.setScrollPosition(Math.max(0, Math.min(pos * this.rowHeight, this.list_mc.content_mc.maxscroll)));
}
};
GWListBoxClass.prototype.setSmallScroll = function (n) {
this.smallScroll = n;
this.list_mc.vscroll_mc.setSmallScroll(n);
};
GWListBoxClass.prototype.setLargeScroll = function (n) {
this.largeScroll = n;
this.list_mc.vscroll_mc.setLargeScroll(n);
};
GWListBoxClass.prototype.setVScroll = function (f) {
if (f == "auto") {
this.list_mc.vscroll_mc._visible = (this.list_mc.content_mc.maxscroll ? 1 : 0);
} else {
this.list_mc.vscroll_mc._visible = f;
}
this.vScroll = f;
};
GWListBoxClass.prototype.setScrollBarColor = function (c) {
for (var _local3 in c) {
this.list_mc.vscroll_mc[_local3] = c[_local3];
}
this.list_mc.vscroll_mc.setColor(c);
};
GWListBoxClass.prototype.refreshPane = function () {
clearInterval(this.initID);
this.list_mc.content_mc.watch("scrollpos", this._updateScroll);
this.setSize(this.width, this.height, 1);
this.setEnabled(this.enabled);
};
GWListBoxClass.prototype._buildItem = function (i) {
if (this.items[i] == undefined) {
return(undefined);
}
this.list.attachMovie("GWListItemClass", "item" + i, i, {_y:i * this.rowHeight, idx:i, width:this.width, height:this.rowHeight, font:this.font, fontsize:this.fontsize, useEmbedFonts:this.useEmbedFonts, fontcolor:((this.items[i].fontcolor == undefined) ? (this.fontcolor_off) : (this.items[i].fontcolor)), fontcolor_off:((this.items[i].fontcolor_off == undefined) ? (this.fontcolor_off) : (this.items[i].fontcolor_off)), fontcolor_on:((this.items[i].fontcolor_on == undefined) ? (this.fontcolor_on) : (this.items[i].fontcolor_on)), fontcolor_out:((this.items[i].fontcolor_out == undefined) ? (this.fontcolor_out) : (this.items[i].fontcolor_out)), basecolor_off:this.itemcolor_off, data:((this.items[i].data == undefined) ? (this.items[i].label) : (this.items[i].data)), icon:this.items[i].icon, label:this.items[i].label, root:this});
if (!this.items[i].isHeader) {
if (this.items[i].selected) {
this.list["item" + i].setLabelColor(this.list["item" + i].fontcolor_on);
this.list["item" + i].setBaseColor(this.itemcolor_on);
}
this.list["item" + i].trackAsMenu = true;
this.list["item" + i].onDragOver = function () {
this.root.select(this.idx);
if ((this.root.lastDragIdx != this.root.lastIdx) && (((this.idx > this.root.lastDragIdx) && (this.root.lastDragIdx < this.root.lastIdx)) || ((this.idx < this.root.lastDragIdx) && (this.root.lastDragIdx > this.root.lastIdx)))) {
this.root.deSelect(this.root.lastDragIdx);
}
if (!this.root.selectMultiple) {
this.root.lastIdx = this.idx;
}
this.root.lastDragIdx = this.idx;
};
this.list["item" + i].onDragOut = function () {
if (!this.root.selectMultiple) {
this.root.deSelect(this.idx);
}
};
this.list["item" + i].onReleaseOutside = (this.list["item" + i].onRelease = function () {
clearInterval(this.root.isScrolling);
delete this.root.onMouseMove;
if ((this.idx == this.lastIdx) && ((getTimer() - this.lastHit) < 250)) {
clearInterval(this.root.clickID);
this.root.onDSelect(this.idx);
} else if (this.root.onDSelect == undefined) {
this.root.onSelect(this.idx);
} else {
this.root._onSelect = function (idx) {
clearInterval(this.clickID);
this.onSelect(idx);
};
this.root.clickID = setInterval(this.root, "_onSelect", 250, this.idx);
}
this.lastHit = getTimer();
this.lastIdx = this.idx;
});
this.list["item" + i].onPress = function () {
if (this.root.getEnabled()) {
if ((!Key.isDown(17)) || (!this.root.selectMultiple)) {
this.root.deSelectAll();
}
if (Key.isDown(16) && (this.root.selectMultiple)) {
if (this.root.lastIdx <= this.idx) {
var _local2 = this.root.lastIdx;
while (_local2 <= this.idx) {
this.root.select(_local2);
_local2++;
}
} else {
var _local2 = this.root.lastIdx;
while (_local2 >= this.idx) {
this.root.select(_local2);
_local2--;
}
}
return(undefined);
}
this.root._startSelect(this.idx);
}
};
}
this.onBuildItem(i);
};
GWListBoxClass.prototype._updateScroll = function () {
this.holder_mc._y = (-Math.round(Math.min(arguments[2], Math.min(this.maxscroll, Math.max(0, this.holder_mc._height - this.mask_mc._height))) / this.root.rowHeight)) * this.root.rowHeight;
var _local3 = (-this.holder_mc._y) / this.root.rowHeight;
var _local4 = _local3 + this.root.rowCount;
do {
if (!this.root.list["item" + _local3]) {
this.root._buildItem(_local3);
}
_local3++;
} while (_local3 <= _local4);
};
GWListBoxClass.prototype._startSelect = function (i) {
this.onMouseMove = function () {
clearInterval(this.isScrolling);
if (this._parent._ymouse >= (this._y + this.height)) {
this.isScrolling = setInterval(this, "_startScroll", 100, 1);
} else if (this._parent._ymouse <= this._y) {
this.isScrolling = setInterval(this, "_startScroll", 100, -1);
}
};
if (this.items[i].selected) {
this.deSelect(i);
} else {
this.select(i);
this.lastIdx = i;
}
};
GWListBoxClass.prototype._startScroll = function (d) {
this.setScrollPosition(this.getScrollPosition() + d);
if (this.selectMultiple) {
this.select(((d > 0) ? ((this.getScrollPosition() + this.getRowCount()) - 1) : (this.getScrollPosition())));
}
};
#endinitclip
Instance of Symbol 62 MovieClip [GWBaseClass] "baseclass" in Symbol 63 MovieClip [GWListBoxClass] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 64 MovieClip [GWComboBoxClass] Frame 1
#initclip 2
_global.GWComboBoxClass = function () {
super.init(GWComboBoxClass);
};
GWComboBoxClass.prototype = new GWBaseClass();
Object.registerClass("GWComboBoxClass", GWComboBoxClass);
GWComboBoxClass.prototype.init = function () {
this.width = Math.round(this._width);
this.height = Math.round(this._height);
this._xscale = (this._yscale = 100);
var _local7 = this.getDepth();
this._parent._GWTopComboBoxDepth = this._parent._GWTopComboBoxDepth || (_local7);
this._parent._GWTopComboBoxDepth = ((_local7 > this._parent._GWTopComboBoxDepth) ? (_local7) : (this._parent._GWTopComboBoxDepth));
this.cbDepth = this.cbDepth || 17000;
this.face = ((this.face == undefined) ? 16777215 : (this.face));
this.highlight = ((this.highlight == undefined) ? 4210752 : (this.highlight));
this.highlight3D = ((this.highlight3D == undefined) ? 8421504 : (this.highlight3D));
this.shadow = ((this.shadow == undefined) ? 13947080 : (this.shadow));
this.darkshadow = ((this.darkshadow == undefined) ? 16777215 : (this.darkshadow));
this.rowHeight = this.rowHeight || 18;
this.listPos = ((this.listPos == undefined) ? "bottom" : (this.listPos));
this.itemcolor_on = ((this.itemcolor_on == undefined) ? 664682 : (this.itemcolor_on));
this.itemcolor_off = ((this.itemcolor_off == undefined) ? 16777215 : (this.itemcolor_off));
this.fontcolor_on = ((this.fontcolor_on == undefined) ? 16777215 : (this.fontcolor_on));
this.fontcolor_off = ((this.fontcolor_off == undefined) ? 0 : (this.fontcolor_off));
this.items = [];
var _local5 = this.labels.length;
var _local6 = 0;
while (_local6 < _local5) {
this.items.push({label:this.labels[_local6], data:this.data[_local6], icon:this.icons[_local6]});
_local6++;
}
if (this.listprops == undefined) {
this.listprops = {};
}
this.listprops.face = (this.listprops.highlight = (this.listprops.shadow = (this.listprops.itemcolor_off = this.itemcolor_off)));
this.listprops.highlight3D = (this.listprops.darkshadow = this.listborder || 4210752);
this.listprops.vScroll = "auto";
this.listprops.pad = this.listpad || 1;
this.listprops.width = this.width;
this.listprops.rowHeight = this.rowHeight;
this.listprops.rowCount = this.rowCount || (this.items.length);
this.listprops.useEmbedFonts = this.useEmbedFonts;
this.box_mc.colorObj = {face:this.face, highlight:this.highlight, highlight3D:this.highlight3D, shadow:this.shadow, darkshadow:this.darkshadow};
this.box_mc.useHandCursor = false;
this.box_mc.onPress = function () {
if (this._parent.list_mc._visible) {
this._parent.hideList();
} else {
this._parent.showList();
}
};
this.attachMovie("GWListItemClass", "item_mc", 2, {_x:this.pad, _y:this.pad, font:this.font, fontsize:this.fontsize, fontcolor:this.fontcolor, label:"", useEmbedFonts:this.useEmbedFonts, width:this.width - (this.pad * 2), height:Math.max(this.rowHeight + (this.pad * 2), this.height) - (this.pad * 2)});
this.setSize(this.width, this.height);
this.arrow_mc.useHandCursor = false;
this.arrow_mc.onPress = function () {
this._parent.box_mc.onPress();
if (this._parent.enabled) {
for (var _local2 in this) {
this[_local2]._visible = 0;
}
this.down_mc._visible = 1;
}
};
this.arrow_mc.onRelease = (this.arrow_mc.onReleaseOutside = function () {
if (this._parent.enabled) {
for (var _local2 in this) {
this[_local2]._visible = 0;
}
this.up_mc._visible = 1;
}
});
this.arrow_mc.swapDepths(3);
this.onMouseDown = function () {
if (!((this.list_mc._visible && (this.list_mc.hitTest(_root._xmouse, _root._ymouse, 1))) || (this.box_mc.hitTest(_root._xmouse, _root._ymouse, 1)))) {
this.hideList();
this.item_mc.setLabelEnabled(this.getEnabled());
this.item_mc.setBaseColor(this.box_mc.colorObj.face);
}
};
this.onMouseDown();
if (this.items.length) {
if ((this.idx != undefined) && (this.idx != "")) {
this.select(parseInt(this.idx));
}
} else {
this.setEnabled(false);
}
if (this.spawnAtRoot && (!_root.__GWcombobox)) {
_root.createEmptyMovieClip("__GWcombobox", this.cbDepth);
_root.__GWcombobox.count = 1;
}
this.depth = _root.__GWcombobox.count++;
};
GWComboBoxClass.prototype.select = function (i) {
if (this.items[i]) {
this.item_mc.setLabel(this.items[i].label);
this.item_mc.setIcon(this.items[i].icon);
this.item_mc.idx = i;
this.list_mc.select(i);
this.hideList();
this.onSelect(i);
}
};
GWComboBoxClass.prototype.setSelectedIndex = function (i) {
this.select(i);
};
GWComboBoxClass.prototype.getEnabled = function () {
return(this.enabled);
};
GWComboBoxClass.prototype.setEnabled = function (f) {
for (var _local2 in this.arrow_mc) {
this.arrow_mc[_local2]._visible = 0;
this.arrow_mc[_local2]._visible = 0;
}
if (!f) {
this.arrow_mc.off_mc._visible = (this.arrow_mc.off_mc._visible = 1);
this.enabled = false;
this.item_mc.setLabelEnabled(false);
} else {
this.arrow_mc.up_mc._visible = (this.arrow_mc.up_mc._visible = 1);
this.enabled = true;
this.item_mc.setLabelEnabled(true);
}
};
GWComboBoxClass.prototype.getSize = function () {
return({width:this.width, height:this.height});
};
GWComboBoxClass.prototype.setSize = function (w, h) {
w = (this.width = Math.round(w));
h = (this.height = Math.round(h));
var _local2 = this.pad * 2;
this.sizeMe(w, Math.max(this.rowHeight + _local2, h), this.box_mc);
this.listprops.width = this.width;
this.item_mc.setSize(w - _local2, Math.max(this.rowHeight + _local2, h) - _local2);
this.select(this.getSelectedIndex());
var _local6 = this.arrow_mc.down_mc.arrow_mc._y - this.arrow_mc.up_mc.arrow_mc._y;
for (var _local3 in this.arrow_mc) {
this.sizeMe(this.arrow_mc._width, this.item_mc.height, this.arrow_mc[_local3].base_mc);
this.arrow_mc[_local3].arrow_mc._y = (this.arrow_mc[_local3].shadow_mc._y = Math.round((this.item_mc.height - this.arrow_mc[_local3].arrow_mc._height) / 2));
}
this.arrow_mc.down_mc.arrow_mc._y = this.arrow_mc.down_mc.arrow_mc._y + _local6;
this.arrow_mc._x = (w - this.arrow_mc._width) - this.pad;
this.arrow_mc._y = this.pad;
this.initList = false;
};
GWComboBoxClass.prototype.getSelectedIndex = function () {
return(this.item_mc.idx);
};
GWComboBoxClass.prototype.getSelectedItem = function () {
return(this.items[this.item_mc.idx]);
};
GWComboBoxClass.prototype.getValue = function () {
return(this.items[this.item_mc.idx].data);
};
GWComboBoxClass.prototype.setValue = function (v) {
var _local3 = this.items.length;
var _local2 = 0;
while (_local2 < _local3) {
if (this.items[_local2].data == v) {
this.list_mc.deSelectAll();
this.select(_local2);
return(undefined);
}
_local2++;
}
return(false);
};
GWComboBoxClass.prototype.setBoxColor = function (c) {
this.box_mc.setColor(c);
this.item_mc.setLabelColor(this.fontcolor);
this.item_mc.setBaseColor(this.box_mc.colorObj.face);
};
GWComboBoxClass.prototype.setListPlacement = function (p) {
this.listPos = p;
var _local5 = this._x;
var _local4 = this._y;
var _local3 = this;
do {
_local3 = _local3._parent;
pt = {x:_local3._x, y:_local3._y};
_local5 = _local5 + pt.x;
_local4 = _local4 + pt.y;
} while (_local3 != _root);
this.y = _local4;
if (!this.spawnAtRoot) {
_local5 = 0;
_local4 = 0;
}
this.list_mc._x = _local5;
if (p == "top") {
this.list_mc._y = _local4 - this.list_mc.height;
} else if (p == "bottom") {
this.list_mc._y = _local4 + this.box_mc.height;
} else {
this.list_mc._y = _local4 - Math.floor((this.list_mc.height - this.box_mc.height) / 2);
}
};
GWComboBoxClass.prototype.setRowCount = function (n) {
this.rowCount = n;
this.initList = false;
};
GWComboBoxClass.prototype.setRowHeight = function (n) {
this.rowHeight = n;
this.initList = false;
};
GWComboBoxClass.prototype.setDataProvider = function (d) {
if ((this.spawnAtRoot && (!_root.__GWcombobox["cb" + this.depth])) || (!this.list_mc)) {
if (this.spawnAtRoot) {
_root.__GWcombobox.attachMovie(this.listSymbol, "cb" + this.depth, this.depth, this.listprops);
this.list_mc = _root.__GWcombobox["cb" + this.depth];
} else {
this.attachMovie(this.listSymbol, "list_mc", 4, this.listprops);
}
this.list_mc.parent = this;
this.list_mc.data = this.data;
this.list_mc.icons = this.icons;
this.list_mc.labels = this.labels;
this.list_mc.font = this.font;
this.list_mc.fontsize = this.fontsize;
this.list_mc.itemcolor_on = this.itemcolor_on;
this.list_mc.face = (this.list_mc.highlight = (this.list_mc.shadow = (this.list_mc.itemcolor_off = this.itemcolor_off)));
this.list_mc.fontcolor_on = this.fontcolor_on;
this.list_mc.fontcolor_off = this.fontcolor_off;
this.list_mc.rowCount = this.rowCount || (this.items.length);
this.list_mc.onSelect = function (i) {
this.parent.select(i);
this.parent.item_mc.setLabelColor(this.parent.fontcolor_on);
this.parent.item_mc.setBaseColor(this.parent.itemcolor_on);
};
this.list_mc._startSelect = function (i) {
this.select(i);
};
this.list_mc.onBuildItem = function (i) {
this.list["item" + i].trackAsMenu = true;
this.list["item" + i].onDragOver = (this.list["item" + i].onRollOver = function () {
for (var _local2 in this._parent) {
this._parent[_local2].setLabelColor(this.root.fontcolor_off);
this._parent[_local2].setBaseColor(this.root.itemcolor_off);
}
this.setLabelColor(this.root.fontcolor_on);
this.setBaseColor(this.root.itemcolor_on);
});
};
}
this.items = this.list_mc.setDataProvider(d);
this.list_mc.setSize(this.width, this.list_mc.height);
this.initList = false;
this.setEnabled(this.items.length);
this.onMouseDown();
};
GWComboBoxClass.prototype.showList = function () {
if (this.spawnAtRoot) {
_root.__GWcombobox.swapDepths(this.cbDepth);
_root.__GWcombobox.active.hideList();
} else {
this.swapDepths(this._parent._GWTopComboBoxDepth);
}
if (this.getEnabled() && (this.items.length)) {
if (!this.initList) {
this.listprops.rowHeight = this.rowHeight;
this.setDataProvider(this.items);
this.list_mc.setRowCount(this.rowCount || (this.items.length));
this.initList = true;
}
this.setListPlacement(this.listPos);
this.list_mc._visible = 1;
this.list_mc.select(this.item_mc.idx);
if ((this.item_mc.idx >= (this.list_mc.getScrollPosition() + this.list_mc.getRowCount())) || (this.item_mc.idx <= this.list_mc.getScrollPosition())) {
this.list_mc.setScrollPosition(this.item_mc.idx - 1);
}
if ((this.useEdgeScroll && (this.rowCount)) && (this.items.length > this.rowCount)) {
this.onMouseMove = function () {
clearInterval(this.isScrolling);
if (_root._ymouse < Math.min(this.y, (this.spawnAtRoot ? 0 : (this.y)) + this.list_mc._y)) {
this.isScrolling = setInterval(this.list_mc, "_startScroll", 100, -1);
} else if (_root._ymouse > Math.max(this.y + this.box_mc.height, ((this.spawnAtRoot ? 0 : (this.y)) + this.list_mc._y) + this.list_mc.height)) {
this.isScrolling = setInterval(this.list_mc, "_startScroll", 100, 1);
}
};
}
_root.__GWcombobox.active = this;
}
};
GWComboBoxClass.prototype.hideList = function () {
this.list_mc._visible = 0;
this.list_mc.deSelectAll();
this.onMouseMove = null;
clearInterval(this.isScrolling);
};
#endinitclip
Instance of Symbol 62 MovieClip [GWBaseClass] "baseclass" in Symbol 64 MovieClip [GWComboBoxClass] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 69 MovieClip [GWPanel] Frame 1
#initclip 3
_global.GWPanel = function () {
if (this.colorObj != undefined) {
for (var _local3 in this.colorObj) {
this[_local3] = this.colorObj[_local3];
}
}
super.init(GWPanel);
};
GWPanel.prototype = new GWBaseClass();
Object.registerClass("GWPanel", GWPanel);
GWPanel.prototype.init = function () {
this.face = ((this.face == undefined) ? 13947080 : (this.face));
this.highlight = ((this.highlight == undefined) ? 13947080 : (this.highlight));
this.highlight3D = ((this.highlight3D == undefined) ? 16777215 : (this.highlight3D));
this.shadow = ((this.shadow == undefined) ? 8421504 : (this.shadow));
this.darkshadow = ((this.darkshadow == undefined) ? 4210752 : (this.darkshadow));
this.width = Math.round(this.width || (this._width));
this.height = Math.round(this.height || (this._height));
this._xscale = (this._yscale = 100);
this.classHolder._width = this.width;
this.classHolder._height = this.height;
this.setSize();
};
GWPanel.prototype.setSize = function (w, h) {
this.snapToPixels(this);
if (!arguments.length) {
w = (this.width = this.width || (this._width));
h = (this.height = this.height || (this._height));
this._xscale = (this._yscale = 100);
} else {
w = Math.round(w);
this.width = w;
h = Math.round(h);
this.height = h;
}
this.drawPanel(w, h);
};
GWPanel.prototype.getSize = function () {
return({width:this._width, height:this._height});
};
GWPanel.prototype.setColor = function (c) {
c = ((c != undefined) ? (c) : (this.colorObj));
for (var _local4 in c) {
this[_local4] = c[_local4];
}
this.colorObj = c;
var _local3 = new Color(this.darkshadow_mc);
_local3.setRGB(this.darkshadow);
_local3 = new Color(this.highlight3D_mc);
_local3.setRGB(this.highlight3D);
_local3 = new Color(this.shadow_mc);
_local3.setRGB(this.shadow);
_local3 = new Color(this.highlight_mc);
_local3.setRGB(this.highlight);
_local3 = new Color(this.face_mc);
_local3.setRGB(this.face);
};
GWPanel.prototype.drawPanel = function (w, h) {
if ((this._width != w) || (this._height != h)) {
w = Math.round(w || (this.width));
h = Math.round(h || (this.height));
this.darkshadow_mc._width = w;
this.darkshadow_mc._height = h;
this.highlight3D_mc._width = Math.max(1, w - 1);
this.highlight3D_mc._height = Math.max(1, h - 1);
this.shadow_mc._width = Math.max(0, w - 2);
this.shadow_mc._height = Math.max(0, h - 2);
this.highlight_mc._width = Math.max(0, w - 3);
this.highlight_mc._height = Math.max(0, h - 3);
this.face_mc._width = Math.max(0, w - 4);
this.face_mc._height = Math.max(0, h - 4);
}
this.setColor();
};
#endinitclip
Instance of Symbol 62 MovieClip [GWBaseClass] "baseclass" in Symbol 69 MovieClip [GWPanel] Frame 1
//component parameters
onClipEvent (construct) {
}
Instance of Symbol 69 MovieClip [GWPanel] "base_mc" in Symbol 70 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 69 MovieClip [GWPanel] "base_mc" in Symbol 73 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 13947080 /* 0xD4D0C8 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 8421504 /* 0x808080 */;
}
Instance of Symbol 69 MovieClip [GWPanel] "base_mc" in Symbol 74 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 69 MovieClip [GWPanel] "base_mc" in Symbol 75 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 69 MovieClip [GWPanel] "base_mc" in Symbol 79 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 13947080 /* 0xD4D0C8 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 8421504 /* 0x808080 */;
}
Instance of Symbol 69 MovieClip [GWPanel] "base_mc" in Symbol 80 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 69 MovieClip [GWPanel] "base_mc" in Symbol 81 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Symbol 84 MovieClip [GWScrollerClass] Frame 1
#initclip 4
_global.GWScrollerClass = function () {
super.init(GWScrollerClass);
};
GWScrollerClass.prototype = new GWBaseClass();
Object.registerClass("GWScrollerClass", GWScrollerClass);
GWScrollerClass.prototype.init = function () {
if (this.horizontal && (this._rotation == 90)) {
this.isHorizontal = true;
}
this.snapToPixels(this);
this.largeScroll = (this.horizontal ? 30 : 5);
this.smallScroll = (this.horizontal ? 5 : 1);
for (var _local2 in this.scrollbar_mc) {
this.scrollbar_mc[_local2].useHandCursor = false;
}
var _local5 = this.width || ((this.horizontal ? (this._height) : (this._width)));
var _local4 = this.height || ((this.horizontal ? (this._width) : (this._height)));
this._xscale = (this._yscale = 100);
this.thumbMinSize = this.scrollbar_mc.thumb_mc._height;
this.setSize(_local5, _local4);
for (var _local2 in this.scrollbar_mc.bot_mc) {
if (_local2 == "over_mc") {
this.scrollbar_mc.bot_mc.onRollOver = (this.scrollbar_mc.top_mc.onRollOver = function () {
if (this._parent._parent.enabled) {
for (var _local2 in this) {
this[_local2]._visible = 0;
}
this.over_mc._visible = 1;
}
});
} else if (_local2 == "down_mc") {
this.scrollbar_mc.bot_mc.onPress = (this.scrollbar_mc.top_mc.onPress = function () {
if (this._parent._parent.enabled) {
for (var _local2 in this) {
this[_local2]._visible = 0;
}
this.down_mc._visible = 1;
var _local3 = ((this._name == "bot_mc") ? 1 : -1) * this._parent._parent.smallScroll;
this._parent._parent.isScrolling = setInterval(this._parent._parent, "_doScroll", 100, _local3);
}
});
} else if (_local2 == "up_mc") {
this.scrollbar_mc.bot_mc.onRelease = (this.scrollbar_mc.bot_mc.onReleaseOutside = (this.scrollbar_mc.top_mc.onRelease = (this.scrollbar_mc.top_mc.onReleaseOutside = function () {
if (this._parent._parent.enabled) {
for (var _local2 in this) {
this[_local2]._visible = 0;
}
this.up_mc._visible = 1;
clearInterval(this._parent._parent.isScrolling);
delete this._parent._parent.isScrolling;
var _local3 = ((this._name == "bot_mc") ? 1 : -1) * this._parent._parent.smallScroll;
this._parent._parent._doScroll(_local3, this._parent._parent);
}
})));
}
}
this.scrollbar_mc.thumb_mc.onPress = function () {
this.drag(false, 0, this._parent.track_mc._y, 0, (this._parent.track_mc._y + this._parent.track_mc._height) - this.height);
this.onDrag = this._parent._parent._onThumbDrag;
this._parent._parent.isDragging = true;
};
this.scrollbar_mc.thumb_mc.onRelease = (this.scrollbar_mc.thumb_mc.onReleaseOutside = function () {
this.drag(-1);
this._parent._parent.isDragging = false;
this._parent._parent.scrollTarget.onChanged();
});
this.scrollbar_mc.track_mc.onPress = function () {
if (this._parent._parent.enabled) {
var _local2 = this._parent._parent.largeScroll * ((this._parent._ymouse > this._parent.thumb_mc._y) ? 1 : -1);
this._parent._parent.isScrolling = setInterval(this._parent._parent, "_doScroll", 50, _local2, this._parent._ymouse);
this._parent._parent._doScroll(_local2);
}
};
this.scrollbar_mc.track_mc.onDragOut = (this.scrollbar_mc.track_mc.onRelease = (this.scrollbar_mc.track_mc.onReleaseOutside = function () {
clearInterval(this._parent._parent.isScrolling);
delete this._parent._parent.isScrolling;
}));
this.setScrollTarget(((this.scrollTarget.length > 0) ? (this.scrollTarget) : (this._targetInstanceName)));
this.scrollTarget.onChanged();
};
GWScrollerClass.prototype.setHorizontal = function (f) {
this.horizontal = f;
this.setSize(this.width, this.height, 1);
};
GWScrollerClass.prototype.getSize = function () {
return({width:this._width, height:this._height});
};
GWScrollerClass.prototype.setSize = function (w, h) {
if (((arguments.length > 2) || (this.width != w)) || (this.height != h)) {
w = (this.width = Math.round(w));
h = (this.height = Math.round(h));
var _local3 = this.scrollbar_mc;
this._rotation = 0;
var _local7 = _local3.bot_mc.down_mc.arrow_mc._x - _local3.bot_mc.up_mc.arrow_mc._x;
for (var _local5 in _local3.bot_mc) {
_local3.bot_mc[_local5]._x = (_local3.bot_mc[_local5]._y = 0);
_local3.top_mc[_local5]._x = (_local3.top_mc[_local5]._y = 0);
_local3.bot_mc[_local5]._visible = (_local3.top_mc[_local5]._visible = 0);
this.sizeMe(w, _local3.bot_mc[_local5]._height, _local3.bot_mc[_local5].base_mc);
this.sizeMe(w, _local3.top_mc[_local5]._height, _local3.top_mc[_local5].base_mc);
_local3.bot_mc[_local5].arrow_mc._x = (_local3.top_mc[_local5].arrow_mc._x = Math.floor((w - _local3.bot_mc.up_mc.arrow_mc._width) / 2));
_local3.bot_mc[_local5].shadow_mc._x = (_local3.top_mc[_local5].shadow_mc._x = Math.floor((w - _local3.top_mc[_local5].shadow_mc._width) / 2));
}
_local3.bot_mc.down_mc.arrow_mc._x = (_local3.top_mc.down_mc.arrow_mc._x = Math.floor((w - _local3.bot_mc.down_mc.arrow_mc._width) / 2) + _local7);
_local3.bot_mc.up_mc._visible = (_local3.top_mc.up_mc._visible = 1);
this.sizeMe(w, (h - _local3.top_mc._height) - _local3.bot_mc._height, _local3.track_mc);
this.sizeMe(w, _local3.thumb_mc._height, _local3.thumb_mc.base_mc);
_local3.track_mc._y = _local3.top_mc._height;
_local3.bot_mc._y = h - _local3.bot_mc._height;
if (this.horizontal) {
this._rotation = 90;
if (!this.isHorizontal) {
this._yscale = -Math.abs(this._yscale);
}
}
this._updateThumb();
}
};
GWScrollerClass.prototype.getScrollPosition = function () {
return(this.scrollpos);
};
GWScrollerClass.prototype.setScrollPosition = function (p) {
if (this.horizontal) {
this.scrollTarget.hscroll = p;
} else {
this.scrollTarget.scroll = p;
}
this.scrollTarget.onChanged();
};
GWScrollerClass.prototype.setSmallScroll = function (n) {
this.smallScroll = n;
};
GWScrollerClass.prototype.setLargeScroll = function (n) {
this.largeScroll = n;
};
GWScrollerClass.prototype.setEnabled = function (f) {
var _local2 = this.scrollbar_mc;
for (var _local3 in _local2.bot_mc) {
_local2.bot_mc[_local3]._visible = 0;
_local2.top_mc[_local3]._visible = 0;
}
if (!f) {
_local2.bot_mc.off_mc._visible = (_local2.top_mc.off_mc._visible = 1);
_local2.thumb_mc._visible = 0;
this.enabled = false;
} else {
_local2.bot_mc.up_mc._visible = (_local2.top_mc.up_mc._visible = 1);
this._updateThumb();
this.enabled = true;
}
};
GWScrollerClass.prototype.setScrollTarget = function (t) {
if (t != undefined) {
t = (((t instanceof TextField) || (t instanceof MovieClip)) ? (t) : (this._parent[t]));
if ((t instanceof TextField) || (t instanceof MovieClip)) {
this.scrollTarget = t;
if (!this.scrollTarget.scroller) {
this.scrollTarget.scroller = [this];
} else {
this.scrollTarget.scroller.push(this);
}
this.scrollTarget.addListener(this);
this.scrollTarget.onScroller = (this.scrollTarget.onChanged = function () {
for (var _local2 in this.scroller) {
this.scroller[_local2]._onChanged(this);
}
});
} else {
delete this.scrollTarget;
return(undefined);
}
}
};
GWScrollerClass.prototype._doScroll = function (d, t) {
this.scrollpos = this.scrollpos || 0;
this.scrollpos = this.scrollpos + d;
this.scrollpos = ((d > 0) ? (Math.min(this.scrollpos, this.maxscroll)) : (Math.max(this.scrollpos, (this.horizontal ? 0 : (((this.scrollTarget instanceof TextField) ? 1 : 0))))));
this._updateThumb();
if (t) {
if (((d > 0) && ((this.scrollbar_mc.thumb_mc._y + this.scrollbar_mc.thumb_mc.height) > t)) || ((d < 0) && (this.scrollbar_mc.thumb_mc._y < t))) {
this.scrollbar_mc.track_mc.onRelease();
}
}
};
GWScrollerClass.prototype._onChanged = function (t) {
if (this.isDragging) {
return(undefined);
}
this.scrollpos = (this.horizontal ? (t.hscroll) : (t.scroll)) || 0;
this.maxscroll = (this.horizontal ? (t.maxhscroll) : (t.maxscroll));
this.pageSize = ((t instanceof TextField) ? ((this.horizontal ? (this.largeScroll) : (t.bottomScroll - t.scroll))) : (t.bottomScroll - (t.scrollpos || 0)));
if (!this.isScrolling) {
if (this.maxscroll > 1) {
this.setEnabled(true);
this._updateThumb();
} else {
this.setEnabled(false);
}
}
};
GWScrollerClass.prototype._onThumbDrag = function () {
var _local2 = this._parent._parent.scrollTarget;
var _local3 = this._parent.track_mc._height - this.height;
if (this._parent._parent.horizontal) {
var _local4 = _local3 / _local2.maxhscroll;
_local2.hscroll = (_local2.hscrollpos = Math.round((this._y - this._parent.track_mc._y) / _local4));
} else {
var _local4 = _local3 / _local2.maxscroll;
_local2.scroll = (_local2.scrollpos = Math.round((this._y - this._parent.track_mc._y) / _local4) + ((_local2 instanceof TextField) ? 1 : 0));
}
};
GWScrollerClass.prototype._updateThumb = function () {
var _local2 = this.scrollbar_mc;
var _local4 = Math.max(this.thumbMinSize, Math.round((this.pageSize / (this.maxscroll + this.pageSize)) * _local2.track_mc._height)) || (this.thumbMinSize);
if (this.scrollTarget) {
this.sizeMe(this.width, _local4, _local2.thumb_mc.base_mc);
_local2.thumb_mc.height = _local4;
}
_local2.thumb_mc.mid_mc._x = Math.floor(((_local2.thumb_mc.width || (_local2.thumb_mc._width)) - _local2.thumb_mc.mid_mc._width) / 2);
_local2.thumb_mc.mid_mc._y = Math.floor(((_local2.thumb_mc.height || (_local2.thumb_mc._height)) - _local2.thumb_mc.mid_mc._height) / 2);
var _local3 = _local2.track_mc._height - _local4;
var _local5 = _local3 / (this.maxscroll - 1);
_local2.thumb_mc._visible = _local3 > 0;
_local2.thumb_mc._y = _local2.track_mc._y + Math.max(0, Math.round(Math.min(_local3, (this.scrollpos - 1) * _local5)));
if (this.horizontal) {
this.scrollTarget.hscroll = (this.scrollTarget.hscrollpos = this.scrollpos);
} else {
this.scrollTarget.scroll = (this.scrollTarget.scrollpos = this.scrollpos);
}
};
#endinitclip
Instance of Symbol 62 MovieClip [GWBaseClass] "baseclass" in Symbol 84 MovieClip [GWScrollerClass] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 85 MovieClip [GWScrollBar] Frame 1
#initclip 10
_global.GWScrollBar = function () {
super.init();
this.init();
};
GWScrollBar.prototype = new GWScrollerClass();
Object.registerClass("GWScrollBar", GWScrollBar);
GWScrollBar.prototype.init = function () {
this.face = ((this.face == undefined) ? 13947080 : (this.face));
this.highlight = ((this.highlight == undefined) ? 16777215 : (this.highlight));
this.highlight3D = ((this.highlight3D == undefined) ? 13947080 : (this.highlight3D));
this.shadow = ((this.shadow == undefined) ? 8421504 : (this.shadow));
this.darkshadow = ((this.darkshadow == undefined) ? 4210752 : (this.darkshadow));
this.face_down = ((this.face_down == undefined) ? 13947080 : (this.face_down));
this.highlight_down = ((this.highlight_down == undefined) ? 13947080 : (this.highlight_down));
this.highlight3D_down = ((this.highlight3D_down == undefined) ? 8421504 : (this.highlight3D_down));
this.shadow_down = ((this.shadow_down == undefined) ? 13947080 : (this.shadow_down));
this.darkshadow_down = ((this.darkshadow_down == undefined) ? 8421504 : (this.darkshadow_down));
this.face_off = ((this.face_off == undefined) ? 13947080 : (this.face_off));
this.highlight_off = ((this.highlight_off == undefined) ? 16777215 : (this.highlight_off));
this.highlight3D_off = ((this.highlight3D_off == undefined) ? 13947080 : (this.highlight3D_off));
this.shadow_off = ((this.shadow_off == undefined) ? 8421504 : (this.shadow_off));
this.darkshadow_off = ((this.darkshadow_off == undefined) ? 4210752 : (this.darkshadow_off));
this.arrow_off = ((this.arrow_off == undefined) ? 8421504 : (this.arrow_off));
this.scrollbar_mc.thumb_mc.base_mc.face = this.face;
this.scrollbar_mc.thumb_mc.base_mc.highlight = this.highlight;
this.scrollbar_mc.thumb_mc.base_mc.highlight3D = this.highlight3D;
this.scrollbar_mc.thumb_mc.base_mc.shadow = this.shadow;
this.scrollbar_mc.thumb_mc.base_mc.darkshadow = this.darkshadow;
this.scrollbar_mc.bot_mc.up_mc.base_mc.face = this.face;
this.scrollbar_mc.bot_mc.up_mc.base_mc.highlight = this.highlight;
this.scrollbar_mc.bot_mc.up_mc.base_mc.highlight3D = this.highlight3D;
this.scrollbar_mc.bot_mc.up_mc.base_mc.shadow = this.shadow;
this.scrollbar_mc.bot_mc.up_mc.base_mc.darkshadow = this.darkshadow;
this.scrollbar_mc.top_mc.up_mc.base_mc.face = this.face;
this.scrollbar_mc.top_mc.up_mc.base_mc.highlight = this.highlight;
this.scrollbar_mc.top_mc.up_mc.base_mc.highlight3D = this.highlight3D;
this.scrollbar_mc.top_mc.up_mc.base_mc.shadow = this.shadow;
this.scrollbar_mc.top_mc.up_mc.base_mc.darkshadow = this.darkshadow;
this.scrollbar_mc.bot_mc.down_mc.base_mc.face = this.face_down;
this.scrollbar_mc.bot_mc.down_mc.base_mc.highlight = this.highlight_down;
this.scrollbar_mc.bot_mc.down_mc.base_mc.highlight3D = this.highlight3D_down;
this.scrollbar_mc.bot_mc.down_mc.base_mc.shadow = this.shadow_down;
this.scrollbar_mc.bot_mc.down_mc.base_mc.darkshadow = this.darkshadow_down;
this.scrollbar_mc.top_mc.down_mc.base_mc.face = this.face_down;
this.scrollbar_mc.top_mc.down_mc.base_mc.highlight = this.highlight_down;
this.scrollbar_mc.top_mc.down_mc.base_mc.highlight3D = this.highlight3D_down;
this.scrollbar_mc.top_mc.down_mc.base_mc.shadow = this.shadow_down;
this.scrollbar_mc.top_mc.down_mc.base_mc.darkshadow = this.darkshadow_down;
this.scrollbar_mc.bot_mc.off_mc.base_mc.face = this.face_off;
this.scrollbar_mc.bot_mc.off_mc.base_mc.highlight = this.highlight_off;
this.scrollbar_mc.bot_mc.off_mc.base_mc.highlight3D = this.highlight3D_off;
this.scrollbar_mc.bot_mc.off_mc.base_mc.shadow = this.shadow_off;
this.scrollbar_mc.bot_mc.off_mc.base_mc.darkshadow = this.darkshadow_off;
this.scrollbar_mc.top_mc.off_mc.base_mc.face = this.face_off;
this.scrollbar_mc.top_mc.off_mc.base_mc.highlight = this.highlight_off;
this.scrollbar_mc.top_mc.off_mc.base_mc.highlight3D = this.highlight3D_off;
this.scrollbar_mc.top_mc.off_mc.base_mc.shadow = this.shadow_off;
this.scrollbar_mc.top_mc.off_mc.base_mc.darkshadow = this.darkshadow_off;
this.setColor();
};
GWScrollBar.prototype.setColor = function (o) {
this.face = ((o.face == undefined) ? (this.face) : (o.face));
this.highlight = ((o.highlight == undefined) ? (this.highlight) : (o.highlight));
this.highlight3D = ((o.highlight3D == undefined) ? (this.highlight3D) : (o.highlight3D));
this.shadow = ((o.shadow == undefined) ? (this.shadow) : (o.shadow));
this.darkshadow = ((o.darkshadow == undefined) ? (this.darkshadow) : (o.darkshadow));
this.arrow = ((o.arrow == undefined) ? (this.arrow) : (o.arrow));
this.track = ((o.track == undefined) ? (this.track) : (o.track));
this.face_down = ((o.face_down == undefined) ? (this.face_down) : (o.face_down));
this.highlight_down = ((o.highlight_down == undefined) ? (this.highlight_down) : (o.highlight_down));
this.highlight3D_down = ((o.highlight3D_down == undefined) ? (this.highlight3D_down) : (o.highlight3D_down));
this.shadow_down = ((o.shadow_down == undefined) ? (this.shadow_down) : (o.shadow_down));
this.darkshadow_down = ((o.darkshadow_down == undefined) ? (this.darkshadow_down) : (o.darkshadow_down));
this.arrow_down = ((o.arrow_down == undefined) ? (this.arrow_down) : (o.arrow_down));
this.face_off = ((o.face_off == undefined) ? (this.face_off) : (o.face_off));
this.highlight_off = ((o.highlight_off == undefined) ? (this.highlight_off) : (o.highlight_off));
this.highlight3D_off = ((o.highlight3D_off == undefined) ? (this.highlight3D_off) : (o.highlight3D_off));
this.shadow_off = ((o.shadow_off == undefined) ? (this.shadow_off) : (o.shadow_off));
this.darkshadow_off = ((o.darkshadow_off == undefined) ? (this.darkshadow_off) : (o.darkshadow_off));
this.arrow_off = ((o.arrow_off == undefined) ? (this.arrow_off) : (o.arrow_off));
this.scrollbar_mc.thumb_mc.base_mc.colorObj = (this.scrollbar_mc.bot_mc.up_mc.base_mc.colorObj = (this.scrollbar_mc.top_mc.up_mc.base_mc.colorObj = {face:this.face, highlight:this.highlight, highlight3D:this.highlight3D, shadow:this.shadow, darkshadow:this.darkshadow}));
this.scrollbar_mc.top_mc.down_mc.base_mc.colorObj = (this.scrollbar_mc.bot_mc.down_mc.base_mc.colorObj = {face:this.face_down, highlight:this.highlight_down, highlight3D:this.highlight3D_down, shadow:this.shadow_down, darkshadow:this.darkshadow_down});
this.scrollbar_mc.bot_mc.off_mc.base_mc.colorObj = (this.scrollbar_mc.top_mc.off_mc.base_mc.colorObj = {face:this.face_off, highlight:this.highlight_off, highlight3D:this.highlight3D_off, shadow:this.shadow_off, darkshadow:this.darkshadow_off});
this.scrollbar_mc.thumb_mc.base_mc.setColor();
this.scrollbar_mc.bot_mc.up_mc.base_mc.setColor();
this.scrollbar_mc.top_mc.up_mc.base_mc.setColor();
this.scrollbar_mc.bot_mc.down_mc.base_mc.setColor();
this.scrollbar_mc.top_mc.down_mc.base_mc.setColor();
this.scrollbar_mc.top_mc.off_mc.base_mc.setColor();
this.scrollbar_mc.bot_mc.off_mc.base_mc.setColor();
this.setClipColor(this.scrollbar_mc.bot_mc.up_mc.arrow_mc, this.arrow);
this.setClipColor(this.scrollbar_mc.top_mc.up_mc.arrow_mc, this.arrow);
this.setClipColor(this.scrollbar_mc.bot_mc.down_mc.arrow_mc, this.arrow_down);
this.setClipColor(this.scrollbar_mc.top_mc.down_mc.arrow_mc, this.arrow_down);
this.setClipColor(this.scrollbar_mc.bot_mc.off_mc.arrow_mc, this.arrow_off);
this.setClipColor(this.scrollbar_mc.top_mc.off_mc.arrow_mc, this.arrow_off);
if (this.track != undefined) {
this.setClipColor(this.scrollbar_mc.track_mc, this.track);
}
};
GWScrollBar.prototype.setClipColor = function (m, n) {
var _local1 = new Color(m);
_local1.setRGB(n);
};
#endinitclip
Instance of Symbol 84 MovieClip [GWScrollerClass] in Symbol 85 MovieClip [GWScrollBar] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
scrollTarget = "";
}
Symbol 86 MovieClip Frame 1
stop();
Instance of Symbol 85 MovieClip [GWScrollBar] in Symbol 86 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
face_down = 13947080 /* 0xD4D0C8 */;
highlight_down = 13947080 /* 0xD4D0C8 */;
highlight3D_down = 8421504 /* 0x808080 */;
shadow_down = 13947080 /* 0xD4D0C8 */;
darkshadow_down = 8421504 /* 0x808080 */;
face_off = 13947080 /* 0xD4D0C8 */;
highlight_off = 16777215 /* 0xFFFFFF */;
highlight3D_off = 13947080 /* 0xD4D0C8 */;
shadow_off = 8421504 /* 0x808080 */;
darkshadow_off = 4210752 /* 0x404040 */;
arrow = 0;
arrow_down = 0;
arrow_off = 8421504 /* 0x808080 */;
track = 15527148 /* 0xECECEC */;
}
Symbol 87 MovieClip [GWLabelClass] Frame 1
#initclip 5
function GWLabelClass() {
super.init(GWLabelClass);
}
GWLabelClass.prototype = new GWBaseClass();
Object.registerClass("GWLabelClass", GWLabelClass);
GWLabelClass.prototype.init = function () {
this.padx = this.padx || 0;
this.pady = this.pady || 0;
this.buffer = this.buffer || 2;
this.fontcolor_off = ((this.fontcolor_off == undefined) ? 8421504 : (this.fontcolor_off));
this.fontcolor_shadow = ((this.fontcolor_shadow == undefined) ? 16777215 : (this.fontcolor_shadow));
};
GWLabelClass.prototype.alignLabel = function (a) {
if (a == "right") {
this.label_mc._x = (this.mask_mc._width - this.label_mc._width) - this.padx;
} else if (a == "center") {
this.label_mc._x = Math.max(0, Math.round((this.width - this.label_mc._width) / 2));
} else {
this.label_mc._x = this.padx;
}
this.label_mc._y = Math.max(0, Math.round((this.height - this.label_mc._height) / 2));
this.label_mc.x = this.label_mc._x;
this.label_mc.y = this.label_mc._y;
};
GWLabelClass.prototype.gethtmlLabel = function () {
return(this.label_mc.label_txt.htmlText);
};
GWLabelClass.prototype.getLabel = function () {
return(this.label_mc.label_txt.text);
};
GWLabelClass.prototype.setLabelFormat = function (f) {
this.myFormat = f;
this.setLabel(this.gethtmlLabel());
};
GWLabelClass.prototype.setLabel = function (t) {
this.width = this.width || (this._width);
this.height = this.height || (this._height);
if (!this.label_mc) {
this.createEmptyMovieClip("label_mc", 500);
this.drawBox("mask_mc", 501, 0, 0, this.width - this.padx, this.height - this.pady, 0, 0);
}
if (!this.myFormat) {
this.myFormat = new TextFormat();
}
this.label_mc.createTextField("label_txt", 2, 0, 0, this.width, this.height);
if (this.useEmbedFonts) {
this.label_mc.label_txt.embedFonts = true;
}
this.label_mc.label_txt.selectable = false;
this.label_mc.label_txt.multiline = true;
this.label_mc.label_txt.html = true;
this.label_mc.label_txt.autoSize = "left";
this.label_mc.label_txt.htmlText = t;
this.myFormat.font = ((this.font == undefined) ? "Tahoma" : (this.font));
this.myFormat.size = this.fontsize || 11;
this.myFormat.color = this.fontcolor;
this.label_mc.label_txt.setTextFormat(this.myFormat);
if (this.fitLabel) {
this.mask_mc._width = (this.width = Math.max(this.width, ((((this.labelpos == "left") || (this.labelpos == "right")) ? (this.icon_mc._width) : 0) + this.label_mc._width) + (this.padx * 2)));
this.mask_mc._height = (this.height = Math.max(this.height, ((((this.labelpos == "top") || (this.labelpos == "bottom")) ? (this.icon_mc._height) : 0) + this.label_mc._height) + (this.pady * 2)));
this.setSize(this.width, this.height);
}
this.alignLabel(this.align);
if (this.labelpos != undefined) {
this.setLabelPlacement(this.labelpos);
}
this.setMask(this.mask_mc);
};
GWLabelClass.prototype.setLabelEnabled = function (f) {
if (f) {
this.setLabelColor(this.fontcolor);
this.label_mc.shadow_txt.text = "";
} else {
this.setLabelColor(this.fontcolor_off);
if (this.fontcolor_shadow != undefined) {
this.label_mc.createTextField("shadow_txt", 1, 1, 1, this.width, this.height);
this.label_mc.shadow_txt.autoSize = "left";
this.label_mc.shadow_txt.selectable = false;
this.label_mc.shadow_txt.html = true;
this.label_mc.shadow_txt.htmlText = this.getLabel();
this.myFormat.color = this.fontcolor_shadow;
this.label_mc.shadow_txt.setTextFormat(this.myFormat);
}
}
};
GWLabelClass.prototype.setLabelColor = function (c) {
this.myFormat.color = c || 0;
this.label_mc.label_txt.setTextFormat(this.myFormat);
};
GWLabelClass.prototype.setLabelPlacement = function (pos) {
this.labelpos = pos;
this.valign = "center";
this.align = "center";
if (pos == "left") {
this.align = "right";
this.width = Math.max(this.width, (this.label_mc._width + this.icon_mc._width) + this.buffer);
if (this.fitLabel) {
this.setSize(this.width, this.height);
}
this.label_mc._x = (this.icon_mc._x - this.label_mc._width) - this.buffer;
this.icon_mc._y = Math.round((this.height - this.icon_mc._height) / 2);
} else if (pos == "right") {
this.align = "left";
this.width = Math.max(this.width, (this.label_mc._width + this.icon_mc._width) + this.buffer);
if (this.fitLabel) {
this.setSize(this.width, this.height);
}
this.label_mc._x = (this.icon_mc._x + this.icon_mc._width) + this.buffer;
this.icon_mc._y = Math.round((this.height - this.icon_mc._height) / 2);
} else if (pos == "top") {
this.valign = "bottom";
this.width = Math.max(this.width, this._width);
this.height = Math.max(this.height, (this.label_mc._height + this.icon_mc._height) + this.buffer);
if (this.fitLabel) {
this.setSize(this.width, this.height);
}
this.label_mc._x = Math.max(0, Math.round((this.width - this.label_mc._width) / 2));
this.label_mc._y = (this.icon_mc._y - this.label_mc._height) - this.buffer;
} else if (pos == "bottom") {
this.valign = "top";
this.width = Math.max(this.width, this._width);
this.height = Math.max(this.height, (this.label_mc._height + this.icon_mc._height) + this.buffer);
if (this.fitLabel) {
this.setSize(this.width, this.height);
}
this.label_mc._x = Math.max(0, Math.round((this.width - this.label_mc._width) / 2));
this.label_mc._y = (this.icon_mc._y + this.icon_mc._height) + this.buffer;
}
};
#endinitclip
Instance of Symbol 62 MovieClip [GWBaseClass] "base" in Symbol 87 MovieClip [GWLabelClass] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 88 MovieClip [GWListItemClass] Frame 1
#initclip 7
_global.GWListItemClass = function (o) {
super.init();
this.init();
};
GWListItemClass.prototype = new GWLabelClass();
Object.registerClass("GWListItemClass", GWListItemClass);
GWListItemClass.prototype.init = function () {
this.basecolor_on = ((this.basecolor_on == undefined) ? 664682 : (this.basecolor_on));
this.basecolor_off = ((this.basecolor_off == undefined) ? 16777215 : (this.basecolor_off));
this.basecolor_over = ((this.basecolor_over == undefined) ? 16777215 : (this.basecolor_over));
this.fontcolor_on = ((this.fontcolor_on == undefined) ? 16777215 : (this.fontcolor_on));
this.fontcolor_off = ((this.fontcolor_off == undefined) ? 0 : (this.fontcolor_off));
this.fontcolor_over = ((this.fontcolor_over == undefined) ? 0 : (this.fontcolor_over));
this.width = Math.round(this.width || (this._width));
this.height = Math.round(this.height || (this._height));
this._xscale = (this._yscale = 100);
this.drawBox("base_mc", 2, 0, 0, 1, 1, this.basecolor_off, 100);
this.base_mc._alpha = ((this.alpha == undefined) ? 100 : (this.alpha));
this.setSize(this.width, this.height);
this.setLabel(this.label);
this.setIcon(this.icon);
this.pady = 0;
this.useHandCursor = false;
};
GWListItemClass.prototype.setData = function (d) {
this.data = d;
};
GWListItemClass.prototype.getData = function () {
return(this.data);
};
GWListItemClass.prototype.setIcon = function (i) {
if (i.length) {
this.attachMovie(i, "icon_mc", 3, {_x:4});
if (this.icon_mc._height > this.height) {
this.sizeMe(this.icon_mc._width * (this.height / this.icon_mc._height), this.height, this.icon_mc);
}
this.setLabelPlacement("right");
}
};
GWListItemClass.prototype.setSize = function (w, h) {
if (!this.label_mc) {
this.createEmptyMovieClip("label_mc", 500);
this.drawBox("mask_mc", 501, 0, 0, this.width - this.padx, this.height - this.pady, 0, 0);
}
this.width = (this.base_mc._width = w);
this.height = (this.base_mc._height = h);
this.mask_mc._width = w - (this.padx * 3);
this.mask_mc._height = h - (this.pady * 2);
if (this.labelAlign == "center") {
this.label_mc._x = Math.round((this.width - this.label_mc._width) / 2);
}
};
GWListItemClass.prototype.setBaseColor = function (c) {
var _local2 = new Color(this.base_mc);
_local2.setRGB(c);
};
#endinitclip
Instance of Symbol 87 MovieClip [GWLabelClass] in Symbol 88 MovieClip [GWListItemClass] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Symbol 89 MovieClip [GWListBox] Frame 1
#initclip 8
_global.GWListBox = function () {
this.pad = this.pad || 2;
this.sbSymbol = "GWScrollBar";
this.sbprops = {};
for (var _local3 in this) {
if (_local3.indexOf("sb_") != -1) {
this.sbprops[_local3.substr(3)] = this[_local3];
}
}
super.init();
};
GWListBox.prototype = new GWListBoxClass();
Object.registerClass("GWListBox", GWListBox);
#endinitclip
Instance of Symbol 63 MovieClip [GWListBoxClass] in Symbol 89 MovieClip [GWListBox] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Instance of Symbol 88 MovieClip [GWListItemClass] "item_mc" in Symbol 89 MovieClip [GWListBox] Frame 1
//component parameters
onClipEvent (construct) {
}
Instance of Symbol 69 MovieClip [GWPanel] "frame_mc" in Symbol 89 MovieClip [GWListBox] Frame 1
//component parameters
onClipEvent (construct) {
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
}
Symbol 90 MovieClip Frame 1
stop();
Instance of Symbol 89 MovieClip [GWListBox] in Symbol 90 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
selectMultiple = false;
font = "Tahoma";
fontsize = 11;
rowHeight = 18;
checkFocus = false;
fontcolor_on = 16777215 /* 0xFFFFFF */;
fontcolor_off = 0;
fontcolor_out = 0;
itemcolor_on = 664682 /* 0x0A246A */;
itemcolor_off = 16777215 /* 0xFFFFFF */;
itemcolor_out = 14078926 /* 0xD6D3CE */;
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
sb_face = 13947080 /* 0xD4D0C8 */;
sb_highlight = 16777215 /* 0xFFFFFF */;
sb_highlight3D = 13947080 /* 0xD4D0C8 */;
sb_shadow = 8421504 /* 0x808080 */;
sb_darkshadow = 4210752 /* 0x404040 */;
sb_face_down = 13947080 /* 0xD4D0C8 */;
sb_highlight_down = 13947080 /* 0xD4D0C8 */;
sb_highlight3D_down = 8421504 /* 0x808080 */;
sb_shadow_down = 13947080 /* 0xD4D0C8 */;
sb_darkshadow_down = 8421504 /* 0x808080 */;
sb_face_off = 13947080 /* 0xD4D0C8 */;
sb_highlight_off = 16777215 /* 0xFFFFFF */;
sb_highlight3D_off = 13947080 /* 0xD4D0C8 */;
sb_shadow_off = 8421504 /* 0x808080 */;
sb_darkshadow_down = 4210752 /* 0x404040 */;
sb_arrow = 0;
sb_arrow_down = 0;
sb_arrow_off = 8421504 /* 0x808080 */;
sb_track = 15527148 /* 0xECECEC */;
pad = 2;
useEmbedFonts = false;
}
Symbol 91 MovieClip [GWComboBox] Frame 1
#initclip 9
_global.GWComboBox = function () {
this.blank_mc._visible = 0;
this.pad = this.pad || 2;
this.listprops = {};
for (var _local4 in this) {
if (_local4.indexOf("sb_") != -1) {
this.listprops[_local4] = this[_local4];
}
}
this.listSymbol = "GWListBox";
super.init();
this.arrow_mc.up_mc.base_mc.face = this.sb_face;
this.arrow_mc.up_mc.base_mc.highlight = this.sb_highlight;
this.arrow_mc.up_mc.base_mc.highlight3D = this.sb_highlight3D;
this.arrow_mc.up_mc.base_mc.shadow = this.sb_shadow;
this.arrow_mc.up_mc.base_mc.darkshadow = this.sb_darkshadow;
this.arrow_mc.down_mc.base_mc.face = this.sb_face_down;
this.arrow_mc.down_mc.base_mc.highlight = this.sb_highlight_down;
this.arrow_mc.down_mc.base_mc.highlight3D = this.sb_highlight3D_down;
this.arrow_mc.down_mc.base_mc.shadow = this.sb_shadow_down;
this.arrow_mc.down_mc.base_mc.darkshadow = this.sb_darkshadow_down;
this.arrow_mc.off_mc.base_mc.face = this.sb_face_off;
this.arrow_mc.off_mc.base_mc.highlight = this.sb_highlight_off;
this.arrow_mc.off_mc.base_mc.highlight3D = this.sb_highlight3D_off;
this.arrow_mc.off_mc.base_mc.shadow = this.sb_shadow_off;
this.arrow_mc.off_mc.base_mc.darkshadow = this.sb_darkshadow_off;
var _local3 = new Color(this.arrow_mc.up_mc.arrow_mc);
_local3.setRGB(this.sb_arrow);
_local3 = new Color(this.arrow_mc.down_mc.arrow_mc);
_local3.setRGB(this.sb_arrow_down);
_local3 = new Color(this.arrow_mc.off_mc.arrow_mc);
_local3.setRGB(this.sb_arrow_off);
};
GWComboBox.prototype = new GWComboBoxClass();
Object.registerClass("GWComboBox", GWComboBox);
#endinitclip
Instance of Symbol 63 MovieClip [GWListBoxClass] in Symbol 91 MovieClip [GWComboBox] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Instance of Symbol 64 MovieClip [GWComboBoxClass] in Symbol 91 MovieClip [GWComboBox] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Instance of Symbol 69 MovieClip [GWPanel] "box_mc" in Symbol 91 MovieClip [GWComboBox] Frame 1
//component parameters
onClipEvent (construct) {
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
}