Frame 1
function do_register_obstacle(passed_name) {
if (_root.obstacles_array == undefined) {
_root.obstacles_array = new Array();
}
_root.obstacles_array.push(passed_name);
trace(_root.obstacles_array);
}
function do_register_bonus(passed_name) {
if (_root.bonus_array == undefined) {
_root.bonus_array = new Array();
}
_root.bonus_array[0] = passed_name;
trace(_root.bonus_array);
}
function do_register_hydrant(passed_name) {
if (_root.hydrant_array == undefined) {
_root.hydrant_array = new Array();
}
_root.hydrant_array[0] = passed_name;
trace(_root.hydrant_array);
}
function do_register_ham(passed_name) {
if (_root.ham_array == undefined) {
_root.ham_array = new Array();
}
_root.ham_array[0] = passed_name;
trace(_root.ham_array);
}
function do_register_cat(passed_name) {
if (_root.cat_array == undefined) {
_root.cat_array = new Array();
}
_root.cat_array[0] = passed_name;
trace(_root.cat_array);
}
function do_init_pack_dog(passed_name) {
dog = _root[passed_name];
random_index = Math.floor(_root.guides_array.length * Math.random());
dog.chosen_guide = _root.guides_array[random_index];
_root.guides_array.splice(random_index, 1);
trace(_root.guides_array);
var _local2 = "fall_behind_array_" + dog.chosen_guide;
trace("array_id: " + _local2);
another_random_index = Math.floor(_root[_local2].length * Math.random());
dog.fall_behind = _root[_local2][another_random_index];
trace("dog.fall_behind: " + dog.fall_behind);
_root[_local2].splice(another_random_index, 1);
trace(_root[_local2]);
dog.dog_distance = 60;
dog.dog_speed = new Object();
}
function do_move_pack_dog(passed_name) {
dog = _root[passed_name];
if ((dog.run_flag != true) || (passed_name == ("Dog" + _root.DogSelected))) {
return(true);
}
if (_root.frame_counter < _root.trigger_guides_frame_num) {
dog._x = dog._x + _root.dog_start_speed;
} else {
chosen_guide = dog.chosen_guide;
if (dog.dog_distance > dog.fall_behind) {
dog.dog_distance = dog.dog_distance - 1;
}
var _local10 = dog._x;
var _local11 = dog._y;
var _local8 = _root[chosen_guide + "_x"];
var _local7 = _root[chosen_guide + "_y"];
var _local3 = dog._x - _local8;
var _local2 = dog._y - _local7;
var _local12 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
var _local13 = dog.dog_distance;
var _local4 = _local13 / _local12;
var _local6 = _local3 * _local4;
var _local5 = _local2 * _local4;
var _local9 = Math.atan2(_local5, _local6);
var _local14 = 180 * (_local9 / Math.PI);
if (dog.hitTest(_root.track_mc.final_straight_hit_test_mc)) {
dog._x = dog._x + dog.dog_speed.x;
dog._y = dog._y + dog.dog_speed.y;
_root.do_check_for_winners(dog._name);
} else {
dog._x = _local8 + _local6;
dog._y = _local7 + _local5;
dog._rotation = 90 + _local14;
dog.dog_speed.x = dog._x - _local10;
dog.dog_speed.y = dog._y - _local11;
}
if (dog.finished_flag == true) {
if (_root.track_mc.dog_stop_hit_test_mc.hitTest(dog._x, dog._y)) {
dog.run_flag = false;
trace("dog hits stop zone: " + dog._name);
dog.gotoAndPlay("resting");
}
}
}
}
function do_check_for_winners(passed_name) {
if ((_root[passed_name].finished_flag != true) && (_root[passed_name].hitTest(_root.track_mc.finish_line_hit_test_mc))) {
trace("...and he's over the line!");
_root[passed_name].finished_flag = true;
_root.dogs_finished_array.push(passed_name);
_root[passed_name].win_position = _root.dogs_finished_array.length;
trace("finish order: " + _root.dogs_finished_array);
if (_root.dogs_finished_array.length == 1) {
cheers_sound.start();
}
}
}
function PlayerDog() {
this["Dog" + DogSelected].onEnterFrame = function () {
if ((RaceFlag == 1) && (this.run_flag == true)) {
RaceBackground.setVolume(_root.AudioLevel);
_root.frame_counter++;
_root.do_move_pack_dog_guides();
_root.do_check_for_winners(this._name);
if (this.finished_flag == true) {
this.run_flag = false;
this._rotation = -90;
_root.WinPosition = this.win_position;
_root.indicator_mc._visible = false;
this.gotoAndPlay("resting");
trace("_root.WinPosition: " + _root.WinPosition);
return(true);
}
var _local8 = 0.5;
if (PlayerDogSpeed < _local8) {
PlayerDogSpeed = 0;
}
if (Key.isDown(38)) {
if (PlayerDogSpeed <= PlayerSpeedMax) {
PlayerDogSpeed = PlayerDogSpeed + _local8;
}
} else if (PlayerDogSpeed >= _local8) {
PlayerDogSpeed = PlayerDogSpeed - _local8;
}
if (Key.isDown(40)) {
if (PlayerDogSpeed >= _local8) {
PlayerDogSpeed = PlayerDogSpeed - _local8;
}
}
if (Key.isDown(37)) {
if (this.out_of_traps_flag == true) {
this._rotation = this._rotation - 7;
}
}
if (Key.isDown(39)) {
if (this.out_of_traps_flag == true) {
this._rotation = this._rotation + 7;
}
}
delta_x = Math.sin(this._rotation * (Math.PI/180)) * PlayerDogSpeed;
delta_y = (Math.cos(this._rotation * (Math.PI/180)) * PlayerDogSpeed) * -1;
nose_loc = new Object();
nose_loc.x = this.nose_mc._x;
nose_loc.y = this.nose_mc._y;
this.localToGlobal(nose_loc);
nose_x = nose_loc.x;
nose_y = nose_loc.y;
butt_loc = new Object();
butt_loc.x = this.butt_mc._x;
butt_loc.y = this.butt_mc._y;
this.localToGlobal(butt_loc);
butt_x = butt_loc.x;
butt_y = butt_loc.y;
var _local9 = false;
if (_root.trackbounds.hitTest(nose_x - delta_x, nose_y - delta_y, true)) {
_local9 = true;
}
if (_root.trackbounds.hitTest(this._x - delta_x, this._y - delta_y, true)) {
_local9 = true;
}
if (_local9 == true) {
delta_x = -1 * delta_x;
delta_y = -1 * delta_y;
PlayerDogSpeed = 0;
}
for (i in _root.obstacles_array) {
obstacle_id = _root.obstacles_array[i];
var _local3 = false;
if (_root.track_mc[obstacle_id].hitTest(nose_x - delta_x, nose_y - delta_y, true)) {
_local3 = true;
trace("keeping you on the track since 1876");
}
if (_root.track_mc.no_run_back_hit_test_mc.hitTest(this._x - delta_x, this._y - delta_y, true)) {
trace("are you running back?");
if (this.out_of_traps_flag == true) {
_local3 = true;
trace("caught you trying to run back!");
}
} else {
this.out_of_traps_flag = true;
}
if (_root.track_mc[obstacle_id].hitTest(this._x - delta_x, this._y - delta_y, true)) {
_local3 = true;
}
if (_local3 == true) {
DogFX1.start();
DogFX1.setVolume(_root.AudioLevel);
PlayerDogSpeed = 0;
delta_x = 0;
delta_y = 0;
}
}
this._x = this._x - delta_x;
this._y = this._y - delta_y;
for (i in _root.bonus_array) {
bonus_id = _root.bonus_array[i];
var _local7 = false;
if (_root.track_mc[bonus_id].hitTest(this._x - delta_x, this._y - delta_y, true)) {
if (_root.FX_flag == 0) {
BonusFX.start();
BonusFX.setVolume(_root.AudioLevel);
_root.Bonus = _root.Bonus + 50;
_root.FX_flag++;
}
_local7 = true;
}
if (_local7 == true) {
_root.track_mc[bonus_id].gotoAndPlay(2);
}
}
for (i in _root.hydrant_array) {
hydrant_id = _root.hydrant_array[i];
var _local5 = false;
if (_root.track_mc[hydrant_id].hitTest(this._x - delta_x, this._y - delta_y, true)) {
if (_root.FX_flag == 0) {
HazzardFX.start();
HazzardFX.setVolume(_root.AudioLevel);
_root.FX_flag++;
}
_local5 = true;
}
if (_local5 == true) {
if (PlayerDogSpeed > 1) {
PlayerDogSpeed = PlayerDogSpeed - 1;
}
}
}
for (i in _root.ham_array) {
ham_id = _root.ham_array[i];
var _local4 = false;
if (_root.track_mc[ham_id].hitTest(this._x - delta_x, this._y - delta_y, true)) {
if (_root.FX_flag == 0) {
HazzardFX.start();
HazzardFX.setVolume(_root.AudioLevel);
_root.FX_flag++;
}
_local4 = true;
}
if (_local4 == true) {
if (PlayerDogSpeed > 1) {
PlayerDogSpeed = PlayerDogSpeed - 1;
}
}
}
for (i in _root.cat_array) {
cat_id = _root.cat_array[i];
var _local6 = false;
if (_root.track_mc[cat_id].hitTest(this._x - delta_x, this._y - delta_y, true)) {
if (_root.FX_flag == 0) {
HazzardFX.start();
HazzardFX.setVolume(_root.AudioLevel);
_root.FX_flag++;
}
_local6 = true;
}
if (_local6 == true) {
if (PlayerDogSpeed > 1) {
this.gotoAndPlay("scrapping");
PlayerDogSpeed = PlayerDogSpeed - 1;
}
} else {
this.gotoAndPlay("running");
}
}
if ((((_local7 == false) && (_local5 == false)) && (_local4 == false)) && (_local6 == false)) {
_root.FX_flag = 0;
}
}
};
}
function do_move_pack_dog_guides() {
if (_root.frame_counter == _root.trigger_guides_frame_num) {
i = 1;
while (i < 4) {
_root.track_mc["guide_" + i].play();
i++;
}
}
}
function do_check_for_race_finished() {
if (_root.dogs_stopped >= 5) {
clearInterval(check_race_finished_interval);
do_end_race();
}
}
function do_end_race() {
SoundTrack.start();
SoundTrack.setVolume(_root.AudioLevel);
_root.gotoAndPlay("result_submit");
}
function NextRace() {
_root.WinPosition = 0;
_root.Bonus = 0;
_root.MinusObs = 0;
_root.TrackNo++;
SoundTrack.stop();
_root.gotoAndPlay("game");
_root.obstacles_array = new Array();
_root.track_mc.gotoAndPlay(TrackNo);
RaceTimer._visible = true;
RaceTimer.gotoAndPlay(2);
IntroTimer._visible = true;
IntroTimer.RaceNoDisplay.text = TrackNo;
IntroTimer.gotoAndPlay(2);
RaceFlag = 0;
TotalDogs = 0;
}
function StartRace() {
_root.frame_counter = 0;
_root.dogs_finished_array = new Array();
_root.dogs_stopped = 0;
RaceTimer._visible = false;
FirstPlace.text = "";
SecondPlace.text = "";
ThirdPlace.text = "";
WinnerName = 0;
SecondName = 0;
ThirdName = 0;
RaceBackground.start();
RaceBackground.setVolume(_root.AudioLevel);
RaceFlag = 1;
WinPosition = 0;
PlayerDogSpeed = 0;
HareMovie.gotoAndPlay(2);
traps_mc.gotoAndPlay("open");
i = 1;
while (i < 6) {
dog = _root["Dog" + i];
dog.run_flag = true;
dog.gotoAndPlay("running");
i++;
}
PlayerDog();
check_race_finished_interval = setInterval(do_check_for_race_finished, 40);
}
function do_next_race_button_handler() {
_root.NextRace();
}
play();
Frame 2
var PerCentLoaded = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
preloadershell.preloader.gotoAndStop(PerCentLoaded);
if (getBytesLoaded() != getBytesTotal()) {
prevFrame();
} else {
if (((_root.CID == undefined) || (_root.CID == "")) || (_root.CID == null)) {
_root.CID = "59";
}
if (((_root.PID == undefined) || (_root.PID == "")) || (_root.PID == null)) {
_root.PID = "";
}
if (((_root.EXIT_LABEL == undefined) || (_root.EXIT_LABEL == "")) || (_root.EXIT_LABEL == null)) {
_root.EXIT_LABEL = "";
}
if (((_root.EXIT_LINK == undefined) || (_root.EXIT_LINK == "")) || (_root.EXIT_LINK == null)) {
_root.EXIT_LINK = "http://www.anightatthedogs.co.uk";
}
_global.exitLink = function () {
SeqTrackerAdaptor.campaignExit(_root.EXIT_LINK, _root.EXIT_LABEL);
};
_global.trackAction = function () {
SeqTrackerAdaptor.trackActionByLabel();
};
com.teamrubber.SeqTrackerAdaptor.setProjectDetails(this.tracker_comp);
com.teamrubber.SeqTrackerAdaptor.initTracker();
var AudioLevel = 100;
var AudioFlag = 0;
var FX_flag = 0;
SoundTrack = new Sound();
SoundTrack.attachSound("sndtrk_id");
SoundTrack.onSoundComplete = function () {
SoundTrack.start();
};
SoundTrack.setVolume(AudioLevel);
SoundTrack.start();
DogFX1 = new Sound();
DogFX1.attachSound("yelp1_id");
DogFX1.onSoundComplete = function () {
FX_flag = 0;
};
DogFX1.setVolume(AudioLevel);
BonusFX = new Sound();
BonusFX.attachSound("bonusfx_id");
BonusFX1.onSoundComplete = function () {
FX_flag = 0;
};
BonusFX.setVolume(AudioLevel);
HazzardFX = new Sound();
HazzardFX.attachSound("hazzardfx_id");
HazzardFX1.onSoundComplete = function () {
FX_flag = 0;
};
HazzardFX.setVolume(AudioLevel);
RaceBackground = new Sound();
RaceBackground.attachSound("racelive_id");
RaceBackground.setVolume(AudioLevel);
cheers_sound = new Sound();
cheers_sound.attachSound("cheers_sound");
cheers_sound.setVolume(AudioLevel);
play();
}
Frame 25
stop();
var DogSelected = 1;
var BankRoll = 50;
var Bonus = 0;
var MinusObs = 0;
var Ranking = 0;
var BetValue = 0;
var BetPosition = 0;
var PlayerDogName = "Speedy";
var TrackNo = 0;
var StationID = _level0.udrID;
_root.exit_url = "http://www.anightatthedogs.com?game";
Frame 45
stop();
var DogNames = new Array("Fred", "Bob", "Speedy", "Dougall", "Bugs", "Rocket");
_root.guides_array = new Array("guide_1", "guide_2", "guide_3", "guide_2", "guide_3");
_root.fall_behind_array = new Array(1, 5, 10, 20, 30, 40, 50);
_root.fall_behind_array_guide_1 = new Array(1, 35);
_root.fall_behind_array_guide_2 = new Array(1, 35);
_root.fall_behind_array_guide_3 = new Array(1, 35);
GDogName.text = _root.PlayerDogName;
GBetPosition.text = _root.BetPosition;
GBankRoll.text = _root.BankRoll;
GTrackNo.text = _root.TrackNo;
_root.show_ghost_dogs_flag = false;
var RaceFlag = 0;
var PlayerSpeedMax = 5.5;
_root.dog_start_speed = 5.5;
_root.trigger_guides_frame_num = 2;
var PlayerDogSpeed = 0;
var WinPosition = 0;
var WinnerName = 0;
var SecondName = 0;
var ThirdName = 0;
var tframes = 300;
var TotalDogs = 0;
var LampFlag = 0;
var LampDelay = 1;
var CatFlag = 0;
var CatDelay = 1;
var ChopFlag = 0;
var ChopDelay = 1;
var Dog1Flag = 0;
var Dog2Flag = 0;
var Dog3Flag = 0;
var Dog4Flag = 0;
var Dog5Flag = 0;
Instance of Symbol 276 MovieClip "Dog1" in Frame 45
onClipEvent (load) {
_root.do_init_pack_dog(this._name);
}
onClipEvent (enterFrame) {
_root.do_move_pack_dog(this._name);
}
Instance of Symbol 296 MovieClip "Dog4" in Frame 45
onClipEvent (load) {
_root.do_init_pack_dog(this._name);
}
onClipEvent (enterFrame) {
_root.do_move_pack_dog(this._name);
}
Instance of Symbol 316 MovieClip "Dog2" in Frame 45
onClipEvent (load) {
_root.do_init_pack_dog(this._name);
}
onClipEvent (enterFrame) {
_root.do_move_pack_dog(this._name);
}
Instance of Symbol 336 MovieClip "Dog5" in Frame 45
onClipEvent (load) {
_root.do_init_pack_dog(this._name);
}
onClipEvent (enterFrame) {
_root.do_move_pack_dog(this._name);
}
Instance of Symbol 356 MovieClip "Dog3" in Frame 45
onClipEvent (load) {
_root.do_init_pack_dog(this._name);
}
onClipEvent (enterFrame) {
_root.do_move_pack_dog(this._name);
}
Instance of Symbol 359 MovieClip "indicator_mc" in Frame 45
onClipEvent (enterFrame) {
this._x = _root["Dog" + _root.DogSelected]._x;
this._y = _root["Dog" + _root.DogSelected]._y;
}
Frame 65
function do_update_scores_display() {
race_results.feedback_clip.WinningsDisplay.text = _root.BetValue;
race_results.feedback_clip.BalanceDisplay.text = _root.BankRoll;
race_results.feedback_clip.BonusDisplay.text = _root.Bonus;
race_results.feedback_clip.PlaceBonusDisplay.text = _root.PlaceBonus;
race_results.PlaceDisplay.text = _root.WinPosition;
race_results.BetPositionDisplay.text = _root.BetPosition;
race_results.feedback_clip.PositionBonusDisplay.text = ("Bonus for position " + _root.WinPosition) + ":";
}
function do_check_game_over(passed_frame_name) {
if (_root.TrackNo <= 9) {
race_results.gotoAndStop(passed_frame_name);
}
if (_root.TrackNo >= 10) {
url = "http://panthro.teamrubber.com/rubber_client_work/udr/submitUserNOMD5";
myLoadVars = new LoadVars();
myLoadVars.username = _root.PlayerDogName;
myLoadVars.score = _root.BankRoll;
myLoadVars.onLoad = function () {
trace("success");
trace(myLoadVars.ok);
trace(myLoadVars.numUsers);
};
myLoadVars.sendAndLoad(url, myLoadVars, "GET");
_root.win_or_bust = "won";
_root.gotoAndPlay("hiscores");
}
}
stop();
if (_root.WinPosition == 1) {
_root.PlaceBonus = 100;
} else if (_root.WinPosition == 2) {
_root.PlaceBonus = 50;
} else if (_root.WinPosition == 3) {
_root.PlaceBonus = 20;
} else {
_root.PlaceBonus = 0;
}
if (_root.WinPosition == _root.BetPosition) {
var stake = BetValue;
if (_root.BetPosition == 1) {
_root.BetValue = _root.BetValue * 5;
}
if (_root.BetPosition == 2) {
_root.BetValue = _root.BetValue * 3;
}
if (_root.BetPosition == 3) {
_root.BetValue = _root.BetValue * 2;
}
_root.BankRoll = _root.BankRoll + (((stake + _root.BetValue) + _root.Bonus) + _root.PlaceBonus);
do_update_scores_display();
do_check_game_over("win");
}
if ((_root.WinPosition != _root.BetPosition) && (_root.BankRoll > 0)) {
_root.BetValue = 0;
_root.BankRoll = _root.BankRoll + (_root.PlaceBonus + _root.Bonus);
do_update_scores_display();
do_check_game_over("lose");
}
if ((_root.WinPosition != _root.BetPosition) && (_root.BankRoll <= 0)) {
_root.BetValue = 0;
_root.Bonus = 0;
_root.PlaceBonus = 0;
_root.win_or_bust = "bust";
_root.gotoAndPlay("hiscores");
}
BetPosition = 0;
Frame 85
stop();
url = "http://panthro.teamrubber.com/rubber_client_work/udr/getHighScores";
ScoreVars = new LoadVars();
ScoreVars.onLoad = function () {
trace("success");
trace(ScoreVars.ok);
trace(ScoreVars.numUsers);
hiscoresmovie.hiscoresclip.Name1.text = ScoreVars.name0;
hiscoresmovie.hiscoresclip.Name2.text = ScoreVars.name1;
hiscoresmovie.hiscoresclip.Name3.text = ScoreVars.name2;
hiscoresmovie.hiscoresclip.Score1.text = ScoreVars.score0;
hiscoresmovie.hiscoresclip.Score2.text = ScoreVars.score1;
hiscoresmovie.hiscoresclip.Score3.text = ScoreVars.score2;
};
ScoreVars.sendAndLoad(url, ScoreVars, "GET");
hiscoresmovie.hiscoresclip.Winnings.text = _root.BankRoll;
hiscoresmovie.hiscoresclip.Rank.text = _root.Ranking;
Symbol 20 MovieClip [tracker_] Frame 1
#initclip 5
Object.registerClass("tracker_", com.rubberductions.Tracker);
#endinitclip
Symbol 481 MovieClip [__Packages.com.teamrubber.SeqTrackerAdaptor] Frame 0
class com.teamrubber.SeqTrackerAdaptor
{
static var CAMPAIGN_ID, PROJECT_ID, instance;
function SeqTrackerAdaptor () {
init();
setup();
}
function init() {
}
function setup() {
}
static function initTracker() {
if (active) {
getInstance().comp.setVerbose(true);
getInstance().comp.setBaseURL(BASE_URL);
getInstance().comp.setCampaignID(CAMPAIGN_ID);
getInstance().comp.setProjectID(PROJECT_ID);
getInstance().comp.initialise(doLoad);
getInstance().comp._visible = false;
}
}
static function doLoad() {
getInstance().comp.load();
}
static function campaignExit(link, from) {
var _local1;
var _local3;
trace("TRACKER : " + from);
if ((from == undefined) || (from == "")) {
_local1 = "exitLink";
} else {
_local1 = from;
}
if ((link == undefined) || (link == "")) {
_local3 = "http://www.teamrubber.com";
} else {
_local3 = link;
}
if (active) {
getInstance().comp.exit(_local3, _local1, "_blank");
}
}
static function sendToFriendConversion() {
if (active) {
getInstance().comp.conversion("n/a", "sendToFriend");
}
}
static function trackActionByLabel(label) {
if (active) {
if ((label == undefined) || (label == "")) {
label = ACTION_LABEL;
}
getInstance().comp.view(label);
}
}
static function setComponentReference(comp) {
if (active) {
getInstance().comp = comp;
}
}
static function setProjectDetails(comp) {
setComponentReference(comp);
if (((_root.CID == undefined) || (_root.CID == "")) || (_root.CID == null)) {
_root.CID = undefined;
}
if (((_root.PID == undefined) || (_root.PID == "")) || (_root.PID == null)) {
_root.PID = "not_defined";
}
if (active) {
CAMPAIGN_ID = _root.CID;
PROJECT_ID = _root.PID;
}
}
static function getInstance() {
if (!instance) {
instance = new com.teamrubber.SeqTrackerAdaptor();
}
return(instance);
}
static var BASE_URL = "http://tracking.viralmanager.com/tracking/";
static var ACTION_LABEL = "play";
static var active = true;
static var projectViewed = false;
}
Symbol 17 MovieClip [__Packages.com.rubberductions.Tracker] Frame 0
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 21 MovieClip [__Packages.com.rubberductions.Utils] Frame 0
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 22 MovieClip [__Packages.mx.utils.Delegate] Frame 0
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 30 MovieClip Frame 3
stop();
Symbol 34 MovieClip Frame 3
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
stop();
Symbol 71 MovieClip Frame 3
stop();
Symbol 72 MovieClip Frame 1
this.exit_btn.onRelease = function () {
var _local2 = (("banner_copy_variation_" + random_frame) + "|track_number_") + _root.TrackNo;
trace(_local2);
com.teamrubber.SeqTrackerAdaptor.campaignExit(_root.exit_url, _local2);
};
var num_variations = exit_link_copy_variations_mc._totalframes;
var random_frame = Math.ceil(num_variations * Math.random());
trace("random_frame: " + random_frame);
exit_link_copy_variations_mc.gotoAndStop(random_frame);
var view_label = ((("banner_copy_variation_" + random_frame) + "|track_number_") + _root.TrackNo);
com.teamrubber.SeqTrackerAdaptor.trackActionByLabel(view_label);
Symbol 77 Button
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("off");
}
on (press) {
_parent.gotoAndPlay("transition");
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 15
stop();
Symbol 78 MovieClip Frame 25
gotoAndPlay ("up");
Symbol 108 Button
on (rollOver) {
_parent._parent.do_dog_rollover(_parent.dog_number);
}
on (rollOut) {
_parent._parent.do_dog_rollout(_parent.dog_number);
}
on (release) {
_parent._parent.do_select_dog(_parent.dog_number);
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 15
stop();
Symbol 110 MovieClip Frame 30
gotoAndPlay ("up");
Symbol 110 MovieClip Frame 45
stop();
Symbol 110 MovieClip Frame 60
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 15
stop();
Symbol 115 MovieClip Frame 30
gotoAndPlay ("up");
Symbol 115 MovieClip Frame 40
play();
Symbol 115 MovieClip Frame 45
stop();
Symbol 115 MovieClip Frame 60
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 15
stop();
Symbol 120 MovieClip Frame 30
gotoAndPlay ("up");
Symbol 120 MovieClip Frame 45
stop();
Symbol 120 MovieClip Frame 60
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 15
stop();
Symbol 125 MovieClip Frame 30
gotoAndPlay ("up");
Symbol 125 MovieClip Frame 45
stop();
Symbol 125 MovieClip Frame 60
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 15
stop();
Symbol 130 MovieClip Frame 30
gotoAndPlay ("up");
Symbol 130 MovieClip Frame 45
stop();
Symbol 130 MovieClip Frame 60
stop();
Symbol 137 MovieClip Frame 1
function do_select_dog(passed_num) {
trace(passed_num);
this["dog" + _root.DogSelected].gotoAndPlay("not_selected");
this["dog" + passed_num].gotoAndPlay("selected");
_root.DogSelected = passed_num;
}
function do_dog_rollover(passed_num) {
this["dog" + passed_num].gotoAndPlay("over");
}
function do_dog_rollout(passed_num) {
this["dog" + passed_num].gotoAndPlay("off");
}
_root.entername_default_text = "Speedy";
entername.text = _root.entername_default_text;
entername.maxChars(10);
entername.onSetFocus = function () {
trace("focussed entername");
if (entername.text == _root.entername_default_text) {
entername.text = "";
}
};
entername.onKillFocus = function () {
if (entername.text == "") {
entername.text = _root.entername_default_text;
}
_root.PlayerDogName = entername.text;
trace("_root.PlayerDogName: " + _root.PlayerDogName);
};
_root.DogSelected = 1;
Instance of Symbol 110 MovieClip "dog4" in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
this.dog_number = 4;
}
Instance of Symbol 115 MovieClip "dog1" in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
this.dog_number = 1;
this.gotoAndPlay("selected");
}
Instance of Symbol 120 MovieClip "dog2" in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
this.dog_number = 2;
}
Instance of Symbol 125 MovieClip "dog3" in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
this.dog_number = 3;
}
Instance of Symbol 130 MovieClip "dog5" in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
this.dog_number = 5;
}
Symbol 148 Button
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("up");
do_clear_bet_interval();
}
on (dragOver) {
betup_interval = setInterval(BetUp, 200);
gotoAndPlay ("down");
}
on (dragOut) {
gotoAndPlay ("up");
do_clear_bet_interval();
}
on (press) {
betup_interval = setInterval(BetUp, 200);
BetUp();
gotoAndPlay ("down");
}
on (release) {
gotoAndPlay ("up");
do_clear_bet_interval();
}
on (releaseOutside) {
gotoAndPlay ("up");
do_clear_bet_interval();
}
Symbol 149 MovieClip Frame 1
function BetUp() {
if ((_root.BankRoll >= 10) && (_root.BetValue <= 990)) {
_root.BankRoll = _root.BankRoll - 10;
_root.BetValue = _root.BetValue + 10;
_parent.BetDisplay.text = _root.BetValue;
_parent.BankRollDisplay.text = _root.BankRoll;
}
}
function do_clear_bet_interval() {
clearInterval(betup_interval);
}
stop();
Symbol 149 MovieClip Frame 15
stop();
Symbol 149 MovieClip Frame 30
gotoAndPlay ("up");
Symbol 149 MovieClip Frame 40
stop();
Symbol 152 Button
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("up");
do_clear_bet_interval();
}
on (dragOver) {
betdown_interval = setInterval(BetDown, 200);
gotoAndPlay ("down");
}
on (dragOut) {
gotoAndPlay ("up");
do_clear_bet_interval();
}
on (press) {
betdown_interval = setInterval(BetDown, 200);
BetDown();
gotoAndPlay ("down");
}
on (release) {
gotoAndPlay ("up");
do_clear_bet_interval();
}
on (releaseOutside) {
gotoAndPlay ("up");
do_clear_bet_interval();
}
Symbol 153 MovieClip Frame 1
function BetDown() {
if (_root.BetValue >= 10) {
_root.BankRoll = _root.BankRoll + 10;
_root.BetValue = _root.BetValue - 10;
_parent.BetDisplay.text = _root.BetValue;
_parent.BankRollDisplay.text = _root.BankRoll;
}
}
function do_clear_bet_interval() {
clearInterval(betdown_interval);
}
stop();
stop();
Symbol 153 MovieClip Frame 15
stop();
Symbol 153 MovieClip Frame 30
gotoAndPlay ("up");
Symbol 153 MovieClip Frame 40
stop();
Symbol 157 Button
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("off");
}
on (release) {
gotoAndPlay ("selected");
if (_root.BetPosition != undefined) {
_parent["BetPosition" + _root.BetPosition].gotoAndPlay("not_selected");
}
_root.BetPosition = this.bet_position;
trace(_root.BetPosition);
}
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 15
stop();
Symbol 158 MovieClip Frame 30
gotoAndPlay ("up");
Symbol 158 MovieClip Frame 45
stop();
Symbol 167 Button
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("off");
}
on (release) {
var failed_validation = false;
validation_message = "";
if (_root.BetPosition == 0) {
failed_validation = true;
validation_message = validation_message + "Choose Position \r";
}
if (_root.BetValue == 0) {
failed_validation = true;
validation_message = validation_message + "Place Your Stake\r";
}
if (failed_validation == false) {
_root.do_next_race_button_handler();
} else {
_parent.validation_mc._visible = true;
_parent.validation_mc.ValidationMessage.text = validation_message;
}
}
Symbol 177 MovieClip Frame 7
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 15
stop();
Symbol 178 MovieClip Frame 25
gotoAndPlay ("up");
Symbol 187 MovieClip Frame 1
stop();
_root.BetValue = 0;
BankRollDisplay.text = _root.BankRoll;
BetDisplay.text = _root.BetValue;
Instance of Symbol 158 MovieClip "BetPosition1" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
this.bet_position = 1;
}
Instance of Symbol 158 MovieClip "BetPosition2" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
this.bet_position = 2;
}
Instance of Symbol 158 MovieClip "BetPosition3" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
this.bet_position = 3;
}
Instance of Symbol 162 MovieClip "validation_mc" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 188 MovieClip Frame 38
stop();
Symbol 188 MovieClip Frame 81
stop();
Symbol 188 MovieClip Frame 99
trace(selectdog.EnterName.text);
Symbol 188 MovieClip Frame 105
_parent.gotoAndPlay("game");
Symbol 193 Button
on (release) {
_root.AudioFlag++;
if (_root.AudioFlag >= 2) {
_root.AudioFlag = 0;
}
if (_root.AudioFlag == 1) {
this.AudioIcon.gotoAndStop(2);
_root.AudioLevel = 0;
SoundTrack.setVolume(_root.AudioLevel);
}
if (_root.AudioFlag == 0) {
this.AudioIcon.gotoAndStop(1);
_root.AudioLevel = 100;
SoundTrack.setVolume(_root.AudioLevel);
}
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 2
stop();
Symbol 205 MovieClip Frame 1
_root.do_register_obstacle(this._name);
Instance of Symbol 207 MovieClip in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent._visible = _root.show_ghost_dogs_flag;
var guide_name = _parent._parent._name;
the_loc = new Object();
the_loc.x = _parent._x;
the_loc.y = _parent._y;
_parent._parent.localToGlobal(the_loc);
_root[guide_name + "_x"] = the_loc.x;
_root[guide_name + "_y"] = the_loc.y;
_root[guide_name + "_rotation"] = _parent._rotation;
}
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 258
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 314
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 245
stop();
Symbol 214 MovieClip Frame 1
stop();
_root.do_register_bonus(this._name);
Symbol 214 MovieClip Frame 25
stop();
Symbol 217 MovieClip Frame 1
stop();
_root.do_register_cat(this._name);
Symbol 217 MovieClip Frame 20
gotoAndStop (1);
Symbol 220 MovieClip Frame 1
stop();
_root.do_register_ham(this._name);
Symbol 220 MovieClip Frame 15
gotoAndStop (1);
Symbol 222 MovieClip Frame 1
stop();
_root.do_register_hydrant(this._name);
Symbol 222 MovieClip Frame 15
gotoAndStop (1);
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 272
stop();
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 314
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 243
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 248
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 314
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 234
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 241
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 314
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 249
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 258
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 314
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 248
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 247
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 314
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 267
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 213
stop();
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 311
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 261
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 253
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 314
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 260
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 257
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 315
stop();
Symbol 248 MovieClip Frame 2
stop();
Symbol 248 MovieClip Frame 262
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 285
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 320
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 263
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 2
stop();
Symbol 252 MovieClip Frame 3
stop();
Symbol 252 MovieClip Frame 4
stop();
Symbol 252 MovieClip Frame 5
stop();
Symbol 252 MovieClip Frame 6
stop();
Symbol 252 MovieClip Frame 7
stop();
Symbol 252 MovieClip Frame 8
stop();
Symbol 252 MovieClip Frame 9
stop();
Symbol 252 MovieClip Frame 10
stop();
Symbol 263 MovieClip Frame 1
_alpha = 0;
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 10
stop();
Symbol 276 MovieClip Frame 21
stop();
Symbol 276 MovieClip Frame 31
stop();
Symbol 276 MovieClip Frame 41
trace("resting tween");
Symbol 276 MovieClip Frame 51
trace("end of resting tween");
Symbol 276 MovieClip Frame 56
stop();
trace("resting");
_root.dogs_stopped++;
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 10
stop();
Symbol 296 MovieClip Frame 21
stop();
Symbol 296 MovieClip Frame 31
stop();
Symbol 296 MovieClip Frame 57
stop();
trace("resting");
_root.dogs_stopped++;
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 10
stop();
Symbol 316 MovieClip Frame 21
stop();
Symbol 316 MovieClip Frame 31
stop();
Symbol 316 MovieClip Frame 56
stop();
trace("resting");
_root.dogs_stopped++;
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 10
stop();
Symbol 336 MovieClip Frame 21
stop();
Symbol 336 MovieClip Frame 31
stop();
Symbol 336 MovieClip Frame 59
stop();
trace("resting");
_root.dogs_stopped++;
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 10
stop();
Symbol 356 MovieClip Frame 21
stop();
Symbol 356 MovieClip Frame 31
stop();
Symbol 356 MovieClip Frame 57
stop();
trace("resting");
_root.dogs_stopped++;
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 9
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 227
stop();
Symbol 380 MovieClip Frame 46
stop();
_root.StartRace();
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 10
stop();
Symbol 398 MovieClip Frame 20
stop();
Symbol 398 MovieClip Frame 30
stop();
Symbol 410 MovieClip Frame 9
stop();
Symbol 410 MovieClip Frame 19
stop();
Symbol 410 MovieClip Frame 29
stopAllSounds();
Symbol 411 Button
on (release) {
_parent._parent.gotoAndPlay("send to friend");
}
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 15
stop();
Symbol 413 MovieClip Frame 25
gotoAndPlay ("up");
Symbol 414 Button
on (release) {
_root.gotoAndPlay("splash/select");
}
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 15
stop();
Symbol 416 MovieClip Frame 25
gotoAndPlay ("up");
Symbol 432 MovieClip Frame 1
gotoAndStop(_root.win_or_bust);
Symbol 432 MovieClip Frame 10
stop();
Instance of Symbol 413 MovieClip "challengebt" in Symbol 433 MovieClip Frame 1
/* no clip actions */
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 2
stop();
Symbol 455 MovieClip Frame 3
stop();
Symbol 456 MovieClip Frame 1
this.exit_btn.onRelease = function () {
var _local2 = "exit_end_copy_variation_" + random_frame;
trace(_local2);
com.teamrubber.SeqTrackerAdaptor.campaignExit(_root.exit_url, _local2);
};
this.exit_btn.onRollOver = function () {
exit_link_copy_variations_mc._y = exit_link_copy_variations_mc._y - 5;
};
this.exit_btn.onRollOut = function () {
exit_link_copy_variations_mc._y = exit_link_copy_variations_mc._y + 5;
};
var num_variations = exit_link_copy_variations_mc._totalframes;
var random_frame = Math.ceil(num_variations * Math.random());
trace("random_frame: " + random_frame);
exit_link_copy_variations_mc.gotoAndStop(random_frame);
var view_label = ("view_end_copy_variation_" + random_frame);
com.teamrubber.SeqTrackerAdaptor.trackActionByLabel(view_label);
Symbol 459 Button
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("off");
}
on (press) {
if ((_parent.Name1.text == "enter name") || (_parent.Name1.text == "")) {
_parent.Name1.text = "enter name";
}
if ((_parent.eMail1.text == "enter email address") || (_parent.eMail1.text == "")) {
_parent.eMail1.text = "enter email address";
}
if ((_parent.Name2.text == "enter name") || (_parent.Name2.text == "")) {
_parent.Name2.text = "enter name";
}
if ((_parent.eMail2.text == "enter email address") || (_parent.eMail2.text == "")) {
_parent.eMail2.text = "enter email address";
}
if ((((_parent.Name1.text != "enter name") && (_parent.Name1.text != "")) && (_parent.Name2.text != "enter name")) && (_parent.Name2.text != "")) {
if ((((_parent.eMail1.text != "enter email address") && (_parent.eMail1.text != "")) && (_parent.eMail2.text != "enter email address")) && (_parent.eMail2.text != "")) {
var playername = Name1.text;
var playermail = eMail1.text;
var playerscore = _root.BankRoll;
var friendname = Name2.text;
var friendmail = eMail2.text;
url = "http://panthro.teamrubber.com/rubber_client_work/udr/sendToFriend";
FriendVars = new LoadVars();
FriendVars.name = _parent.Name1.text;
FriendVars.email = _parent.eMail1.text;
FriendVars.score = _root.BankRoll;
FriendVars.name_0 = _parent.Name2.text;
FriendVars.email_0 = _parent.eMail2.text;
FriendVars.onLoad = function () {
trace("success");
};
FriendVars.sendAndLoad(url, FriendVars, "GET");
_parent.track_sent();
_parent.gotoAndPlay("sending");
}
}
}
Symbol 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 15
stop();
Symbol 461 MovieClip Frame 25
gotoAndPlay ("up");
Symbol 462 Button
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("off");
}
on (release) {
_parent.Name1.text = "enter name";
_parent.eMail1.text = "enter email address";
_parent.Name2.text = "enter name";
_parent.eMail2.text = "enter email address";
_parent._parent.gotoAndPlay("back");
}
Symbol 464 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 15
stop();
Symbol 464 MovieClip Frame 25
gotoAndPlay ("up");
Symbol 479 MovieClip Frame 1
function track_sent() {
var _local1 = "challenge_friend_sent";
com.teamrubber.SeqTrackerAdaptor.trackActionByLabel(_local1);
}
stop();
var view_label = "challenge_friend_view";
com.teamrubber.SeqTrackerAdaptor.trackActionByLabel(view_label);
text_fields_array = new Array("Name1", "Name2", "eMail1", "eMail2");
name_default_text = "Enter Name";
email_default_text = "Enter Email";
Name1.default_text = name_default_text;
Name2.default_text = name_default_text;
eMail1.default_text = email_default_text;
eMail2.default_text = email_default_text;
i = 0;
while (i < text_fields_array.length) {
the_field = this[text_fields_array[i]];
trace(the_field);
the_field.text = the_field.default_text;
i++;
}
focus_field = function (passed_name) {
the_field = this[passed_name];
if (the_field.text == the_field.default_text) {
the_field.text = "";
}
};
unfocus_field = function (passed_name) {
the_field = this[passed_name];
if (the_field.text == "") {
the_field.text = the_field.default_text;
}
};
Name1.onSetFocus = function () {
focus_field(this._name);
};
Name2.onSetFocus = function () {
focus_field(this._name);
};
eMail1.onSetFocus = function () {
focus_field(this._name);
};
eMail2.onSetFocus = function () {
focus_field(this._name);
};
Name1.onKillFocus = function () {
unfocus_field(this._name);
};
Name2.onKillFocus = function () {
unfocus_field(this._name);
};
eMail1.onKillFocus = function () {
unfocus_field(this._name);
};
eMail2.onKillFocus = function () {
unfocus_field(this._name);
};
Symbol 479 MovieClip Frame 60
stop();
_parent.gotoAndPlay("back");
Symbol 480 MovieClip Frame 10
stop();
Symbol 480 MovieClip Frame 24
stop();
Symbol 480 MovieClip Frame 41
stop();