Frame 1
var MochiAd = {showPreloaderAd:function (options) {
var _local1 = this;
var _local2 = options;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
var clip = _local2.clip;
var ad_msec = 11000;
var ad_timeout = _local2.ad_timeout;
delete _local2.ad_timeout;
var fadeout_time = _local2.fadeout_time;
delete _local2.fadeout_time;
if (!MochiAd.load(_local2)) {
} else {
clip.stop();
var mc = clip._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var wh = MochiAd._getRes(_local2);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = w * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = _local2.color;
delete _local2.color;
var bar_background = _local2.background;
delete _local2.background;
var bar_outline = _local2.outline;
delete _local2.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(w - 20, 0);
backing.lineTo(w - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local3 = bar.createEmptyMovieClip("_inside", 2);
_local3.beginFill(bar_color);
_local3.moveTo(0, 0);
_local3.lineTo(w - 20, 0);
_local3.lineTo(w - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(w - 20, 0);
outline.lineTo(w - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
var _local1 = this;
var _local2 = options;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
var clip = _local2.clip;
var ad_msec = 11000;
var ad_timeout = _local2.ad_timeout;
delete _local2.ad_timeout;
var fadeout_time = _local2.fadeout_time;
delete _local2.fadeout_time;
if (!MochiAd.load(_local2)) {
} else {
clip.stop();
var mc = clip._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var wh = MochiAd._getRes(_local2);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = "1.4";
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb) {
cb = parseInt(cb);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = "1.4";
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
if (clip._url.indexOf("http") != 0) {
_local1.no_page = true;
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
return(_local3);
}, _:null};
MochiAd.showPreloaderAd({id:"45e063add3788d85", res:"745x400"});
Frame 2
prosent = "0%";
nedlastet = ("0 of " + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay (6);
}
Frame 3
prosent = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
nedlastet = (((Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000) + " Kb of ") + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb total Loaded.";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
prosent = "100%";
nedlastet = (((Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000) + " Kb of ") + (Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000)) + " Kb total Loaded.";
gotoAndPlay (5);
}
Frame 4
gotoAndPlay (3);
Frame 5
Frame 6
_root.liv = 4;
_root.practice = false;
play();
Frame 40
String.prototype.addCommas = function () {
var _local3 = this.length;
var _local2 = "";
var _local1 = 0;
while (_local1 <= _local3) {
_local2 = this.charAt(_local3 - _local1) + _local2;
if ((((_local1 % 3) == 0) && (_local1 > 0)) && (_local1 < _local3)) {
_local2 = "," + _local2;
}
_local1++;
}
return(_local2);
};
game_so = SharedObject.getLocal("neavePacman");
score = 0;
stop();
Frame 65
stop();
Frame 76
gotoAndPlay (162);
Set(navn1, name);
stop();
Frame 93
stop();
Frame 115
stop();
stop();
Instance of Symbol 160 MovieClip "help" in Frame 115
onClipEvent (enterFrame) {
if (Key.isDown(40) && ((this._y - (this._height / 2)) > -340)) {
this._y = this._y - 9;
}
if (key.isDown(38) && ((this._y + (this._height / 2)) < 750)) {
this._y = this._y + 9;
}
}
Frame 135
stop();
Frame 136
stop();
Frame 161
tellTarget ("/instructions1") {
call("visiblego");
};
_visible = "0";
gotoAndStop (162);
Frame 162
Set(password, "goooo");
stop();
_visible = "1";
Frame 163
stop();
Frame 164
stop();
Frame 165
play2 = 0;
play1 = 0;
stop();
Instance of Symbol 115 MovieClip "ball" in Frame 166
onClipEvent (load) {
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat1)) {
xspeed = xspeed * -1;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat2)) {
xspeed = xspeed * -1;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
}
Instance of Symbol 243 MovieClip "bat1" in Frame 166
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 9;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 373)) {
this._y = this._y + 9;
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 166
onClipEvent (enterFrame) {
if (Key.isDown(65) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 9;
}
if (key.isDown(90) && ((this._y + (this._height / 2)) < 373)) {
this._y = this._y + 9;
}
}
Frame 167
play2 = 0;
play1 = 0;
stop();
Instance of Symbol 115 MovieClip "ball" in Frame 167
onClipEvent (load) {
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat1)) {
xspeed = xspeed * -1;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat2)) {
xspeed = xspeed * -1;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
}
Instance of Symbol 243 MovieClip "bat1" in Frame 167
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 9;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 375.1)) {
this._y = this._y + 9;
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 167
onClipEvent (enterFrame) {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 11);
}
Frame 168
play2 = 0;
play1 = 0;
stop();
Instance of Symbol 115 MovieClip "ball" in Frame 168
onClipEvent (load) {
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat1)) {
xspeed = xspeed * -1;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat2)) {
xspeed = xspeed * -1;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
}
Instance of Symbol 243 MovieClip "bat1" in Frame 168
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 9;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 375.1)) {
this._y = this._y + 9;
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 168
onClipEvent (enterFrame) {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 4);
}
Frame 169
play2 = 0;
play1 = 0;
stop();
Instance of Symbol 115 MovieClip "ball" in Frame 169
onClipEvent (load) {
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat1)) {
xspeed = xspeed * -1;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat2)) {
xspeed = xspeed * -1;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
}
Instance of Symbol 243 MovieClip "bat1" in Frame 169
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 9;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 375.1)) {
this._y = this._y + 9;
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 169
onClipEvent (enterFrame) {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 4);
}
Frame 170
play2 = 0;
play1 = 0;
stop();
Instance of Symbol 115 MovieClip "ball" in Frame 170
onClipEvent (load) {
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat1)) {
xspeed = xspeed * -1;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat2)) {
xspeed = xspeed * -1;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
}
Instance of Symbol 243 MovieClip "bat1" in Frame 170
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 9;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 375.1)) {
this._y = this._y + 9;
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 170
onClipEvent (enterFrame) {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 4);
}
Frame 171
play2 = 0;
play1 = 0;
stop();
Instance of Symbol 115 MovieClip "ball" in Frame 171
onClipEvent (load) {
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1;
if (yspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat1)) {
xspeed = xspeed * -1;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
_parent.ball;
if (hitTest(_parent.bat2)) {
xspeed = xspeed * -1;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
if (xspeed < 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed + 0.5;
}
}
}
Instance of Symbol 243 MovieClip "bat1" in Frame 171
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 9;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 375.1)) {
this._y = this._y + 9;
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 171
onClipEvent (enterFrame) {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 2);
}
Frame 172
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.player2 = "on";
score = 0;
stop();
Instance of Symbol 171 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.liv < 1) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.liv < 2) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.liv < 3) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.liv < 4) {
this._y = -1000;
}
}
Frame 173
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.oldscore = score;
_root.fullscore = score;
play2 = 0;
play1 = 0;
if (play1 == "1") {
gotoAndStop (174);
}
stop();
Instance of Symbol 115 MovieClip "ball" in Frame 173
onClipEvent (load) {
xspeed = random(5) + 7;
yspeed = random(4) + 3;
}
onClipEvent (enterFrame) {
if (key.isDown(77)) {
if (key.isDown(65)) {
if (key.isDown(68)) {
if (key.isDown(83)) {
m = "ok";
}
}
}
}
if (m == "ok") {
_parent.cheatmenu._x = 400;
_parent.cheatmenu._y = 190;
_parent.textenter._x = 400;
_parent.textenter._y = 75;
m = "no";
}
if (of == 1) {
_parent.cheatmenu._x = -235;
_parent.cheatmenu._y = -190;
}
if (_parent.play1 >= 3) {
_parent.gotoAndStop("level 2");
}
if (_parent.play2 >= 1) {
_parent.gotoAndStop("fail");
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
_root.liv = _root.liv - 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
_parent.score = _parent.score + 10;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
_parent.ball;
if (hitTest(_parent.bat1)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
}
_parent.ball;
if (hitTest(_parent.bat2)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
}
level1 = score;
}
Instance of Symbol 243 MovieClip "bat1" in Frame 173
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 9;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 373)) {
this._y = this._y + 9;
}
if (_root.cpu == "ok") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1);
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 173
onClipEvent (enterFrame) {
if (_root.player2 == "on") {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 20);
}
if (_root.player2 == "off") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1E16);
}
}
Frame 174
if (_root.liv < 0) {
gotoAndPlay (207);
}
stop();
Frame 175
gotoAndStop (172);
Frame 176
gotoAndStop (177);
Frame 177
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.player2 = "on";
stop();
Instance of Symbol 171 MovieClip in Frame 177
onClipEvent (enterFrame) {
if (_root.liv < 1) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 177
onClipEvent (enterFrame) {
if (_root.liv < 2) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 177
onClipEvent (enterFrame) {
if (_root.liv < 3) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 177
onClipEvent (enterFrame) {
if (_root.liv < 4) {
this._y = -1000;
}
}
Frame 178
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.oldscore = score;
play2 = 0;
play1 = 0;
if (play1 == "1") {
gotoAndStop (179);
}
stop();
Instance of Symbol 115 MovieClip "ball" in Frame 178
onClipEvent (load) {
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
onClipEvent (enterFrame) {
if (key.isDown(77)) {
if (key.isDown(65)) {
if (key.isDown(68)) {
if (key.isDown(83)) {
m = "ok";
}
}
}
}
if (m == "ok") {
_parent.cheatmenu._x = 400;
_parent.cheatmenu._y = 190;
_parent.textenter._x = 400;
_parent.textenter._y = 75;
m = "no";
}
if (of == 1) {
_parent.cheatmenu._x = -235;
_parent.cheatmenu._y = -190;
}
if (_parent.play1 >= 5) {
_parent.gotoAndPlay("level 3");
}
if (_parent.play2 >= 1) {
_parent.gotoAndStop("level2fail");
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
_root.liv = _root.liv - 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
_parent.score = _parent.score + 10;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
_parent.ball;
if (hitTest(_parent.bat1)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
}
_parent.ball;
if (hitTest(_parent.bat2)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
}
}
Instance of Symbol 243 MovieClip "bat1" in Frame 178
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 9;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 373)) {
this._y = this._y + 9;
}
if (_root.cpu == "ok") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1);
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 178
onClipEvent (enterFrame) {
if (_root.player2 == "on") {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 10);
}
if (_root.player2 == "off") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1E16);
}
}
Frame 179
if (_root.liv < 0) {
gotoAndPlay (207);
}
stop();
Frame 180
gotoAndStop (177);
Frame 181
gotoAndStop (182);
Frame 182
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.player2 = "on";
stop();
Instance of Symbol 171 MovieClip in Frame 182
onClipEvent (enterFrame) {
if (_root.liv < 1) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 182
onClipEvent (enterFrame) {
if (_root.liv < 2) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 182
onClipEvent (enterFrame) {
if (_root.liv < 3) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 182
onClipEvent (enterFrame) {
if (_root.liv < 4) {
this._y = -1000;
}
}
Frame 183
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.oldscore = score;
play2 = 0;
play1 = 0;
if (play1 == "1") {
gotoAndStop (184);
}
stop();
Instance of Symbol 115 MovieClip "ball" in Frame 183
onClipEvent (load) {
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
onClipEvent (enterFrame) {
if (key.isDown(77)) {
if (key.isDown(65)) {
if (key.isDown(68)) {
if (key.isDown(83)) {
m = "ok";
}
}
}
}
if (m == "ok") {
_parent.cheatmenu._x = 400;
_parent.cheatmenu._y = 190;
_parent.textenter._x = 400;
_parent.textenter._y = 75;
m = "no";
}
if (of == 1) {
_parent.cheatmenu._x = -235;
_parent.cheatmenu._y = -190;
}
if (_parent.play1 >= 4) {
_parent.gotoAndPlay("level4");
}
if (_parent.play2 >= 1) {
_parent.gotoAndStop("level3fail");
}
_parent.ball;
if (hitTest(_parent.brikke1)) {
xspeed = xspeed * -1;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
}
}
_parent.ball;
if (hitTest(_parent.brikke2)) {
xspeed = xspeed * -1;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
}
}
_parent.ball;
if (hitTest(_parent.brikke3)) {
xspeed = xspeed * -1;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
}
}
_parent.ball;
if (hitTest(_parent.brikke4)) {
xspeed = xspeed * -1;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
}
}
_parent.ball;
if (hitTest(_parent.brikke5)) {
xspeed = xspeed * -1;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
}
}
_parent.ball;
if (hitTest(_parent.brikke6)) {
xspeed = xspeed * -1;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
}
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
_root.liv = _root.liv - 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
_parent.score = _parent.score + 10;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
_parent.ball;
if (hitTest(_parent.bat1)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
}
_parent.ball;
if (hitTest(_parent.bat2)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
}
}
Instance of Symbol 243 MovieClip "bat1" in Frame 183
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 12;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 373)) {
this._y = this._y + 12;
}
if (_root.cpu == "ok") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1);
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 183
onClipEvent (enterFrame) {
if (_root.player2 == "on") {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 6);
}
if (_root.player2 == "off") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1E16);
}
}
Frame 184
if (_root.liv < 0) {
gotoAndPlay (207);
}
stop();
Frame 185
gotoAndStop (182);
Frame 186
gotoAndStop (187);
Frame 187
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.player2 = "on";
stop();
Instance of Symbol 171 MovieClip in Frame 187
onClipEvent (enterFrame) {
if (_root.liv < 1) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 187
onClipEvent (enterFrame) {
if (_root.liv < 2) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 187
onClipEvent (enterFrame) {
if (_root.liv < 3) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 187
onClipEvent (enterFrame) {
if (_root.liv < 4) {
this._y = -1000;
}
}
Frame 188
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.oldscore = score;
play2 = 0;
play1 = 0;
if (play1 == "1") {
gotoAndStop (189);
}
stop();
Instance of Symbol 115 MovieClip "ball" in Frame 188
onClipEvent (load) {
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
onClipEvent (enterFrame) {
if (key.isDown(77)) {
if (key.isDown(65)) {
if (key.isDown(68)) {
if (key.isDown(83)) {
m = "ok";
}
}
}
}
if (m == "ok") {
_parent.cheatmenu._x = 400;
_parent.cheatmenu._y = 190;
_parent.textenter._x = 400;
_parent.textenter._y = 75;
m = "no";
}
if (of == 1) {
_parent.cheatmenu._x = -235;
_parent.cheatmenu._y = -190;
}
if (_parent.play1 >= 4) {
_parent.gotoAndPlay("level 5");
}
if (_parent.play2 >= 3) {
_parent.gotoAndStop("level4fail");
}
i = 1;
while (i <= 50) {
if (this.hitTest(_parent["brikke" + i])) {
_parent["brikke" + i]._x = -1000;
_parent.score = _parent.score + 5;
xspeed = xspeed * -1;
yspeed = yspeed * 1;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
this._x = this._x + 20;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
this._x = this._x - 20;
}
}
i++;
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
_root.liv = _root.liv - 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
_parent.score = _parent.score + 10;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
_parent.ball;
if (hitTest(_parent.bat1)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
}
_parent.ball;
if (hitTest(_parent.bat2)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
}
}
Instance of Symbol 243 MovieClip "bat1" in Frame 188
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 12;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 373)) {
this._y = this._y + 12;
}
if (_root.cpu == "ok") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1);
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 188
onClipEvent (enterFrame) {
if (_root.player2 == "on") {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 6);
}
if (_root.player2 == "off") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1E16);
}
}
Frame 189
if (_root.liv < 0) {
gotoAndPlay (207);
}
stop();
Frame 190
gotoAndStop (187);
Frame 191
gotoAndStop (192);
Frame 192
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.player2 = "on";
stop();
Instance of Symbol 171 MovieClip in Frame 192
onClipEvent (enterFrame) {
if (_root.liv < 1) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 192
onClipEvent (enterFrame) {
if (_root.liv < 2) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 192
onClipEvent (enterFrame) {
if (_root.liv < 3) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 192
onClipEvent (enterFrame) {
if (_root.liv < 4) {
this._y = -1000;
}
}
Frame 193
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.oldscore = score;
play2 = 0;
play1 = 0;
stop();
Instance of Symbol 162 MovieClip "ball" in Frame 193
onClipEvent (load) {
xspeed = 5;
yspeed = 7;
}
onClipEvent (enterFrame) {
if (key.isDown(77)) {
if (key.isDown(65)) {
if (key.isDown(68)) {
if (key.isDown(83)) {
m = "ok";
}
}
}
}
if (m == "ok") {
_parent.cheatmenu._x = 400;
_parent.cheatmenu._y = 190;
_parent.textenter._x = 400;
_parent.textenter._y = 75;
m = "no";
}
if (of == 1) {
_parent.cheatmenu._x = -235;
_parent.cheatmenu._y = -190;
}
if (_parent.play1 >= 2) {
_parent.gotoAndStop("level 6", 1);
}
if (_parent.play2 >= 1) {
_parent.gotoAndStop("level5fail");
}
_parent.ball;
if (hitTest(_parent.vegg1)) {
xspeed = xspeed * -1;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
this._x = this._x + 11;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
this._x = this._x - 11;
if (yspeed > 0) {
yspeed = yspeed - 0.15;
xspeed = xspeed - 0.5;
this._y = this._y - 5;
} else {
yspeed = yspeed + 0.15;
xspeed = xspeed - 0.5;
this._y = this._y - 5;
}
}
}
_parent.ball;
if (hitTest(_parent.vegg2)) {
xspeed = xspeed * -1;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
this._x = this._x + 11;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
this._x = this._x - 11;
}
}
_parent.ball;
if (hitTest(_parent.vegg3)) {
xspeed = xspeed * -1;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
this._x = this._x + 11;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
this._x = this._x - 11;
}
}
_parent.ball;
if (hitTest(_parent.hull1)) {
xspeed = xspeed * -1;
this._x = 250;
this._y = 55;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
}
}
_parent.ball;
if (hitTest(_parent.hull2)) {
xspeed = xspeed * -1;
this._x = 450;
this._y = 55;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
} else {
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
}
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
_root.liv = _root.liv - 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
_parent.score = _parent.score + 10;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
_parent.ball;
if (hitTest(_parent.bat1)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
}
_parent.ball;
if (hitTest(_parent.bat2)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
}
}
Instance of Symbol 243 MovieClip "bat1" in Frame 193
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 15;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 373)) {
this._y = this._y + 15;
}
if (_root.cpu == "ok") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1);
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 193
onClipEvent (enterFrame) {
if (_root.player2 == "on") {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 4);
}
if (_root.player2 == "off") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1E16);
}
}
Frame 194
if (_root.liv < 0) {
gotoAndPlay (207);
}
stop();
Frame 195
gotoAndStop (192);
Frame 196
gotoAndStop (197);
Frame 197
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.player2 = "on";
stop();
Instance of Symbol 171 MovieClip in Frame 197
onClipEvent (enterFrame) {
if (_root.liv < 1) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 197
onClipEvent (enterFrame) {
if (_root.liv < 2) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 197
onClipEvent (enterFrame) {
if (_root.liv < 3) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 197
onClipEvent (enterFrame) {
if (_root.liv < 4) {
this._y = -1000;
}
}
Frame 198
_root.fullscore = score;
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.oldscore = score;
play2 = 0;
play1 = 0;
stop();
Instance of Symbol 184 MovieClip "ball" in Frame 198
onClipEvent (load) {
xspeed = 7;
yspeed = 5;
}
onClipEvent (enterFrame) {
if (key.isDown(77)) {
if (key.isDown(65)) {
if (key.isDown(68)) {
if (key.isDown(83)) {
m = "ok";
}
}
}
}
if (m == "ok") {
_parent.cheatmenu._x = 400;
_parent.cheatmenu._y = 190;
_parent.textenter._x = 400;
_parent.textenter._y = 75;
m = "no";
}
if (of == 1) {
_parent.cheatmenu._x = -235;
_parent.cheatmenu._y = -190;
}
if (_parent.play1 >= 2) {
_root.fullscore = score;
_parent.gotoAndPlay("level7");
}
if (_parent.play2 >= 1) {
_parent.gotoAndStop("level6fail");
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
_root.liv = _root.liv - 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
_parent.score = _parent.score + 10;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
_parent.ball;
if (hitTest(_parent.bat1)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
}
_parent.ball;
if (hitTest(_parent.bat2)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
}
}
Instance of Symbol 243 MovieClip "bat1" in Frame 198
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 15;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 373)) {
this._y = this._y + 15;
}
if (_root.cpu == "ok") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1);
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 198
onClipEvent (enterFrame) {
if (_root.player2 == "on") {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 5);
}
if (_root.player2 == "off") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1E16);
}
}
Frame 199
if (_root.liv < 0) {
gotoAndPlay (207);
}
stop();
Frame 200
gotoAndStop (197);
Frame 201
gotoAndStop (202);
Frame 202
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.player2 = "on";
stop();
Instance of Symbol 171 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (_root.liv < 1) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (_root.liv < 2) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (_root.liv < 3) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 202
onClipEvent (enterFrame) {
if (_root.liv < 4) {
this._y = -1000;
}
}
Frame 203
if (_root.liv < 0) {
gotoAndPlay (207);
}
_root.oldscore = score;
_root.fullscore = score;
play2 = 0;
play1 = 0;
stop();
Instance of Symbol 115 MovieClip "ball" in Frame 203
onClipEvent (load) {
xspeed = random(6) + 8;
yspeed = random(4) + 4;
}
onClipEvent (enterFrame) {
if (key.isDown(77)) {
if (key.isDown(65)) {
if (key.isDown(68)) {
if (key.isDown(83)) {
m = "ok";
}
}
}
}
if (m == "ok") {
_parent.cheatmenu._x = 400;
_parent.cheatmenu._y = 190;
_parent.textenter._x = 400;
_parent.textenter._y = 75;
m = "no";
}
if (of == 1) {
_parent.cheatmenu._x = -235;
_parent.cheatmenu._y = -190;
}
if (_root.liv < 0) {
_parent.gotoAndPlay("level 7", 1);
}
if (_parent.play1 >= 2) {
_parent.gotoAndPlay("level 7", 1);
}
i = 2;
while (i <= 20) {
if (this.hitTest(_parent["brikkeliv" + i])) {
_root.liv = _root.liv + 1;
_parent["brikkeliv" + i]._x = -1000;
_parent.score = _parent.score + 20;
xspeed = xspeed * -1;
yspeed = yspeed * 1;
if (xspeed > 0) {
yspeed = yspeed - 0.5;
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
this._x = this._x + 20;
} else {
yspeed = yspeed + 0.5;
yspeed = yspeed + 0.5;
xspeed = xspeed - 0.5;
this._x = this._x - 20;
}
}
i++;
}
i = 2;
while (i <= 20) {
if (this.hitTest(_parent["onewaya" + i])) {
if (xspeed > 0) {
xspeed = xspeed * -1;
yspeed = yspeed * 1;
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
}
}
i++;
}
i = 2;
while (i <= 20) {
if (this.hitTest(_parent["onewayb" + i])) {
if (xspeed < 0) {
xspeed = xspeed * -1;
yspeed = yspeed * 1;
yspeed = yspeed - 0.5;
xspeed = xspeed - 0.5;
}
}
i++;
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._x > 748.6) {
_parent.play2 = _parent.play2 + 1;
_root.liv = _root.liv - 1;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if (this._x < 0) {
_parent.play1 = _parent.play1 + 1;
_parent.score = _parent.score + 10;
this._x = 374.3;
this._y = 187.5;
xspeed = random(5) + 6;
yspeed = random(5) + 6;
}
if ((this._y + (this._height / 2)) > 375) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
if ((this._y - (this._height / 2)) < 37) {
yspeed = yspeed * -1.03;
xspeed = xspeed * 1.03;
}
_parent.ball;
if (hitTest(_parent.bat1)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat1._x - (_parent.bat1._xscale / 2);
}
_parent.ball;
if (hitTest(_parent.bat2)) {
yspeed = yspeed * 1.03;
xspeed = xspeed * -1.03;
this._x = _parent.bat2._x + (_parent.bat2._xscale / 2);
}
level1 = score;
}
Instance of Symbol 243 MovieClip "bat1" in Frame 203
onClipEvent (enterFrame) {
if (Key.isDown(38) && ((this._y - (this._height / 2)) > 37)) {
this._y = this._y - 13;
}
if (key.isDown(40) && ((this._y + (this._height / 2)) < 373)) {
this._y = this._y + 13;
}
if (_root.cpu == "ok") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1);
}
}
Instance of Symbol 243 MovieClip "bat2" in Frame 203
onClipEvent (enterFrame) {
if (_root.player2 == "on") {
targ = _parent.ball._y;
this._y = this._y + ((targ - this._y) / 3.5);
}
if (_root.player2 == "off") {
targ = _parent.ball._y;
_parent.bat1._y = _parent.bat1._y + ((targ - _parent.bat1._y) / 1E16);
}
}
Instance of Symbol 171 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (_root.liv < 1) {
this._y = -1000;
} else {
this._y = 16.5;
}
}
Instance of Symbol 171 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (_root.liv < 2) {
this._y = -1000;
} else {
this._y = 16.5;
}
}
Instance of Symbol 171 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (_root.liv < 3) {
this._y = -1000;
} else {
this._y = 16.5;
}
}
Instance of Symbol 171 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (_root.liv < 4) {
this._y = -1000;
} else {
this._y = 16.5;
}
}
Instance of Symbol 171 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (_root.liv < 5) {
this._y = -1000;
} else {
this._y = 16.5;
}
}
Instance of Symbol 171 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (_root.liv < 6) {
this._y = -1000;
} else {
this._y = 16.5;
}
}
Instance of Symbol 171 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (_root.liv < 7) {
this._y = -1000;
} else {
this._y = 16.5;
}
}
Instance of Symbol 171 MovieClip in Frame 203
onClipEvent (enterFrame) {
if (_root.liv < 8) {
this._y = -1000;
} else {
this._y = 16.5;
}
}
Frame 204
if (_root.liv < 0) {
gotoAndPlay (207);
}
stop();
Instance of Symbol 171 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (_root.liv < 1) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (_root.liv < 2) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (_root.liv < 3) {
this._y = -1000;
}
}
Instance of Symbol 171 MovieClip in Frame 204
onClipEvent (enterFrame) {
if (_root.liv < 4) {
this._y = -1000;
}
}
Frame 205
gotoAndStop (202);
Frame 206
gotoAndStop (207);
Frame 207
stop();
if (name_txt.text == undefined) {
}
if (game_so.data.player1Name == undefined) {
game_so.data.player1Name = "";
}
game_so.data.player1scorefind = _root.p1_score;
name_txt.restrict = "A-Z 0-9.\\-";
name_txt.text = "";
Selection.setFocus(name_txt);
stop();
Frame 208
function sendscore(today) {
scoreboard_lv = new LoadVars();
scoreboard_lv.game = "pingpong";
scoreboard_lv.today = today;
if (game_so.data.player1Name.length == 0) {
nextFrame();
}
if ((score >= 0) && (game_so.data.player1Name.length > 0)) {
scoreboard_lv.score = score;
scoreboard_lv.name = game_so.data.player1Name.toLowerCase();
scoreboard_lv.sendAndLoad("http://www.muttski-software.com/highscores/post.php", scoreboard_lv, "POST");
scoreboard_lv.onLoad = function (success) {
if (success) {
if (scoreboard_lv.success.charAt(0) == 1) {
nextFrame();
} else {
loading_mc.errorMsg = scoreboard_lv.errorMsg.toUpperCase();
loading_mc.gotoAndStop(2);
}
} else {
loading_mc.errorMsg = "No responce from server";
loading_mc.gotoAndStop(2);
}
};
}
}
sendscore();
Frame 209
stop();
Symbol 6 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 6 MovieClip Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 8 MovieClip Frame 1
myColor = new Color(boundingbox_mc);
myColor.setRGB(_parent.colore);
Symbol 9 MovieClip [fadingCoverTextBox] Frame 1
#initclip 2
_global.fadingCover = function () {
this.fadeSpeed = 5;
};
fadingCover.prototype = new MovieClip();
fadingCover.prototype.init = function (colore, txtBGColor, pwd, txtName) {
if ((colore == undefined) || (colore == "default")) {
this.colore = "0x87A7C5";
}
if ((txtBGColor == undefined) || (txtBGColor == "default")) {
this.txtBGColor = "0xFFFFFF";
}
if ((pwd == undefined) || (pwd == "default")) {
this.pwd = false;
}
if (_global.myTextTabCounter != undefined) {
this.txtBox.tabIndex = myTextTabCounter + 1;
myTextTabCounter++;
} else {
_global.myTextTabCounter = 0;
this.txtBox.tabIndex = myTextTabCounter;
}
this.myText._name = txtName;
this.txtBox = this[txtName];
this.BGColor = new Color(this.skin);
this.BGColor.setRGB(this.txtBGColor);
this.cover._x = this.txtBox._x;
this.cover._y = this.txtBox._y;
this.textFormat = new TextFormat();
this.textFormat.font = this.font;
this.textFormat.size = this.txtSize;
this.textFormat.color = this.fontCol;
with (this.txtBox) {
if (!pwd) {
text = "";
}
setTextFormat(textFormat);
password = pwd;
}
this.fadeOut = false;
this.myListener[myTextTabCounter] = new Object();
this.myListener[myTextTabCounter].onSetFocus = function (oldFocus, newFocus) {
myString = this.txtBox.text;
l = myString.length;
if (l > 0) {
Selection.setSelection(0, l);
}
};
Selection.addListener(this.myListener[myTextTabCounter]);
};
fadingCover.prototype.onEnterFrame = function () {
var _local1 = this;
if (_local1.fadeOut) {
_local1.cover.fadeOut();
} else {
_local1.cover.fadeIn();
}
};
Object.registerClass("fadingCoverTextBox", fadingCover);
#endinitclip
this.init(this.colore, this.txtBGColor, this.pwd, this.txtName);
MovieClip.prototype.fadeIn = function () {
var _local1 = this;
if (_local1._alpha >= 100) {
} else if (_local1._alpha < 100) {
_local1._alpha = _local1._alpha + fadeSpeed;
}
};
MovieClip.prototype.fadeOut = function () {
var _local1 = this;
if (_local1._alpha <= 0) {
} else if (_local1._alpha > 0) {
_local1._alpha = _local1._alpha - fadeSpeed;
}
};
this.onMouseDown = function () {
if (cover.hitTest(_root._xmouse, _root._ymouse, true)) {
if (!fadeOut) {
fadeOut = true;
}
} else if (fadeOut) {
if ((txtBox.text == "") || (txtBox.text == "")) {
if (!pwd) {
txtBox.text = "";
}
fadeOut = false;
}
}
};
this.txtBox.onSetFocus = function () {
if (!fadeOut) {
fadeOut = true;
}
};
this.txtBox.onKillFocus = function () {
if (fadeOut) {
if ((txtBox.text == "") || (txtBox.text == "")) {
if (!pwd) {
txtBox.text = "";
}
fadeOut = false;
}
}
};
stop();
Symbol 22 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 32 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 41 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 42 MovieClip [UpArrow] Frame 1
stop();
Symbol 42 MovieClip [UpArrow] Frame 2
stop();
Symbol 42 MovieClip [UpArrow] Frame 3
stop();
Symbol 49 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 56 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 61 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 62 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 70 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 78 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 86 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 87 MovieClip [DownArrow] Frame 1
stop();
Symbol 87 MovieClip [DownArrow] Frame 2
stop();
Symbol 87 MovieClip [DownArrow] Frame 3
stop();
Symbol 90 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 91 MovieClip [FScrollBarSymbol] Frame 1
#initclip 3
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 94 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 94 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 98 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 4
function FScrollPaneClass() {
var _local1 = this;
function boolToString(str) {
var _local1 = str;
if (_local1 == "false") {
return(false);
}
if (_local1 == "true") {
return(true);
}
return(_local1);
}
_local1.init();
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._xscale = (_local1._yscale = 100);
_local1.contentWidth = (_local1.contentHeight = 0);
if (_local1.hScroll == undefined) {
_local1.hScroll = (_local1.vScroll = "auto");
_local1.dragContent = false;
}
_local1.offset = new Object();
_local1.vScroll = boolToString(_local1.vScroll);
_local1.hScroll = boolToString(_local1.hScroll);
_local1.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:_local1.styleTable});
_local1.hScrollBar_mc.setHorizontal(true);
_local1.hScrollBar_mc.setSmallScroll(5);
_local1.hScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:_local1.styleTable});
_local1.vScrollBar_mc.setSmallScroll(5);
_local1.vScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.setSize(_local1.width, _local1.height);
if (_local1.scrollContent != "") {
_local1.setScrollContent(_local1.scrollContent);
}
_local1.setDragContent(_local1.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var _local1 = this;
var _local3 = ((_local1.hScrollBar_mc == undefined) ? 0 : (_local1.hScrollBar_mc.getScrollPosition()));
var _local2 = ((_local1.vScrollBar_mc == undefined) ? 0 : (_local1.vScrollBar_mc.getScrollPosition()));
return({x:_local3, y:_local2});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
var _local1 = this;
var _local2 = target;
_local1.offset.x = 0;
_local1.offset.y = 0;
if (_local1.content_mc != undefined) {
if (_local2 != _local1.content_mc) {
_local1.content_mc._visible = false;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
}
}
if (typeof(_local2) == "string") {
_local1.attachMovie(_local2, "tmp_mc", 3);
_local1.content_mc = _local1.tmp_mc;
} else if (_local2 == undefined) {
_local1.content_mc.unloadMovie();
} else {
_local1.content_mc = _local2;
}
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
var _local3 = _local1.content_mc.getBounds(_local1);
_local1.offset.x = -_local3.xMin;
_local1.offset.y = -_local3.yMin;
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
_local1.contentWidth = _local1.content_mc._width;
_local1.contentHeight = _local1.content_mc._height;
_local1.content_mc.setMask(_local1.mask_mc);
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (((arguments.length < 2) || (isNaN(_local3))) || (isNaN(_local2))) {
} else {
super.setSize(_local3, _local2);
_local1.width = Math.max(_local3, 60);
_local1.height = Math.max(_local2, 60);
_local1.boundingBox_mc._xscale = 100;
_local1.boundingBox_mc._yscale = 100;
_local1.boundingBox_mc._width = _local1.width;
_local1.boundingBox_mc._height = _local1.height;
_local1.setHandV();
_local1.initScrollBars();
if (_local1.mask_mc == undefined) {
_local1.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
_local1.mask_mc._xscale = 100;
_local1.mask_mc._yscale = 100;
_local1.mask_mc._width = _local1.hWidth;
_local1.mask_mc._height = _local1.vHeight;
_local1.mask_mc._alpha = 0;
}
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
_local3 = Math.max(_local1.hScrollBar_mc.minPos, _local3);
_local3 = Math.min(_local1.hScrollBar_mc.maxPos, _local3);
_local2 = Math.max(_local1.vScrollBar_mc.minPos, _local2);
_local2 = Math.min(_local1.vScrollBar_mc.maxPos, _local2);
_local1.hScrollBar_mc.setScrollPosition(_local3);
_local1.vScrollBar_mc.setScrollPosition(_local2);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
var _local1 = this;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
_local1.content_mc._visible = 0;
_local1.loadContent.duplicateMovieClip("loadTemp", 3);
_local1.dupeFlag = true;
_local1.contentLoaded = function () {
var _local1 = this;
_local1.loadReady = false;
_local1.content_mc = _local1.loadTemp;
_local1.refreshPane();
_local1.executeCallBack();
};
_local1.setChangeHandler(handler, location);
_local1.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
var _local1 = this;
_local1.hScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
var _local1 = this;
_local1.vScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
var _local1 = this;
if (dragFlag) {
_local1.boundingBox_mc.useHandCursor = true;
_local1.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
_local1.boundingBox_mc.tabEnabled = false;
_local1.boundingBox_mc.onRelease = (_local1.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete _local1.boundingBox_mc.onPress;
_local1.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
var _local1 = this;
if ((((_local1.contentHeight - _local1.height) > 2) && (_local1.vScroll != false)) || (_local1.vScroll == true)) {
_local1.hWidth = _local1.width - _local1.vScrollBar_mc._width;
} else {
_local1.hWidth = _local1.width;
}
if ((((_local1.contentWidth - _local1.width) > 2) && (_local1.hScroll != false)) || (_local1.hScroll == true)) {
_local1.vHeight = _local1.height - _local1.hScrollBar_mc._height;
} else {
_local1.vHeight = _local1.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.myOnSetFocus();
_local1.lastX = _local1._xmouse;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = function () {
var _local1 = this;
_local1.scrollXMove = _local1.lastX - _local1._xmouse;
_local1.scrollYMove = _local1.lastY - _local1._ymouse;
_local1.scrollXMove = _local1.scrollXMove + _local1.hScrollBar_mc.getScrollPosition();
_local1.scrollYMove = _local1.scrollYMove + _local1.vScrollBar_mc.getScrollPosition();
_local1.setScrollPosition(_local1.scrollXMove, _local1.scrollYMove);
if ((_local1.scrollXMove < _local1.hScrollBar_mc.maxPos) && (_local1.scrollXMove > _local1.hScrollBar_mc.minPos)) {
_local1.lastX = _local1._xmouse;
}
if ((_local1.scrollYMove < _local1.vScrollBar_mc.maxPos) && (_local1.scrollYMove > _local1.vScrollBar_mc.minPos)) {
_local1.lastY = _local1._ymouse;
}
_local1.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
var _local1 = this;
_local1.hScrollBar_mc._y = _local1.height - _local1.hScrollBar_mc._height;
_local1.hScrollBar_mc.setSize(_local1.hWidth);
_local1.hScrollBar_mc.setScrollProperties(_local1.hWidth, 0, _local1.contentWidth - _local1.hWidth);
_local1.vScrollBar_mc._visible = ((_local1.hWidth == _local1.width) ? false : true);
_local1.vScrollBar_mc._x = _local1.width - _local1.vScrollBar_mc._width;
_local1.vScrollBar_mc.setSize(_local1.vHeight);
_local1.vScrollBar_mc.setScrollProperties(_local1.vHeight, 0, _local1.contentHeight - _local1.vHeight);
_local1.hScrollBar_mc._visible = ((_local1.vHeight == _local1.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = _local3.getScrollPosition();
var XorY = ((_local3._name == "hScrollBar_mc") ? "x" : "y");
if (_local3._name == "hScrollBar_mc") {
_local2.content_mc._x = (-_local1) + _local2.offset.x;
} else {
_local2.content_mc._y = (-_local1) + _local2.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local1 = this;
var _local3 = _local1.hScrollBar_mc.getScrollPosition();
var _local2 = _local1.vScrollBar_mc.getScrollPosition();
if (_local1.hScrollBar_mc.maxPos > _local1.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
_local1.setScrollPosition(_local3 - 3, _local2);
} else if (Key.isDown(39)) {
_local1.setScrollPosition(_local3 + 3, _local2);
}
}
if (_local1.vScrollBar_mc.maxPos > _local1.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
_local1.setScrollPosition(_local3, _local2 - 3);
} else if (Key.isDown(40)) {
_local1.setScrollPosition(_local3, _local2 + 3);
} else if (Key.isDown(34)) {
_local1.setScrollPosition(_local3, _local2 + _local1.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
_local1.setScrollPosition(_local3, _local2 - _local1.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 91 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 98 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 95 MovieClip "loadContent" in Symbol 98 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 100 MovieClip [fpb_states] Frame 1
stop();
Symbol 100 MovieClip [fpb_states] Frame 2
stop();
Symbol 100 MovieClip [fpb_states] Frame 3
stop();
Symbol 100 MovieClip [fpb_states] Frame 4
stop();
Symbol 102 MovieClip [fcb_states] Frame 1
stop();
Symbol 102 MovieClip [fcb_states] Frame 2
stop();
Symbol 102 MovieClip [fcb_states] Frame 3
stop();
Symbol 102 MovieClip [fcb_states] Frame 4
stop();
Symbol 102 MovieClip [fcb_states] Frame 5
stop();
Symbol 102 MovieClip [fcb_states] Frame 6
stop();
Symbol 103 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 107 MovieClip Frame 1
this._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
Symbol 107 MovieClip Frame 2
gotoAndPlay (1);
Symbol 122 Button
on (release) {
gotoAndPlay ("help");
}
Symbol 124 Button
on (release) {
gotoAndPlay (116);
}
Symbol 126 Button
on (release) {
gotoAndStop (165);
}
Symbol 131 Button
on (release) {
gotoAndPlay (209);
}
Symbol 133 Button
on (release) {
gotoAndPlay (41);
}
Symbol 140 Button
on (release) {
gotoAndPlay (66);
}
Symbol 141 Button
on (release) {
gotoAndPlay (77);
}
Symbol 143 Button
on (release) {
gotoAndStop (172);
}
Symbol 154 Button
on (release) {
gotoAndStop (172);
}
Symbol 159 Button
on (release) {
gotoAndPlay (6);
}
Symbol 187 Button
on (release) {
gotoAndStop (6);
}
Symbol 189 Button
on (release) {
gotoAndStop (6);
}
Symbol 190 Button
on (release) {
gotoAndStop (167);
}
Symbol 191 Button
on (release) {
play();
}
Symbol 193 Button
on (release) {
_root.practice = true;
gotoAndPlay (182);
}
Symbol 195 Button
on (release) {
_root.practice = true;
gotoAndPlay (197);
}
Symbol 197 Button
on (release) {
_root.practice = true;
gotoAndPlay (187);
}
Symbol 199 Button
on (release) {
_root.practice = true;
gotoAndPlay (192);
}
Symbol 201 Button
on (release) {
_root.practice = true;
gotoAndPlay (177);
}
Symbol 203 Button
on (release) {
_root.practice = true;
gotoAndPlay (172);
}
Symbol 216 Button
on (release) {
if (password eq passwordentry) {
score = 0;
gotoAndPlay (177);
}
if (password eq passwordentry2) {
score = 0;
gotoAndPlay (182);
}
if (password eq passwordentry3) {
score = 0;
gotoAndPlay (187);
}
if (password eq passwordentry4) {
score = 0;
gotoAndPlay (192);
}
if (password eq passwordentry5) {
score = 0;
gotoAndPlay (197);
}
if (password eq passwordentry6) {
score = 0;
gotoAndPlay (207);
}
if (password eq passwordentry7) {
score = 0;
gotoAndPlay (202);
}
}
Symbol 218 Button
on (release) {
gotoAndPlay (6);
}
Symbol 221 Button
on (release) {
gotoAndPlay (6);
password = "";
}
Symbol 224 Button
on (release) {
gotoAndStop ("start");
}
Symbol 231 Button
on (release) {
gotoAndStop (166);
}
Symbol 240 Button
on (release) {
gotoAndPlay (6);
}
Symbol 249 Button
on (release) {
gotoAndStop (169);
}
Symbol 251 Button
on (release) {
gotoAndStop (170);
}
Symbol 254 Button
on (release) {
gotoAndStop (168);
}
Symbol 256 Button
on (release) {
gotoAndStop (167);
}
Symbol 258 Button
on (release) {
gotoAndStop (171);
}
Symbol 270 Button
on (release) {
gotoAndStop (173);
}
Symbol 284 Button
on (release) {
if (password eq passwordentry) {
_root.cpu = "ok";
}
if (password eq passwordentry2) {
_root.cpu = "off";
}
if (password eq passwordentry3) {
_root.player2 = "off";
}
if (password eq passwordentry4) {
_root.player2 = "on";
}
if (password eq passwordentry5) {
score = 0;
gotoAndPlay (1);
}
if (password eq passwordentry6) {
score = 0;
gotoAndPlay (1);
}
this._x = -300;
this._y = -300;
}
Symbol 285 MovieClip Frame 1
tellTarget ("/instructions1") {
call("visiblego");
};
_visible = "0";
gotoAndStop (2);
Symbol 285 MovieClip Frame 2
Set(password, "goooo");
stop();
_visible = "1";
Symbol 285 MovieClip Frame 3
stop();
Symbol 285 MovieClip Frame 4
stop();
Symbol 297 Button
on (release) {
gotoAndStop (178);
}
Symbol 310 Button
on (release) {
gotoAndStop (183);
}
Symbol 330 Button
on (release) {
gotoAndStop (188);
}
Symbol 341 Button
on (release) {
gotoAndStop (193);
}
Symbol 355 Button
on (release) {
gotoAndStop (198);
}
Symbol 365 Button
on (release) {
gotoAndStop (203);
}
Symbol 382 Button
on (release, keyPress "<Enter>") {
if (name_txt.length > 0) {
game_so.data.player1Name = name_txt.text;
game_so.data.player1scorefind = score;
nextFrame();
} else {
name_txt.text = "noname";
}
}
Symbol 392 Button
on (press) {
_parent.sendscore();
prevFrame();
}
Symbol 394 MovieClip Frame 1
stop();
errorMsg = "";
Symbol 397 Button
on (press) {
gotoAndStop (209);
_root.dott.gotoAndPlay(151);
attachMovie("dott", "dott", getNextHighestDepth());
}
Symbol 401 Button
on (press) {
t._alpha = 20;
w._alpha = 0;
e._alpha = 0;
tabell.gotoAndStop(1);
}
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
stop();
Symbol 409 MovieClip Frame 1
stop();
errorMsg = "";
Symbol 411 Button
on (press) {
page = page - 10;
if (page < 0) {
page = 0;
}
if (page < 10) {
last_btn._visible = false;
}
next_btn._visible = true;
showScores();
}
Symbol 413 Button
on (press) {
page = page + 10;
if (page > maxScore) {
page = maxScore;
}
if (page > (maxScore - 20)) {
next_btn._visible = false;
}
last_btn._visible = true;
showScores();
}
Symbol 418 MovieClip Frame 1
stop();
_root.dott.gotoAndPlay(101);
p1_score = int(_root.p1_score);
p2_score = int(_root.p2_score);
game_so = _root.game_so;
loading_mc.gotoAndStop(1);
showScores = function () {
var _local2 = 10;
while (_local2 > 0) {
var n = scoreboard_lv["name" + (page + _local2)];
var _local3 = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (n.length ? (n.toUpperCase()) : "...");
_local1.score_txt.text = (_local3.length ? (_local3) : "...");
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = 16777215));
_local2--;
}
_local2 = 0;
while (_local2 <= 10) {
var n = scoreboard_lv["name" + (page + _local2)];
var _local3 = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (n.length ? (n.toUpperCase()) : "...");
_local1.score_txt.text = (_local3.length ? (_local3) : "...");
if (int(_local3) == int(game_so.data.player1scorefind)) {
if ((game_so.data.player1Name.length && (n.toUpperCase() == game_so.data.player1Name.toUpperCase())) && (_local1.score_txt.textColor == 16777215)) {
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = 14563898));
_local1.img.gotoAndStop(1);
break;
}
}
_local2++;
}
_local1._visible = true;
loading_mc._visible = false;
};
var i = 10;
while (i > 0) {
var l_mc = this[("line" + i) + "_mc"];
l_mc.rank_txt.text = "";
l_mc.name_txt.text = "";
l_mc.score_txt.text = "";
i--;
}
loading_mc._visible = true;
scoreboard_lv = new LoadVars();
scoreboard_lv.time = "today";
scoreboard_lv.game = "pingpong";
loading_mc.errorMsg = "Connecting to highscore server....";
scoreboard_lv.sendAndLoad("http://www.muttski-software.com/highscores/get.php", scoreboard_lv, "POST");
scoreboard_lv.onLoad = function (success) {
if (success) {
if (scoreboard_lv.success == 1) {
next_btn._visible = true;
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
showScores();
} else {
loading_mc.errorMsg = scoreboard_lv.errorMsg.toUpperCase();
loading_mc.gotoAndStop(2);
}
} else {
loading_mc.errorMsg = "COULD NOT ACCESS SCOREDATA.";
loading_mc.gotoAndStop(2);
}
};
stop();
page = 0;
maxScore = 100;
next_btn._visible = (last_btn._visible = false);
Symbol 418 MovieClip Frame 2
stop();
_root.dott.gotoAndPlay(101);
p1_score = int(_root.p1_score);
p2_score = int(_root.p2_score);
game_so = _root.game_so;
loading_mc.gotoAndStop(1);
showScores = function () {
var _local2 = 10;
while (_local2 > 0) {
var n = scoreboard_lv["name" + (page + _local2)];
var _local3 = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (n.length ? (n.toUpperCase()) : "...");
_local1.score_txt.text = (_local3.length ? (_local3) : "...");
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = 16777215));
_local2--;
}
_local2 = 0;
while (_local2 <= 10) {
var n = scoreboard_lv["name" + (page + _local2)];
var _local3 = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (n.length ? (n.toUpperCase()) : "...");
_local1.score_txt.text = (_local3.length ? (_local3) : "...");
if (_local3 == game_so.data.player1scorefind) {
if ((game_so.data.player1Name.length && (n.toUpperCase() == game_so.data.player1Name.toUpperCase())) && (_local1.score_txt.textColor == 16777215)) {
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = 14563898));
_local1.img.gotoAndStop(1);
break;
}
}
_local2++;
}
_local2 = 0;
while (_local2 <= 10) {
var n = scoreboard_lv["name" + (page + _local2)];
var _local3 = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (n.length ? (n.toUpperCase()) : "...");
_local1.score_txt.text = (_local3.length ? (_local3) : "...");
if (!game_so.data.scoreone) {
if (_local3 == game_so.data.player2scorefind) {
if ((game_so.data.player2Name.length && (n.toUpperCase() == game_so.data.player2Name.toUpperCase())) && (_local1.score_txt.textColor == 16777215)) {
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = 14563898));
_local1.img.gotoAndStop(2);
return;
}
}
}
_local1._visible = true;
loading_mc._visible = false;
_local2++;
}
};
var i = 10;
while (i > 0) {
var l_mc = this[("line" + i) + "_mc"];
l_mc.rank_txt.text = "";
l_mc.name_txt.text = "";
l_mc.score_txt.text = "";
i--;
}
loading_mc._visible = true;
scoreboard_lv = new LoadVars();
scoreboard_lv.time = "week";
scoreboard_lv.game = "pingpong";
loading_mc.errorMsg = "Connecting to highscore server....";
scoreboard_lv.sendAndLoad("http://www.muttski-software.com/highscores/get.php", scoreboard_lv, "POST");
scoreboard_lv.onLoad = function (success) {
if (success) {
if (scoreboard_lv.success == 1) {
next_btn._visible = true;
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
showScores();
} else {
loading_mc.errorMsg = scoreboard_lv.errorMsg.toUpperCase();
loading_mc.gotoAndStop(2);
}
} else {
loading_mc.errorMsg = "COULD NOT ACCESS SCOREDATA.";
loading_mc.gotoAndStop(2);
}
};
stop();
page = 0;
maxScore = 100;
next_btn._visible = (last_btn._visible = false);
Symbol 418 MovieClip Frame 3
stop();
_root.dott.gotoAndPlay(101);
p1_score = int(_root.p1_score);
p2_score = int(_root.p2_score);
game_so = _root.game_so;
loading_mc.gotoAndStop(1);
showScores = function () {
var _local2 = 10;
while (_local2 > 0) {
var n = scoreboard_lv["name" + (page + _local2)];
var _local3 = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (n.length ? (n.toUpperCase()) : "...");
_local1.score_txt.text = (_local3.length ? (_local3) : "...");
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = 16777215));
_local2--;
}
_local2 = 0;
while (_local2 <= 10) {
var n = scoreboard_lv["name" + (page + _local2)];
var _local3 = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (n.length ? (n.toUpperCase()) : "...");
_local1.score_txt.text = (_local3.length ? (_local3) : "...");
if (_local3 == game_so.data.player1scorefind) {
if ((game_so.data.player1Name.length && (n.toUpperCase() == game_so.data.player1Name.toUpperCase())) && (_local1.score_txt.textColor == 16777215)) {
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = 14563898));
_local1.img.gotoAndStop(1);
break;
}
}
_local2++;
}
_local2 = 0;
while (_local2 <= 10) {
var n = scoreboard_lv["name" + (page + _local2)];
var _local3 = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (n.length ? (n.toUpperCase()) : "...");
_local1.score_txt.text = (_local3.length ? (_local3) : "...");
if (!game_so.data.scoreone) {
if (_local3 == game_so.data.player2scorefind) {
if ((game_so.data.player2Name.length && (n.toUpperCase() == game_so.data.player2Name.toUpperCase())) && (_local1.score_txt.textColor == 16777215)) {
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = 14563898));
_local1.img.gotoAndStop(2);
return;
}
}
}
_local1._visible = true;
loading_mc._visible = false;
_local2++;
}
};
var i = 10;
while (i > 0) {
var l_mc = this[("line" + i) + "_mc"];
l_mc.rank_txt.text = "";
l_mc.name_txt.text = "";
l_mc.score_txt.text = "";
i--;
}
loading_mc._visible = true;
scoreboard_lv = new LoadVars();
scoreboard_lv.time = "ever";
scoreboard_lv.game = "pingpong";
loading_mc.errorMsg = "Connecting to highscore server....";
scoreboard_lv.sendAndLoad("http://www.muttski-software.com/highscores/get.php", scoreboard_lv, "POST");
scoreboard_lv.onLoad = function (success) {
if (success) {
if (scoreboard_lv.success == 1) {
next_btn._visible = true;
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
showScores();
} else {
loading_mc.errorMsg = scoreboard_lv.errorMsg.toUpperCase();
loading_mc.gotoAndStop(2);
}
} else {
loading_mc.errorMsg = "COULD NOT ACCESS SCOREDATA.";
loading_mc.gotoAndStop(2);
}
};
page = 0;
maxScore = 100;
postscore("post");
postscore("load");
score = 0;
next_btn._visible = (last_btn._visible = false);
Symbol 419 Button
on (press) {
t._alpha = 0;
w._alpha = 20;
e._alpha = 0;
tabell.gotoAndStop(2);
}
Symbol 422 Button
on (press) {
t._alpha = 0;
w._alpha = 0;
e._alpha = 20;
tabell.gotoAndStop(3);
}