[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 2 (869 B)
function preload(clip, goFrame) {
clip.currentPos = 0;
clip.goFrame = goFrame;
clip.tl = this;
clip.onEnterFrame = function () {
var _local2 = this.tl.getBytesLoaded();
var _local5 = this.tl.getBytesTotal();
var _local3 = Math.round((100 / _local5) * _local2);
var _local4 = Math.round((_local3 - this.currentPos) / 4);
if (_local4 < 1) {
_local4 = 1;
}
this.currentPos = this.currentPos + _local4;
if (this.currentPos >= _local3) {
this.currentPos = _local3;
}
if (_local2 > 16) {
this.gotoAndStop(this.currentPos);
if ((this.currentPos >= 100) && (_local2 >= _local5)) {
this.gotoAndStop(100);
this._parent.feedback_mc.gotoAndPlay("init");
this.tl.gotoAndPlay(goFrame);
delete this.onEnterFrame;
}
}
};
}
stop();
preload(this.preloader_mc.inner_mc, "init");
Frame 11 (7.25 KiB) ● ●
function setupSplash(mc) {
var _local4 = new Array("splash_loop", "splash_hello", "intro_over", "bin_zap", "switch_zap", "car_zap", "plane_zap", "tap_zap", "bulb_zap", "wez_zap", "wanda_zap", "game_loop", "game_over", "generic_zap", "zap", "end_loop", "end_hello", "bad_reaction");
_global.snd = new com.teamrubber.SoundManager(_global.root.soundHolder_mc, _local4);
_global.snd.playSound("splash_loop", 999999);
_global.snd.setNewVolume(0, "splash_loop");
_global.snd.setupAfade("splash_loop", 100, 10);
_global.snd.playSound("splash_hello", 1);
mc.play_btn.onRelease = function () {
_global.root.gotoAndPlay("intro");
};
_global.root.soundToggle_mc.volState = true;
_global.root.soundToggle_mc.onRelease = function () {
this.volState = !this.volState;
_global.snd.setSoundState(this.volState);
var _local3 = ((this.volState == true) ? "on" : "off");
this.gotoAndStop(_local3);
};
}
function setupIntro(mc) {
function rollOverChar() {
trace("OVER : " + snd);
_global.snd.stopSound("intro_over");
_global.snd.playSound("intro_over", 1);
this.gotoAndPlay("injectGood");
}
function rollOutChar() {
this.gotoAndStop("move");
}
var root = mc._parent;
root.stop();
var _local3 = new Array(mc.bin_mc, mc.tap_mc, mc.bulb_mc, mc.plane_mc, mc.car_mc, mc.switch_mc, mc.interfere_mc);
i = 0;
while (i < _local3.length) {
_local3[i].onRollOver = rollOverChar;
_local3[i].onRollOut = rollOutChar;
i++;
}
mc.playMe.onRelease = function () {
_global.snd.setupAfade("splash_loop", 0, -10);
root.gotoAndPlay("game");
};
}
function setupEndScreen(clip) {
var _local2;
if (_global.points_total < _global.root.scoreBounds.worst) {
_local2 = "worst";
} else if (_global.points_total < _global.root.scoreBounds.bad) {
_local2 = "bad";
} else if (_global.points_total < _global.root.scoreBounds.good) {
_local2 = "good";
} else {
_local2 = "best";
}
clip.bernie_mc.gotoAndStop(_local2);
clip.feedback_mc.gotoAndStop(_local2);
clip.score_txt.text = _global.points_total;
clip.flyout_mc.inner_mc.enter_btn.onRelease = function () {
com.teamrubber.SeqTrackerAdaptor.campaignExit("http://www.webbliworld.com/competition", "competition_panel");
};
clip.flyout_mc.inner_mc.website_btn.onRelease = function () {
com.teamrubber.SeqTrackerAdaptor.campaignExit("http://www.webbliworld.com", "logo");
};
clip.flyout_mc.inner_mc.inline_website_btn.onRelease = function () {
com.teamrubber.SeqTrackerAdaptor.campaignExit("http://www.webbliworld.com", "full_panel");
};
clip.play_btn.tabIndex = 1;
clip.stf_btn.tabEnabled = 2;
clip.stf_mc.stf_btn.onRelease = function () {
_global.root.setupSTF(clip.stf_mc.inner_mc);
};
clip.play_btn.onRelease = function () {
_global.snd.setupAfade("end_loop", 0, -10);
_global.root.gotoAndPlay("game");
};
_global.snd.setNewVolume(0, "end_loop");
_global.snd.setupAfade("end_loop", 100, 10);
_global.snd.playSound("end_loop", 999999);
_global.snd.playSound("end_hello", 1);
}
function setupSTF(clip) {
function doSubmit() {
if (_global.currentForm.disabled == false) {
Selection.setFocus(_global.noFocus);
if (_global.currentForm.validateForm() == true) {
clip.sending_mc.gotoAndPlay("sending");
_global.currentForm.removeSelectionListener();
_global.currentForm.disabled = true;
var _local2 = _global.currentForm.returnAllFields();
_global.root.doSend(_local2, clip._parent);
}
}
}
clip._parent.gotoAndPlay("open");
var _local3 = new Array({id:"name", clip:clip.name_txt, itemType:"string", original:"Your name", errorClip:clip.error_mc.err1_mc, required:true}, {id:"email", clip:clip.email_txt, itemType:"email", original:"Your email", errorClip:clip.error_mc.err2_mc, required:true}, {id:"name_0", clip:clip.name0_txt, itemType:"string", original:"Friend's name", errorClip:clip.error_mc.err3_mc, required:true}, {id:"email_0", clip:clip.email0_txt, itemType:"email", original:"Friend's email", errorClip:clip.error_mc.err4_mc, required:true});
var _local5 = new Object({email:"enter a valid email", string:"enter a name!", number:"numbers only!"});
_global.currentForm = new com.teamrubber.FormClass(_local3, _local5, clip, clip.error_mc);
_global.currentForm.disabled = false;
_global.currentForm.pairing = false;
if (stored.name != undefined) {
clip.name_txt.text = stored.name;
}
if (stored.email != undefined) {
clip.email_txt.text = stored.email;
}
clip.send_btn.tabIndex = _local3.length + 1;
clip.send_btn.onRelease = doSubmit;
clip.exit_btn.tabIndex = _local3.length + 2;
clip.exit_btn.onRelease = function () {
this._parent._parent.gotoAndPlay("success");
};
}
function doSend(obj, root) {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local4.onLoad = function (success) {
trace("SUCCESS? " + success);
root.gotoAndPlay("success");
com.teamrubber.SeqTrackerAdaptor.sendToFriendConversion();
};
for (i in obj) {
_local3[i] = obj[i];
stored[i] = obj[i];
}
_local3.cb = Math.round(Math.random() * 1000);
_local3.score = _global.points_total;
_local3.sendAndLoad(_global.stfURL, _local4);
}
function toSplash() {
com.teamrubber.SeqTrackerAdaptor.doLoad();
_global.root.gotoAndPlay("splash");
}
_global.root = this;
_global.stfURL = "http://panthro.teamrubber.com:8004/rubber_client_work/webbliworld/sendToFriend";
var goodChars = new Array("good_1", "good_2", "good_3", "good_4", "good_5", "good_6");
var badChars = new Array("bad_1", "bad_2");
var typeDistribution = new Array("good", "good", "good", "good", "good", "bad");
var charDistribution = new Array(3, 4, 4, 5);
var scriptedIntro = new Array({type:"good", dir:"l", pauseDur:0}, {type:"good", dir:"r", pauseDur:6}, {type:"bad", dir:"l", pauseDur:4});
var goodPoints = new Object({exitUnclicked:-10, score:20, negScore:-20});
var badPoints = new Object({exitUnclicked:10, score:-10});
var gameDuration = 60;
var speeds = new Array([9, 10, 11], [6, 7, 8], [4, 5, 6]);
var scoreBounds = new Object({worst:-10, bad:20, good:100, best:200});
var sounds = new Object({good_1:{linkage:"generic_zap", badZap:"bad_reaction"}, good_2:{linkage:"generic_zap", badZap:"bad_reaction"}, good_3:{linkage:"generic_zap", badZap:"bad_reaction"}, good_4:{linkage:"generic_zap", badZap:"bad_reaction"}, good_5:{linkage:"generic_zap", badZap:"bad_reaction"}, good_6:{linkage:"generic_zap", badZap:"bad_reaction"}, bad_1:{linkage:"wanda_zap"}, bad_2:{linkage:"wez_zap"}});
_global.randBetween = function (a, b) {
return(Math.round((Math.random() * (b - a)) + a));
};
_global.randAround = function (a, b) {
var _local1 = (Math.random() * (2 * b)) - b;
_local1 = _local1 + a;
return(Math.round(_local1));
};
_global.print_r = function (o) {
trace("--------------------------");
trace(o);
for (var _local2 in o) {
trace((_local2 + " = ") + o[_local2]);
}
};
_global.makePos = function (a) {
if (a < 0) {
a = a - (a * 2);
}
return(a);
};
_global.traceLV = function (obj, t) {
if (t == undefined) {
t = "";
}
trace(t + " ---------------------");
for (var _local2 in obj) {
trace((("| " + _local2) + " ") + obj[_local2]);
}
trace(newline);
};
stop();
com.teamrubber.SeqTrackerAdaptor.setComponentReference(this.tracker_comp);
com.teamrubber.SeqTrackerAdaptor.initTracker(toSplash);
Frame 19 (43 B)
stop();
this.setupSplash(this.splash_mc);
Frame 28 (36 B)
stop();
setupIntro(this.intro_mc);
Frame 39 (60 B)
stop();
this.game.setup();
this.game.updateScoreVisual();
Frame 49 (42 B)
stop();
setupEndScreen(this.endGame_mc);
Symbol 59 MovieClip Frame 1 (8 B)
stop();
Symbol 79 MovieClip [pointer] Frame 1 (95 B)
#initclip 19
Object.registerClass("pointer", com.teamrubber.Pointer);
#endinitclip
stop();
Symbol 79 MovieClip [pointer] Frame 18 (17 B)
this.endPoint();
Symbol 89 MovieClip Frame 1 (8 B)
stop();
Symbol 90 MovieClip [Timer] Frame 1 (80 B)
#initclip 17
Object.registerClass("Timer", com.teamrubber.Time);
#endinitclip
Symbol 112 MovieClip Frame 1 (37 B)
_global.scoreVisual = this;
stop();
Symbol 118 MovieClip [Game] Frame 1 (79 B)
#initclip 18
Object.registerClass("Game", com.teamrubber.Game);
#endinitclip
Symbol 446 MovieClip [__Packages.com.teamrubber.Time] Frame 0 (2.08 KiB) ●
class com.teamrubber.Time extends MovieClip
{
var alarms, max, start, end, isRunning, date, date_start, seconds, lastSec, gameConv, clock, interval;
function Time (game) {
super();
init();
}
function init() {
alarms = new Array();
max = _global.root.gameDuration;
start = {hour:9, min:0};
end = {hour:10, min:0};
isRunning = false;
}
function setup() {
timerFace_reset();
}
function updateTimer() {
date = new Date();
var _local7 = date.valueOf() - date_start;
seconds = Math.floor(_local7 / 1000);
var _local6 = alarms.length;
var _local3 = 0;
while (_local3 < _local6) {
var _local5 = alarms[_local3];
if (Number(seconds) > Number(_local5.time)) {
var _local4 = _local5.callBack;
_global.root_ref[_local4.func](_local4.param);
alarm_remove(_local3);
}
_local3++;
}
if (seconds != lastSec) {
lastSec = seconds;
}
var _local8 = gameConv * seconds;
var _local9 = seconds * gameConv;
timerFace_update();
}
function timerFace_update() {
var _local2 = (100 / max) * seconds;
_local2 = Math.floor((clock.totalF / 100) * _local2);
clock.gotoAndStop(_local2);
}
function timerFace_reset() {
clock.totalF = clock._totalframes;
clock.gotoAndStop(1);
}
function alarm_add(time, callBack) {
alarms.push({time:time, callBack:callBack});
alarms.sortOn("time", Array.NUMERIC);
}
function alarm_remove(id) {
var _local3 = new Array();
delete alarms[id];
var _local4 = alarms.length;
var _local2 = 0;
while (_local2 < _local4) {
if (alarms[_local2] != undefined) {
_local3.push(alarms[_local2]);
}
_local2++;
}
alarms = _local3;
alarms.sortOn("time", Array.NUMERIC);
}
function startTimer() {
date = new Date();
date_start = date.valueOf();
interval = setInterval(this, "updateTimer", 100);
isRunning = true;
var _local3 = (start.hour * 100) + start.min;
var _local2 = (end.hour * 100) + end.min;
gameConv = (_local2 - _local3) / max;
}
function killTimer() {
clearInterval(interval);
isRunning = false;
}
}
Symbol 447 MovieClip [__Packages.com.teamrubber.Game] Frame 0 (9.82 KiB) ● ●
class com.teamrubber.Game extends MovieClip
{
var root, pointsCol, points_mc, pointsProps, tracks, gameLayout_holder, lastTracks, timer, maxWithoutBad, overscreen_mc, goodChars, badChars, typesList, scriptedChars, maxCharCounts, scoreDepth, allChars, allChars_count, good_count, bad_count, pause_cur, isScripted, preScripted, maxScripted, withoutBad, singletonChars, pointer, points_total, gameInterval, speeds, max_count, speedLevel;
function Game () {
super();
init();
}
function init() {
root = this;
_global.root_ref = this;
pointsCol = new Color(points_mc.inner_mc);
pointsProps = new Object({good:{ra:80, rb:0, ga:80, gb:255, ba:80, bb:0, aa:100, ab:0}, bad:{ra:80, rb:255, ga:80, gb:0, ba:80, bb:0, aa:100, ab:0}, norm:pointsCol.getTransform()});
tracks = new Array(gameLayout_holder.track1_mc, gameLayout_holder.track2_mc, gameLayout_holder.track3_mc);
lastTracks = new Array();
timer = root.timer_mc;
maxWithoutBad = 5;
overscreen_mc._visible = false;
goodChars = _global.root.goodChars;
badChars = _global.root.badChars;
typesList = _global.root.typeDistribution;
scriptedChars = _global.root.scriptedIntro;
var _local3 = 0;
while (_local3 < tracks.length) {
tracks[_local3].charCount = 0;
_local3++;
}
maxCharCounts = _global.root.charDistribution;
_local3 = 0;
while (_local3 < tracks.length) {
var _local9 = tracks[_local3];
var _local10 = gameLayout_holder[("door" + (_local3 + 1)) + "_l_mc"];
var _local7 = gameLayout_holder[("door" + (_local3 + 1)) + "_r_mc"];
var _local11 = gameLayout_holder[("wall" + (_local3 + 1)) + "_l_mc"];
var _local8 = gameLayout_holder[("wall" + (_local3 + 1)) + "_r_mc"];
var _local6 = gameLayout_holder[("tube" + (_local3 + 1)) + "_l_mc"];
var _local5 = gameLayout_holder[("tube" + (_local3 + 1)) + "_r_mc"];
var _local4 = (10 - _local3) * 100;
_local6.swapDepths(_local4 - 2);
_local5.swapDepths(_local4 - 1);
_local10.swapDepths(_local4);
_local7.swapDepths(_local4 + 5);
_local9.swapDepths(_local4 + 10);
_local11.swapDepths(_local4 + 20);
_local8.swapDepths(_local4 + 30);
_local3++;
}
scoreDepth = 2000;
_global.snd.setNewVolume(0, "game_loop");
_global.snd.playSound("game_loop", 99999);
_global.snd.setupAfade("game_loop", 100, 10);
}
function setup() {
trace("{} Game -> setup()");
for (var _local3 in allChars) {
allChars[_local3].removeMovieClip();
}
allChars = new Object();
allChars_count = 0;
good_count = 0;
bad_count = 0;
pause_cur = 0;
isScripted = true;
preScripted = 0;
maxScripted = scriptedChars.length;
withoutBad = 0;
singletonChars = new Object();
setSpeedRanges(0);
setMaxCharacters(0);
timer.setup();
timer.startTimer();
pointer.startMe();
timer.alarm_add(10, {obj:this, func:"setSpeedRanges", param:1});
timer.alarm_add(25, {obj:this, func:"setSpeedRanges", param:2});
timer.alarm_add(6, {obj:this, func:"setMaxCharacters", param:1});
timer.alarm_add(11, {obj:this, func:"setMaxCharacters", param:2});
timer.alarm_add(20, {obj:this, func:"setMaxCharacters", param:3});
timer.alarm_add(timer.max, {obj:this, func:"endGame"});
points_total = 0;
points_mc.inner_mc.score_txt.text = points_total;
gameLayout_holder.allHit.onPress = function () {
_global.root_ref.do_click(this);
};
gameInterval = setInterval(this, "game_control", 500);
}
function endGame() {
clearInterval(gameInterval);
delete gameInterval;
pointer.hideMe();
timer.killTimer();
delete gameLayout_holder.allHit.onPress;
for (var _local4 in allChars) {
var _local3 = allChars[_local4];
_local3.removeChar();
}
_global.points_total = points_total;
_global.root.gotoAndStop("endgame");
_global.root_ref = undefined;
_global.snd.playSound("game_over", 1);
_global.snd.setupAfade("game_loop", 0, -10);
}
function game_control() {
updateScoreVisual();
if (preScripted < maxScripted) {
pause_cur++;
var _local3 = scriptedChars[preScripted];
if (pause_cur >= _local3.pauseDur) {
pause_cur = 0;
preScripted++;
_local3.track = selectTrack();
var _local4 = _local3.track;
var _local5 = _local4[_local3.dir + "_mc"];
_local3.linkage = selectCharacter(_local3.type);
var _local9 = Math.round(Math.random() * (speeds.length - 1));
_local3.speed = speeds[_local9];
var _local8 = _local4.attachMovie("char_holder", _local3.linkage, _local4.getNextHighestDepth(), {_x:_local5._x, _x:_local5._y});
_local8.setup(this, _local3);
}
} else {
if (allChars_count >= max_count) {
return(undefined);
}
var _local3 = new Object();
var _local7 = Math.round(Math.random() * (typesList.length - 1));
_local3.type = typesList[_local7];
if (bad_count == 0) {
withoutBad++;
} else {
withoutBad = 0;
}
if (withoutBad > maxWithoutBad) {
_local3.type = "bad";
}
_local3.linkage = selectCharacter(_local3.type);
_local3.track = selectTrack();
_local3.dir = ((_global.randBetween(0, 1) == 1) ? "r" : "l");
var _local9 = Math.round(Math.random() * (speeds.length - 1));
_local3.speed = speeds[_local9];
var _local4 = _local3.track;
var _local5 = _local4[_local3.dir + "_mc"];
var _local6 = _local4.getNextHighestDepth();
if (_local3.linkage != undefined) {
var _local8 = _local4.attachMovie("char_holder", (_local3.linkage + "_") + _local6, _local6, {_x:_local5._x, _x:_local5._y});
_local8.setup(this, _local3);
}
}
}
function manageScore(char, score, scoreType) {
var _local4;
if (scoreType == undefined) {
scoreType = "good";
_local4 = "points_good";
} else {
_local4 = "points_" + scoreType;
}
var _local2 = {x:-90, y:-340};
char.localToGlobal(_local2);
scoreDepth = gameLayout_holder.getNextHighestDepth();
var pointsHolder = gameLayout_holder.createEmptyMovieClip("score_" + scoreDepth, scoreDepth);
pointsHolder._x = _local2.x;
pointsHolder._y = _local2.y;
var points = pointsHolder.attachMovie(_local4, _local4, scoreDepth);
points.score_txt.text = score;
points.myTween = new mx.transitions.Tween(points, "_y", mx.transitions.easing.Regular.easeIn, points._y, points._y - 50, 25, false);
points._alpha = 0;
points.myTween.onMotionChanged = function () {
pointsHolder._x = char._x - 90;
if (this.time < 10) {
points._alpha = points._alpha + 15;
}
if (this.time > 19) {
points._alpha = points._alpha - 15;
}
};
points.myTween.onMotionFinished = function () {
this.obj.removeMovieClip();
};
points_total = points_total + score;
points_mc.inner_mc.score_txt.text = points_total;
points_mc.myTween = new mx.transitions.Tween(points_mc.inner_mc, "_yscale", mx.transitions.easing.Bounce.easeOut, 140, 100, 12, false);
var ref = this;
points_mc.myTween.onMotionFinished = function () {
ref.pointsCol.setTransform(ref.pointsProps.norm);
};
if (scoreType == "good") {
pointsCol.setTransform(pointsProps.good);
} else if (scoreType == "bad") {
pointsCol.setTransform(pointsProps.bad);
}
updateScoreVisual();
}
function do_click(hit) {
var _local2 = hit._parent._parent;
if ((hit._name == "allHit") || (_local2.isInjecting)) {
if (pointer.isInjecting == false) {
pointer.inject();
}
return(undefined);
}
_local2.injectMe();
}
function updateScoreVisual() {
var _local3;
if (points_total < _global.root.scoreBounds.worst) {
_local3 = "worst";
} else if (points_total < _global.root.scoreBounds.bad) {
_local3 = "bad";
} else if (points_total < _global.root.scoreBounds.good) {
_local3 = "good";
} else if (points_total > _global.root.scoreBounds.best) {
_local3 = "best";
}
trace("bernie score visual (fr) =" + _local3);
_global.scoreVisual.gotoAndStop(_local3);
}
function missed_show() {
function overscreen() {
trace("clearing interval");
screen._visible = false;
clearInterval(overInterval);
}
var screen = overscreen_mc;
screen._visible = true;
var overInterval;
overInterval = setInterval(overscreen, 1000);
}
function doorControl(doorRef, dir) {
if (dir == undefined) {
dir == "enter";
}
var _local2 = gameLayout_holder[doorRef];
_local2.gotoAndPlay("open");
}
function selectCharacter(type) {
var _local3;
var _local2;
var _local8 = true;
var _local6 = this[type + "Chars"];
if (type == "bad") {
_local8 = false;
}
var _local5 = 0;
do {
var _local4 = Math.round(Math.random() * (_local6.length - 1));
_local3 = _local6[_local4];
_local2 = false;
if (_local8 == false) {
for (var _local7 in singletonChars) {
if (_local3 == singletonChars[_local7].linkage) {
_local2 = true;
}
}
}
_local5++;
} while ((_local2 == true) && (_local5 < 10));
if (_local2 == true) {
_local3 = undefined;
}
return(_local3);
}
function selectTrack() {
var _local2;
var _local3 = false;
while (_local3 == false) {
var _local4 = Math.round(Math.random() * (tracks.length - 1));
_local2 = tracks[_local4];
trace((("selecting track " + _local2) + ", last track ") + lastTracks[0]);
trace("char count " + _local2.charCount);
if ((_local2 == lastTracks[0]) || (_local2.charCount > 1)) {
_local3 = false;
} else {
_local3 = true;
}
}
trace("SELECTED " + _local2);
lastTracks.unshift(_local2);
if (lastTracks.length > 5) {
lastTracks.pop();
}
return(_local2);
}
function setSpeedRanges(toLevel) {
if (toLevel == undefined) {
speedLevel = 0;
} else {
speedLevel = toLevel;
}
speeds = _global.root.speeds[speedLevel];
}
function setMaxCharacters(toLevel) {
if (toLevel == undefined) {
toLevel = 0;
}
max_count = maxCharCounts[toLevel];
}
}
Symbol 448 MovieClip [__Packages.com.teamrubber.Pointer] Frame 0 (0.98 KiB)
class com.teamrubber.Pointer extends MovieClip
{
var hitArea, hitPoint, isInjecting, _visible, _yscale, _xscale, startDrag, stopDrag, gotoAndPlay, endPoint;
function Pointer () {
super();
hitArea = hitPoint;
isInjecting = false;
}
function startMe() {
var pointer_ref = this;
_visible = true;
_yscale = (_xscale = 100);
startDrag(true);
Mouse.hide();
var _local4 = new Object();
_local4.onMouseMove = function () {
var _local3 = _global.root_ref._ymouse + 80;
var _local2 = 100;
_local2 = 0.25 * _local3;
_local2 = 20 + (0.8 * _local2);
pointer_ref._yscale = (pointer_ref._xscale = _local2);
};
Mouse.addListener(_local4);
}
function hideMe() {
stopDrag();
Mouse.show();
_visible = false;
}
function inject() {
gotoAndPlay("inject");
updateAfterEvent();
isInjecting = true;
endPoint = function () {
this.isInjecting = false;
};
_global.snd.playSound("zap", 1);
}
var mouse = new Object();
}
Symbol 449 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0 (465 B)
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 450 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0 (1.25 KiB) ●
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 451 MovieClip [__Packages.mx.transitions.Tween] Frame 0 (3.83 KiB) ●
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 452 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0 (475 B)
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 453 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0 (854 B)
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 454 MovieClip [__Packages.com.teamrubber.Character] Frame 0 (4.52 KiB) ●
class com.teamrubber.Character extends MovieClip
{
var root, isMoving, goodStates, badStates, game, charType, myStates, dir, side, linkage, speed, doorReached, isInjecting, isInjected, points, trackNum, trackRoot, injectSound, injectSound2, char, hitAreas, startPos, _x, endPos, tween, myState, removeMovieClip, statePos;
function Character () {
super();
root = this;
init();
}
function init() {
isMoving = false;
goodStates = new Array("still", "move", "injectGood", "cured", "injectBad");
badStates = new Array("still", "move", "inject");
setState(0);
}
function setup(game, props) {
this.game = game;
charType = props.type;
myStates = this[charType + "States"];
dir = props.dir;
side = ((props.dir == "l") ? "r" : "l");
linkage = props.linkage;
speed = props.speed;
doorReached = false;
isInjecting = false;
isInjected = false;
points = _global.root[charType + "Points"];
trackNum = props.track._name.substr(5, 1);
trackRoot = props.track;
injectSound = _global.root.sounds[linkage].linkage;
injectSound2 = _global.root.sounds[linkage].badZap;
if (injectSound == "wez_zap") {
injectSound2 = injectSound;
trace("updated");
trace("injectSound2: " + injectSound2);
trace("injectSound: " + injectSound);
}
char = root.attachMovie(linkage, linkage, root.getNextHighestDepth());
if (trackRoot.charCount == undefined) {
trackRoot.charCount = 0;
}
hitAreas = getHitAreas();
var _local3 = 0;
while (_local3 < hitAreas.length) {
hitAreas[_local3].onPress = function () {
_global.root_ref.do_click(this);
};
_local3++;
}
startPos = _x;
if (dir == "r") {
endPos = props.track.l_mc._x;
} else {
endPos = props.track.r_mc._x;
char._xscale = -100;
}
trackRoot.charCount++;
this.game.allChars_count++;
this.game[charType + "_count"]++;
this.game.allChars[this] = this;
if (charType == "bad") {
this.game.singletonChars[this] = this;
}
setState();
startMove();
var _local5 = ((("door" + trackNum) + "_") + dir) + "_mc";
this.game.doorControl(_local5, "enter");
}
function startMove() {
isMoving = true;
tween = new mx.transitions.Tween(this, "_x", mx.transitions.easing.None.easeNone, _x, endPos, speed, true);
tween.onMotionChanged = mx.utils.Delegate.create(this, checkCharPos);
tween.onMotionFinished = mx.utils.Delegate.create(this, removeChar);
}
function injectMe(o) {
tween.stop();
isMoving = false;
isInjecting = true;
if (charType == "bad") {
isInjected = true;
} else {
isInjected = !isInjected;
}
_global.snd.stopSound(injectSound);
_global.snd.stopSound(injectSound2);
if (charType == "bad") {
trace("BAD loop");
_global.snd.playSound(injectSound, 1);
game.manageScore(this, points.score, "bad");
} else if (myState == "cured") {
_global.snd.playSound(injectSound2, 1);
game.manageScore(this, points.negScore, "bad");
} else {
_global.snd.playSound(injectSound, 1);
game.manageScore(this, points.score, "good");
}
setState();
game.pointer.inject();
}
function checkCharPos() {
isMoving = true;
if (doorReached == false) {
var _local2 = ((("door" + trackNum) + "_") + side) + "_mc";
if (((dir == "r") && ((_x - 100) < endPos)) || ((dir == "l") && ((_x + 110) > endPos))) {
doorReached = true;
if (isInjected == false) {
trace((("char is injected? " + isInjected) + " charType ") + charType);
if (charType == "bad") {
} else {
game.manageScore(this, points.exitUnclicked, "bad");
game.missed_show();
}
}
game.doorControl(_local2, "exit");
}
}
}
function removeChar() {
game.allChars_count--;
trackRoot.charCount--;
game[charType + "_count"]--;
delete game.allChars[this];
delete game.singletonChars[this];
removeMovieClip();
}
function endOfAnimation() {
isInjecting = false;
setState();
tween.resume();
}
function setState(newState) {
if (newState == undefined) {
statePos++;
if (statePos >= myStates.length) {
statePos = 1;
}
} else {
statePos = newState;
}
myState = myStates[statePos];
char.gotoAndPlay(myState);
}
function getHitAreas() {
var _local3 = new Array();
for (var _local4 in char) {
var _local2 = char[_local4];
if (((_local2 != undefined) && (typeof(_local2) == "movieclip")) && (_local2._name.split("_")[0] == "hit")) {
_local3.push(char[_local4]);
}
}
return(_local3);
}
}
Symbol 455 MovieClip [__Packages.mx.transitions.easing.None] Frame 0 (397 B)
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 324 MovieClip [__Packages.mx.utils.Delegate] Frame 0 (458 B)
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 456 MovieClip [__Packages.com.teamrubber.SeqTrackerAdaptor] Frame 0 (1.92 KiB) ●
class com.teamrubber.SeqTrackerAdaptor
{
static var instance;
function SeqTrackerAdaptor () {
init();
setup();
}
function init() {
}
function setup() {
}
static function initTracker(func) {
if (active) {
getInstance().comp.setVerbose(true);
getInstance().comp.setBaseURL(BASE_URL);
getInstance().comp.setCampaignID(CAMPAIGN_ID);
getInstance().comp.setProjectID(PROJECT_ID);
getInstance().comp.initialise(func);
getInstance().comp._visible = false;
} else {
func();
}
}
static function doLoad() {
getInstance().comp.load();
}
static function setComponentReference(comp) {
if (active) {
getInstance().comp = comp;
}
}
static function viewSplash() {
if (active && (projectViewed == false)) {
projectViewed = true;
getInstance().comp.view("viewSplash");
}
}
static function viewScreen(view) {
if (active && (view != undefined)) {
getInstance().comp.view(view);
}
}
static function campaignExit(link, from) {
var _local1;
var _local2;
if ((from == undefined) || (from == "")) {
_local1 = CAMPAIGN_LINK_LABEL;
} else {
_local1 = from;
}
if ((link == undefined) || (link == "")) {
_local2 = CAMPAIGN_LINK;
} else {
_local2 = link;
}
if (active) {
getInstance().comp.exit(_local2, _local1, "_blank");
}
}
static function sendToFriendConversion() {
if (active) {
getInstance().comp.conversion("n/a", "sendToFriend");
}
}
static function getInstance() {
if (!instance) {
instance = new com.teamrubber.SeqTrackerAdaptor();
}
return(instance);
}
static var BASE_URL = "http://tracking.viralmanager.com/tracking/";
static var CAMPAIGN_ID = "40";
static var PROJECT_ID = "webbliworld";
static var CAMPAIGN_LINK = "http://www.webbliworld.com";
static var CAMPAIGN_LINK_LABEL = "exitCampaign";
static var active = true;
static var projectViewed = false;
}
Symbol 457 MovieClip [__Packages.com.teamrubber.FormClass] Frame 0 (17.58 KiB) ● ● ●
class com.teamrubber.FormClass extends MovieClip
{
var disabled, formArray, errorStrings, emailError, stringError, postcodeError, numberError, customDropDown, formRoot, errorRoot, pairing, myObj, gotoAndStop;
function FormClass (formArray, errorStrings, formRoot, errorRoot, pairing) {
super();
disabled = false;
this.formArray = formArray;
this.errorStrings = errorStrings;
emailError = errorStrings.email;
stringError = errorStrings.string;
postcodeError = errorStrings.postcode;
numberError = "Numbers only!";
customDropDown = false;
this.formRoot = formRoot;
if (errorRoot == undefined) {
this.errorRoot = this.formRoot;
} else {
this.errorRoot = errorRoot;
}
if (pairing == undefined) {
this.pairing = false;
} else {
this.pairing = pairing;
}
var _local7 = 0;
while (_local7 < this.formArray.length) {
var _local5 = this.formArray[_local7];
_local5.clip.tabIndex = _local7 + 1;
_local5.errorClip._visible = false;
if ((_local5.itemType == "dropDown") && ((_local5.original == "") || (_local5.original == undefined))) {
} else if (_local5.itemType == "checkBox") {
_local5.clip.myObj = _local5;
_local5.clip.myObj.myState = false;
} else if (_local5.itemType == "radio") {
var _local6 = 0;
while (_local6 < _local5.group.length) {
trace("setting data");
_local5.group[_local6].clip.data = _local5.group[_local6].d;
_local6++;
}
} else {
_local5.clip.text = _local5.original;
}
if (_local5.itemType == "number") {
_local5.clip.restrict = "0-9";
}
if (_local5.required == undefined) {
_local5.required = false;
}
_local5.origRequired = _local5.required;
_local5.tmpVal = "";
if (_local5.pair != undefined) {
this.pairing = true;
} else {
this.pairing = false;
}
_local7++;
}
setActiveState(false);
Selection.addListener(this);
if (_global.noFocus == undefined) {
_root.createTextField("noFocus_txt", _root.getNextHighestDepth(), -1000, 0, 20, 20);
_global.noFocus = _root.noFocus_txt;
_global.noFocus.text = "no focus";
}
}
function onSetFocus(oldFocus, newFocus) {
if ((newFocus != _global.noFocus) && (newFocus != null)) {
_global.currentForm.handleFormError(false);
}
var _local4 = new Object();
var _local3 = 0;
while (_local3 < _global.currentForm.formArray.length) {
if (_global.currentForm.formArray[_local3].clip._name == newFocus._name) {
_local4 = _global.currentForm.formArray[_local3];
setActiveState(true, _local4);
break;
}
_local3++;
}
if (_local4.error == true) {
_local4.error = false;
if (_local4.clip.text == _local4.original) {
_local4.clip.text = "";
} else if (_local4.clip.text == "") {
_local4.clip.text = _local4.tmpVal;
} else {
_local4.clip.text = _local4.tmpVal;
}
} else if (_local4.clip.text == _local4.original) {
_local4.clip.text = "";
}
}
function getValueFor(id) {
var _local6 = 0;
while (_local6 < formArray.length) {
var _local2 = formArray[_local6];
if (_local2.id == id) {
if (_local2.itemType == "checkBox") {
if (_local2.custom == undefined) {
_local2.myState = _local2.clip.selected;
}
if (_local2.myState == false) {
return("off");
}
return("on");
}
if (_local2.itemType == "dropDown") {
if (customDropDown) {
return(_local2.clip.selectedItem.getLabel());
}
if (((_local2.clip.selectedItem.label.toLowerCase() == "other") && (_local2.other.text != "")) && (_local2.other.text != undefined)) {
return(((_local2.clip.selectedItem.label + "[") + _local2.other.text) + "]");
}
return(_local2.clip.selectedItem.label);
}
if (_local2.itemType == "multiCB") {
var _local5 = "";
var _local3 = 0;
while (_local3 < _local2.group.length) {
if (_local2.group[_local3].clip.selected == true) {
var _local4;
if (_local5 == "") {
_local4 = "";
} else {
_local4 = ",";
}
if (((_local2.group[_local3].t.toLowerCase() == "other") && (_local2.other.text != "")) && (_local2.other.text != undefined)) {
_local5 = _local5 + ((((_local4 + _local2.group[_local3].t) + "[") + _local2.other.text) + "]");
} else {
_local5 = _local5 + (_local4 + _local2.group[_local3].t);
}
}
_local3++;
}
return(_local5);
}
if (_local2.itemType == "radio") {
return(_local2.clip._parent.radioGroup.selection.data);
}
return(_local2.clip.text);
}
_local6++;
}
trace("id not found");
return("id not found");
}
function getItem(id) {
var _local2 = 0;
while (_local2 < formArray.length) {
if (formArray[_local2].id == id) {
return(formArray[_local2]);
}
_local2++;
}
}
function returnActiveFields() {
var _local3 = new Object();
var _local4 = 0;
while (_local4 < formArray.length) {
var _local2 = formArray[_local4];
if (_local2.itemType == "email") {
if ((_local2.required != false) || ((_local2.clip.text != "") && (_local2.clip.text != _local2.original))) {
_local3[_local2.id] = getValueFor(_local2.id);
}
} else if ((_local2.itemType == "string") || (_local2.itemType == "number")) {
if ((_local2.required != false) || ((_local2.clip.text != "") && (_local2.clip.text != _local2.original))) {
_local3[_local2.id] = getValueFor(_local2.id);
}
} else if (_local2.itemType == "postcode") {
if ((_local2.required != false) || ((_local2.clip.text != "") && (_local2.clip.text != _local2.original))) {
_local3[_local2.id] = getValueFor(_local2.id);
}
} else if (_local2.itemType == "checkBox") {
_local3[_local2.id] = getValueFor(_local2.id);
} else if (_local2.itemType == "dropDown") {
_local3[_local2.id] = getValueFor(_local2.id);
}
_local4++;
}
return(_local3);
}
function returnAllFields() {
var _local4 = new Object();
var _local2 = 0;
while (_local2 < formArray.length) {
var _local3 = formArray[_local2];
_local4[_local3.id] = getValueFor(_local3.id);
_local2++;
}
return(_local4);
}
function setErrorFor(id, error) {
var _local2 = 0;
while (_local2 < formArray.length) {
if (formArray[_local2].id == id) {
trace((("SETTING ERROR FOR " + formArray[_local2].id) + " as ") + error);
formArray[_local2].error = error;
}
_local2++;
}
}
function boxClick() {
_global.currentForm.handleFormError(false);
if (myObj.myState == false) {
myObj.myState = true;
gotoAndStop("on");
} else {
myObj.myState = false;
gotoAndStop("off");
}
}
function rememberValues(formIDs, dataSource, dropDowns) {
var _local2 = 0;
while (_local2 < formIDs.length) {
if (dataSource[formIDs[_local2]] != undefined) {
setStoredValues(formIDs[_local2], dataSource[formIDs[_local2]], dropDowns[formIDs[_local2]]);
}
_local2++;
}
}
function setStoredValues(id, stored, dataSource) {
var _local3 = getItem(id);
var _local8 = _local3.clip;
if (_local3.itemType == "dropDown") {
trace("DropDown. Stored : " + stored);
var _local11 = stored.split("[");
stored = _local11[0];
trace((("DropDown. Stored : " + stored) + " removeBrace : ") + _local11);
var _local6 = 0;
while (_local6 < dataSource.length) {
if ((stored == dataSource[_local6].label) || (stored == dataSource[_local6])) {
if (customDropDown) {
_local8.setData(_local6);
} else {
_local8.selectedIndex = _local6;
if (stored.toLowerCase() == "other") {
_local3.other.text = _local11[1].split("]")[0];
}
}
break;
}
_local6++;
}
} else if (_local3.itemType == "checkBox") {
var _local10 = ((stored == "on") ? true : false);
_local3.myState = _local10;
if (_local3.custom) {
_local8.gotoAndStop(stored);
} else {
_local8.selected = _local10;
}
trace((((((stored + " < ") + _local8) + " ") + _local3.myState) + " > ") + _local10);
} else if (_local3.itemType == "multiCB") {
var _local11 = stored.split("[").join(",").split("]");
stored = _local11.join(",");
var _local4 = stored.split(",");
var _local5 = 0;
while (_local5 < _local3.group.length) {
trace("multiCB " + _local3.group[_local5].t);
var _local2 = 0;
while (_local2 < _local4.length) {
if (_local3.group[_local5].t == _local4[_local2]) {
trace("* multiCB " + _local4[_local2]);
_local3.group[_local5].clip.selected = true;
if (_local4[_local2].toLowerCase() == "other") {
_local3.other.text = _local4[_local2 + 1];
}
}
_local2++;
}
_local5++;
}
} else if (_local3.itemType == "radio") {
trace((("REMEMBER radio " + _local3.groupName) + " ") + stored);
_local3.groupName.selectedData = stored;
} else if ((((stored.toLowerCase() != "") && (stored.toLowerCase() != undefined)) && (stored.toLowerCase() != "not provided")) && (stored.toLowerCase() != "rather not say")) {
_local8.text = stored;
}
}
function setTabIndexes(IDs, firstFocus) {
if (IDs == undefined) {
IDs = formArray;
}
var _local2 = 0;
while (_local2 < IDs.length) {
var _local3;
if (typeof(IDs[_local2]) == "string") {
_local3 = getItem(IDs[_local2]);
} else if (typeof(IDs[_local2]) == "movieclip") {
_local3 = new Object();
_local3.clip = IDs[_local2];
} else {
_local3 = IDs[_local2];
if (_local3.clip == undefined) {
_local3.clip = IDs[_local2];
}
}
_local3.clip.tabIndex = _local2 + 1;
_local2++;
}
firstFocus.focusEnabled = true;
Selection.setFocus(firstFocus);
}
function validateForm(IDs) {
if (IDs == undefined) {
IDs = formArray;
}
var _local4 = 0;
while (_local4 < IDs.length) {
var _local2;
if (typeof(IDs[_local4]) == "string") {
_local2 = getItem(IDs[_local4]);
} else {
_local2 = IDs[_local4];
}
if (_local2.required) {
setActiveState(true, _local2);
} else if (((_local2.itemType == "email") || (_local2.itemType == "postcode")) || (_local2.itemType == "string")) {
if ((_local2.clip.text == "") || (_local2.clip.text == _local2.original)) {
setActiveState(false, _local2);
} else {
setActiveState(true, _local2);
}
}
_local4++;
}
var _local5 = false;
_local4 = 0;
while (_local4 < IDs.length) {
if (typeof(IDs[_local4]) == "string") {
var _local2 = getItem(IDs[_local4]);
} else {
var _local2 = IDs[_local4];
}
if (_local2.itemType == "email") {
if (checkEmail(_local2, emailError) == false) {
_local5 = true;
}
} else if (_local2.itemType == "string") {
if (checkOtherTextBox(_local2, stringError) == false) {
_local5 = true;
}
} else if (_local2.itemType == "checkBox") {
if (validateCheckBoxes(_local2) == false) {
trace("errors with check Box");
_local5 = true;
}
} else if (_local2.itemType == "postcode") {
if (checkPostcode(_local2, postcodeError) == false) {
_local5 = true;
}
} else if (_local2.itemType == "dropDown") {
if (checkDropDown(_local2, "") == false) {
_local5 = true;
}
} else if (_local2.itemType == "number") {
if (checkNumber(_local2, "") == false) {
_local5 = true;
}
}
_local4++;
}
if (_local5 == false) {
if (checkPairing()) {
return(true);
}
handleFormError(true);
return(false);
}
handleFormError(true);
return(false);
}
function handleFormError(error) {
if (error == false) {
var _local3 = 0;
while (_local3 < formArray.length) {
formArray[_local3].errorClip._visible = error;
_local3++;
}
errorRoot.gotoAndPlay(_global.errorReturn);
} else {
var _local3 = 0;
while (_local3 < formArray.length) {
formArray[_local3].errorClip._visible = formArray[_local3].error;
_local3++;
}
errorRoot.gotoAndPlay("error");
}
}
function checkPairing() {
var _local4 = false;
if (pairing == true) {
var _local3 = 0;
while (_local3 < formArray.length) {
var _local2 = formArray[_local3];
if (((_local2.itemType == "email") || (_local2.itemType == "string")) || (_local2.itemType == "postCode")) {
if (_local2.active == true) {
if ((formArray[_local2.pair].clip.text == "") || (formArray[_local2.pair].clip.text == formArray[_local2.pair].original)) {
formArray[_local2.pair].error = true;
_local4 = true;
}
}
}
_local3++;
}
} else {
return(true);
}
if (_local4) {
return(false);
}
return(true);
}
function checkNumber(item, errorText) {
var _local1 = item.clip.text;
var _local3 = true;
if (item.active && (_local1 != item.original)) {
trace((item.clip._name + " isNaN? ") + isNaN(_local1));
if (isNaN(_local1)) {
item.error = true;
_local3 = false;
}
}
return(_local3);
}
function checkEmail(item, errorText) {
var _local6;
var _local4 = item.clip.text;
var _local3 = getItem(item.pair);
trace("checkBox -> " + _local3.myState);
if ((item.required == true) || ((item.clip.text != "") && (item.clip.text != item.original))) {
if ((_local3 != undefined) && (_local3.myState == false)) {
_local3.required = true;
}
if (validEmail(_local4) == false) {
if (((item.clip.text != item.original) && (item.clip.text != errorText)) && (item.clip.text != "")) {
item.tmpVal = item.clip.text;
}
item.clip.text = errorText;
item.error = true;
return(false);
}
item.error = false;
return(true);
}
trace((("resetting checkbox required? - " + _local3.origRequired) + " ") + _local3.required);
if (_local3.origRequired != undefined) {
_local3.required = _local3.origRequired;
}
}
function checkOtherTextBox(item, errorText) {
if (item.required != false) {
if (item.clip.text == item.original) {
item.error = true;
item.clip.text = errorText;
return(false);
}
if (item.clip.text == "") {
item.error = true;
item.clip.text = errorText;
return(false);
}
}
if (item.clip.text == errorText) {
item.error = true;
item.clip.text = errorText;
return(false);
}
return(true);
}
function checkPostcode(item, errorText) {
if (item.required != false) {
var _local3 = item.clip.text;
if (_local3 == item.original) {
item.error = true;
item.clip.text = errorText;
return(false);
}
if (_local3 == "") {
item.error = true;
item.clip.text = errorText;
return(false);
}
if (_local3 == errorText) {
item.error = true;
item.clip.text = errorText;
return(false);
}
var _local5 = "*|,\":<>[]{}`';()&$#%-=";
var _local6 = _local3.length;
var _local1 = 0;
while (_local1 < _local6) {
if (_local5.indexOf(_local3.charAt(_local1)) != -1) {
item.error = true;
item.clip.text = errorText;
item.tmpVal = _local3;
return(false);
}
_local1++;
}
}
return(true);
}
function checkDropDown(item) {
if (item.required != false) {
if (item.clip.selectedItem.label == item.clip.getItemAt(0).label) {
item.error = true;
return(false);
}
}
return(true);
}
function validateCheckBoxes(item) {
var _local4 = true;
item.error = false;
var _local2 = getItem(item.pair);
if ((item.custom == undefined) || (item.custom == false)) {
item.myState = item.clip.selected;
}
trace("item.myState " + item.myState);
if (item.myState == false) {
if (item.required == true) {
item.error = true;
_local4 = false;
}
if (_local2.required == false) {
setActiveState(false, _local2);
setErrorFor(item.pair, false);
checkEmail(_local2, emailError);
}
} else if (item.myState == true) {
if ((((_local2.clip.text == "") || (_local2.clip.text == _local2.original)) || (_local2.clip.text == emailError)) && (_local2 != undefined)) {
trace("highlighting error in " + _local2.id);
setErrorFor(item.pair, true);
setActiveState(true, _local2);
checkEmail(_local2, emailError);
_local4 = false;
} else {
_local4 = true;
}
}
return(_local4);
}
function validEmail(t) {
if (t.length < 5) {
return(false);
}
var _local4 = "*|,\":<>[]{}`';()&$#%";
var _local3 = t.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local4.indexOf(t.charAt(_local1)) != -1) {
return(false);
}
_local1++;
}
var _local5 = t.lastIndexOf("@");
if ((_local5 < 1) || (_local5 == (_local3 - 1))) {
return(false);
}
var _local6 = t.lastIndexOf(".");
if ((_local6 < 4) || (_local6 == (_local3 - 1))) {
return(false);
}
if (_local5 > _local6) {
return(false);
}
_local1 = 0;
while (_local1 < _local3) {
if (((t.charAt(_local1) == ".") || (t.charAt(_local1) == "@")) && (t.charAt(_local1) == t.charAt(_local1 - 1))) {
return(false);
}
_local1++;
}
return(true);
}
function setActiveState(active, item) {
if (item == undefined) {
var _local2 = 0;
while (_local2 < formArray.length) {
formArray[_local2].active = active;
_local2++;
}
} else {
item.active = active;
}
}
function removeSelectionListener() {
Selection.removeListener(this);
}
}
Symbol 458 MovieClip [__Packages.com.teamrubber.SoundManager] Frame 0 (5.64 KiB) ● ●
class com.teamrubber.SoundManager
{
var linkList, tl, soundHolder, fadeList, panList, volume, sounds, soundVolumes, playFlag, playList, currentPlayListSound, EOFlistener, soundState;
function SoundManager (tl, linkList) {
this.linkList = linkList;
this.tl = tl;
soundHolder = null;
fadeList = [];
panList = [];
volume = 100;
sounds = {};
soundVolumes = {};
playFlag = true;
playList = [];
currentPlayListSound = null;
EOFlistener = null;
soundState = true;
setupSounds();
setNewVolume(volume);
}
function setupSounds() {
tl.createEmptyMovieClip("SOUNDS_MC", 99998);
soundHolder = tl.SOUNDS_MC;
soundHolder.cb = this;
soundHolder.onEnterFrame = function () {
this.cb.doLoop();
};
var _local3 = 0;
while (_local3 < linkList.length) {
var _local2 = linkList[_local3];
soundHolder.createEmptyMovieClip(_local2, 999 + _local3);
sounds[_local2] = new Sound(soundHolder[_local2]);
sounds[_local2].attachSound(_local2);
trace(((">>> sound '" + _local2) + "' duration is ") + sounds[_local2].duration);
_local3++;
}
}
function endOfPlayListSubscribe(obj) {
EOFlistener = obj;
}
function addToPlayList(linkName) {
playList.push(linkName);
}
function addArrayToPlayList(links) {
var _local2 = 0;
while (_local2 < links.length) {
playList.push(links[_local2]);
_local2++;
}
}
function playListKickIfEmpty() {
if (playList.length == 0) {
playListKick();
}
}
function playListKick() {
if (playList.length > 0) {
var _local2 = playList.shift();
sounds[_local2].cb = this;
sounds[_local2].onSoundComplete = function () {
this.playing = false;
this.cb.endOfSound();
};
currentPlayListSound = sounds[_local2];
currentPlayListSound.link = _local2;
playSound(_local2, 0, false);
} else {
EOFlistener.endOfPlayList();
EOFlistener = null;
}
}
function stopAndEmptyPlayList() {
if (playList.length > 0) {
for (var _local2 in playList) {
playList[_local2].stop();
playList[_local2].playing = false;
}
playList = [];
}
currentPlayListSound.stop();
currentPlayListSound.playing = false;
currentPlayListSound = null;
}
function endOfSound() {
currentPlayListSound.onSoundComplete = null;
currentPlayListSound.playing = false;
playListKick();
}
function doLoop() {
for (var _local2 in fadeList) {
if (fadeSound(fadeList[_local2])) {
if (fadeList[_local2].fadeTo <= 0) {
trace("deleting sound!");
stopSound(fadeList[_local2].linkName);
}
delete fadeList[_local2];
}
}
for (var _local2 in panList) {
if (panSound(panList[_local2])) {
delete panList[_local2];
}
}
}
function playSound(linkname, loop, setOnComplete) {
if (playFlag && (!sounds[linkname].playing)) {
if (loop == undefined) {
loop = 0;
}
if (setOnComplete == undefined) {
setOnComplete = true;
}
if (setOnComplete) {
sounds[linkname].onSoundComplete = function () {
this.playing = false;
delete this.onSoundComplete;
};
}
sounds[linkname].start(0, loop);
sounds[linkname].playing = true;
}
}
function stopSound(linkname) {
sounds[linkname].stop(linkname);
sounds[linkname].playing = false;
sounds[linkname].onSoundComplete = null;
}
function setNewVolume(theVol_num, linkname) {
if (linkname == undefined) {
for (var _local3 in sounds) {
sounds[_local3].setVolume(theVol_num);
}
} else {
sounds[linkname].setVolume(theVol_num);
soundVolumes[linkname].vol = theVol_num;
}
}
function fadeSound(obj) {
obj.curVol = obj.curVol + obj.volInc;
if (obj.volInc < 0) {
if (obj.curVol <= obj.fadeTo) {
setNewVolume(obj.fadeTo, obj.linkName);
obj = null;
return(true);
}
setNewVolume(obj.curVol, obj.linkName);
return(false);
}
if (obj.volInc > 0) {
if (obj.curVol >= obj.fadeTo) {
setNewVolume(obj.fadeTo, obj.linkName);
obj = null;
return(true);
}
setNewVolume(obj.curVol, obj.linkName);
return(false);
}
obj = null;
return(true);
}
function setSoundState(flag) {
playFlag = flag;
if (playFlag) {
soundState = true;
setNewVolume(100);
} else {
soundState = false;
setNewVolume(0);
}
}
function setupAfade(linkName, fadeTo, inc) {
fadeList[linkName] = {linkName:linkName, curVol:sounds[linkName].getVolume(), volInc:inc, fadeTo:fadeTo};
}
function cancelFade(linkName) {
delete fadeList[linkName];
}
function fadeOutAllSounds() {
for (var _local2 in sounds) {
setupAfade(_local2, 0, -10);
}
}
function setNewPan(thePan_num, linkname) {
if (linkname == undefined) {
for (var _local3 in sounds) {
trace("set pan " + thePan_num);
sounds[_local3].setPan(thePan_num);
}
} else {
sounds[linkname].setPan(thePan_num);
}
}
function panSound(obj) {
obj.curPan = obj.curPan + obj.panInc;
if (obj.panInc < 0) {
if (obj.curPan <= obj.fadeTo) {
setNewPan(obj.fadeTo, obj.linkName);
obj = null;
return(true);
}
setNewPan(obj.curVol, obj.linkName);
return(false);
}
if (obj.panInc > 0) {
if (obj.curPan >= obj.fadeTo) {
setNewPan(obj.fadeTo, obj.linkName);
obj = null;
return(true);
}
setNewPan(obj.curPan, obj.linkName);
return(false);
}
obj = null;
return(true);
}
function setupAPan(linkName, fadeTo, inc) {
panList[linkName] = {linkName:linkName, curPan:sounds[linkName].getPan(), panInc:inc, fadeTo:fadeTo};
}
function cancelPan(linkName) {
delete panList[linkName];
}
}
Symbol 319 MovieClip [__Packages.com.rubberductions.Tracker] Frame 0 (7.6 KiB) ● ●
class com.rubberductions.Tracker extends MovieClip
{
var lvID, lvs, sessionID, referrer, flashMinorVersion, flashMajorVersion, debug, CID, baseURL, userID, projectID, getIDFunc, userLV, getURL;
function Tracker () {
super();
initVars();
}
function initVars() {
lvID = 0;
lvs = [];
sessionID = "-1";
referrer = ((_root.referrer == undefined) ? "" : (_root.referrer));
var _local3 = com.rubberductions.Utils.getFlashVersion();
flashMinorVersion = (_local3.result ? (_local3.minor) : -1);
flashMajorVersion = (_local3.result ? (_local3.major) : -1);
}
function getNextLvID() {
return(++lvID);
}
function getALoadVars(label) {
var _local2 = new LoadVars();
_local2.__arrID = getNextLvID();
_local2.__label = label;
_local2.__cb = this;
_local2.onLoad = function (success) {
if (success) {
this.__cb.checkRequest(this);
} else {
this.__cb.badRequest(this);
}
};
lvs[_local2.__arrID] = _local2;
return(_local2);
}
function badRequest(lv) {
output(("request " + lv.__label) + " failed");
delete lvs[lv.__arrID];
}
function checkRequest(lv) {
if (lv.ok == "1") {
output(("request " + lv.__label) + " returned ok");
} else {
output(("request " + lv.__label) + " failed on the server");
}
if (lv.sessionID != undefined) {
sessionID = lv.sessionID;
}
delete lvs[lv.__arrID];
}
function output(str) {
if (debug) {
trace("TRACKER: " + str);
}
}
function checkReady() {
if ((((CID != undefined) && (baseURL != undefined)) && (userID != undefined)) && (projectID != undefined)) {
return(true);
}
output("prerequisits haven't been defined, check you have made calls to setBaseURL() ,setCampaignID(), setProjectID() and initialise() and that they returned correctly");
return(false);
}
function initialise(cbFunction) {
if (typeof(cbFunction) == "function") {
getIDFunc = cbFunction;
var _local2 = com.rubberductions.Utils.readLSO(projectID, "id");
if (_local2 != "") {
userID = _local2;
output("cookie found... letting you know");
getIDFunc(true);
} else {
output("cookie not found...");
requestUserID();
}
} else {
output("check the passed function");
}
}
function requestUserID() {
if (CID != undefined) {
output(("asking the server for a new user id from: " + baseURL) + GETID);
userLV = new LoadVars();
userLV.CID = CID;
userLV.onLoad = mx.utils.Delegate.create(this, userIDRequestResponse);
userLV.sendAndLoad(baseURL + GETID, userLV, "POST");
} else {
output("define the campaign id first before calling requestUserID");
}
}
function userIDRequestResponse(success) {
if (success) {
if (userLV.id != undefined) {
output("server provided a user id: " + userLV.id);
userID = userLV.id;
com.rubberductions.Utils.writeLSO(projectID, "id", userID);
output("wrote the coookie");
getIDFunc(true);
} else {
output("server didn't provide a user id");
getIDFunc(false);
}
} else {
output("request for the user id failed");
getIDFunc(false);
}
delete userLV;
}
function setBaseURL(u) {
if (typeof(u) == "string") {
baseURL = u;
return(true);
}
output("check the URL you passed to setBaseURL()");
return(false);
}
function setProjectID(id) {
if (typeof(id) == "string") {
projectID = id;
output("project id set: " + projectID);
return(true);
}
output("project id was not a string");
return(false);
}
function setCampaignID(id) {
if (typeof(id) == "string") {
CID = id;
output("campaign id set: " + CID);
return(true);
}
output("campaign id was not a number");
return(false);
}
function load() {
if (checkReady()) {
var _local2 = getALoadVars("load");
_local2.CID = CID;
_local2.flversionmajor = flashMajorVersion;
_local2.flversionminor = flashMinorVersion;
_local2.referrer = referrer;
_local2.UID = userID;
_local2.sendAndLoad(baseURL + LOAD, _local2, "POST");
return(true);
}
return(false);
}
function startSession() {
sessionID = "0";
if (checkReady()) {
var _local2 = getALoadVars("start session");
_local2.CID = CID;
_local2.UID = userID;
_local2.currentTime = new Date().getTime();
_local2.sendAndLoad(baseURL + START_SESSION, _local2, "POST");
return(true);
}
return(false);
}
function endSession() {
if (checkReady()) {
var _local2 = getALoadVars("end session");
_local2.CID = CID;
_local2.UID = userID;
_local2.currentTime = new Date().getTime();
_local2.sessionID = sessionID;
_local2.sendAndLoad(baseURL + END_SESSION, _local2, "POST");
return(true);
}
return(false);
}
function exit(link, exitLabel, window) {
if (typeof(link) == "string") {
if (typeof(exitLabel) == "string") {
if (typeof(window) == "string") {
if (checkReady()) {
var _local2 = getALoadVars("exit");
_local2.UID = userID;
_local2.CID = CID;
_local2.label = exitLabel;
_local2.link = link;
_local2.sendAndLoad(baseURL + EXIT, _local2, "POST");
}
(getURL(link, window));// not popped
return(true);
}
output("check the window you passed");
} else {
output("check the exitLabel you passed");
}
} else {
output("check the link you passed");
}
return(false);
}
function conversion(label, type) {
if (typeof(label) == "string") {
if (typeof(type) == "string") {
if (checkReady()) {
var _local2 = getALoadVars("conversion");
_local2.UID = userID;
_local2.CID = CID;
_local2.label = label;
_local2.type = type;
_local2.sendAndLoad(baseURL + CONVERSION, _local2, "POST");
return(true);
}
return(false);
}
output("check the type you passed");
} else {
output("check the label you passed");
}
return(false);
}
function exitPass(toSplit) {
if (checkReady()) {
if (typeof(toSplit) == "string") {
var _local2 = toSplit.split("|");
exit(unescape(_local2[1]), _local2[0]);
return(true);
}
return(false);
}
}
function view(label) {
if (typeof(label) == "string") {
if (checkReady()) {
var _local2 = getALoadVars("view");
_local2.UID = userID;
_local2.CID = CID;
_local2.label = label;
_local2.sendAndLoad(baseURL + VIEW, _local2, "POST");
return(true);
}
} else {
output("check the label you passed");
return(false);
}
}
function custom(path, obj, id) {
if (typeof(path) == "string") {
if (typeof(obj) == "object") {
if (typeof(id) == "string") {
if (checkReady()) {
var _local3 = getALoadVars(id);
_local3.UID = userID;
_local3.CID = CID;
for (var _local4 in obj) {
_local3[_local4] = obj[_local4];
}
_local3.sendAndLoad(baseURL + path, _local3, "POST");
return(true);
}
return(false);
}
// unexpected jump
}
output("check the supplied data obj - doesn't seem to be a Object");
return(false);
}
output("check the supplied path - doesn't seem to be a string");
return(false);
}
function setVerbose(val) {
if (typeof(val) == "boolean") {
debug = val;
output("setVerbose: " + val);
return(true);
}
trace("TRACKER: setVerbose: param is not a boolean");
return(false);
}
static var GETID = "getUID";
static var LOAD = "load";
static var START_SESSION = "startSession";
static var END_SESSION = "endSession";
static var EXIT = "exit";
static var VIEW = "view";
static var CONVERSION = "conversion";
}
Symbol 323 MovieClip [__Packages.com.rubberductions.Utils] Frame 0 (867 B)
class com.rubberductions.Utils
{
function Utils () {
}
static function readLSO(lsoName, prop) {
if (lsoName != undefined) {
var _local1 = SharedObject.getLocal(lsoName);
if (_local1.data[prop] == undefined) {
return("");
}
return(_local1.data[prop]);
}
}
static function writeLSO(lsoName, prop, stuff) {
var _local1 = SharedObject.getLocal(lsoName);
_local1.data[prop] = stuff;
_local1.data.flush();
}
static function getFlashVersion() {
var _local1 = System.capabilities.version;
var _local2 = _local1.indexOf(" ");
if (_local2 != -1) {
_local1 = _local1.substr(_local2 + 1, _local1.length);
_local1 = _local1.split(",");
var _local5 = _local1[0];
var _local4 = _local1[1];
return({major:_local5, minor:_local4, result:true});
}
return({major:-1, minor:-1, result:false});
}
}
Symbol 144 MovieClip Frame 1 (8 B)
stop();
Symbol 163 MovieClip [bad_1] Frame 1 (8 B)
stop();
Symbol 163 MovieClip [bad_1] Frame 10 (1 B)
Symbol 163 MovieClip [bad_1] Frame 17 (8 B)
stop();
Symbol 163 MovieClip [bad_1] Frame 18 (1 B)
Symbol 163 MovieClip [bad_1] Frame 30 (31 B)
this._parent.endOfAnimation();
Symbol 178 MovieClip [bad_2] Frame 1 (8 B)
stop();
Symbol 178 MovieClip [bad_2] Frame 10 (1 B)
Symbol 178 MovieClip [bad_2] Frame 17 (8 B)
stop();
Symbol 178 MovieClip [bad_2] Frame 18 (1 B)
Symbol 178 MovieClip [bad_2] Frame 30 (31 B)
this._parent.endOfAnimation();
Symbol 203 MovieClip [good_1] Frame 1 (8 B)
stop();
Symbol 203 MovieClip [good_1] Frame 10 (8 B)
stop();
Symbol 203 MovieClip [good_1] Frame 18 (1 B)
Symbol 203 MovieClip [good_1] Frame 30 (31 B)
this._parent.endOfAnimation();
Symbol 203 MovieClip [good_1] Frame 31 (8 B)
stop();
Symbol 203 MovieClip [good_1] Frame 39 (1 B)
Symbol 203 MovieClip [good_1] Frame 52 (31 B)
this._parent.endOfAnimation();
Symbol 220 MovieClip [good_2] Frame 1 (8 B)
stop();
Symbol 220 MovieClip [good_2] Frame 10 (8 B)
stop();
Symbol 220 MovieClip [good_2] Frame 18 (1 B)
Symbol 220 MovieClip [good_2] Frame 30 (31 B)
this._parent.endOfAnimation();
Symbol 220 MovieClip [good_2] Frame 31 (8 B)
stop();
Symbol 220 MovieClip [good_2] Frame 39 (1 B)
Symbol 220 MovieClip [good_2] Frame 52 (31 B)
this._parent.endOfAnimation();
Symbol 248 MovieClip [good_3] Frame 1 (8 B)
stop();
Symbol 248 MovieClip [good_3] Frame 10 (8 B)
stop();
Symbol 248 MovieClip [good_3] Frame 28 (1 B)
Symbol 248 MovieClip [good_3] Frame 40 (31 B)
this._parent.endOfAnimation();
Symbol 248 MovieClip [good_3] Frame 41 (8 B)
stop();
Symbol 248 MovieClip [good_3] Frame 51 (1 B)
Symbol 248 MovieClip [good_3] Frame 63 (31 B)
this._parent.endOfAnimation();
Symbol 265 MovieClip Frame 1 (8 B)
stop();
Symbol 269 MovieClip [good_4] Frame 1 (8 B)
stop();
Symbol 269 MovieClip [good_4] Frame 10 (8 B)
stop();
Symbol 269 MovieClip [good_4] Frame 37 (1 B)
Symbol 269 MovieClip [good_4] Frame 49 (31 B)
this._parent.endOfAnimation();
Symbol 269 MovieClip [good_4] Frame 50 (8 B)
stop();
Symbol 269 MovieClip [good_4] Frame 60 (1 B)
Symbol 269 MovieClip [good_4] Frame 71 (31 B)
this._parent.endOfAnimation();
Symbol 299 MovieClip [good_5] Frame 1 (8 B)
stop();
Symbol 299 MovieClip [good_5] Frame 10 (8 B)
stop();
Symbol 299 MovieClip [good_5] Frame 20 (1 B)
Symbol 299 MovieClip [good_5] Frame 32 (31 B)
this._parent.endOfAnimation();
Symbol 299 MovieClip [good_5] Frame 33 (8 B)
stop();
Symbol 299 MovieClip [good_5] Frame 43 (1 B)
Symbol 299 MovieClip [good_5] Frame 55 (31 B)
this._parent.endOfAnimation();
Symbol 316 MovieClip [good_6] Frame 1 (8 B)
stop();
Symbol 316 MovieClip [good_6] Frame 10 (8 B)
stop();
Symbol 316 MovieClip [good_6] Frame 30 (1 B)
Symbol 316 MovieClip [good_6] Frame 42 (31 B)
this._parent.endOfAnimation();
Symbol 316 MovieClip [good_6] Frame 43 (8 B)
stop();
Symbol 316 MovieClip [good_6] Frame 50 (1 B)
Symbol 316 MovieClip [good_6] Frame 62 (31 B)
this._parent.endOfAnimation();
Symbol 318 MovieClip [char_holder] Frame 1 (91 B)
#initclip 20
Object.registerClass("char_holder", com.teamrubber.Character);
#endinitclip
Symbol 322 MovieClip [tracker_] Frame 1 (90 B)
#initclip 21
Object.registerClass("tracker_", com.rubberductions.Tracker);
#endinitclip
Symbol 338 MovieClip Frame 1 (8 B)
stop();
Symbol 338 MovieClip Frame 10 (8 B)
stop();
Symbol 344 MovieClip Frame 1 (1 B)
Symbol 344 MovieClip Frame 8 (8 B)
stop();
Symbol 344 MovieClip Frame 9 (1 B)
Symbol 344 MovieClip Frame 21 (8 B)
stop();
Symbol 351 MovieClip Frame 1 (8 B)
stop();
Symbol 351 MovieClip Frame 21 (8 B)
stop();
Symbol 355 MovieClip Frame 1 (8 B)
stop();
Symbol 355 MovieClip Frame 23 (8 B)
stop();
Symbol 360 MovieClip Frame 1 (8 B)
stop();
Symbol 360 MovieClip Frame 23 (8 B)
stop();
Symbol 363 MovieClip Frame 1 (8 B)
stop();
Symbol 363 MovieClip Frame 23 (8 B)
stop();
Symbol 366 MovieClip Frame 1 (8 B)
stop();
Symbol 366 MovieClip Frame 21 (8 B)
stop();
Symbol 369 MovieClip Frame 1 (8 B)
stop();
Symbol 369 MovieClip Frame 23 (8 B)
stop();
Symbol 415 MovieClip Frame 15 (8 B)
stop();
Symbol 421 MovieClip Frame 1 (8 B)
stop();
Symbol 444 MovieClip Frame 1 (39 B)
stop();
this.stf_btn._visible = true;
Symbol 444 MovieClip Frame 10 (31 B)
this.stf_btn._visible = false;
Symbol 444 MovieClip Frame 16 (8 B)
stop();
Symbol 444 MovieClip Frame 28 (26 B)
this.gotoAndStop("home");