Frame 2
if (_framesloaded < _totalframes) {
gotoAndPlay(_currentframe - 1);
}
Frame 3
timeOut = getTimer() + 5000;
this.loadVariables("http://www.miniclip.com/php/geoIP.php", "GET");
Frame 5
if ((location == undefined) && (getTimer() < timeOut)) {
gotoAndPlay(_currentframe - 1);
} else {
if (location == undefined) {
location = "US";
}
trace("location: " + location);
}
Frame 6
function postData() {
if (activeSearch == "p") {
var _local1 = pURL + txtSearch;
trace("Query: " + _local1);
getURL (_local1);
} else if (activeSearch == "a") {
var _local1 = aURL + txtSearch;
trace("Query: " + _local1);
getURL (_local1);
}
}
if (location == "UK") {
pURL = "http://miniclip.pricegrabber.co.uk/search.php?topcat_search=1&Search=Search&form_keyword=";
aURL = "http://www.miniclip.com/toolbar/search_askjeeves.php?country=UK&q=";
} else if (location == "US") {
pURL = "http://miniclip.pricegrabber.com/search.php?topcat_search=1&Search=Search&form_keyword=";
aURL = "http://www.miniclip.com/toolbar/search_askjeeves.php?country=US&q=";
} else {
aURL = "http://www.miniclip.com/toolbar/search_askjeeves.php?country=US&q=";
rdPriceGrabber._visible = false;
}
activeSearch = "a";
if (q != undefined) {
txtSearch = q;
}
stop();
Instance of Symbol 4 MovieClip in Frame 6
onClipEvent (mouseDown) {
}
onClipEvent (keyDown) {
if (Key.isDown(13)) {
_parent.postData();
}
}
Instance of Symbol 27 MovieClip [GWRadioButtonLabelXP] "rdAskJeeves" in Frame 6
//component parameters
onClipEvent (construct) {
groupName = "radioGroup";
data = "";
selected = true;
label = "The Web";
labelpos = "right";
buffer = 2;
font = "Verdana";
fontcolor = 16777215 /* 0xFFFFFF */;
fontcolor_off = 8421504 /* 0x808080 */;
fontcolor_shadow = 16777215 /* 0xFFFFFF */;
fontsize = 10;
useEmbedFonts = false;
}
on (release) {
_parent.activeSearch = "a";
_parent.mcBrand.gotoAndStop(1);
}
Instance of Symbol 27 MovieClip [GWRadioButtonLabelXP] "rdPriceGrabber" in Frame 6
//component parameters
onClipEvent (construct) {
groupName = "radioGroup";
data = "";
selected = false;
label = "Products";
labelpos = "right";
buffer = 2;
font = "Verdana";
fontcolor = 16777215 /* 0xFFFFFF */;
fontcolor_off = 8421504 /* 0x808080 */;
fontcolor_shadow = 16777215 /* 0xFFFFFF */;
fontsize = 10;
useEmbedFonts = false;
}
on (release) {
_parent.activeSearch = "p";
_parent.mcBrand.gotoAndStop(2);
}
Instance of Symbol 107 MovieClip [GWButtonXPBlue] in Frame 6
//component parameters
onClipEvent (construct) {
icon = "";
label = "Search";
align = "center";
padx = 3;
fitLabel = true;
font = "Verdana";
fontsize = 10;
fontcolor = 0;
fontcolor_over = 0;
fontcolor_down = 0;
disabledColor = 11579568 /* 0xB0B0B0 */;
disabledShadow = 16777215 /* 0xFFFFFF */;
isDraggable = false;
enabled = true;
isToggleMode = false;
data = "";
groupName = "";
allOff = false;
useEmbedFonts = false;
}
on (release, releaseOutside) {
_parent.postData();
}
Symbol 9 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 12 MovieClip [GWRadioButtonClass] Frame 1
#initclip 4
_global.GWRadioButtonClass = function () {
super.init(GWRadioButtonClass);
};
GWRadioButtonClass.prototype = new GWBaseClass();
Object.registerClass("GWRadioButtonClass", GWRadioButtonClass);
GWRadioButtonClass.prototype.init = function () {
this.useHandCursor = false;
this._focusrect = false;
this.width = this.width || (Math.round(this._width));
this.height = this.height || (Math.round(this._height));
this._xscale = (this._yscale = 100);
this.buffer = this.buffer || 2;
this.drawBox("hit_mc", 1, 0, 0, 1, 1, 0, 0);
this.setSize(this.width, this.height);
this.setGroupName(this.groupName);
this.setState(this.selected);
this.onRollOut = function () {
if (this.getEnabled()) {
for (var _local2 in this.skin_mc) {
this.skin_mc[_local2]._visible = 0;
}
if (this.selected) {
this.skin_mc.on_mc._visible = 1;
} else {
this.skin_mc.out_mc._visible = 1;
}
}
};
this.onRollOver = function () {
if ((this.getEnabled() && (this.skin_mc.over_out_mc)) && (this.skin_mc.over_on_mc)) {
for (var _local2 in this.skin_mc) {
this.skin_mc[_local2]._visible = 0;
}
if (this.selected) {
this.skin_mc.over_on_mc._visible = 1;
} else {
this.skin_mc.over_out_mc._visible = 1;
}
}
};
this.onDragOver = (this.onPress = function () {
if (this.getEnabled()) {
for (var _local2 in this.skin_mc) {
this.skin_mc[_local2]._visible = 0;
}
if (this.selected) {
this.skin_mc.offon_mc._visible = 1;
} else {
this.skin_mc.off_mc._visible = 1;
}
}
});
this.onRelease = function () {
if (this.getEnabled()) {
this.setState(true);
}
};
this.onDragOut = (this.onReleaseOutside = function () {
if (this.getEnabled()) {
this.setState(this.getState());
}
});
this.onSetFocus = function () {
Key.addListener(this);
};
this.onKillFocus = function () {
Key.removeListener(this);
};
this.onKeyDown = function () {
if (!this.isKeyPressed) {
if (((Key.getCode() == 32) && (this._parent[this.groupName].getValue() == undefined)) || (((((Key.getCode() == 40) || (Key.getCode() == 38)) || (Key.getCode() == 37)) || (Key.getCode() == 39)) && (this._parent[this.groupName].getSelected() == this))) {
this.isKeyPressed = setInterval(this._doKey, 100, this);
}
}
};
};
GWRadioButtonClass.prototype.getSize = function () {
return({width:this._width, height:this._height});
};
GWRadioButtonClass.prototype.setSize = function (w, h) {
this.hit_mc._width = w;
this.hit_mc._height = h;
this.hit_mc._visible = 0;
this.hitArea = this.hit_mc;
if (this.align == "left") {
this.skin_mc._x = 0;
} else if (this.align == "right") {
this.skin_mc._x = w - this.skin_mc._width;
} else {
this.skin_mc._x = Math.round((w - this.skin_mc._width) / 2);
}
if (this.valign == "top") {
this.skin_mc._y = 0;
} else if (this.valign == "bottom") {
this.skin_mc._y = h - this.skin_mc._height;
} else {
this.skin_mc._y = Math.round((h - this.skin_mc._height) / 2);
}
};
GWRadioButtonClass.prototype.setData = function (d) {
this.data = d;
};
GWRadioButtonClass.prototype.getData = function () {
return(this.data);
};
GWRadioButtonClass.prototype.setState = function (f) {
this.selected = f;
var _local2 = this._parent[this.groupName];
if (f && (_local2.getSelected() != this)) {
Selection.setFocus(this);
_local2.getSelected().setState(false);
_local2.getSelected().onUnselect();
_local2.setSelected(this);
var _local4 = this.getData();
_local2.onChanged(_local4);
this.onSelect(_local4);
}
for (var _local3 in this.skin_mc) {
this.skin_mc[_local3]._visible = 0;
}
this.skin_mc[(this.selected ? "on_mc" : "out_mc")]._visible = 1;
};
GWRadioButtonClass.prototype.getState = function () {
return(this.selected);
};
GWRadioButtonClass.prototype.getGroupName = function () {
return(this.groupName);
};
GWRadioButtonClass.prototype.setGroupName = function (n) {
if (this._parent[n]) {
this._parent[n].removeItem(this);
}
if ((n.length > 0) && (this._parent[n].__proto__ != GWRadioButtonGroupClass.prototype)) {
this._parent[n] = new GWRadioButtonGroupClass();
}
this.groupName = n;
this._parent[n].addItem(this);
};
GWRadioButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
GWRadioButtonClass.prototype.setEnabled = function (f) {
for (var _local2 in this.skin_mc) {
this.skin_mc[_local2]._visible = 0;
}
if (f) {
this.skin_mc[(this.selected ? "on_mc" : "out_mc")]._visible = 1;
this.enabled = 1;
} else {
this.skin_mc[(this.selected ? "offon_mc" : "off_mc")]._visible = 1;
this.enabled = 0;
}
};
GWRadioButtonClass.prototype._doKey = function (o) {
clearInterval(o.isKeyPressed);
delete o.isKeyPressed;
var _local2 = o._parent[o.groupName];
var _local1 = _local2.getIndex(o);
var _local3 = false;
if ((Key.getCode() == 40) || (Key.getCode() == 39)) {
while (!_local3) {
_local1++;
if (_local1 == _local2.items.length) {
_local1 = 0;
}
if (_local2.items[_local1].getEnabled()) {
_local2.items[_local1].setState(true);
_local3 = true;
}
}
} else if ((Key.getCode() == 38) || (Key.getCode() == 37)) {
while (!_local3) {
_local1--;
if (_local1 == -1) {
_local1 = _local2.items.length - 1;
}
if (_local2.items[_local1].getEnabled()) {
_local2.items[_local1].setState(true);
_local3 = true;
}
}
} else if (Key.getCode() == 32) {
if (_local2.items[0].getEnabled()) {
_local2.items[0].setState(true);
}
}
};
_global.GWRadioButtonGroupClass = function () {
this.init();
};
GWRadioButtonGroupClass.prototype.init = function () {
this.items = [];
};
GWRadioButtonGroupClass.prototype.getSelected = function () {
return(this.selectedItem);
};
GWRadioButtonGroupClass.prototype.setSelected = function (i) {
this.selectedItem = i;
};
GWRadioButtonGroupClass.prototype.getValue = function () {
return(this.getSelected().getData());
};
GWRadioButtonGroupClass.prototype.setSize = function (w, h) {
for (var _local2 in this.items) {
this.items[_local2].setSize(w, h);
}
};
GWRadioButtonGroupClass.prototype.setValue = function (d) {
if (d == undefined) {
delete this.selectedItem;
}
for (var _local3 in this.items) {
if (this.items[_local3].getData() == d) {
this.items[_local3].setState(true);
} else {
this.items[_local3].setState(false);
}
}
};
GWRadioButtonGroupClass.prototype.setEnabled = function (f) {
for (var _local2 in this.items) {
this.items[_local2].setEnabled(f);
}
};
GWRadioButtonGroupClass.prototype.addItem = function (o) {
this.items.push(o);
};
GWRadioButtonGroupClass.prototype.removeItem = function (o) {
var _local3 = this.items.length;
var _local2 = 0;
while (_local2 < _local3) {
if (this.items[_local2] == o) {
this.items.splice(_local2, 1);
}
_local2++;
}
};
GWRadioButtonGroupClass.prototype.getIndex = function (i) {
var _local3 = this.items.length;
var _local2 = 0;
while (_local2 < _local3) {
if (this.items[_local2] == i) {
return(_local2);
}
_local2++;
}
return(undefined);
};
#endinitclip
Instance of Symbol 9 MovieClip [GWBaseClass] in Symbol 12 MovieClip [GWRadioButtonClass] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 13 MovieClip [GWLabelClass] Frame 1
#initclip 2
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 9 MovieClip [GWBaseClass] "base" in Symbol 13 MovieClip [GWLabelClass] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 27 MovieClip [GWRadioButtonLabelXP] Frame 1
#initclip 5
_global.GWRadioButtonLabelXP = function () {
super.init();
this.padx = (this.pady = 0);
this.inherit(GWLabelClass);
this.fitLabel = true;
this.icon_mc = this.skin_mc;
this.labelpos = ((this.labelpos == undefined) ? "right" : (this.labelpos));
this.setLabel(this.label);
};
GWRadioButtonLabelXP.prototype = new GWRadioButtonClass();
Object.registerClass("GWRadioButtonLabelXP", GWRadioButtonLabelXP);
GWRadioButtonLabelXP.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.mask_mc._width = (this.width = Math.max(this.width, this.label_mc.label_txt.textWidth + (this.padx * 2)));
this.mask_mc._height = (this.height = Math.max(this.height, this.label_mc.label_txt.textHeight + (this.pady * 2)));
};
GWRadioButtonLabelXP.prototype.setEnabled = function (f) {
super.setEnabled(f);
this.setLabelEnabled(f);
};
#endinitclip
Instance of Symbol 12 MovieClip [GWRadioButtonClass] "RadioButtonClass" in Symbol 27 MovieClip [GWRadioButtonLabelXP] Frame 1
//component parameters
onClipEvent (construct) {
groupName = "radioGroup";
data = "";
selected = false;
valign = "top";
align = "left";
_targetInstanceName = "";
}
Instance of Symbol 13 MovieClip [GWLabelClass] "LabelClass" in Symbol 27 MovieClip [GWRadioButtonLabelXP] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Symbol 28 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 13 MovieClip [GWLabelClass] in Symbol 28 MovieClip [GWListItemClass] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Symbol 29 MovieClip [GWButtonClass] Frame 1
#initclip 3
_global.GWButtonClass = function () {
super.init(GWButtonClass);
};
GWButtonClass.prototype = new GWBaseClass();
Object.registerClass("GWButtonClass", GWButtonClass);
GWButtonClass.prototype.init = function () {
this.classHolder.unloadMovie();
this.CLICKDELAY = 250;
this.enabled = ((this.enabled == undefined) ? true : (this.enabled));
this.disabledColor = ((this.disabledColor == undefined) ? 8421504 : (this.disabledColor));
this.disabledShadow = ((this.disabledShadow == undefined) ? 16777215 : (this.disabledShadow));
this.align = ((this.align == undefined) ? "center" : (this.align));
this.fitLabel = ((this.fitLabel == undefined) ? true : (this.fitLabel));
this.padx = this.padx || 3;
this.clicked = 0;
this.useHandCursor = false;
var _local3 = this._width;
var _local2 = this._height;
this._xscale = (this._yscale = 100);
this.setSize(_local3, _local2);
this.setLabel(this.label, this.icon);
this.setEnabled(this.enabled);
this.setDraggable(this.isDraggable);
this.setGroupName(this.groupName);
};
GWButtonClass.prototype.getGroupName = function () {
return(this.groupName);
};
GWButtonClass.prototype.setGroupName = function (g) {
if ((g == undefined) || (!g.length)) {
return(undefined);
}
this.isToggleMode = true;
this.groupName = g;
if (this._parent[this.groupName]) {
for (var _local2 in this._parent[this.groupName]) {
this._parent[this.groupName][_local2].onReleaseOutside();
}
this._parent[this.groupName].push(this);
} else {
this._parent[this.groupName] = [this];
}
if (!this.allOff) {
this.onPress();
this.onRelease();
}
this.allOff = true;
};
GWButtonClass.prototype.setLabel = function (t, i) {
if (i == undefined) {
i = this.icon;
}
this.label = t;
this.icon = i;
this.attachMovie("GWListItemClass", "label_mc", 1, {icon:i, label:t, font:this.font, fontsize:this.fontsize, fontcolor:this.fontcolor, fontcolor_off:this.disabledColor, fontcolor_shadow:this.disabledShadow, useEmbedFonts:this.useEmbedFonts, width:this.width, height:this.height, alpha:0});
if (this.fitLabel) {
this.label_mc.setSize(Math.max(this.width, (this.label_mc.label_mc._width + (this.label_mc.icon_mc._width || 0)) + (this.padx * 2)), Math.max(this.height, this.label_mc.label_mc._height));
this.setSize(Math.max(this.width, (this.label_mc.label_mc._width + (this.label_mc.icon_mc._width || 0)) + (this.padx * 2)), Math.max(this.height, this.label_mc.label_mc._height));
}
this.alignLabel(this.align);
};
GWButtonClass.prototype.alignLabel = function (a) {
if (a == "center") {
var _local2 = (this.label_mc.icon_mc._x = Math.max(this.padx, Math.round((this.width - ((this.label_mc.icon_mc._width || 0) + this.label_mc.label_mc._width)) / 2)));
} else if (a == "left") {
var _local2 = (this.label_mc.icon_mc._x = this.padx);
} else {
var _local2 = (this.label_mc.icon_mc._x = Math.max(this.padx, ((this.label_mc.mask_mc._width - this.label_mc.label_mc._width) - (this.label_mc.icon_mc._width || 0)) - this.padx));
}
this.label_mc.label_mc._x = (this.label_mc.icon_mc._x || (_local2)) + (this.label_mc.icon_mc._width || 0);
};
GWButtonClass.prototype.gethtmlLabel = function () {
return(this.label_mc.gethtmlLabel());
};
GWButtonClass.prototype.getLabel = function () {
return(this.label_mc.getLabel());
};
GWButtonClass.prototype.getSize = function () {
return({width:this.width, height:this.height});
};
GWButtonClass.prototype.getValue = function () {
this.data = ((this.data == undefined) ? (this.getLabel()) : (this.data));
return(((this.isToggleMode && (this.isToggled)) ? (this.data) : false));
};
GWButtonClass.prototype.setValue = function (v) {
this.data = v;
};
GWButtonClass.prototype.getSelectedValue = function () {
if (!this.isToggleMode) {
return(false);
}
for (var _local2 in this._parent[this.groupName]) {
if (this._parent[this.groupName][_local2].isToggled) {
return(this._parent[this.groupName][_local2].data);
}
}
};
GWButtonClass.prototype.setSelectedValue = function (v) {
for (var _local3 in this._parent[this.groupName]) {
if (this._parent[this.groupName][_local3].data == v) {
this._parent[this.groupName][_local3].isToggled = true;
this._parent[this.groupName][_local3].onPress();
} else {
this._parent[this.groupName][_local3].isToggled = false;
this._parent[this.groupName][_local3].onRollOut();
}
}
};
GWButtonClass.prototype.setEnabled = function (f) {
this.enabled = f;
this.label_mc.setLabelEnabled(f);
if (!f) {
if (this.skin_mc.base_mc.off_mc) {
for (var _local2 in this.skin_mc.base_mc) {
this.skin_mc.base_mc[_local2]._visible = 0;
}
this.skin_mc.base_mc.off_mc._visible = 1;
}
this.label_mc.icon_mc.duplicateMovieClip("icon1_mc", 10);
this.label_mc.icon_mc.duplicateMovieClip("icon2_mc", 11);
this.label_mc.icon1_mc._x = this.label_mc.icon_mc._x + 1;
this.label_mc.icon1_mc._y = this.label_mc.icon_mc._y + 1;
var _local3 = new Color(this.label_mc.icon1_mc);
_local3.setRGB(this.disabledShadow);
_local3 = new Color(this.label_mc.icon2_mc);
_local3.setRGB(this.disabledColor);
} else {
for (var _local2 in this.skin_mc.base_mc) {
this.skin_mc.base_mc[_local2]._visible = 0;
}
this.skin_mc.base_mc.up_mc._visible = 1;
this.label_mc.icon1_mc.unloadMovie();
this.label_mc.icon2_mc.unloadMovie();
}
};
GWButtonClass.prototype.setLabelColor = function (c) {
this.label_mc.setLabelColor(c);
};
GWButtonClass.prototype.setLabelFormat = function (f) {
this.label_mc.setLabelFormat(f);
};
GWButtonClass.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));
for (var _local5 in this.skin_mc.base_mc) {
this.sizeMe(w, h, this.skin_mc.base_mc[_local5]);
}
}
};
GWButtonClass.prototype.doClick = function () {
clearInterval(this._GWButtonClick);
if ((typeof(this.onDblClick) == "function") || (typeof(this.onCtrlDblClick) == "function")) {
if (arguments[0]) {
if (this.CtrlKey) {
this.onCtrlClick();
} else {
this.onClick();
}
} else if ((getTimer() - this.clicked) < this.CLICKDELAY) {
this.clicked = 0;
if (this.CtrlKey) {
this.onCtrlDblClick();
} else {
this.onDblClick();
}
} else {
this.clicked = getTimer();
this._GWButtonClick = setInterval(this, "doClick", this.CLICKDELAY, this);
}
} else if (this.CtrlKey) {
this.onCtrlClick();
} else {
this.onClick();
}
};
GWButtonClass.prototype.onDragOver = (GWButtonClass.prototype.onPress = function () {
if (this.isDraggable) {
this.pressed = getTimer();
this.drag();
this.onStartDrag();
}
if (this.skin_mc.base_mc.down_mc) {
for (var _local2 in this.skin_mc.base_mc) {
this.skin_mc.base_mc[_local2]._visible = 0;
}
this.skin_mc.base_mc.down_mc._visible = 1;
}
this.setLabelColor(this.fontcolor_down);
this.label_mc._x = 1;
this.label_mc._y = 1;
});
GWButtonClass.prototype.onReleaseOutside = function () {
this.drag(-1);
this.onStopDrag();
this.onRollOut();
};
GWButtonClass.prototype.onRelease = function () {
if (this.isDraggable) {
this.drag(-1);
this.onStopDrag();
if (this.enabled && ((getTimer() - this.pressed) < this.CLICKDELAY)) {
this.CtrlKey = Key.isDown(17);
this.doClick();
}
} else if (this.enabled) {
this.CtrlKey = Key.isDown(17);
this.doClick();
}
if (this._parent[this.groupName] && (this.isToggled)) {
return(undefined);
}
if (this.isToggleMode && ((this.isToggled = this.isToggled ^ 1))) {
for (var _local2 in this._parent[this.groupName]) {
if (this._parent[this.groupName][_local2] != this) {
this._parent[this.groupName][_local2].isToggled = 0;
this._parent[this.groupName][_local2].onReleaseOutside();
}
}
this.onSelect(this.getValue());
return(undefined);
}
this.onRollOver();
};
GWButtonClass.prototype.onRollOut = function () {
if (this.isToggleMode && (this.isToggled)) {
return(undefined);
}
for (var _local2 in this.skin_mc.base_mc) {
this.skin_mc.base_mc[_local2]._visible = 0;
}
this.skin_mc.base_mc.up_mc._visible = 1;
if (this.enabled) {
this.setLabelColor(this.fontcolor);
}
this.label_mc._x = (this.label_mc._y = 0);
};
GWButtonClass.prototype.onDragOut = (GWButtonClass.prototype.onRollOver = function () {
if (this.isToggleMode && (this.isToggled)) {
return(undefined);
}
if (this.enabled) {
if (this.skin_mc.base_mc.over_mc) {
for (var _local2 in this.skin_mc.base_mc) {
this.skin_mc.base_mc[_local2]._visible = 0;
}
this.skin_mc.base_mc.over_mc._visible = 1;
}
this.setLabelColor(this.fontcolor_over);
this.label_mc._x = (this.label_mc._y = 0);
}
});
#endinitclip
Instance of Symbol 28 MovieClip [GWListItemClass] in Symbol 29 MovieClip [GWButtonClass] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 107 MovieClip [GWButtonXPBlue] Frame 1
#initclip 6
_global.GWButtonXPBlue = function () {
super.init();
};
GWButtonXPBlue.prototype = new GWButtonClass();
Object.registerClass("GWButtonXPBlue", GWButtonXPBlue);
#endinitclip
Instance of Symbol 29 MovieClip [GWButtonClass] "classHolder" in Symbol 107 MovieClip [GWButtonXPBlue] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Symbol 113 MovieClip Frame 1
stop();