Frame 1
stopAllSounds();
bar.setLoadTarget(_root);
Instance of Symbol 42 MovieClip [FProgressBarSymbol] "bar" in Frame 1
//component parameters
onClipEvent (initialize) {
displayBar = true;
kBTally = true;
changeHandler = "";
}
Frame 2
mysound = new Sound(this);
mysound.attachSound("m\u00FCzik");
mysound.start(0, 50);
stop();
start.onRelease = function () {
gotoAndStop ("start");
};
Frame 3
function punched() {
if (rGlove.glove.hitTest(face._x, face._y, true)) {
face.gotoAndPlay("faceHit");
health._xscale = health._xscale - life;
if (health._xscale < life) {
track.stop();
_root.gotoAndStop("end");
}
if (speed == -10) {
speed = 10;
} else {
speed = -10;
}
}
if (rGlove2.glove.hitTest(face._x, face._y, true)) {
face.gotoAndPlay("faceHit");
health._xscale = health._xscale - life;
if (health._xscale < life) {
track.stop();
_root.gotoAndStop("end");
}
if (speed == -10) {
speed = 10;
} else {
speed = -10;
}
}
}
track = new Sound();
clicked = "yes";
toggle.onRelease = function () {
if (clicked == "no") {
track.attachSound("funk");
track.start(0, 20);
clicked = "yes";
trace(clicked);
} else if (clicked == "yes") {
track.stop();
clicked = "no";
trace(clicked);
}
};
swing = new Object();
Key.addListener(swing);
speed = 10;
life = 1.5;
swing.onKeyDown = function () {
if (Key.isDown(39)) {
rGlove.gotoAndPlay("hit");
}
if (Key.isDown(37)) {
rGlove2.gotoAndPlay("hit");
}
};
checker.onEnterFrame = function () {
punched();
if ((face._x + 23) > 650) {
speed = -10;
} else if ((face._x + 23) < 150) {
speed = 10;
}
face._x = face._x + speed;
};
stop();
Frame 7
stop();
health._visible = false;
fight.onRelease = function () {
track.stop();
gotoAndStop ("start");
};
Symbol 5 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 6 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 21 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(face_mc, "face");
Symbol 26 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 30 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(trackLeftCap, "scrollTrack");
Symbol 32 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(trackMiddle, "scrollTrack");
Symbol 34 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(track, "scrollTrack");
Symbol 39 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 39 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 42 MovieClip [FProgressBarSymbol] Frame 1
#initclip 3
function ProgressBarClass() {
var _local1 = this;
_local1.init();
if (_local1.displayBar == undefined) {
_local1.displayBar = true;
_local1.kBTally = true;
}
_local1.maxV = 100;
_local1.minV = 0;
_local1.value = 0;
_local1.oldValue = 0;
_local1.width = _local1._xscale;
_local1._xscale = (_local1._yscale = 100);
_local1.boundingBox_mc._visible = false;
_local1.setChangeHandler(_local1.changeHandler);
if (_local1.displayBar) {
_local1.attachMovie("Track", "track", 0);
}
_local1.setDisplayText(_local1.kBTally);
_local1.setSize(_local1.width);
}
Object.registerClass("FProgressBarSymbol", ProgressBarClass);
ProgressBarClass.prototype = new FUIComponentClass();
ProgressBarClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = w;
_local1.width = _local2;
_local1.height = h;
_local1.stretchToSize(_local2, _local1.track.leftTrack, _local1.track.midTrack, _local1.track.rightTrack);
_local1.KBText._x = _local1.track._x;
_local1.KBText._y = (_local1.track._y + _local1.track._height) + 0;
_local1.KBText.setSize(_local2);
_local1.renderBar();
};
ProgressBarClass.prototype.setLoadTarget = function (mcRef) {
var _local1 = this;
_local1.loadTarget = mcRef;
_local1.createEmptyMovieClip("loadPoller", 10);
_local1.loadPoller.onEnterFrame = function () {
var _local1 = this;
var _local2 = _local1._parent.loadTarget;
_local1._parent.setProgress(_local2.getBytesLoaded(), _local2.getBytesTotal());
if ((_local1._parent.getPercentComplete() >= 100) && (_local1._parent.getValue() > 4)) {
delete _local1.onEnterFrame;
}
};
};
ProgressBarClass.prototype.getLoadTarget = function () {
return(this.loadTarget);
};
ProgressBarClass.prototype.setValue = function (v) {
this.value = v;
this.invalidate("renderBar");
};
ProgressBarClass.prototype.getValue = function () {
return(this.value);
};
ProgressBarClass.prototype.setMinimum = function (m) {
this.minV = m;
};
ProgressBarClass.prototype.getMinimum = function () {
return(this.minV);
};
ProgressBarClass.prototype.setMaximum = function (m) {
this.maxV = m;
this.invalidate("renderBar");
};
ProgressBarClass.prototype.getMaximum = function () {
return(this.maxV);
};
ProgressBarClass.prototype.setDisplayText = function (tOrF) {
var _local1 = this;
if (tOrF) {
_local1.KBText = _local1.attachMovie("FLabelSymbol", "KBT", 4, {hostComponent:_local1});
_local1.setStyleProperty("textAlign", "center");
} else {
_local1.KBText.removeMovieClip();
_local1.KBText = undefined;
}
};
ProgressBarClass.prototype.setDisplayGraphics = function (tOrF) {
var _local1 = this;
_local1.displayBar = tOrF;
if (!tOrF) {
_local1.growBar.removeMovieClip();
_local1.growBar = undefined;
_local1.track.removeMovieClip();
} else {
_local1.attachMovie("Track", "track", 0);
_local1.setSize(_local1.width);
}
};
ProgressBarClass.prototype.getPercentComplete = function () {
var _local1 = this;
return(Math.round(((_local1.value - _local1.minV) / _local1.maxV) * 100));
};
ProgressBarClass.prototype.setPercentComplete = function (p) {
var _local1 = this;
_local1.value = ((_local1.maxV * p) / 100) + _local1.minV;
_local1.invalidate("renderBar");
};
ProgressBarClass.prototype.setProgress = function (v, t) {
var _local1 = this;
_local1.value = v;
_local1.maxV = t;
_local1.invalidate("renderBar");
};
ProgressBarClass.prototype.stretchToSize = function (w, leftCap, mid, rightCap) {
var _local1 = mid;
var _local2 = leftCap;
var _local3 = Math.max(0, (w - _local2._width) - rightCap._width);
_local1._width = _local3;
_local1._x = _local2._x + _local2._width;
rightCap._x = _local1._x + _local1._width;
};
ProgressBarClass.prototype.renderBar = function () {
var _local1 = this;
if ((_local1.maxV == 0) || (_local1.value == 0)) {
_local1.growBar.removeMovieClip();
} else {
_local1.value = Math.min(_local1.maxV, _local1.value);
if (_local1.value != _local1.oldValue) {
_local1.executeCallBack();
}
if ((_local1.growBar == undefined) && (_local1.displayBar)) {
_local1.growBar = _local1.attachMovie("GrowBar", "gBar", 2);
}
var _local2 = (_local1.getPercentComplete() * (_local1.width - 2)) / 100;
_local1.stretchToSize(_local2, _local1.growBar.leftBar, _local1.growBar.midBar, _local1.growBar.rightBar);
_local1.oldValue = _local1.value;
_local1.KBText.setLabel(((Math.round(_local1.getValue() / 1024) + " / ") + Math.round(_local1.maxV / 1024)) + " KB");
}
};
#endinitclip
Symbol 49 Button
on (release) {
getURL ("http://www.laughnetwork.com");
}
Symbol 100 Button
on (press) {
startDrag (this);
dragging = true;
}
on (release, releaseOutside) {
stopDrag();
dragging = false;
}
Symbol 204 MovieClip Frame 7
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
Symbol 223 Button
on (release) {
gotoAndPlay (1);
}