Frame 1
_root.str_statsname = "wallstreetpong";
fn_createstats = function (var_stats_id) {
statsCookie = SharedObject.getLocal("gamestat");
if (statsCookie.data.lastvisit != undefined) {
lastvisit = statsCookie.data.lastvisit;
if (int(lastvisit) != int(_root.visitor_day)) {
var_visit_id = 2;
} else {
var_visit_id = 3;
}
} else {
var_visit_id = 1;
}
_root.var_visit_id = var_visit_id;
statsCookie.data.lastvisit = int(_root.visitor_day);
statsCookie.flush();
delete statsCookie;
statsCookie = SharedObject.getLocal("gamestat");
if (statsCookie.data.lastvisit != undefined) {
} else {
var_visit_id = 0;
}
myData = new LoadVars();
myData.onLoad = function () {
};
myData.stats_id = var_stats_id;
myData.visitor_visit_id = var_visit_id;
myData.visitor_day = _root.visitor_day;
myData.visitor_useragent = _root.visitor_useragent;
myData.visitor_useragent_name = _root.visitor_useragent_name;
myData.visitor_useragent_version = _root.visitor_useragent_version;
myData.visitor_referrer = _root.visitor_referrer;
myData.visitor_ip = _root.visitor_ip;
myData.sendAndLoad("http://www.dissenter.ch/gamestats/gamestats.php", myData, "POST");
};
stop();
System.useCodepage = true;
var kontextmenu = new ContextMenu();
kontextmenu.hideBuiltInItems();
Frame 2
stop();
Frame 3
mc_sounds.snd_buzzer = new Sound(mc_sounds);
mc_sounds.snd_buzzer.attachSound("snd_buzzer");
mc_sounds.snd_metall = new Sound(mc_sounds);
mc_sounds.snd_metall.attachSound("snd_metall");
mc_sounds.snd_crash = new Sound(mc_sounds);
mc_sounds.snd_crash.attachSound("snd_crash");
mc_sounds.snd_shortshot = new Sound(mc_sounds);
mc_sounds.snd_shortshot.attachSound("snd_shortshot");
mc_sounds.snd_schalter = new Sound(mc_sounds);
mc_sounds.snd_schalter.attachSound("snd_schalter");
mc_sounds.snd_swoosh = new Sound(mc_sounds);
mc_sounds.snd_swoosh.attachSound("snd_swoosh");
mc_sounds.snd_beep = new Sound(mc_sounds);
mc_sounds.snd_beep.attachSound("snd_beep");
mc_sounds.snd_deephit = new Sound(mc_sounds);
mc_sounds.snd_deephit.attachSound("snd_deephit");
mc_sounds.snd_geschafft = new Sound(mc_sounds);
mc_sounds.snd_geschafft.attachSound("snd_geschafft");
mc_sounds.snd_techbeep = new Sound(mc_sounds);
mc_sounds.snd_techbeep.attachSound("snd_techbeep");
mc_sounds.snd_pageflip = new Sound(mc_sounds);
mc_sounds.snd_pageflip.attachSound("snd_pageflip");
mc_sounds.snd_pop = new Sound(mc_sounds);
mc_sounds.snd_pop.attachSound("snd_pop");
mc_sounds.snd_loop1 = new Sound(mc_sounds);
mc_sounds.snd_loop1.attachSound("snd_loop1");
mc_sounds.snd_loop2 = new Sound(mc_sounds);
mc_sounds.snd_loop2.attachSound("snd_loop2");
_global.fn_playsound = function (str_sound, int_loops) {
if (_root.int_soundon == 1) {
_root.mc_sounds["" + str_sound].start(0, int_loops);
}
};
_global.fn_playsound2 = function (str_sound, int_loops) {
if (_root.int_soundon == 1) {
_root.mc_sounds2["" + str_sound].start(0, int_loops);
}
};
_root.int_soundon = 1;
_root.gotoAndStop("game");
Instance of Symbol 66 MovieClip "soundsymbol" in Frame 3
onClipEvent (load) {
if (_root.int_soundon == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Frame 5
stop();
Frame 6
gotoAndStop ("game");
Symbol 11 MovieClip Frame 3
_root.fn_createstats(_root.str_statsname);
_root.play();
Symbol 18 MovieClip Frame 16
stop();
Symbol 19 Button
on (release) {
getURL ("http://www.severin.ch", "_blank");
}
Symbol 99 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 100 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 101 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 40 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 1
_root.geladen = int(100 / (_root.getBytesTotal() / _root.getBytesLoaded()));
if (_root.getBytesTotal() == _root.getBytesLoaded()) {
gotoAndPlay (3);
}
Instance of Symbol 36 MovieClip in Symbol 41 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = int(100 / (_root.getBytesTotal() / _root.getBytesLoaded()));
}
Symbol 41 MovieClip Frame 2
gotoAndPlay (1);
Symbol 41 MovieClip Frame 5
_root.gotoAndStop("sound");
Symbol 59 MovieClip Frame 1
stop();
Symbol 65 Button
on (release) {
if (_root.int_soundon == 1) {
stopAllSounds();
_root.int_soundon = 0;
_root.soundsymbol.gotoAndStop(3);
} else {
_root.int_soundon = 1;
if (_root.int_playloop == 1) {
fn_playsound("snd_loop1", 100);
}
if (_root.int_playloop == 2) {
fn_playsound("snd_loop2", 100);
}
_root.soundsymbol.gotoAndStop(1);
}
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 66 MovieClip Frame 3
stop();
Symbol 76 Button
on (release) {
fn_release_action();
}
on (rollOver) {
fn_playsound("snd_schalter", 1);
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 70
stop();
mc_banner.loadMovie("http://wallstreetpong.com.goethe.ch-meta.net/banner.swf");
Instance of Symbol 77 MovieClip "btn1345361121" in Symbol 78 MovieClip Frame 70
onClipEvent (load) {
this.str_buttontext = "Play again";
fn_release_action = function () {
fn_playsound("snd_beep", 1);
_root.gotoAndPlay("reset");
};
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 42
new mx.transitions.Tween(_root.mc_game.mc_paddle, "_y", Elastic.easeIn, _root.mc_game.mc_paddle._y, _root.mc_game.mc_paddle._y + 200, 2, true);
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
num_yspeed = 10;
num_xspeed = 10;
int_xvalue = 0;
int_yvalue = 5;
mc_paddle._y = 330;
int_yvalue_paddle = mc_paddle._y;
int_ballfliegt = 1;
int_ygrundspeed = 2;
int_gamelaeuft = 0;
int_dollars = 1;
int_time = 0;
txt_score = "";
txt_score2 = "";
int_values = 1;
this["num_valx" + int_values] = 0;
this["num_valy" + int_values] = 0;
onEnterFrame = function () {
if (int_gamelaeuft < 2) {
mc_paddle._x = _xmouse - 40;
}
if (int_gamelaeuft == 1) {
int_time++;
int_days = Math.floor((int_time / 60) / 24);
int_hours = Math.floor((int_time - ((int_days * 60) * 24)) / 60);
int_minutes = Math.floor((int_time - ((int_days * 60) * 24)) - (int_hours * 60));
txt_score = ((((int_days + " days, ") + int_hours) + " hours, ") + int_minutes) + " minutes";
mc_lineHorizontal._y = mc_lineHorizontal._y - num_yspeed;
mc_lineVertikal._x = mc_lineVertikal._x - num_xspeed;
while (mc_lineVertikal._x < -150) {
mc_lineVertikal._x = mc_lineVertikal._x + 150;
}
while (mc_lineHorizontal._y < -200) {
mc_lineHorizontal._y = mc_lineHorizontal._y + 200;
}
mc_punkt._x = mc_punkt._x + int_xvalue;
mc_punkt._y = mc_punkt._y + int_yvalue;
if ((int_ballfliegt == 1) && (mc_punkt._y > int_yvalue_paddle)) {
int_ballfliegt = 0;
mc_punkt._y = int_yvalue_paddle + 4;
if ((mc_punkt._x > mc_paddle._x) && (mc_punkt._x < (mc_paddle._x + 80))) {
int_ballfliegt = 1;
mc_punkt._y = int_yvalue_paddle - 10;
int_yvalue = -(Math.round(int_ygrundspeed) + random(5));
int_values++;
this["num_valx" + int_values] = mc_punkt._x;
this["num_valy" + int_values] = mc_punkt._y;
int_richtung = random(2);
if (int_richtung == 1) {
int_xvalue = -random(int((mc_punkt._x + 30) / (mc_punkt._y / int_yvalue)));
} else {
int_xvalue = random(int((520 - mc_punkt._x) / (mc_punkt._y / int_yvalue)));
}
fn_playsound("snd_metall", 1);
if (int_xvalue < (-num_xspeed)) {
int_xvalue = -num_xspeed;
}
if (int_xvalue > num_xspeed) {
int_xvalue = num_xspeed;
}
mc_paddle.gotoAndPlay(2);
o = 1;
while (o <= 10) {
int_dollars++;
mc_dollar.duplicateMovieClip("mc_dollar" + int_dollars, int_dollars);
this["mc_dollar" + int_dollars]._x = mc_paddle._x + 40;
this["mc_dollar" + int_dollars]._y = mc_paddle._y;
this["mc_dollar" + int_dollars]._yscale = 50 + random(50);
this["mc_dollar" + int_dollars].int_yvalue = -4 - random(15);
this["mc_dollar" + int_dollars].int_xvalue = 8 - random(16);
this["mc_dollar" + int_dollars].int_rot = 10 - random(20);
this["mc_dollar" + int_dollars].onEnterFrame = function () {
this._x = this._x + this.int_xvalue;
this._y = this._y + this.int_yvalue;
this.int_yvalue = this.int_yvalue + 1;
this._rotation = this._rotation + this.int_rot;
if (this._y > 430) {
this.removeMovieClip();
}
};
o++;
}
}
}
if ((int_yvalue < 0) && (mc_punkt._y < (int_yvalue_paddle - 70))) {
int_randumkehr = random(Math.round(mc_punkt._y));
if (int_randumkehr < 10) {
fn_playsound("snd_swoosh", 1);
int_yvalue = Math.round(int_ygrundspeed) + random(5);
int_values++;
this["num_valx" + int_values] = mc_punkt._x;
this["num_valy" + int_values] = mc_punkt._y;
int_richtung = random(2);
if (int_richtung == 1) {
int_xvalue = -random(int((mc_punkt._x + 30) / ((int_yvalue_paddle - mc_punkt._y) / int_yvalue)));
} else {
int_xvalue = random(int((520 - mc_punkt._x) / ((int_yvalue_paddle - mc_punkt._y) / int_yvalue)));
}
if (int_xvalue < (-num_xspeed)) {
int_xvalue = -num_xspeed;
}
if (int_xvalue > num_xspeed) {
int_xvalue = num_xspeed;
}
}
}
if (mc_punkt._x < 30) {
mc_punkt._x = 30;
}
if (mc_punkt._x > 520) {
mc_punkt._x = 520;
}
if (mc_punkt._y > 410) {
stopAllSounds();
fn_playsound("snd_crash", 1);
mc_paddle.mc_head.gotoAndPlay(2);
mc_black.gotoAndPlay(2);
new mx.transitions.Tween(mc_boersenkurve, "_alpha", Elastic.easeIn, 100, 0, 1, true);
int_gamelaeuft = 2;
txt_score2 = "You saved Dow Jones for\n" + txt_score;
txt_score = "";
}
int_ygrundspeed = int_ygrundspeed + 0.01;
num_xspeed = num_xspeed + 0.01;
i = 1;
while (i <= int_values) {
this["num_valx" + i] = this["num_valx" + i] - num_xspeed;
this["num_valy" + i] = this["num_valy" + i] - num_yspeed;
i++;
}
this.removeMovieClip(mc_boersenkurve);
this.createEmptyMovieClip("mc_boersenkurve", 10000);
with (this.mc_boersenkurve) {
lineStyle(4, 16711680, 70);
moveTo(this.num_valx1, this.num_valy1);
i = 1;
while (i <= int_values) {
lineTo(this["num_valx" + i], this["num_valy" + i]);
i++;
}
lineTo(mc_punkt._x, mc_punkt._y);
}
}
};
Instance of Symbol 77 MovieClip "btn1" in Symbol 98 MovieClip Frame 1
onClipEvent (load) {
this.str_buttontext = "Start Game";
fn_release_action = function () {
fn_playsound("snd_beep", 1);
fn_playsound("snd_loop2", 100);
this._parent.int_gamelaeuft = 1;
new mx.transitions.Tween(this, "_alpha", Elastic.easeIn, 100, 0, 0.5, true);
new mx.transitions.Tween(this._parent.mc_title, "_alpha", Elastic.easeIn, 100, 0, 0.5, true);
};
}