Frame 1
kv_v = {c:532, a:0, da:["distralytics.com", "5.n.distralytics.com", "distralytics.co.uk"]};
kv_v.i = 0;
while (kv_v.i < kv_v.da.length) {
System.security.allowDomain(kv_v.da[kv_v.i], (kv_v.c + ".c.") + kv_v.da[kv_v.i], "*." + kv_v.da[kv_v.i]);
kv_v.i++;
}
kv_v.lc = function () {
var _local1 = ((("http://" + kv_v.c) + ".c.") + kv_v.da[kv_v.a % kv_v.da.length]) + kv_v.lurl;
System.security.allowDomain(_local1);
kv_v.l_mcl.loadClip(_local1, kv_v.t_mc);
};
kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]))));
kv_v.fpv = getVersion().split(" ")[1].split(",")[0];
kv_v.lurl = "/control/tracking/tracker.swf?r=" + Math.floor(Math.random() * 10000);
kv_v.t_mc = createEmptyMovieClip("kv_tracker", -16734);
kv_v.l_mcl = new MovieClipLoader();
kv_v.mcl_l = {onLoadError:function () {
kv_v.a++;
kv_v.lc();
}, onLoadStart:function (m) {
System.security.allowDomain(m._url);
}};
kv_v.l_mcl.addListener(kv_v.mcl_l);
kv_v.lc();
_global.root = this;
_global.masterDomain = "games.killerviral.com";
_global.assetsURL = "http://games.killerviral.com/celebrity_pedigree/";
_global.highscoresURL = "http://highscores.killerviral.com/celebrity_pedigree/";
_global.isMaster = _root._url.indexOf(_global.masterDomain) >= 0;
_global.domain = ((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]));
_global.playerVersion = Number(getVersion().substr(getVersion().indexOf(" ") + 1).split(",")[0]);
_global.movieVersion = (_root.getSWFVersion ? (_root.getSWFVersion()) : 8);
_global.ori_dom = (_root.ori_dom ? (_root.ori_dom) : (domain));
System.security.allowDomain(_global.masterDomain);
var game_version = 1;
if (!testMode) {
stop();
if (playerVersion < 8) {
loadMovie (_global.assetsURL + "error.swf", _root);
} else if (isMaster) {
play();
} else {
var vc_lv = new LoadVars();
vc_lv.onLoad = function (success) {
clearInterval(tOIntId);
delete tOIntId;
if (success) {
if (Number(vc_lv.v) > game_version) {
loadMovie ((_global.assetsURL + "game.swf?ori_dom=") + ori_dom, _root);
} else {
play();
}
} else {
play();
}
delete vc_lv;
};
tOIntId = setInterval(timeout, 2000);
vc_lv.load("http://www.memecounter.com/comms/v.php?v=1&cId=532");
}
}
killerviral_btn.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.kvClick(870);
}
};
sponsor_btn.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.kvClick(871);
}
};
Frame 3
function gotoFBApp() {
getURL ("http://apps.facebook.com/celebrity_mutts/", "_blank");
_root.kvClick(895);
}
function gotoTriviala() {
getURL ("http://www.triviala.com/celebrity-pedigree", "_blank");
_root.kvClick(871);
}
function gotoKV() {
getURL ("http://www.killerviral.com", "_blank");
_root.kvClick(870);
}
function onExternalInit() {
_global.root.pId = SO.getVar("pId");
_global.root.age = SO.getVar("age");
_global.root.sex = SO.getVar("sex");
_global.root.fanOf = SO.getVar("fanOf");
_global.showHowToPlay = ((SO.getVar("showHowToPlay") === undefined) ? true : false);
}
_global.sndman = new SoundManager(createEmptyMovieClip("sndHolder", 0));
_global.music = _global.sndman.newSound("music");
_global.music.volume = 0;
_global.music.start(0, 9999999);
_global.music.fadeTo(50, 5);
_global.backendURL = "http://projects.kempt.co.uk/triviala/";
sexArr = ["man", "woman"];
ageArr = ["under 21", "21-45", "over 45"];
fanOfArr = ["Labrador Retriever", "English Cocker Spaniel", "English Springer Spaniel", "German Shepherd Dog", "Staffordshire Bull Terrier", "Cavalier King Charles Spaniel", "Golden Retriever", "West Highland White Terrier", "Boxer", "Border Terrier", "Yorkshire Terrier", "Beagle", "Dachshund", "Poodle", "Shih Tzu", "Miniature Schnauzer", "Bulldog", "Long Haired Collie", "Pit bull", "Irish Setter", "Bull Terrier", "Fox Hound", "Rottweiler", "Doberman", "Scottish Terrier", "Whippet", "Japanese Spitz", "Jack Russell", "Chihuahua", "Border Collie", "Dalmation", "Bichon Fris\u00E9", "Afgan Hound"];
levelData = [];
levelData[1] = {title:"Everything"};
_global.showHowToPlay = true;
SO.init(this, "triviala", onExternalInit);
onExternalInit();
_global.root.muteEvent = 1487;
_global.root.unmuteEvent = 1488;
Frame 4
stop();
Frame 5
stop();
starPowerXml = new XML();
starPowerXml.ignoreWhite = true;
starPowerXml.onLoad = function (success) {
if (!success) {
this.parseXML("<stars><star starPower=\"0.65625\"/><star starPower=\"0.140625\"/><star starPower=\"0.90625\"/><star starPower=\"0.140625\"/><star starPower=\"0.140625\"/><star starPower=\"1\"/><star starPower=\"0.28125\"/><star starPower=\"0.59375\"/><star starPower=\"0.75\"/><star starPower=\"0.375\"/><star starPower=\"0.140625\"/><star starPower=\"0.34375\"/><star starPower=\"0.46875\"/><star starPower=\"0.96875\"/><star starPower=\"0.140625\"/><star starPower=\"0.625\"/><star starPower=\"0.6875\"/><star starPower=\"0.40625\"/><star starPower=\"0.140625\"/><star starPower=\"0.5\"/><star starPower=\"0.53125\"/><star starPower=\"0.3125\"/><star starPower=\"0.875\"/><star starPower=\"0.140625\"/><star starPower=\"0.5625\"/><star starPower=\"0.9375\"/><star starPower=\"0.78125\"/><star starPower=\"0.84375\"/><star starPower=\"0.71875\"/><star starPower=\"0.4375\"/><star starPower=\"0.140625\"/><star starPower=\"0.8125\"/></stars>");
}
play();
};
starPowerXml.load("http://projects.kempt.co.uk/triviala/comms/starPower.comms.php");
Frame 6
xmlStr = "<config>";
xmlStr = xmlStr + (("<" + Engine.CELEBRITIES) + ">");
xmlStr = xmlStr + "<star price=\"20000\" minlvl=\"0\" name=\"Lassie Allen\" donorname=\"Allen\" breed=\"borderCollie\" sex=\"female\" \t\t\t\t\ttalent=\"4\" sexAppeal=\"3\" charisma=\"4\" boxOffice=\"3\" humour=\"3\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"500\" minlvl=\"0\" name=\"Pooches Geldof\" donorname=\"Pooches\" breed=\"afganHound\" sex=\"female\" \t\t\t\t\ttalent=\"2\" sexAppeal=\"1\" charisma=\"0\" boxOffice=\"1\" humour=\"1\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"15000\" minlvl=\"0\" name=\"Cheryl Collie\" donorname=\"Collie\" breed=\"collie\" sex=\"female\" \t\t\t\t\t\ttalent=\"2\" sexAppeal=\"4\" charisma=\"2\" boxOffice=\"3\" humour=\"1\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"2500\" minlvl=\"0\" name=\"Doggy Dog\" donorname=\"Dog\" breed=\"dachshund\" sex=\"male\" \t\t\t\t\t\t\t\ttalent=\"3\" sexAppeal=\"1\" charisma=\"2\" boxOffice=\"1\" humour=\"1\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"1000\" minlvl=\"0\" name=\"Simon Growl\" donorname=\"Growl\" breed=\"borderCollie\" sex=\"male\" \t\t\t\t\t\ttalent=\"1\" sexAppeal=\"1\" charisma=\"1\" boxOffice=\"2\" humour=\"3\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"30000\" minlvl=\"0\" name=\"Bark Obama\" donorname=\"Obama\" breed=\"rottweiler\" sex=\"male\" \t\t\t\t\t\t\ttalent=\"4\" sexAppeal=\"3\" charisma=\"4\" boxOffice=\"3\" humour=\"4\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"7500\" minlvl=\"0\" name=\"Wayne Ruffney\" donorname=\"Ruffney\" breed=\"bulldog\" sex=\"male\" \t\t\t\t\t\ttalent=\"4\" sexAppeal=\"0\" charisma=\"1\" boxOffice=\"3\" humour=\"1\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"20000\" minlvl=\"0\" name=\"Jack Russell Brand\" donorname=\"Brand\" breed=\"jackRussell\" sex=\"male\"\t\t\t\t\ttalent=\"1\" sexAppeal=\"4\" charisma=\"2\" boxOffice=\"2\" humour=\"5\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"1000\" runt=\"1\" minlvl=\"0\" name=\"Mutty Price\" donorname=\"Price\" breed=\"boxer\" sex=\"female\" \t\t\t\t\ttalent=\"0\" sexAppeal=\"3\" charisma=\"0\" boxOffice=\"0\" humour=\"0\" dominance=\"0.1\"/>";
xmlStr = xmlStr + "<star price=\"5000\" minlvl=\"0\" name=\"Nigella Pawson\" donorname=\"Pawson\" breed=\"dalmation\" sex=\"female\" \t\t\t\t\ttalent=\"3\" sexAppeal=\"3\" charisma=\"4\" boxOffice=\"2\" humour=\"2\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"500\" minlvl=\"0\" name=\"Bichon Johnson\" donorname=\"Johnson\" breed=\"bichonFrise\" sex=\"male\" \t\t\t\t\ttalent=\"1\" sexAppeal=\"0\" charisma=\"2\" boxOffice=\"1\" humour=\"1\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"10500\" minlvl=\"0\" name=\"Pup Anderson\" donorname=\"Anderson\" breed=\"japaneseSpitz\" sex=\"female\" \t\t\t\ttalent=\"2\" sexAppeal=\"4\" charisma=\"4\" boxOffice=\"4\" humour=\"3\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"1000\" runt=\"1\" minlvl=\"0\" name=\"DoberMoyles\" donorname=\"Moyles\" breed=\"beagle\" sex=\"male\" \t\t\t\t\ttalent=\"0\" sexAppeal=\"0\" charisma=\"1\" boxOffice=\"0\" humour=\"1\" dominance=\"2\"/>";
xmlStr = xmlStr + "<star price=\"40000\" special=\"1\" minlvl=\"4\" name=\"Brit Bull\" donorname=\"Bull\" breed=\"bullTerrier\" sex=\"female\" \t\t\t\ttalent=\"3\" sexAppeal=\"5\" charisma=\"3\" boxOffice=\"5\" humour=\"2\" dominance=\"0.25\"/>";
xmlStr = xmlStr + "<star price=\"1000\" runt=\"1\" minlvl=\"0\" name=\"Doggy Dogsborne\" donorname=\"Dogsborne\" breed=\"whippet\" sex=\"male\" \t\t\ttalent=\"3\" sexAppeal=\"0\" charisma=\"0\" boxOffice=\"3\" humour=\"0\" dominance=\"0.1\"/>";
xmlStr = xmlStr + "<star price=\"2500\" minlvl=\"0\" name=\"Lindsay Doberhan\" donorname=\"Doberhan\" breed=\"doberman\" sex=\"female\" \t\t\t\t\ttalent=\"2\" sexAppeal=\"2\" charisma=\"1\" boxOffice=\"3\" humour=\"0\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"15000\" minlvl=\"0\" name=\"Gordon Retriever\" donorname=\"Retriever\" breed=\"goldenRetriever\" sex=\"male\" \t\t\ttalent=\"4\" sexAppeal=\"2\" charisma=\"2\" boxOffice=\"3\" humour=\"2\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"1000\" minlvl=\"0\" name=\"Kate Mosstiff\" donorname=\"Mosstiff\" breed=\"whippet\" sex=\"female\" \t\t\t\t\t\ttalent=\"1\" sexAppeal=\"3\" charisma=\"1\" boxOffice=\"2\" humour=\"1\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"500\" minlvl=\"0\" name=\"Jeremy Barkson\" donorname=\"Barkson\" breed=\"dalmation\" sex=\"male\" \t\t\t\t\t\ttalent=\"1\" sexAppeal=\"1\" charisma=\"1\" boxOffice=\"0\" humour=\"2\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"7800\" minlvl=\"0\" name=\"Prince Rusty\" donorname=\"Rusty\" breed=\"irishSetter\" sex=\"male\" \t\t\t\t\t\t\ttalent=\"1\" sexAppeal=\"2\" charisma=\"1\" boxOffice=\"1\" humour=\"0\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"7500\" minlvl=\"0\" name=\"Pooch Spice\" donorname=\"Spice\" breed=\"chihuahua\" sex=\"female\" \t\t\t\t\t\ttalent=\"1\" sexAppeal=\"4\" charisma=\"1\" boxOffice=\"3\" humour=\"1\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"10500\" minlvl=\"0\" name=\"Lewis Terrier\" donorname=\"Lewis\" breed=\"scottishTerrier\" sex=\"male\" \t\t\t\t\ttalent=\"4\" sexAppeal=\"3\" charisma=\"3\" boxOffice=\"3\" humour=\"2\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"500\" minlvl=\"0\" name=\"Parisian Poodle\" donorname=\"Poodle\" breed=\"poodle\" sex=\"female\" \t\t\t\t\t\ttalent=\"0\" sexAppeal=\"1\" charisma=\"1\" boxOffice=\"2\" humour=\"1\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"5000\" minlvl=\"0\" name=\"Bone-o\" donorname=\"-eo\" breed=\"shihTzu\" sex=\"male\" \t\t\t\t\t\t\t\t\ttalent=\"3\" sexAppeal=\"1\" charisma=\"1\" boxOffice=\"4\" humour=\"1\" dominance=\"0.5\"/>";
xmlStr = xmlStr + "<star price=\"40000\" special=\"1\" minlvl=\"2\" name=\"Spanielton John\" donorname=\"Spanielton\" breed=\"scottishTerrier\" sex=\"male\" talent=\"5\" sexAppeal=\"4\" charisma=\"4\" boxOffice=\"5\" humour=\"4\" dominance=\"0.25\"/>";
xmlStr = xmlStr + "<star price=\"50000\" special=\"1\" minlvl=\"1\" name=\"Wagdonna\" donorname=\"Donna\" breed=\"germanShepherd\" sex=\"female\" \t\t\ttalent=\"4\" sexAppeal=\"5\" charisma=\"4\" boxOffice=\"5\" humour=\"2\" dominance=\"0.25\"/>";
xmlStr = xmlStr + "<star price=\"60000\" special=\"1\" minlvl=\"3\" name=\"Goldie Balls\" donorname=\"Goldie\" breed=\"goldenRetriever\" sex=\"male\" \t\ttalent=\"5\" sexAppeal=\"5\" charisma=\"3\" boxOffice=\"5\" humour=\"2\" dominance=\"0.25\"/>";
xmlStr = xmlStr + "<star price=\"60000\" special=\"1\" minlvl=\"5\" name=\"Airedale Joli\" donorname=\"Joli\" breed=\"foxHound\" sex=\"female\" \t\t\ttalent=\"3\" sexAppeal=\"5\" charisma=\"5\" boxOffice=\"5\" humour=\"2\" dominance=\"0.25\"/>";
xmlStr = xmlStr + "<star price=\"50000\" special=\"1\" minlvl=\"6\" name=\"Pitt Bull\" donorname=\"Pitt\" breed=\"pitBull\" sex=\"male\" \t\t\t\t\ttalent=\"2\" sexAppeal=\"5\" charisma=\"5\" boxOffice=\"5\" humour=\"3\" dominance=\"0.25\"/>";
xmlStr = xmlStr + "<star price=\"4000\" runt=\"1\" minlvl=\"0\" name=\"Berry Abona\" donorname=\"Abona\" breed=\"bulldog\" sex=\"female\" \t\t\t\t\ttalent=\"0\" sexAppeal=\"1\" charisma=\"0\" boxOffice=\"1\" humour=\"0\" dominance=\"2\"/>";
xmlStr = xmlStr + "<star price=\"3000\" runt=\"1\" minlvl=\"0\" name=\"Johnny Muttass\" donorname=\"Muttass\" breed=\"bulldog\" sex=\"male\" \t\t\t\ttalent=\"0\" sexAppeal=\"0\" charisma=\"2\" boxOffice=\"2\" humour=\"4\" dominance=\"0.1\"/>";
xmlStr = xmlStr + "<star price=\"2000\" runt=\"1\" minlvl=\"0\" name=\"Amy Doghouse\" donorname=\"Doghouse\" breed=\"poodle\" sex=\"female\" \t\t\t\ttalent=\"4\" sexAppeal=\"1\" charisma=\"1\" boxOffice=\"3\" humour=\"0\" dominance=\"0.1\"/>";
xmlStr = xmlStr + (("</" + Engine.CELEBRITIES) + ">");
xmlStr = xmlStr + "</config>";
xml = new XML(xmlStr);
engine.init(xml, starPowerXml);
stop();
Symbol 78 MovieClip Frame 1
_parent._parent.waitForAnim();
Symbol 78 MovieClip Frame 9
_parent._parent.preloaderAnimDone();
stop();
Symbol 79 MovieClip Frame 64
stop();
Symbol 82 MovieClip Frame 11
gotoAndPlay (1);
Symbol 83 MovieClip Frame 1
function onEnterFrame() {
var _local2 = _root.getBytesLoaded() / _root.getBytesTotal();
footBall.gotoAndStop(Math.ceil(_local2 * footBall._totalframes));
}
function preloaderDone() {
delete onEnterFrame;
_parent.play();
}
function waitForAnim() {
gotoAndStop ("wait");
}
function preloaderAnimDone() {
gotoAndPlay ("out");
}
_parent.stop();
var progress = (_root.getBytesLoaded() / _root.getBytesTotal());
if (progress == 1) {
delete onEnterFrame;
football.play();
}
stop();
Symbol 83 MovieClip Frame 40
preloaderDone();
stop();
Symbol 1330 MovieClip [__Packages.Snd] Frame 0
class Snd extends Sound
{
var target, manager, _volume, position, start, duration, onFadeComplete, fId, setPan, onSoundComplete;
function Snd (targ, sndman) {
super(targ);
target = (targ ? (targ) : _root);
manager = sndman;
_volume = super.getVolume();
}
function switchSound(id, loops) {
var _local3 = position;
super.stop();
super.attachSound(id);
start((_local3 % duration) / 1000, loops);
}
function fade(dVol, tVol, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
fId = setInterval(this, "changeVolTowards", FADE_RATE, dVol * (FADE_RATE / 1000), tVol, true);
}
function fadeBy(dVol, t, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
if (t > 0) {
fId = setInterval(this, "changeVolTowards", FADE_RATE, dVol * (FADE_RATE / 1000), dVol * t, true);
}
}
function fadeTo(tVol, t, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
if (t > 0) {
var _local3 = (tVol - getVolume()) / t;
fId = setInterval(this, "changeVolTowards", FADE_RATE, _local3 * (FADE_RATE / 1000), tVol, true);
} else {
setVolume(tVol);
}
}
function changeVolTowards(dVol, tVol, fading) {
var _local2 = getVolume();
if (Math.abs(dVol) < Math.abs(tVol - _local2)) {
changeVolume(dVol);
} else {
setVolume(tVol);
if (fading) {
stopFade();
}
}
}
function stopFade() {
if (fId) {
clearInterval(fId);
delete fId;
onFadeComplete();
delete onFadeComplete;
}
}
function positionSound(a, d, f, t) {
if (d < f) {
t = (isNaN(t) ? 100 : (((t < 0) ? 0 : (t))));
d = ((d < 1) ? 1 : (d));
var _local4 = 1 / ((d / f) * 100);
setVolume(Math.ceil(_local4 * t));
setPan((-Math.sin(a)) * 100);
} else {
setVolume(0);
}
}
function positionSoundLinear(a, d, f, t) {
if (d < f) {
t = (isNaN(t) ? 100 : (((t < 0) ? 0 : (t))));
setVolume(((f - d) / f) * t);
setPan((-Math.sin(a)) * 100);
} else {
setVolume(0);
}
}
function setVolume(n) {
_volume = n;
super.setVolume(n);
}
function getVolume() {
return(_volume);
}
function changeVolume(n) {
setVolume(getVolume() + n);
}
function remove() {
super.stop();
delete onSoundComplete;
stopFade();
delete manager.sounds[target.getDepth()];
target.removeMovieClip();
}
function toString() {
return(("(target=" + target) + ")");
}
function get volume() {
return(getVolume());
}
function set volume(n) {
setVolume(n);
//return(volume);
}
static var FADE_RATE = 100;
}
Symbol 1331 MovieClip [__Packages.SoundManager] Frame 0
class SoundManager extends Snd
{
var sounds, mc_holder, getVolume;
function SoundManager (hld_mc) {
super();
sounds = new Object();
mc_holder = (hld_mc ? (hld_mc) : _root);
}
function playAndRemove(snd_id, offset, loops) {
offset = (isNaN(offset) ? 0 : (offset));
loops = (isNaN(loops) ? 0 : (loops));
var _local2 = newSound(snd_id);
_local2.start(offset, loops);
_local2.onSoundComplete = _local2.remove;
return(_local2);
}
function clearAllSounds() {
for (var _local2 in sounds) {
sounds[_local2].remove();
}
}
function newSound() {
var _local5 = mc_holder.getNextHighestDepth();
var _local6 = mc_holder.createEmptyMovieClip("sh_mc" + _local5, _local5);
var _local4 = new Snd(_local6, this);
var _local3 = 0;
while (_local3 < arguments.length) {
if (arguments[_local3] != undefined) {
_local4.attachSound(arguments[_local3]);
}
_local3++;
}
sounds[_local5] = _local4;
return(_local4);
}
function deleteSound(snd) {
snd.remove();
}
function setVolume(vol) {
if (muted) {
curVol = vol;
} else {
super.setVolume(vol);
}
}
function get mute() {
return(muted);
}
function set mute(b) {
muted = b;
if (b) {
curVol = getVolume();
super.setVolume(0);
} else {
super.setVolume(curVol);
}
//return(mute);
}
var muted = false;
var curVol = 100;
}
Symbol 1332 MovieClip [__Packages.SO] Frame 0
class SO
{
static var root, onExternalInit, externalSOPath, lso, mcl, eso;
function SO () {
}
static function init(r, name, oei) {
root = r;
onExternalInit = oei;
System.security.allowDomain(externalSODomain);
externalSOPath = (externalSODomain + name) + externalSOPathEnd;
lso = SharedObject.getLocal(name, "/");
mcl = new MovieClipLoader();
mcl.addListener(SO);
mcl.loadClip(externalSOPath, root.createEmptyMovieClip("eso_mc", root.getNextHighestDepth()));
}
static function onLoadComplete(targ) {
eso = targ.getSO();
if (eso.data._setData) {
for (var _local1 in eso.data) {
lso.data[_local1] = eso.data[_local1];
}
lso.flush();
} else if (lso.data._setData) {
for (var _local1 in lso.data) {
eso.data[_local1] = lso.data[_local1];
}
eso.flush();
}
onExternalInit();
}
static function getVar(n) {
return(lso.data[n]);
}
static function setVar(n, v) {
if (eso) {
eso.data._setData = true;
eso.data[n] = v;
eso.flush();
}
lso.data._setData = true;
lso.data[n] = v;
lso.flush();
}
static function clearSO() {
for (var _local1 in lso.data) {
delete lso.data[_local1];
}
lso.flush();
for (var _local1 in eso.data) {
delete eso.data[_local1];
}
lso.flush();
}
static var externalSODomain = "http://projects.kempt.co.uk/";
static var externalSOPathEnd = "/swf/so.swf";
}
Symbol 1333 MovieClip [__Packages.Avatar] Frame 0
class Avatar extends MovieClip
{
function Avatar () {
super();
}
}
Symbol 1334 MovieClip [__Packages.DogMcBody] Frame 0
class DogMcBody extends MovieClip
{
var dogMc, _parent, _currentframe, stop, waitTime, waitedFor, play;
function DogMcBody () {
super();
dogMc = _parent;
}
function onEnterFrame() {
if (_currentframe == 1) {
if (dogMc.isSad) {
stop();
} else if (!dogMc.isHappy) {
if ((wags > 0) && (!waitTime)) {
wags--;
} else if ((wags <= 0) && (!waitTime)) {
waitTime = Rand.random(10, 60, 0);
waitedFor = 0;
wags = Rand.random(3, 10, 0);
stop();
} else if ((waitedFor++) > waitTime) {
delete waitTime;
delete waitedFor;
play();
}
}
}
}
var wags = 0;
}
Symbol 1335 MovieClip [__Packages.DogMc] Frame 0
class DogMc extends MovieClip
{
var isDraggable, onPress, engine, baseHeadPos, avatar, onRollOver, onRollOut, gender_mc, dog, onMouseMove, _x, lockCenter, _xmouse, _parent, _y, _ymouse, startX, startY, _xscale, _yscale, onMouseUp, rotVel, rot, lastX, startBodyRot, body, onEnterFrame, swapDepths, getDepth, removeMovieClip;
function DogMc () {
super();
gotoAndStop(1);
if (isDraggable) {
onPress = grabDog;
makeRolloverable();
sortDepth();
faceRandomDirection();
}
if (isYardDog) {
engine.yardDogs.push(this);
}
baseHeadPos = avatar._y;
}
function makeRolloverable() {
onRollOver = rollOver;
onRollOut = rollOut;
}
function rollOver() {
gender_mc.gotoAndPlay(String(dog.isBitch));
if (engine.rolledOverDog(this)) {
if (Math.random() < WOOFPROBABILITY) {
avatar._y = baseHeadPos + HEAD_BOB;
dog.woof();
_global.setTimeout(this, "unBob", 100);
}
}
}
function unBob() {
avatar._y = baseHeadPos;
updateAfterEvent();
}
function rollOut() {
gender_mc.gotoAndPlay("off");
}
function startSmoothDrag(lockCenter) {
if (lockCenter == undefined) {
lockCenter = false;
}
onMouseMove = onDragDog;
setPosition();
}
function onDragDog() {
setPosition();
updateAfterEvent();
}
function setPosition() {
_x = _parent._xmouse - (lockCenter ? 0 : (_xmouse));
_y = _parent._ymouse - (lockCenter ? 0 : (_ymouse));
}
function stopSmoothDrag() {
onMouseMove = null;
}
function grabDog() {
var _local2 = dog.makeClip(engine.grabbedDog, false, true);
_local2._x = _x;
_local2._y = _y;
_local2.depthAdjust = depthAdjust;
_local2.beginDraggingDog();
if (_parent == engine.loveShackHolder) {
engine.takeOutOfLoveShack(this);
_local2.isFromLoveShack = true;
}
if (Math.random() < YELPPROBABILITY) {
dog.yelp();
}
die();
}
function beginDraggingDog() {
startX = _x;
startY = _y;
gotoAndStop(PICKUP);
startSmoothDrag(true);
_xscale = (_yscale = GRABBED_SCALE);
startSwinging();
onMouseUp = dropDog;
}
function startSwinging() {
rotVel = 0;
rot = 0;
lastX = _x;
startBodyRot = body._rotation;
onEnterFrame = swingLoop;
}
function stopSwinging() {
delete onEnterFrame;
}
function swingLoop() {
rotVel = ((_x - lastX) + (rotVel * 2)) / 3;
rotVel = rotVel * 0.99;
rot = (rotVel + rot) / 2;
body._rotation = rot + startBodyRot;
avatar._rotation = rot * -0.5;
lastX = _x;
}
function putThisDogBackWhereItCameFromOrSoHelpMe() {
var _local2;
if (isFromLoveShack) {
_local2 = dog.makeClip(engine.loveShackHolder, true, true);
engine.putInLoveShack(_local2);
} else {
_local2 = dog.makeClip(engine.dogHolder, true, true);
_local2._x = startX;
_local2._y = startY;
_local2.faceRandomDirection();
}
_local2.depthAdjust = depthAdjust;
_local2.sortDepth();
}
function snapToIso() {
var _local11 = _x / YARD_GRID;
var _local10 = _y / YARD_GRID;
var _local9 = Math.round((_local11 + (2 * _local10)) / 2);
var _local8 = Math.round((_local11 - (2 * _local10)) / 2);
_x = (_y = -10000);
var _local2;
_local2 = coordsFromIso(_local9, _local8);
var _local3 = 1;
var _local5;
var _local4;
var _local7;
var _local6;
while (!engine.isPlaceAvailable(Math.round(_local2.x), Math.round(_local2.y))) {
_local5 = Math.ceil(_local3 / 4);
_local4 = _local3 % 4;
_local7 = _local9 + ((_local4 == 1) ? (_local5) : (((_local4 == 3) ? (-_local5) : 0)));
_local6 = _local8 + ((_local4 == 0) ? (_local5) : (((_local4 == 2) ? (-_local5) : 0)));
_local2 = coordsFromIso(_local7, _local6);
_local3++;
if (_local3 > 10) {
_local3 = 0;
_local2.x = Rand.random(Engine.SPAWN_X_MIN, Engine.SPAWN_X_MAX);
_local2.y = Rand.random(Engine.SPAWN_Y_MIN, Engine.SPAWN_Y_MAX);
}
}
_x = Math.round(_local2.x);
_y = Math.round(_local2.y);
}
function coordsFromIso(x, y) {
var _local1 = new flash.geom.Point();
_local1.x = YARD_GRID * (x + y);
_local1.y = (YARD_GRID / 2) * (x - y);
return(_local1);
}
function dropDog() {
var _local2;
if (engine.yardDroppableArea.hitTest(engine._xmouse, engine._ymouse + DROP_MOUSE_OFFSET, true)) {
_local2 = dog.makeClip(engine.dogHolder, true, true);
_local2.depthAdjust = depthAdjust;
_local2._x = _x;
_local2._y = _y + DROP_MOUSE_OFFSET;
_local2.snapToIso();
_local2.faceRandomDirection();
_local2.sortDepth();
} else if (engine.loveShackDropArea.hitTest(engine._xmouse, engine._ymouse, true)) {
if (!engine.putInLoveShack(this)) {
putThisDogBackWhereItCameFromOrSoHelpMe();
}
} else {
putThisDogBackWhereItCameFromOrSoHelpMe();
}
die();
}
function faceRandomDirection() {
gotoAndStop(Rand.value.apply(null, DIRECTIONS));
}
function sortDepth() {
var _local3 = getNearestFreeDepth(_y + depthAdjust);
var _local2 = _parent.createEmptyMovieClip("temp" + _local3, _local3);
swapDepths(_local2);
_local2.removeMovieClip();
}
function getNearestFreeDepth(n) {
var _local2 = 0;
n = Math.round(n);
while (_parent.getInstanceAtDepth(n + _local2)) {
if (_local2 < 0) {
_local2 = -_local2;
} else {
_local2 = (-_local2) - 1;
}
}
return(n + _local2);
}
function gotoAndStop(f) {
super.gotoAndStop(f);
avatar.gotoAndStop(dog.faceShape);
avatar.faceMask.gotoAndStop(dog.faceShape);
avatar.eyes.gotoAndStop(dog.eyes);
avatar.nose.gotoAndStop(dog.nose);
avatar.mouth.gotoAndStop(dog.mouth);
avatar.frontHair.gotoAndStop(dog.hair);
avatar.backHair.gotoAndStop(dog.hair);
}
function die() {
if (isYardDog) {
var _local2 = 0;
while (_local2 < engine.yardDogs.length) {
if (engine.yardDogs[_local2] == this) {
engine.yardDogs.splice(_local2, 1);
break;
}
_local2++;
}
}
if (getDepth() < 0) {
swapDepths(_parent.getNextHighestDepth());
}
removeMovieClip();
}
var isMale = true;
var isFromLoveShack = false;
var isYardDog = false;
var isHappy = false;
var isSad = false;
var depthAdjust = 0;
static var YARD_GRID = 75;
static var DROP_MOUSE_OFFSET = 50;
static var PICKUP = "pickup";
static var GRABBED_SCALE = 150;
static var WOOFPROBABILITY = 0.5;
static var YELPPROBABILITY = 0.5;
static var DIRECTIONS = ["north", "east", "south", "west"];
static var HEAD_BOB = 5;
}
Symbol 1336 MovieClip [__Packages.Engine] Frame 0
class Engine extends MovieClip
{
var breederBoard, shop, breedingResults, yardDroppableArea, loveShackDropArea, objectivesPanel, objectivesAnim, endTurnPage, endTurnPageAnim, gameOverPanel, gameOverAnim, dogPopUp, dogPopUpAnim, gameComplete, gameCompleteAnim, hud, lastMoney, possibleBreedingMatch, possibleBreedingMatchAnim, eventsQueue, achievementsQueue, _achievements, _allAchivements, _allAchivementsEvent, thingsYouDidThisTurn, achievementsThisTurn, sndman, puppySpawns, dogs, yardDogs, lastScore, tutorial, newPuppiesCount, soldDogCount, boughtDogCount, _parent, dogUnlockedAnim, achievementAnim, puppyHolder, dogHolder, lastDog, errorMenu, goodMenu, yesNo, femaleInLoveShack, maleInLoveShack, loveShackHolder, femaleSnap, maleSnap, puppy, celebrities, levelUp, highscoresAnim, _money;
function Engine () {
super();
breederBoard.engine = this;
shop.engine = this;
breedingResults.engine = this;
yardDroppableArea._visible = false;
loveShackDropArea._visible = false;
objectivesPanel = objectivesAnim.panel;
objectivesPanel.engine = this;
endTurnPage = endTurnPageAnim.panel;
endTurnPage.engine = this;
gameOverPanel = gameOverAnim.panel;
gameOverPanel.engine = this;
dogPopUp = dogPopUpAnim.panel;
dogPopUp.engine = this;
gameComplete = gameCompleteAnim.panel;
gameComplete.engine = this;
dogPopUpAnim.gotoAndStop(1);
hud.engine = this;
lastMoney = INIT_MONEY;
possibleBreedingMatch = possibleBreedingMatchAnim.panel;
possibleBreedingMatch.engine = this;
eventsQueue = [];
achievementsQueue = [];
_achievements = {};
_allAchivements = [BREED_A_DOG, SELL_A_DOG, BUY_A_DOG, FILLED_KENNELS, BRED_1_STAR, BRED_2_STAR, BRED_3_STAR, BRED_4_STAR, BRED_5_STAR, BRED_A_SPECIAL, FULL_5_STAR];
_allAchivementsEvent = [1655, 1656, 1657, 1658, 1659, 1660, 1661, 1662, 1663, 1664, 1665];
thingsYouDidThisTurn = [];
achievementsThisTurn = [];
sndman = _global.sndman;
var _local5 = 0;
var _local4;
puppySpawns = [];
while (_local4 = this[PUPPY_SPAWN + (_local5++)] , _local4) {
puppySpawns.push(_local4);
}
}
function init(xml, starPower) {
var _local6 = xml.firstChild;
var _local5;
money = (INIT_MONEY);
var _local3 = 0;
while (_local3 < _local6.childNodes.length) {
_local5 = _local6.childNodes[_local3];
if (!(_local5.nodeName === CELEBRITIES)) {
} else {
parseCelebrities(_local5, starPower);
}
_local3++;
}
dogs = [];
yardDogs = [];
var _local7 = Rand.shuffle(POSSIBLE_INIT_MALE_DOG).slice(0, INIT_MALE_DOGS).concat(Rand.shuffle(POSSIBLE_INIT_FEMALE_DOG).slice(0, INIT_FEMALE_DOGS));
var _local4;
var _local9;
_local3 = 0;
while (_local3 < _local7.length) {
_local4 = Dog.fromCelebrity(this, _local7[_local3]);
_local4.age = 2;
dogs.push(_local4);
_local3++;
}
lastScore = score;
updateYard();
startTurn();
yardDogs[0]._x = 225;
yardDogs[0]._y = 193;
yardDogs[0].sortDepth();
yardDogs[1]._x = 68;
yardDogs[1]._y = 263;
yardDogs[1].sortDepth();
yardDogs[2]._x = 300;
yardDogs[2]._y = 230;
yardDogs[2].sortDepth();
yardDogs[3]._x = 300;
yardDogs[3]._y = 160;
yardDogs[3].sortDepth();
yardDogs[4]._x = 450;
yardDogs[4]._y = 300;
yardDogs[4].sortDepth();
if (_global.showHowToPlay) {
tutorial.gotoAndPlay("on");
SO.setVar("showHowToPlay", false);
} else {
tutorial.gotoAndStop(1);
}
dogPopUpAnim.gotoAndStop(1);
}
function startTurn() {
var _local2 = 0;
while (_local2 < dogs.length) {
dogs[_local2].update();
_local2++;
}
newPuppiesCount = 0;
soldDogCount = 0;
boughtDogCount = 0;
thingsYouDidThisTurn.length = 0;
achievementsThisTurn.length = 0;
turnNum++;
hud.clearDog();
updateYard();
}
function endTurn() {
money = money - feedBill;
endTurnPageAnim.gotoAndPlay("in");
endTurnPage.update();
}
function showObjectives(complete) {
objectivesPanel.show(complete);
}
function goToNextTurn() {
endTurnPageAnim.gotoAndPlay("out");
clearLoveShack();
startTurn();
}
function gameOver() {
gameOverPanel.show();
}
function gotoStartpage() {
_parent.gotoAndStop("startpage");
}
function achieve(achievement, unlockedCeleb) {
if (achievement == UNLOCKED) {
if (unlockedCeleb) {
achievementsQueue.push(unlockedCeleb);
checkAchievements();
}
} else if (!_achievements[achievement]) {
_achievements[achievement] = true;
experience = experience + ACHIEVEMENT_BONUS;
achievementsQueue.push(achievement);
achievementsThisTurn.push(achievement);
var _local5 = 0;
for (var _local6 in _achievements) {
if (_achievements[_local6]) {
_local5++;
}
}
if (_allAchivements.length == _local5) {
addEvent(new GameEvent(ALL_ACHIEVEMENTS));
}
var _local3 = 0;
while (_local3 < _allAchivements.length) {
if (_allAchivements[_local3] == achievement) {
_root.kvEvent(_allAchivementsEvent[_local3]);
break;
}
_local3++;
}
checkAchievements();
}
}
function checkAchievements() {
if (!isAchievementActive) {
if (achievementsQueue.length > 0) {
isAchievementActive = true;
var _local2 = achievementsQueue.shift();
if (_local2 instanceof Celebrity) {
if (dogUnlockedAnim.dogMc) {
dogUnlockedAnim.dogMc.removeMovieClip();
}
dogUnlockedAnim.dogMc = Dog.fromCelebrity(this, getCelebrityNum(_local2)).makeClip(dogUnlockedAnim.panel.dogPanelHolder);
dogUnlockedAnim.gotoAndPlay("in");
} else {
achievementAnim.panel.msg_txt.text = "Achieved: " + _local2;
achievementAnim.gotoAndPlay("in");
}
} else {
achievementAnim.stop();
dogUnlockedAnim.stop();
dogUnlockedAnim.dogMc.removeMovieClip();
}
}
}
function completeAchivement() {
isAchievementActive = false;
achievementAnim.stop();
dogUnlockedAnim.stop();
checkAchievements();
}
function buyDog(dog) {
if ((money >= dog.__get__price()) && (!isKennelsFull)) {
dogs.push(dog);
money = money - dog.price;
achieve(BUY_A_DOG);
if (isKennelsFull) {
achieve(FILLED_KENNELS);
checkFullFiveStar();
}
sndman.playAndRemove(SOUND_KA_CHING);
boughtDogCount++;
checkEvents();
return(true);
}
return(false);
}
function checkFullFiveStar() {
if (isKennelsFull) {
var _local2 = numDogs - 1;
while (_local2 > -1) {
if (dogs[_local2].rating <= 4.75) {
return(undefined);
}
_local2--;
}
achieve(FULL_5_STAR);
}
}
function sellDog(dog) {
money = money + dog.value;
var _local2 = dogs.length - 1;
while (_local2 > -1) {
if (dogs[_local2] == dog) {
dogs.splice(_local2, 1);
break;
}
_local2--;
}
sndman.playAndRemove(SOUND_KA_CHING);
soldDogCount++;
achieve(SELL_A_DOG);
checkEvents();
}
function updateYard() {
var _local3 = yardDogs.length - 1;
while (_local3 > -1) {
yardDogs[_local3].isYardDog = false;
yardDogs[_local3].die();
_local3--;
}
yardDogs.length = 0;
hud.update();
clearLoveShack();
var _local2;
var _local6 = [].concat(puppySpawns);
var _local5;
Rand.shuffle(_local6);
var _local4;
_local3 = 0;
while (_local3 < dogs.length) {
_local4 = dogs[_local3];
if (!_local4.__get__isAdult()) {
_local5 = _local6.pop();
_local2 = _local4.makeClip(puppyHolder, false, true);
_local2._x = _local5._x;
_local2._y = _local5._y;
_local2._xscale = (_local2._yscale = _local4.getScale());
_local2.sortDepth();
yardDogs[_local3] = _local2;
_local2.makeRolloverable();
_local2.faceRandomDirection();
} else if (_local4.isFertile) {
_local2 = _local4.makeClip(dogHolder, true, true);
positionDogMc(_local2);
_local2.depthAdjust = _local3;
_local2.sortDepth();
yardDogs[_local3] = _local2;
}
_local3++;
}
}
function rolledOverDog(d) {
var _local2 = false;
if (d != lastDog) {
_local2 = true;
hud.setDog(d.dog);
}
lastDog = d;
return(_local2);
}
function rolledOutDog() {
hud.clearDog();
}
function showError(msg) {
errorMenu.gotoAndPlay("in");
errorMenu.errorPanel.msg_txt.text = msg;
}
function showMsg(msg) {
goodMenu.gotoAndPlay("in");
goodMenu.panel.msg_txt.text = msg;
}
function askYesNo(msg, fn) {
yesNo.gotoAndPlay("in");
yesNo.panel.msg_txt.text = msg;
yesNo.doTheThing = fn;
}
function clearLoveShack() {
if (femaleInLoveShack) {
femaleInLoveShack.die();
delete femaleInLoveShack;
}
if (maleInLoveShack) {
maleInLoveShack.die();
delete maleInLoveShack;
}
}
function takeOutOfLoveShack(d) {
if (d.dog.isBitch) {
if (femaleInLoveShack == d) {
delete femaleInLoveShack;
}
} else if (maleInLoveShack == d) {
delete maleInLoveShack;
}
}
function putInLoveShack(d) {
if (d.dog.__get__isAdult()) {
if (d.dog.isBitch) {
if (femaleInLoveShack) {
showError(ERROR_TWO_GIRLS);
sndman.playAndRemove(Rand.value.apply(null, GROWLS));
return(false);
}
if (d.dog.isFertile) {
femaleInLoveShack = d.dog.makeClip(loveShackHolder, true);
d.removeMovieClip();
femaleInLoveShack._x = femaleSnap._x;
femaleInLoveShack._y = femaleSnap._y;
// unexpected jump
}
showError("This bitch has already mated");
return(false);
}
if (maleInLoveShack) {
showError(ERROR_TWO_BOYS);
sndman.playAndRemove(Rand.value.apply(null, GROWLS));
return(false);
}
maleInLoveShack = d.dog.makeClip(loveShackHolder, true);
d.removeMovieClip();
maleInLoveShack._x = maleSnap._x;
maleInLoveShack._y = maleSnap._y;
if (maleInLoveShack && (femaleInLoveShack)) {
if (Dog.canMate(maleInLoveShack.dog, femaleInLoveShack.dog)) {
if (!isKennelsFull) {
possibleBreedingMatch.show(maleInLoveShack.dog, femaleInLoveShack.dog);
} else {
showError(ERROR_KENNELS_FULL);
}
} else {
showError("These two dogs cannot be mated");
}
}
return(true);
}
showError("Puppies can't mate!");
return(false);
}
function doBreed() {
puppy = Dog.mate(maleInLoveShack.dog, femaleInLoveShack.dog);
experience = experience + Dog.getExperienceForBreeding(puppy, maleInLoveShack.dog, femaleInLoveShack.dog);
breedingResults.show();
var _local4 = puppy.makeClip(dogHolder, true, true);
positionDogMc(_local4);
_local4.sortDepth();
yardDogs.push(_local4);
achieve(BREED_A_DOG);
var _local5 = bestBreedRating;
bestBreedRating = Math.max(bestBreedRating, puppy.__get__rating());
if (Math.floor(bestBreedRating) > Math.floor(_local5)) {
var _local3 = 1;
while (_local3 <= Math.floor(bestBreedRating)) {
achieve(_global.Engine[("BRED_" + _local3) + "_STAR"]);
_local3++;
}
}
newPuppiesCount++;
var _local6 = femaleInLoveShack;
takeOutOfLoveShack(femaleInLoveShack);
_local6.die();
puppy.dad.isFertile = false;
updateYard();
dogs.push(puppy);
if (isKennelsFull) {
achieve(FILLED_KENNELS);
checkFullFiveStar();
}
}
function positionDogMc(d) {
var _local3;
var _local2;
do {
_local3 = Rand.random(SPAWN_X_MIN, SPAWN_X_MAX);
_local2 = Rand.random(SPAWN_Y_MIN, SPAWN_Y_MAX);
} while (!isPointInYard(_local3, _local2));
d._x = _local3;
d._y = _local2;
d.snapToIso();
}
function isPointInYard(x, y) {
return(yardDroppableArea.hitTest(x, y, true));
}
function isPlaceAvailable(x, y) {
var _local3;
if (((isPointInYard(x, y) && (x >= SPAWN_X_MIN)) && (x <= SPAWN_X_MAX)) && (y <= SPAWN_Y_MAX)) {
var _local2 = yardDogs.length - 1;
while (_local2 > -1) {
_local3 = yardDogs[_local2];
var _local4 = Math.sqrt(Math.pow(_local3._x - x, 2) + Math.pow(_local3._y - y, 2));
if (_local4 < 20) {
return(false);
}
_local2--;
}
return(true);
}
return(false);
}
function getDogsOrderedByValue() {
var _local3 = [].concat(dogs);
var _local2 = _local3.length - 1;
while (_local2 > -1) {
_local3[_local2].tempValue = _local3[_local2].value;
_local2--;
}
_local3.sortOn(["isBitch", "tempValue"], [Array.DESCENDING, Array.NUMERIC]);
_local3.reverse();
return(_local3);
}
function parseCelebrities(node, starPower) {
celebrities = [null];
var _local2 = 0;
while (_local2 < node.childNodes.length) {
celebrities[_local2 + 1] = new Celebrity(node.childNodes[_local2], Number(starPower.firstChild.childNodes[_local2].attributes.starPower));
_local2++;
}
}
function getCelebBetween(sn, en) {
var _local3 = Rand.shuffle([].concat(celebrities));
var _local2 = _local3.length - 1;
while (_local2 > -1) {
if (_local3.rating >= sn) {
if (_local3.rating <= en) {
return(getCelebrityNum(_local3[_local2]));
}
}
_local2--;
}
return(-1);
}
function getRunt() {
var _local3 = [].concat(celebrities);
Rand.shuffle(_local3);
var _local2 = _local3.length - 1;
while (_local2 > -1) {
if (_local3[_local2].isRunt) {
return(getCelebrityNum(_local3[_local2]));
}
_local2--;
}
}
function getSpecial() {
var _local3 = [].concat(celebrities);
Rand.shuffle(_local3);
var _local2 = _local3.length - 1;
while (_local2 > -1) {
if (_local3[_local2].isSpecial) {
return(getCelebrityNum(_local3[_local2]));
}
_local2--;
}
}
function addEvent(e) {
eventsQueue.push(e);
}
function checkEvents() {
if (eventsQueue.length > 0) {
var _local2 = eventsQueue.shift();
switch (_local2.type) {
case LEVELED_UP :
levelUp.gotoAndPlay("in");
sndman.playAndRemove(SOUND_LEVEL_UP);
break;
case ALL_ACHIEVEMENTS :
gameComplete.show();
}
}
hud.update();
}
function showHighscores() {
_root.kvEvent(1666);
highscoresAnim.panel.getScores("level");
highscoresAnim.gotoAndPlay("in");
}
function getDogNum(n) {
return(dogs[n]);
}
function getCelebrityNum(c) {
var _local2 = celebrities.length - 1;
while (_local2 > -1) {
if (celebrities[_local2] == c) {
return(_local2);
}
_local2--;
}
}
function getUnlockedCeleb() {
var _local2 = celebrities.length - 1;
while (_local2 > -1) {
if (celebrities[_local2].minLvl == (breederLevel - 1)) {
return(celebrities[_local2]);
}
_local2--;
}
}
function get money() {
return(_money);
}
function set money(n) {
_money = n;
hud.update();
//return(money);
}
function get score() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < dogs.length) {
_local3 = _local3 + dogs[_local2].value;
_local2++;
}
return(Math.floor(_local3));
}
function get fertileBitches() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < dogs.length) {
if ((dogs[_local2].isBitch && (dogs[_local2].isAdult)) && (dogs[_local2].isFertile)) {
_local3++;
}
_local2++;
}
return(_local3);
}
function get feedBill() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < dogs.length) {
_local3 = _local3 + dogs[_local2].runningCost;
_local2++;
}
return(Math.round(_local3));
}
function get numDogs() {
return(dogs.length);
}
function get isKennelsFull() {
return(numDogs >= MAX_NUM_DOGS);
}
function get nextLevelIn() {
return(LEVEL_UPS[_breederLevel] - _experience);
}
function get nextLevelAt() {
return(LEVEL_UPS[_breederLevel]);
}
function get experience() {
return(_experience);
}
function get breederLevel() {
return(_breederLevel + 1);
}
function set experience(n) {
while (n >= LEVEL_UPS[_breederLevel]) {
_breederLevel++;
var _local2 = getUnlockedCeleb();
thingsYouDidThisTurn.push("You reached breeder level " + breederLevel);
if (_local2) {
achieve(UNLOCKED, _local2);
thingsYouDidThisTurn.push("You unlocked a new dog in the shop: " + _local2.name);
}
addEvent(new GameEvent(LEVELED_UP, breederLevel));
}
_experience = n;
//return(experience);
}
var turnNum = 0;
var lastExperience = 0;
var isAchievementActive = false;
var _experience = 0;
var _breederLevel = 0;
var bestBreedRating = 0;
static var POSSIBLE_INIT_MALE_DOG = [11, 19, 20];
static var POSSIBLE_INIT_FEMALE_DOG = [2, 23];
static var INIT_MALE_DOGS = 3;
static var INIT_FEMALE_DOGS = 2;
static var INIT_MONEY = 3000;
static var MAX_NUM_DOGS = 10;
static var PUPPY_SPAWN = "puppyPlace";
static var ACHIEVEMENT_BONUS = 10;
static var ALL_ACHIEVEMENTS = "Well done, you've achieved everything!";
static var BREED_A_DOG = "Breed your first dog";
static var SELL_A_DOG = "Sell your first dog";
static var BUY_A_DOG = "Buy your first dog";
static var FILLED_KENNELS = "Fill your kennels";
static var BRED_1_STAR = "Breed your first 1 star dog";
static var BRED_2_STAR = "Breed your first 2 star dog";
static var BRED_3_STAR = "Breed your first 3 star dog";
static var BRED_4_STAR = "Breed your first 4 star dog";
static var BRED_5_STAR = "Breed your first 5 star dog";
static var BRED_A_SPECIAL = "Breed your first special celebrity";
static var FULL_5_STAR = "Filled kennels with 5 star dogs";
static var SOUND_KA_CHING = "ka-ching";
static var GROWLS = ["growl1", "growl2"];
static var SOUND_ACHIEVEMENT = "success";
static var SOUND_FANFARE = "bredADog";
static var SOUND_POOFARE = "bredARunt";
static var SOUND_LEVEL_UP = "level up";
static var ERROR_TWO_GIRLS = "Oops, you picked two girls!";
static var ERROR_TWO_BOYS = "Two boys! Try picking again";
static var ERROR_KENNELS_FULL = "Your kennels are full! Sell a dog to make space";
static var LEVELED_UP = "leveled up";
static var UNLOCKED = "unlocked";
static var SPAWN_X_MIN = 50;
static var SPAWN_X_MAX = 550;
static var SPAWN_Y_MIN = 100;
static var SPAWN_Y_MAX = 300;
static var LEVEL_UPS = [10, 50, 100, 250, 500, 1000, 1500, 2000, 2500, Number.POSITIVE_INFINITY];
static var CELEBRITIES = "celebrities";
}
Symbol 1337 MovieClip [__Packages.MenuItem] Frame 0
class MenuItem extends MovieClip
{
var gotoAndPlay, nextMenu, gotoAndStop;
function MenuItem () {
super();
}
function show() {
if (!showing) {
gotoAndPlay("in");
showing = true;
_global.root.engine.hud.gotoAndStop(myNameIs);
}
}
function checkCurrentMenu() {
_global.root.engine.hud.gotoAndStop(myNameIs);
showing = false;
if (_global.root.engine.hud.currentMenu != myNameIs) {
hide();
}
}
function hide(t) {
if (!showing) {
if (t) {
nextMenu = t;
_global.root.engine.hud.gotoAndStop(nextMenu);
} else {
delete nextMenu;
_global.root.engine.hud.gotoAndStop("outside");
}
gotoAndPlay("out");
_global.root.engine.updateYard();
}
}
function goToOff() {
if (_global.root.engine.hud.currentMenu == "outside") {
_global.root.engine.hud.gotoAndStop("outside");
}
if (nextMenu) {
nextMenu.show();
}
gotoAndStop("off");
}
var showing = false;
var myNameIs = "outside";
}
Symbol 1338 MovieClip [__Packages.BreederBoard] Frame 0
class BreederBoard extends MenuItem
{
var hide, engine, main;
function BreederBoard () {
super();
main.showShopBtn.onRelease = Delegate.create(this, hide, engine.shop);
main.endTurn.onRelease = Delegate.create(engine, engine.endTurn);
}
function updatePanels() {
if (displayedDogs[0]) {
var _local4 = 0;
while (_local4 < displayedDogs.length) {
displayedDogs[_local4].removeMovieClip();
_local4++;
}
displayedDogs = [];
}
var _local5 = [];
_local5 = engine.getDogsOrderedByValue();
var _local4 = 0;
while (_local4 <= 9) {
var _local3 = main["dogPanel" + _local4];
if (_local5[_local4]) {
if (_local5[_local4].isNewAdult) {
_local3.gotoAndStop("newAdult");
} else if (_local5[_local4].isAdult) {
_local3.gotoAndStop("on");
} else {
_local3.gotoAndStop("pup");
}
if (_local5[_local4].isFertile) {
_local3.asleepDisplay.gotoAndStop("off");
} else {
_local3.asleepDisplay.gotoAndStop("on");
}
if (_local5[_local4].isRunt) {
_local3.runtDisplay.gotoAndStop("on");
} else {
_local3.runtDisplay.gotoAndStop("off");
}
if (_local5[_local4].isBitch) {
_local3.genderDisplay.gotoAndStop("female");
} else {
_local3.genderDisplay.gotoAndStop("male");
}
_local3.nameDisplay.text = _local5[_local4].name;
if (_local3.stars.setStars) {
_local3.stars.setStars(_local5[_local4].rating);
} else {
_local3.stars.initStars = _local5[_local4].rating;
}
_local3.valueTxt.text = "\u00A3" + Format.number(Math.floor(_local5[_local4].value));
_local3.dogRef = _local5[_local4];
_local3.dogNum = _local4;
if (_local3.ratings.setRatingsForDog) {
_local3.ratings.setRatingsForDog(_local5[_local4]);
} else {
_local3.ratings.initDog = _local5[_local4];
}
var _local6 = (_local3.dog = _local5[_local4].makeClip(_local3.dogPanelHolder));
displayedDogs.push(_local6);
_local6._xscale = (_local6._yscale = faceScale * _local5[_local4].getScale());
_local6._y = _local6._y - (_local6.avatar._y * faceScale);
_local6._x = _local6._x - (_local6.avatar._x * faceScale);
_local3.info_btn.onRelease = function () {
_global.root.engine.dogPopUp.show(this._parent.dogRef);
};
} else {
_local3.gotoAndStop("off");
}
updateGameVars();
_local4++;
}
}
function sellDog(selectedPanel) {
main["dogPanel" + selectedPanel.dogNum].dog.removeMovieClip();
main["dogPanel" + selectedPanel.dogNum].gotoAndStop("off");
engine.sellDog(selectedPanel.dogRef);
updateGameVars();
}
function updateGameVars() {
main.moneyDisplay.text = "\u00A3" + Format.number(engine.__get__money());
main.numDogDisplay.text = engine.numDogs;
main.scoreDisplay.text = "\u00A3" + Format.number(engine.__get__score());
main.feedBillDisplay.text = "\u00A3 -" + engine.__get__feedBill();
}
var displayedDogs = [];
var faceScale = 1.25;
var myNameIs = "breederBoard";
}
Symbol 1339 MovieClip [__Packages.Delegate] Frame 0
class Delegate
{
function Delegate () {
}
static function create(target, handler) {
var _local3 = arguments.slice(2);
var _local2 = function () {
return(arguments.callee.handler.apply(arguments.callee.target, arguments.concat(arguments.callee.extraArgs)));
};
_local2.extraArgs = _local3;
_local2.handler = handler;
_local2.target = target;
return(_local2);
}
}
Symbol 1340 MovieClip [__Packages.Format] Frame 0
class Format
{
function Format () {
}
static function strReplace(f, r, s) {
var _local1 = 0;
while (_local1 = s.indexOf(f, _local1) , _local1 != -1) {
s = (s.substring(0, _local1) + r) + s.substr(_local1 + f.length);
_local1 = _local1 + r.length;
}
return(s);
}
static function numberFormat(n, decimalPlaces) {
var _local7 = n < 0;
var _local3 = Math.floor(Math.abs(n)) + "";
var _local4 = Math.abs(n % 1);
var _local6 = Math.pow(10, decimalPlaces);
var _local5 = zerofill(Math.round(_local4 * _local6), decimalPlaces);
var _local2 = "";
var _local1 = _local3.length - 1;
while (_local1 >= 0) {
if (((_local3.length - _local1) % 3) == 1) {
_local2 = " " + _local2;
}
_local2 = _local3.charAt(_local1) + _local2;
_local1--;
}
_local2 = _local2.substr(0, _local2.length - 1);
return((((_local7 ? "-" : "") + _local2) + ".") + _local5);
}
static function zerofill(n, z) {
var _local2 = String(n);
var _local1 = _local2.length;
while (_local1 < z) {
_local2 = "0" + _local2;
_local1++;
}
return(_local2);
}
static function time(t, minp, maxp) {
var _local1 = (isNaN(t) ? (new Date()) : (new Date(t)));
var _local2 = _local1.getSeconds();
var _local3 = Math.round(_local1.getMilliseconds() / 10);
var _local4 = (((_local1.getMinutes() + ":") + ((_local2 < 10) ? ("0" + _local2) : (_local2))) + ":") + ((_local3 < 10) ? ("0" + _local3) : (_local3));
return(_local4);
}
static function date(f, t) {
var _local2 = (isNaN(t) ? (new Date()) : (new Date(t)));
var _local3 = _local2.getSeconds();
_local3 = ((_local3 < 10) ? ("0" + _local3) : (_local3));
var _local7 = _local2.getMinutes();
_local7 = ((_local7 < 10) ? ("0" + _local7) : (_local7));
var _local5 = _local2.getHours() % 12;
_local5 = ((_local5 < 10) ? ("0" + _local5) : (_local5));
var _local8 = _local2.getHours();
_local8 = ((_local8 < 10) ? ("0" + _local8) : (_local8));
var _local4 = _local2.getDate();
_local4 = ((_local4 < 10) ? ("0" + _local4) : (_local4));
var _local6 = _local2.getMonth();
_local6 = ((_local6 < 10) ? ("0" + _local6) : (_local6));
f = strReplace(f, "s", _local3);
f = strReplace(f, "i", _local7);
f = strReplace(f, "h", _local5);
f = strReplace(f, "H", _local8);
f = strReplace(f, "g", String(_local2.getHours() % 12));
f = strReplace(f, "G", String(_local2.getHours()));
f = strReplace(f, "d", _local4);
f = strReplace(f, "j", String(_local2.getDate()));
f = strReplace(f, "m", _local6);
f = strReplace(f, "n", String(_local2.getMonth()));
f = strReplace(f, "y", String(_local2.getFullYear() % 100));
f = strReplace(f, "Y", String(_local2.getFullYear()));
return(f);
}
static function number(n, d, c, l) {
d = (isNaN(d) ? undefined : (d));
c = ((c == undefined) ? "," : (c));
var _local1 = String(n).split(".");
if (!(d === undefined)) {
if (_local1[1]) {
var _local3 = String(Math.round(Number("." + _local1[1]) * Math.pow(10, d)) * Math.pow(10, -d));
_local3 = ((_local3.indexOf(".") < 0) ? (_local3) : (_local3.split(".")[1]));
} else {
var _local3 = "";
}
var _local2 = 0;
while (_local3.length < d) {
var _local3 = _local3 + "0";
_local2++;
}
_local1[1] = _local3;
}
var _local6 = false;
if (_local1[0].charAt(0) == "-") {
_local6 = true;
_local1[0] = _local1[0].substr(1);
}
var _local2 = 3;
while (_local1[0].length > _local2) {
_local1[0] = (_local1[0].substring(0, _local1[0].length - _local2) + c) + _local1[0].substring(_local1[0].length - _local2);
_local2 = _local2 + 4;
}
if (!isNaN(l)) {
_local1[0] = zerofill(_local1[0], l);
}
if (_local6) {
_local1[0] = "-" + _local1[0];
}
if ((_local1.length > 1) && (d > 0)) {
return((_local1[0] + ".") + _local1[1]);
}
return(_local1[0]);
}
static function ordinal(n) {
if (((n % 100) >= 11) && ((n % 100) <= 13)) {
return("th");
}
if ((n % 10) == 1) {
return("st");
}
if ((n % 10) == 2) {
return("nd");
}
if ((n % 10) == 3) {
return("rd");
}
return("th");
}
static function truncate(s, l, r) {
l = (isNaN(l) ? 20 : (l));
r = ((r == undefined) ? "..." : (r));
if (s.length > l) {
s = s.substr(0, l - r.length);
s = s + r;
}
return(s);
}
}
Symbol 1341 MovieClip [__Packages.Marker] Frame 0
class Marker extends MovieClip
{
var _visible;
function Marker () {
super();
_visible = false;
}
}
Symbol 1342 MovieClip [__Packages.PossibleBreedingMatch] Frame 0
class PossibleBreedingMatch extends MovieClip
{
var breed_btn, cancel_btn, clips, _parent, dadRatings, mumRatings, bestRatings, worstRatings2, dadPosition, mumPosition, engine, option;
function PossibleBreedingMatch () {
super();
breed_btn.onRelease = Delegate.create(this, chooseOption, true);
cancel_btn.onRelease = Delegate.create(this, chooseOption, false);
clips = [];
}
function show(dad, mum) {
_parent.gotoAndPlay("in");
dadRatings.setRatings(dad.__get__talent(), dad.__get__charisma(), dad.__get__sexAppeal(), dad.__get__boxOffice(), dad.__get__humour());
mumRatings.setRatings(mum.__get__talent(), mum.__get__charisma(), mum.__get__sexAppeal(), mum.__get__boxOffice(), mum.__get__humour());
bestRatings.setRatings(Math.max(dad.__get__talent(), mum.__get__talent()), Math.max(dad.__get__charisma(), mum.__get__charisma()), Math.max(dad.__get__sexAppeal(), mum.__get__sexAppeal()), Math.max(dad.__get__boxOffice(), mum.__get__boxOffice()), Math.max(dad.__get__humour(), mum.__get__humour()));
worstRatings2.setRatings(Math.min(dad.__get__talent(), mum.__get__talent()), Math.min(dad.__get__charisma(), mum.__get__charisma()), Math.min(dad.__get__sexAppeal(), mum.__get__sexAppeal()), Math.min(dad.__get__boxOffice(), mum.__get__boxOffice()), Math.min(dad.__get__humour(), mum.__get__humour()));
var _local4;
_local4 = (clips[clips.length] = dad.makeClip(dadPosition, false));
_local4._xscale = (_local4._yscale = DOG_SCALE);
_local4 = (clips[clips.length] = mum.makeClip(mumPosition, false));
_local4._xscale = (_local4._yscale = DOG_SCALE);
}
function chooseOption(opt) {
if (!opt) {
engine.clearLoveShack();
engine.updateYard();
}
option = opt;
_parent.gotoAndPlay("out");
}
function menuClear() {
if (option) {
engine.doBreed();
}
var _local2 = clips.length - 1;
while (_local2 > -1) {
clips[_local2].removeMovieClip();
_local2--;
}
clips.length = 0;
}
static var DOG_SCALE = 120;
}
Symbol 1343 MovieClip [__Packages.Fill] Frame 0
class Fill
{
var type, colour, alpha, colours, alphas, steps, gradientPosition, bitmap, bitmapMatrix;
function Fill (itype, iColour, iAlpha, iSteps, position) {
var _local2;
switch (itype) {
case SOLID :
type = itype;
colour = iColour;
alpha = (isNaN(iAlpha) ? 100 : (iAlpha));
break;
case RADIAL :
case LINEAR :
type = itype;
colours = iColour;
if (iAlpha instanceof Array) {
alphas = iAlpha;
} else {
alphas = [];
iAlpha = (isNaN(iAlpha) ? 100 : (iAlpha));
_local2 = 0;
while (_local2 < colours.length) {
alphas[_local2] = iAlpha;
_local2++;
}
}
if (iSteps instanceof Array) {
steps = iSteps;
} else {
steps = [];
_local2 = 0;
while (_local2 < colours.length) {
steps[_local2] = _local2 * Math.ceil(255 / (colours.length - 1));
_local2++;
}
}
gradientPosition = position;
break;
case BITMAP :
type = itype;
if (iColour instanceof flash.display.BitmapData) {
bitmap = iColour;
} else {
bitmap = flash.display.BitmapData.loadBitmap(iColour);
}
bitmapMatrix = ((iAlpha instanceof flash.geom.Matrix) ? (iAlpha) : (new flash.geom.Matrix()));
break;
default :
throw new Error("Unknown Fill Type");
}
}
function setFill(mc, size) {
switch (type) {
case SOLID :
mc.beginFill(colour, alpha);
break;
case RADIAL :
var _local4 = new flash.geom.Matrix();
mc.beginGradientFill(type, colours, alphas, steps, _local4);
break;
case LINEAR :
_local4 = new flash.geom.Matrix();
if (gradientPosition && (size)) {
var _local6 = (gradientPosition.tx ? (size.width * gradientPosition.tx) : 0);
var _local5 = (gradientPosition.ty ? (size.height * gradientPosition.ty) : 0);
var _local7 = (gradientPosition.r ? (gradientPosition.r * (Math.PI/180)) : 0);
_local4.createGradientBox(size.width, size.height, _local7, _local6, _local5);
}
mc.beginGradientFill(type, colours, alphas, steps, _local4);
break;
case BITMAP :
mc.beginBitmapFill(bitmap, bitmapMatrix);
}
}
static var SOLID = "solid";
static var RADIAL = "radial";
static var LINEAR = "linear";
static var BITMAP = "bitmap";
}
Symbol 1344 MovieClip [__Packages.DogRatings] Frame 0
class DogRatings extends MovieClip
{
static var bordWidth, bordFill;
var _visible, attachMovie, getNextHighestDepth, talent, charisma, sexAppeal, boxOffice, humour, initDog;
function DogRatings () {
super();
_visible = false;
attachMovie(Block.LINKAGE, "talent", getNextHighestDepth());
attachMovie(Block.LINKAGE, "sexAppeal", getNextHighestDepth());
attachMovie(Block.LINKAGE, "charisma", getNextHighestDepth());
attachMovie(Block.LINKAGE, "humour", getNextHighestDepth());
attachMovie(Block.LINKAGE, "boxOffice", getNextHighestDepth());
}
function onLoad() {
talent.init(talentFill, bordWidth, bordFill, 0, 0);
charisma.init(charismaFill, bordWidth, bordFill, 0, 0);
sexAppeal.init(sexAppealFill, bordWidth, bordFill, 0, 0);
boxOffice.init(boxOfficeFill, bordWidth, bordFill, 0, 0);
humour.init(humourFill, bordWidth, bordFill, 0, 0);
if (initDog) {
setRatingsForDog(initDog);
}
}
function setRatings(talentR, sexAppealR, charismaR, humourR, boxOfficeR) {
_visible = true;
var _local3 = new flash.geom.Rectangle(0, 0, 0, HEIGHT / 5);
_local3.width = (WIDTH * talentR) / MAX_RATING;
talent.render(_local3);
_local3.y = _local3.y + _local3.height;
_local3.width = (WIDTH * sexAppealR) / MAX_RATING;
sexAppeal.render(_local3);
_local3.y = _local3.y + _local3.height;
_local3.width = (WIDTH * charismaR) / MAX_RATING;
charisma.render(_local3);
_local3.y = _local3.y + _local3.height;
_local3.width = (WIDTH * humourR) / MAX_RATING;
humour.render(_local3);
_local3.y = _local3.y + _local3.height;
_local3.width = (WIDTH * boxOfficeR) / MAX_RATING;
boxOffice.render(_local3);
}
function setRatingsForDog(d) {
setRatings(d.__get__talent(), d.__get__sexAppeal(), d.__get__charisma(), d.__get__humour(), d.__get__boxOffice());
}
static var WIDTH = 150;
static var HEIGHT = 50;
static var MAX_RATING = 6;
static var talentFill = new Fill(Fill.SOLID, 16711680);
static var sexAppealFill = new Fill(Fill.SOLID, 65280);
static var charismaFill = new Fill(Fill.SOLID, 6711039);
static var humourFill = new Fill(Fill.SOLID, 16738047);
static var boxOfficeFill = new Fill(Fill.SOLID, 16776960);
}
Symbol 1345 MovieClip [__Packages.Dog] Frame 0
class Dog
{
var engine, mum, dad, name, donorName, isBitch, breed, faceShape, eyes, hair, nose, mouth, celebPrice;
function Dog (g, iName, iDonorName, iDad, iMum, ib, iBreed, iFaceShape, iEyes, iHair, iNose, iMouth) {
engine = g;
mum = iMum;
dad = iDad;
var _local4 = Number((mum.mum && (dad.mum)) && (mum.mum == dad.mum)) + Number((mum.dad && (dad.dad)) && (mum.dad == dad.dad));
_local4 = _local4 + Number(mum.isChildOf(dad) || (dad.isChildOf(mum)));
if ((_local4 * INBREEDING_CHANCE) > Math.random()) {
isRunt = true;
var _local2 = engine.getRunt();
var _local3 = engine.celebrities[_local2];
name = _local3.name;
donorName = _local3.donorName;
isBitch = _local3.isBitch;
breed = _local3.breed;
faceShape = _local2;
eyes = _local2;
hair = _local2;
nose = _local2;
mouth = _local2;
} else {
name = iName;
donorName = iDonorName;
isBitch = ib;
breed = iBreed;
faceShape = iFaceShape;
eyes = iEyes;
hair = iHair;
nose = iNose;
mouth = iMouth;
}
}
function woof() {
var _local2;
if (isAdult) {
if (isBitch) {
_local2 = Rand.value.apply(null, WOOFS);
} else {
_local2 = Rand.value.apply(null, MANWOOFS);
}
} else {
_local2 = PUP_WOOF;
}
engine.sndman.playAndRemove(_local2);
}
function yelp() {
engine.sndman.playAndRemove("yelp");
}
function isChildOf(dog) {
return(dog && ((dog == mum) || (dog == dad)));
}
function update() {
age++;
isFertile = true;
}
function equals(d) {
return((((((d.name == name) && (d.faceShape == faceShape)) && (d.eyes == eyes)) && (d.hair == hair)) && (d.nose == nose)) && (d.mouth == mouth));
}
function getScale() {
if (isAdult) {
return(100);
}
var _local2 = MAX_PUPPY_SCLAE - BASE_SCALE;
return(BASE_SCALE + ((age / (ADULT_AGE + 1)) * _local2));
}
function get isGood() {
return((rating > dad.__get__rating()) && (rating > mum.__get__rating()));
}
function get isAdult() {
return(age > ADULT_AGE);
}
function get isNewAdult() {
return(age == (ADULT_AGE + 1));
}
function get rating() {
var _local2 = 0;
_local2 = _local2 + (talent + engine.celebrities[faceShape].starPower);
_local2 = _local2 + (charisma + engine.celebrities[eyes].starPower);
_local2 = _local2 + (sexAppeal + engine.celebrities[hair].starPower);
_local2 = _local2 + (boxOffice + engine.celebrities[nose].starPower);
_local2 = _local2 + (humour + engine.celebrities[mouth].starPower);
return(_local2 / 6);
}
function get talent() {
return(engine.celebrities[faceShape].talent);
}
function get charisma() {
return(engine.celebrities[eyes].charisma);
}
function get sexAppeal() {
return(engine.celebrities[hair].sexAppeal);
}
function get boxOffice() {
return(engine.celebrities[nose].boxOffice);
}
function get humour() {
return(engine.celebrities[mouth].humour);
}
function get value() {
var _local3 = Math.pow(BASE_VALUE, Math.pow(rating + 1, 0.65));
var _local2;
if (isAdult) {
_local2 = 1;
} else {
_local2 = 0.25 + (0.5 * (age / ADULT_AGE));
}
return(_local3 * _local2);
}
function get price() {
return((celebPrice ? (celebPrice) : (value * SHOP_SURCHARGE)));
}
function get runningCost() {
return(value * (0.1 + ((rating * 0.15) / 5)));
}
function makeClip(t, isDraggable, isYardDog) {
t = (t ? (t) : (engine));
if (isYardDog) {
var _local3 = -1;
} else {
var _local3 = t.getNextHighestDepth();
}
return(t.attachMovie(breed, "dog" + (MAKE_DOG_NUM++), _local3, {dog:this, engine:engine, isDraggable:isDraggable, isYardDog:isYardDog}));
}
function toString() {
return(((((((("[Dog name=\"" + name) + "\" breed=\"") + breed) + "\", sex=") + isBitch) + ", rating=") + rating) + "]");
}
static function canMate(dog1, dog2) {
return(((((dog1.isBitch != dog2.isBitch) && (dog1.__get__isAdult())) && (dog2.__get__isAdult())) && (dog1.isFertile)) && (dog2.isFertile));
}
static function mate(dog1, dog2) {
if (canMate(dog1, dog2)) {
var _local5 = dog1.engine;
var _local2 = dog1.engine.celebrities;
var _local4 = -1;
var _local8 = (dog1.isBitch ? (dog1) : (dog2));
var _local17 = (dog1.isBitch ? (dog2) : (dog1));
if (((dog1.__get__rating() >= SPECIAL_THRESHOLD) && (dog2.__get__rating() >= SPECIAL_THRESHOLD)) && (Math.random() <= SPECIAL_CHANCE)) {
var _local6 = _local5.getSpecial();
var _local9 = _local2[_local6];
var _local16 = new Dog(_local5, _local9.name, _local9.donorName, _local17, _local8, _local9.isBitch, _local9.breed, _local6, _local6, _local6, _local6, _local6);
_local8.isFertile = false;
_local16.isSpecial = true;
_local5.achieve(Engine.BRED_A_SPECIAL);
return(_local16);
}
if (Math.random() < MUTATION_CHANCE) {
var _local7 = _local5.getCelebBetween(_local5.bestBreedRating, _local5.bestBreedRating + 1);
if (_local7 > 0) {
_local4 = Rand.random(1, 5, 0);
}
}
var _local10 = ((_local4 == 1) ? (_local7) : (getInheritedTrait(_local2[dog1.faceShape].talent, dog1.faceShape, _local2[dog1.faceShape].dominance, _local2[dog2.faceShape].talent, dog2.faceShape, _local2[dog2.faceShape].dominance)));
var _local15 = ((_local4 == 2) ? (_local7) : (getInheritedTrait(_local2[dog1.eyes].charisma, dog1.eyes, _local2[dog1.eyes].dominance, _local2[dog2.eyes].charisma, dog2.eyes, _local2[dog2.eyes].dominance)));
var _local14 = ((_local4 == 3) ? (_local7) : (getInheritedTrait(_local2[dog1.hair].sexAppeal, dog1.hair, _local2[dog1.hair].dominance, _local2[dog2.hair].sexAppeal, dog2.hair, _local2[dog2.hair].dominance)));
var _local13 = ((_local4 == 4) ? (_local7) : (getInheritedTrait(_local2[dog1.nose].boxOffice, dog1.nose, _local2[dog1.nose].dominance, _local2[dog2.nose].boxOffice, dog2.nose, _local2[dog2.nose].dominance)));
var _local11 = ((_local4 == 5) ? (_local7) : (getInheritedTrait(_local2[dog1.nose].humour, dog1.nose, _local2[dog1.nose].dominance, _local2[dog2.nose].humour, dog2.nose, _local2[dog2.nose].dominance)));
_local8.isFertile = false;
var _local18 = ((((((Number(_local10 == dog1.faceShape) + Number(_local15 == dog1.eyes)) + Number(_local14 == dog1.hair)) + Number(_local13 == dog1.nose)) + Number(_local11 == dog1.mouth)) >= 3) ? (dog1) : (dog2));
var _local19 = ((((Number(_local2[_local10].isBitch) + Number(_local2[_local15].isBitch)) + Number(_local2[_local14].isBitch)) + Number(_local2[_local13].isBitch)) + Number(_local2[_local11].isBitch)) >= 3;
var _local21 = Rand.value(dog1.breed, dog2.breed);
var _local20 = getName(_local19);
var _local12 = new Dog(_local5, (_local20 + " ") + _local18.donorName, _local18.donorName, _local17, _local8, _local19, _local21, _local10, _local15, _local14, _local13, _local11);
if (!_local12.isRunt) {
_local12.isMutant = _local4 > 0;
}
return(_local12);
}
return(null);
}
static function getInheritedTrait(traitValue1, traitNum1, traitDom1, traitValue2, traitNum2, traitDom2) {
if (((Math.random() * traitDom1) * ((traitValue1 > traitValue2) ? (BEST_VAL_WEIGHT) : (WORST_VAL_WEIGHT))) > ((Math.random() * traitDom2) * ((traitValue1 < traitValue2) ? (BEST_VAL_WEIGHT) : (WORST_VAL_WEIGHT)))) {
return(traitNum1);
}
return(traitNum2);
}
static function getName(gender) {
var _local4 = "";
var _local3 = (gender ? (AVAILABLE_FEMALE_NAMES) : (AVAILABLE_MALE_NAMES));
if (!_local3.length) {
var _local2 = (gender ? (FEMALE_NAMES) : (MALE_NAMES));
var _local1 = _local2.length - 1;
while (_local1 > -1) {
_local3.push(_local2[_local1]);
_local1--;
}
Rand.shuffle(_local3);
}
return(_local3.pop());
}
static function fromCelebrity(engine, celebNum) {
var _local1 = engine.celebrities[celebNum];
var _local3 = new Dog(engine, _local1.name, _local1.donorName, null, null, _local1.isBitch, _local1.breed, celebNum, celebNum, celebNum, celebNum, celebNum);
_local3.isSpecial = _local1.isSpecial;
_local3.isRunt = _local1.isRunt;
return(_local3);
}
static function getExperienceForBreeding(pup, mum, dad) {
var _local1 = Math.ceil(pup.__get__rating());
var _local2 = Math.max(dad.__get__rating(), mum.__get__rating());
return(_local1 + (Math.max(0, Math.ceil(pup.__get__rating() - _local2)) * RATING_INCREASE_BONUS));
}
var age = 0;
var isFertile = true;
var isRunt = false;
var isSpecial = false;
var isMutant = false;
static var BASE_VALUE = 30;
static var BASE_COST = 3;
static var SHOP_SURCHARGE = 2;
static var MUTATION_CHANCE = 0.2;
static var SPECIAL_CHANCE = 0.1;
static var SPECIAL_THRESHOLD = 4;
static var ADULT_AGE = 1;
static var RATING_INCREASE_BONUS = 10;
static var BASE_SCALE = 50;
static var MAX_PUPPY_SCLAE = 80;
static var INBREEDING_CHANCE = 0.25;
static var MAKE_DOG_NUM = 0;
static var WOOFS = ["woof1", "woof2", "woof3", "woof4"];
static var MANWOOFS = ["woof5", "woof6", "woof7", "woof8", "woof9"];
static var PUP_WOOF = "pup";
static var WOOFPROBABILITY = 0.5;
static var YELPPROBABILITY = 0.5;
static var MALE_NAMES = ["Conkers", "Winky", "Conan", "Rumblestrip", "Manuel", "Utah", "Nebraska", "Kentucky", "Indiana", "Idaho", "Bristol", "Luton", "Birmingham", "Alabama", "Alaska", "Arizona", "Arkansas", "Stormcloud", "Microcosm", "Bertrand", "Sparky", "Cuddles", "Lucky", "Spike", "Wacko", "Biscuit", "Rebel", "El Cid", "Tubby", "Crockett", "Carlos", "Chuck", "Charlie", "Elvis", "King", "Duke", "Marmaduke", "Jazz", "Moon Unit", "Zowie", "Caveman", "Bitey", "Rover", "Fido", "Bonzer", "Bongo", "Bouncer", "Rufus", "Rolf", "Victor", "Rhubarb", "Sausage", "Hero", "Beefcake", "Tinker", "DeForest", "Noodle", "Chip", "Spud", "Manual", "Automatic", "Bracket", "McLovin"];
static var FEMALE_NAMES = ["Pandora", "Flappy", "Wyoming", "Mississippi", "Minnesota", "Maryland", "Florida", "California", "Clymidia", "Strawberries", "Blancmange", "Apple", "Blossom", "Tigerlilly", "Gypsy", "Pear", "Peach", "Daisy", "Poppy", "Honey", "Pebbles", "Mavis", "Serenity", "Hope", "Prius", "Roadster", "Forest", "River", "Rain", "Ocean", "Portia", "Mercedes", "Cortina", "Anglia", "Peppermint", "Patty", "Spearmint", "Charisma", "Buffy", "Doodle", "Snapper", "Crabby", "Pattie", "Brenda", "Zanussi", "Toshiba", "Flower", "Petal", "Fiesta", "Bouncie", "Trolley", "Tilly", "Flouncer"];
static var AVAILABLE_MALE_NAMES = [];
static var AVAILABLE_FEMALE_NAMES = [];
static var BEST_VAL_WEIGHT = 1.5;
static var WORST_VAL_WEIGHT = 1;
}
Symbol 1346 MovieClip [__Packages.Celebrity] Frame 0
class Celebrity
{
var starPower, name, donorName, _minLvl, _talent, _charisma, _sexAppeal, _boxOffice, _humour, dominance, price, isBitch, isRunt, isSpecial, breed;
function Celebrity (node, iStarPower) {
starPower = iStarPower;
name = node.attributes.name;
donorName = node.attributes.donorname;
_minLvl = Number(node.attributes.minlvl);
_talent = Number(node.attributes.talent);
_charisma = Number(node.attributes.charisma);
_sexAppeal = Number(node.attributes.sexAppeal);
_boxOffice = Number(node.attributes.boxOffice);
_humour = Number(node.attributes.humour);
dominance = Number(node.attributes.dominance);
price = Number(node.attributes.price);
isBitch = node.attributes.sex == "female";
isRunt = node.attributes.runt == "1";
isSpecial = node.attributes.special == "1";
breed = node.attributes.breed;
starPower = iStarPower;
}
function get minLvl() {
return(_minLvl);
}
function get talent() {
return(_talent + starPower);
}
function get charisma() {
return(_charisma + starPower);
}
function get sexAppeal() {
return(_sexAppeal + starPower);
}
function get boxOffice() {
return(_boxOffice + starPower);
}
function get humour() {
return(_humour + starPower);
}
function toString() {
return(((((((((("[Celebrity name=\"" + name) + "\", dominance=") + dominance) + ", starPower=") + starPower) + ", sex=") + isBitch) + ", isRunt=") + isRunt) + "]");
}
}
Symbol 1347 MovieClip [__Packages.Rand] Frame 0
class Rand
{
function Rand () {
}
static function midBias(min, max, i, p) {
min = (isNaN(min) ? 0 : (min));
max = (isNaN(max) ? 1 : (max));
i = (isNaN(i) ? 2 : (i + 1));
var _local3 = 0;
var _local1 = 0;
while (_local1 < i) {
_local3 = _local3 + ((v() * (max - min)) + min);
_local1++;
}
_local3 = _local3 / i;
if (p != undefined) {
p = 1 / Math.pow(10, p);
var _local7 = _local3 % p;
if (_local7 <= (p / 2)) {
_local3 = _local3 - _local7;
} else {
_local3 = _local3 + (p - _local7);
}
}
return(_local3);
}
static function minBias(min, max, i, p) {
min = (isNaN(min) ? 0 : (min));
max = (isNaN(max) ? 1 : (max));
i = (isNaN(i) ? 1 : (i));
var _local1 = ((1 - Math.pow(v(), 1 / (i + 1))) * (max - min)) + min;
if (p != undefined) {
p = 1 / Math.pow(10, p);
var _local3 = _local1 % p;
if (_local3 <= (p / 2)) {
_local1 = _local1 - _local3;
} else {
_local1 = _local1 + (p - _local3);
}
}
return(_local1);
}
static function maxBias(min, max, i, p) {
min = (isNaN(min) ? 0 : (min));
max = (isNaN(max) ? 1 : (max));
i = (isNaN(i) ? 1 : (i));
var _local1 = (Math.pow(v(), 1 / (i + 1)) * (max - min)) + min;
if (p != undefined) {
p = 1 / Math.pow(10, p);
var _local3 = _local1 % p;
if (_local3 <= (p / 2)) {
_local1 = _local1 - _local3;
} else {
_local1 = _local1 + (p - _local3);
}
}
return(_local1);
}
static function value() {
if (arguments.length > 0) {
var _local2 = v() * arguments.length;
_local2 = _local2 - (_local2 % 1);
return(arguments[_local2]);
}
}
static function get number() {
return(v());
}
static function random(min, max, p) {
min = (isNaN(min) ? 0 : (min));
max = (isNaN(max) ? 1 : (max));
if (!isNaN(p)) {
p = 1 / Math.pow(10, p);
max = max + p;
} else {
}
var _local3 = (v() * (max - min)) + min;
if (p) {
_local3 = _local3 - (_local3 % p);
}
return(_local3);
}
static function shuffle(arr) {
var _local3;
var _local4;
var _local2 = 0;
while (_local2 < arr.length) {
_local3 = random(0, arr.length - 1, 0);
_local4 = arr[_local3];
arr[_local3] = arr[_local2];
arr[_local2] = _local4;
_local2++;
}
return(arr);
}
static var v = Math.random;
}
Symbol 1348 MovieClip [__Packages.Block] Frame 0
class Block extends MovieClip
{
var bgFill, borderFill, margin, borderWidth, padding, endFill, beginFill, clear;
function Block () {
super();
}
function init(bg, bw, bf, p, m) {
bgFill = bg;
borderFill = bf;
margin = new Box(m);
borderWidth = new Box(bw);
padding = new Box(p);
}
function render(rect) {
blank();
var _local2 = false;
if (borderFill && (((borderWidth.top || (borderWidth.right)) || (borderWidth.bottom)) || (borderWidth.left))) {
borderFill.setFill(this);
margin.drawRect(rect, this);
endFill();
_local2 = true;
}
if (bgFill) {
bgFill.setFill(this);
margin.add(borderWidth).drawRect(rect, this);
endFill();
} else if (_local2) {
beginFill(0, 0);
margin.add(borderWidth).drawRect(rect, this);
endFill();
}
}
function get width() {
return((margin.__get__width() + padding.__get__width()) + borderWidth.__get__width());
}
function get height() {
return((margin.__get__height() + padding.__get__height()) + borderWidth.__get__height());
}
function blank() {
clear();
}
static var LINKAGE = "block";
}
Symbol 1349 MovieClip [__Packages.Box] Frame 0
class Box
{
var top, right, bottom, left;
function Box (t, r, b, l) {
if (arguments.length == 0) {
top = (right = (bottom = (left = 0)));
} else if (arguments.length == 1) {
if (typeof(t) == "string") {
var _local3 = t.split(",");
if (_local3.length == 1) {
top = (right = (bottom = (left = Number(_local3[0]))));
} else {
top = Number(_local3[0]);
right = Number(_local3[1]);
bottom = Number(_local3[2]);
left = Number(_local3[3]);
}
} else {
if (isNaN(t)) {
t = 0;
}
top = (right = (bottom = (left = Number(t))));
}
} else {
top = Number(t);
right = Number(r);
bottom = Number(b);
left = Number(l);
}
}
function set(n) {
top = (right = (bottom = (left = n)));
}
function drawRect(rect, mc) {
mc.moveTo(rect.x + left, rect.y + top);
mc.lineTo(rect.right - right, rect.y + top);
mc.lineTo(rect.right - right, rect.bottom - bottom);
mc.lineTo(rect.x + left, rect.bottom - bottom);
}
function add(box) {
var _local2 = clone();
_local2.top = _local2.top + box.top;
_local2.right = _local2.right + box.right;
_local2.bottom = _local2.bottom + box.bottom;
_local2.left = _local2.left + box.left;
return(_local2);
}
function clone() {
return(new Box(top, right, bottom, left));
}
function toString() {
return(((((((("{" + top) + ", ") + right) + ", ") + bottom) + ", ") + left) + "}");
}
function get width() {
return(left + right);
}
function get height() {
return(top + bottom);
}
}
Symbol 1350 MovieClip [__Packages.EndTurnPage] Frame 0
class EndTurnPage extends MovieClip
{
var engine, objectives_btn, rosette, worthDisplay, moneyDisplay, moneyChangeRed, moneyChangeWhite, worthChangeRed, worthChangeWhite, achievementsList, stuffList;
function EndTurnPage () {
super();
objectives_btn.onRelease = Delegate.create(engine, engine.showObjectives);
}
function update() {
rosette.gotoAndStop(engine.__get__breederLevel());
worthDisplay.text = "\u00A3" + Format.number(engine.__get__score());
moneyDisplay.text = "\u00A3" + Format.number(engine.__get__money());
var _local2 = engine.__get__money() - engine.lastMoney;
var _local3 = engine.__get__score() - engine.lastScore;
var _local4 = engine.__get__experience() - engine.lastExperience;
if (_local2 < 0) {
moneyChangeRed.text = ("(\u00A3" + Format.number(_local2)) + ")";
moneyChangeWhite.text = "";
} else {
moneyChangeRed.text = "";
moneyChangeWhite.text = ("(+\u00A3" + Format.number(_local2)) + ")";
}
if (_local3 < 0) {
worthChangeRed.text = ("(-" + Format.number(_local3)) + ")";
worthChangeWhite.text = "";
} else {
worthChangeRed.text = "";
worthChangeWhite.text = ("(+" + Format.number(_local3)) + ")";
}
engine.lastMoney = engine.money;
engine.lastScore = engine.score;
engine.lastExperience = engine.experience;
achievementsList.text = "";
stuffList.text = "";
if (_local4 > 0) {
stuffList.text = stuffList.text + (((("You gained " + _local4) + " ") + ((_local4 == 1) ? "breeder point" : "breeder points")) + newline);
} else {
stuffList.text = stuffList.text + "You didn't gain any experience.";
}
if (engine.newPuppiesCount > 0) {
stuffList.text = stuffList.text + (((("You bred " + engine.newPuppiesCount) + " ") + ((engine.newPuppiesCount == 1) ? "puppy" : "puppies")) + newline);
}
if (engine.boughtDogCount > 0) {
stuffList.text = stuffList.text + (((("You bought " + engine.boughtDogCount) + " ") + ((engine.boughtDogCount == 1) ? "dog" : "dogs")) + newline);
}
if (engine.soldDogCount > 0) {
stuffList.text = stuffList.text + (((("You sold " + engine.soldDogCount) + " ") + ((engine.soldDogCount == 1) ? "dog" : "dogs")) + newline);
}
stuffList.text = stuffList.text + engine.thingsYouDidThisTurn.join(newline);
achievementsList.text = achievementsList.text + engine.achievementsThisTurn.join(newline);
if (!achievementsList.text) {
achievementsList.text = "- none -";
}
}
}
Symbol 1351 MovieClip [__Packages.ObjectivesPanel] Frame 0
class ObjectivesPanel extends MovieClip
{
var clips, _parent, gotoAndStop, back_btn, objectives, engine, attachMovie, getNextHighestDepth, tickSpawnMarker;
function ObjectivesPanel () {
super();
clips = [];
}
function show(complete) {
_parent.gotoAndPlay("in");
if (complete) {
hidden();
gotoAndStop("completed");
} else {
gotoAndStop("on");
back_btn.onRelease = Delegate.create(this, hide);
objectives.text = "";
var _local3;
var _local4 = engine._allAchivements;
var _local2 = 0;
while (_local2 < _local4.length) {
objectives.text = objectives.text + (_local4[_local2] + newline);
if (engine._achievements[_local4[_local2]]) {
_local3 = attachMovie(TICK, TICK + getNextHighestDepth(), getNextHighestDepth());
_local3._x = tickSpawnMarker._x;
_local3._y = (objectives._y + objectives.textHeight) + TICK_OFFSET;
clips.push(_local3);
}
_local2++;
}
}
}
function hide() {
_parent.gotoAndPlay("out");
}
function hidden() {
var _local2 = 0;
while (_local2 < clips.length) {
clips[_local2].removeMovieClip();
_local2++;
}
clips.length = 0;
}
static var TICK = "tick";
static var TICK_OFFSET = -18;
}
Symbol 1352 MovieClip [__Packages.GameOverPanel] Frame 0
class GameOverPanel extends MovieClip
{
var restart_btn, engine, view_highscores_btn, rosette, moneyDisplay, achievements_txt, _parent;
function GameOverPanel () {
super();
restart_btn.onRelease = Delegate.create(this, hide);
view_highscores_btn.onRelease = Delegate.create(engine, engine.showHighscores);
}
function show() {
rosette.gotoAndStop(engine.__get__breederLevel());
moneyDisplay.text = "\u00A3" + Format.number(engine.__get__score());
var _local3 = engine._allAchivements;
achievements_txt.text = "";
var _local2 = 0;
while (_local2 < _local3.length) {
if (engine._achievements[_local3[_local2]]) {
achievements_txt.text = achievements_txt.text + (_local3[_local2] + newline);
}
_local2++;
}
_parent.gotoAndPlay("in");
}
function hide() {
_parent.gotoAndPlay("out");
}
}
Symbol 1353 MovieClip [__Packages.SaveScoreButton] Frame 0
class SaveScoreButton extends MovieClip
{
var engine, submit_score_btn, stop, gotoAndStop;
function SaveScoreButton () {
super();
engine = _global.root.engine;
submit_score_btn.onRelease = Delegate.create(this, submitHighscore);
stop();
}
function submitHighscore() {
if (_global.root.pId) {
engine.submitScoreAnim.panel.updateScore(this);
gotoAndStop("saving");
} else {
engine.submitScoreAnim.gotoAndPlay("in");
}
}
function scoreSaved() {
gotoAndStop("saved");
}
}
Symbol 1354 MovieClip [__Packages.DogPopUp] Frame 0
class DogPopUp extends MovieClip
{
var closeBtn, dogMc, dogHolder, name_txt, age_txt, gender_txt, genderDisplay, value_txt, upkeep_txt, stars, ratings, _parent;
function DogPopUp () {
super();
closeBtn.onRelease = Delegate.create(this, hide);
}
function show(dog, inShop) {
dogMc = dog.makeClip(dogHolder, false, false);
dogMc._xscale = (dogMc._yscale = DOG_SCALE);
name_txt.text = dog.name;
age_txt.text = (dog.__get__isAdult() ? "Adult" : "Pup");
gender_txt.text = (dog.isBitch ? "Female" : "Male");
if (dog.isBitch) {
genderDisplay.gotoAndStop("female");
} else {
genderDisplay.gotoAndStop("male");
}
value_txt.text = "\u00A3" + Format.number(Number((inShop ? (dog.__get__price()) : (dog.__get__value()))));
upkeep_txt.text = "-\u00A3" + Format.number(dog.__get__runningCost());
stars.setStars(dog.__get__rating());
ratings.setRatingsForDog(dog);
_parent.gotoAndPlay("in");
}
function hide() {
_parent.gotoAndPlay("out");
}
function menuClosed() {
dogMc.removeMovieClip();
}
static var DOG_SCALE = 150;
}
Symbol 1355 MovieClip [__Packages.Stars] Frame 0
class Stars extends MovieClip
{
var _visible, initStars, stop, gotoAndStop, _totalframes;
function Stars () {
super();
_visible = false;
if (initStars) {
setStars(initStars);
}
stop();
}
function setStars(rating) {
_visible = true;
gotoAndStop(Math.floor((rating / 5) * _totalframes));
}
}
Symbol 1356 MovieClip [__Packages.GameCompletePanel] Frame 0
class GameCompletePanel extends MovieClip
{
var _parent;
function GameCompletePanel () {
super();
}
function show() {
_parent.gotoAndPlay("in");
}
}
Symbol 1357 MovieClip [__Packages.HUD] Frame 0
class HUD extends MovieClip
{
var info_btn, info_mc, curDog, engine, matches_txt, kennels_txt, money_txt, rosette, expDisplay, stars, ratings, curDogName_txt, genderDisplay, age_txt, flash;
function HUD () {
super();
info_btn = info_mc.info_btn;
info_btn.onRelease = Delegate.create(this, showCurDogInfo);
}
function showCurDogInfo() {
if (curDog) {
engine.dogPopUp.show(curDog);
}
}
function update() {
matches_txt.text = String(engine.__get__fertileBitches());
kennels_txt.text = String(Engine.MAX_NUM_DOGS - engine.__get__numDogs());
money_txt.text = "\u00A3" + Format.number(engine.__get__money());
rosette.gotoAndStop(_global.root.engine.breederLevel);
expDisplay.text = (_global.root.engine.experience + "/") + _global.root.engine.nextLevelAt;
}
function setDog(d) {
stars._visible = true;
ratings._visible = true;
curDogName_txt.text = d.name;
stars.setStars(d.__get__rating());
ratings.setRatingsForDog(d);
genderDisplay.gotoAndStop((d.isBitch ? "female" : "male"));
age_txt.text = (d.__get__isAdult() ? "adult" : "puppy");
info_mc.gotoAndStop("on");
info_btn.onRelease = Delegate.create(this, showCurDogInfo);
curDog = d;
flash.gotoAndPlay("on");
}
function clearDog() {
curDogName_txt.text = "";
stars.setStars(0);
stars._visible = false;
ratings._visible = false;
genderDisplay.gotoAndStop("off");
age_txt.text = "";
delete curDog;
info_mc.gotoAndStop(1);
}
}
Symbol 1358 MovieClip [__Packages.BreedingResults] Frame 0
class BreedingResults extends MovieClip
{
var clips, panel, play, engine, celebrationAnim;
function BreedingResults () {
super();
clips = [];
panel.stop();
panel.next_btn.onRelease = Delegate.create(this, hide);
}
function show() {
play();
if (engine.puppy.isMutant) {
panel.gotoAndStop(MUTANT);
} else {
panel.gotoAndStop(NORMAL);
}
panel.value_txt.text = "\u00A3" + Format.number(engine.puppy.__get__value());
panel.name_txt.text = engine.puppy.name;
panel.stars.setStars(engine.puppy.__get__rating());
panel.ratings.setRatingsForDog(engine.puppy);
panel.breederPoints.text = "01";
if (engine.puppy.isBitch) {
panel.gender.gotoAndStop("female");
} else {
panel.gender.gotoAndStop("male");
}
var _local2;
panel.breederPoints.text = Format.number(Dog.getExperienceForBreeding(engine.puppy, engine.maleInLoveShack.dog, engine.femaleInLoveShack.dog));
_local2 = (clips[clips.length] = engine.maleInLoveShack.dog.makeClip(panel.dadPosition, false));
_local2._xscale = (_local2._yscale = 150);
_local2 = (clips[clips.length] = engine.femaleInLoveShack.dog.makeClip(panel.mumPosition, false));
_local2._xscale = (_local2._yscale = 150);
_local2 = (clips[clips.length] = engine.puppy.makeClip(panel.puppyPosition, false));
_local2._xscale = (_local2._yscale = 200);
}
function hide() {
play();
}
function menuClear() {
var _local2 = clips.length - 1;
while (_local2 > -1) {
clips[_local2].removeMovieClip();
_local2--;
}
clips.length = 0;
engine.checkEvents();
}
function playCelebrationAnim() {
if (engine.puppy.isRunt) {
celebrationAnim.gotoAndStop("runt");
} else if (engine.puppy.isSpecial) {
celebrationAnim.gotoAndStop("special");
} else {
celebrationAnim.gotoAndStop("normal");
}
}
function revealDad() {
engine.puppy.dad.isFertile = true;
engine.updateYard();
}
static var MUTANT = "mutant";
static var NORMAL = "normal";
}
Symbol 1359 MovieClip [__Packages.Shop] Frame 0
class Shop extends MenuItem
{
var panels, _y, shopWindow, engine, displayedDogs, main;
function Shop () {
super();
panels = [];
shopWindow.targetY = (shopWindow.startY = _y);
}
function buyDog(selectedPanel) {
if (engine.buyDog(selectedPanel.dogInfo)) {
updatePanels();
if (engine.__get__isKennelsFull()) {
engine.showError("Your kennel is full!");
}
} else if (engine.__get__isKennelsFull()) {
engine.showError("Your kennel is full!");
} else {
engine.showError("You can't afford this dog!");
}
}
function makePanels() {
}
function updatePanels() {
var _local7;
_local7 = panels.length - 1;
while (_local7 > -1) {
panels[_local7].removeMovieClip();
_local7--;
}
panels.length = 0;
if (displayedDogs[0]) {
_local7 = 0;
while (_local7 < displayedDogs.length) {
displayedDogs[_local7].removeMovieClip();
_local7++;
}
displayedDogs = [];
}
var _local11 = [];
var _local3;
var _local10;
_local7 = 1;
while (_local7 < engine.celebrities.length) {
_local3 = Dog.fromCelebrity(engine, _local7);
_local3.age = Dog.ADULT_AGE + 1;
_local3.celebNum = _local7;
_local11.push(_local3);
_local3.celebPrice = engine.celebrities[_local7].price;
_local3.tempPrice = Number(_local3.__get__price());
_local7++;
}
var _local6;
var _local9 = 0;
_local11.sortOn("tempPrice", Array.NUMERIC);
_local7 = 0;
while (_local7 < _local11.length) {
_local3 = _local11[_local7];
_local10 = engine.celebrities[_local3.celebNum];
_local3.celebPrice = _local10.price;
if (!_local3.isRunt) {
var _local8 = false;
_local6 = 0;
while (_local6 < engine.__get__numDogs()) {
if (_local3.equals(engine.getDogNum(_local6))) {
_local8 = true;
break;
}
_local6++;
}
if (!_local8) {
var _local4 = main.shopWindow.attachMovie("dogShopPanel", "dogPanel" + (_local9 * 2), main.shopWindow.getNextHighestDepth(), {_y:50 * Math.floor(_local9 / 2), _x:(_local9 % 2) * 264});
panels.push(_local4);
if (Math.floor(_local3.__get__price()) > _global.root.engine.money) {
_local4.gotoAndStop("expensive");
} else {
_local4.gotoAndStop("unlocked");
}
if (_local4.stars.setStars) {
_local4.stars.setStars(_local3.__get__rating());
} else {
_local4.stars.initStars = _local3.rating;
}
_local4.nameDisplay.text = _local3.name;
_local4.valueDisplay.text = "\u00A3" + Format.number(Math.floor(_local3.__get__price()));
_local4.celeb = _local10;
if (_local3.isSpecial) {
if (_local10.__get__minLvl() >= engine.__get__breederLevel()) {
_local4.gotoAndStop("locked");
}
}
_local4.dogNum = _local7;
_local4.dogInfo = _local3;
var _local5 = _local3.makeClip(_local4.dogPanelHolder);
displayedDogs.push(_local5);
_local5._xscale = (_local5._yscale = faceScale * 100);
_local5._y = _local5._y - (_local5.avatar._y * faceScale);
_local5._x = _local5._x - (_local5.avatar._x * faceScale);
_local5.gotoAndStop("east");
_local5.onRelease = Delegate.create(engine.dogPopUp, engine.dogPopUp.show, _local3, true);
_local9++;
}
}
_local7++;
}
main.moneyDisplay.text = "\u00A3" + Format.number(engine.__get__money());
main.numDogDisplay.text = engine.numDogs;
main.scoreDisplay.text = engine.score;
main.feedBill.feedBillDisplay.text = "\u00A3" + engine.__get__feedBill();
}
var faceScale = 0.9;
var moveSpeed = 200;
var myNameIs = "shop";
}
Symbol 1360 MovieClip [__Packages.GameEvent] Frame 0
class GameEvent
{
var type, vals;
function GameEvent (t, v) {
type = t;
vals = v;
}
}
Symbol 1361 MovieClip [__Packages.Debug] Frame 0
class Debug
{
function Debug () {
}
static function each(obj) {
var _local2 = "";
for (var _local3 in obj) {
_local2 = _local2 + (((_local3 + ": ") + obj[_local3]) + newline);
}
return(_local2);
}
static function list(obj, recursive, lvl) {
var _local4 = "";
lvl = (isNaN(lvl) ? 0 : (lvl));
var _local3 = "";
recursive = (isNaN(recursive) ? 0 : (recursive));
var _local7 = 0;
while (_local7 < lvl) {
_local3 = _local3 + "\t";
_local7++;
}
if (obj instanceof Array) {
_local4 = _local4 + (("Array\n" + _local3) + "( ");
var _local8 = 0;
while (_local8 < obj.length) {
if ((recursive != lvl) && (((typeof(obj[_local8]) == "object") || (typeof(obj[_local8]) == "movieclip")) || (typeof(obj[_local8]) == "function"))) {
_local4 = _local4 + ((("\n\t" + _local3) + arguments.callee(obj[_local8], recursive, lvl + 1)) + ",");
} else if (typeof(obj[_local8]) == "number") {
_local4 = _local4 + ((((("\n\t" + _local3) + _local8) + ": ") + obj[_local8]) + ",");
} else {
_local4 = _local4 + ((("\n\t" + _local3) + obj[_local8]) + ",");
}
_local8++;
}
_local4 = ((_local4.substr(0, _local4.length - 1) + newline) + _local3) + ")";
} else {
_local4 = _local4 + (((((typeof(obj) != "movieclip") ? "Object" : (("MovieClip (" + obj._name) + ")")) + newline) + _local3) + "{ ");
for (var _local8 in obj) {
if ((recursive != lvl) && (((typeof(obj[_local8]) == "object") || (typeof(obj[_local8]) == "movieclip")) || (typeof(obj[_local8]) == "function"))) {
_local4 = _local4 + ((((("\n\t" + _local3) + _local8) + ": ") + arguments.callee(obj[_local8], recursive, lvl + 1)) + ",");
} else if (typeof(obj[_local8]) == "number") {
_local4 = _local4 + ((((("\n\t" + _local3) + _local8) + ": ") + obj[_local8]) + ",");
} else {
_local4 = _local4 + ((((("\n\t" + _local3) + _local8) + ": ") + obj[_local8]) + ",");
}
}
_local4 = ((_local4.substr(0, _local4.length - 1) + newline) + _local3) + "}";
}
return(_local4);
}
}
Symbol 1362 MovieClip [__Packages.ClickBlocker] Frame 0
class ClickBlocker extends MovieClip
{
function ClickBlocker () {
super();
}
function onPress() {
}
var useHandCursor = false;
}
Symbol 1363 MovieClip [__Packages.cust.GUI.RadioGroup] Frame 0
class cust.GUI.RadioGroup extends Array
{
var name, _instanceIndex, push, length, _selectedIndex;
function RadioGroup (n) {
super();
name = n;
_instanceIndex = {};
cust.events.EventBroadcaster.initialise(this);
}
function addBtn(btn) {
if (_instanceIndex[btn._name] === undefined) {
push(btn);
_instanceIndex[btn._name] = length - 1;
} else {
this[_instanceIndex[btn._name]] = btn;
}
this[btn._name] = btn;
btn.addEventListener(cust.GUI.UIBtn.RELEASE, this);
}
function release(obj) {
var _local2 = 0;
while (_local2 < length) {
if (this[_local2] == obj.target) {
break;
}
_local2++;
}
if (_local2 == length) {
selectedIndex = (-1);
} else if (_local2 != _selectedIndex) {
selectedIndex = (_local2);
}
}
function get value() {
return(this[_selectedIndex].value);
}
function get selectedIndex() {
return(_selectedIndex);
}
function set selectedIndex(n) {
if (n != _selectedIndex) {
var _local2 = {target:this, type:CHANGE, oldVal:_selectedIndex, newVal:n};
this[_selectedIndex].select(false);
_selectedIndex = n;
this[_selectedIndex].select(true);
dispatchEvent(_local2);
}
//return(selectedIndex);
}
static function GET_RADIO_GROUP(n) {
if (RADIO_GROUPS[n]) {
return(RADIO_GROUPS[n]);
}
return((RADIO_GROUPS[n] = new cust.GUI.RadioGroup(n)));
}
static var RADIO_GROUPS = {};
static var CHANGE = "change";
}
Symbol 1364 MovieClip [__Packages.cust.events.EventBroadcaster] Frame 0
class cust.events.EventBroadcaster
{
var __events;
function EventBroadcaster () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialise(object) {
if (_fEventBroadcaster == undefined) {
_fEventBroadcaster = new cust.events.EventBroadcaster();
}
object.addEventListener = _fEventBroadcaster.addEventListener;
object.removeEventListener = _fEventBroadcaster.removeEventListener;
object.dispatchEvent = _fEventBroadcaster.dispatchEvent;
object.dispatchQueue = _fEventBroadcaster.dispatchQueue;
object.getEventListeners = _fEventBroadcaster.getEventListeners;
object.getEvents = _fEventBroadcaster.getEvents;
object.removeEventListeners = _fEventBroadcaster.removeEventListeners;
object.removeAllEventListeners = _fEventBroadcaster.removeAllEventListeners;
object.__events = new Array();
_global.ASSetPropFlags(object, "__events", 1);
}
function dispatchQueue(queueObj, eventObj) {
var _local6 = 0;
var _local8 = "__q_" + eventObj.type;
var _local5 = queueObj[_local8].concat([]);
if (_local5 != undefined) {
var _local3 = 0;
while (_local3 < _local5.length) {
var _local1 = _local5[_local3];
var _local4 = typeof(_local1);
if ((_local4 == "object") || (_local4 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
_local6++;
_local3++;
}
}
return(_local6);
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
return(eventObj.target.dispatchQueue(eventObj.target, eventObj));
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
__events.push(event);
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
return(true);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
function getEventListeners(type) {
return(this["__q_" + type]);
}
function getEvents() {
return(__events);
}
function removeEventListeners(type) {
var _local4 = "__q_" + type;
var _local2 = this[_local4];
while (_local2.length) {
_removeEventListener(_local2, type, _local2[0]);
}
}
function removeAllEventListeners() {
var _local5 = getEvents();
var _local6;
var _local2;
var _local4;
var _local3 = 0;
while (_local3 < _local5.length) {
_local4 = _local5[_local3];
_local6 = "__q_" + _local4;
_local2 = this[_local6];
while (_local2.length) {
_removeEventListener(_local2, _local4, _local2[0]);
}
_local3++;
}
}
static var _fEventBroadcaster = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 1365 MovieClip [__Packages.cust.GUI.UIBtn] Frame 0
class cust.GUI.UIBtn extends MovieClip
{
var stop, _focusrect, gotoAndStop, dispatchEvent;
function UIBtn () {
super();
cust.events.EventBroadcaster.initialise(this);
stop();
_focusrect = false;
}
function update() {
if (isDown) {
gotoAndStop(DOWN);
} else if (isOver) {
gotoAndStop(OVER);
} else {
gotoAndStop(UP);
}
}
function onSetFocus() {
Key.addListener(this);
}
function onKillFocus() {
Key.removeListener(this);
}
function onKeyDown() {
if (Key.getCode() == 13) {
onPress();
}
}
function onKeyUp() {
if (Key.getCode() == 13) {
onRelease();
}
}
function onUnload() {
onKillFocus();
}
function onRollOver() {
isOver = true;
dispatchEvent({target:this, type:ROLLOVER});
update();
}
function onRollOut() {
isOver = false;
dispatchEvent({target:this, type:ROLLOUT});
update();
}
function onPress() {
isDown = true;
dispatchEvent({target:this, type:PRESS});
update();
}
function onRelease() {
isDown = false;
dispatchEvent({target:this, type:RELEASE});
update();
}
function onDragOver() {
isOver = true;
isDown = true;
dispatchEvent({target:this, type:DRAGOVER});
update();
}
function onDragOut() {
isOver = false;
isDown = false;
dispatchEvent({target:this, type:DRAGOUT});
update();
}
var isOver = false;
var isDown = false;
static var UP = "up";
static var OVER = "over";
static var DOWN = "down";
static var ROLLOVER = "rollOver";
static var ROLLOUT = "rollOut";
static var PRESS = "press";
static var RELEASE = "release";
static var DRAGOUT = "dragOut";
static var DRAGOVER = "dragOver";
}
Symbol 1366 MovieClip [__Packages.cust.GUI.RadioBtn] Frame 0
class cust.GUI.RadioBtn extends cust.GUI.UIBtn
{
var _name, value, group, selected_mc;
function RadioBtn () {
super();
var _local3 = _name.split(DIVIDER);
value = _local3[1];
group = cust.GUI.RadioGroup.GET_RADIO_GROUP(_local3[0]);
group.addBtn(this);
selected_mc._visible = false;
}
function select(b) {
selected_mc._visible = b;
}
function get selected() {
return(selected_mc._visible);
}
function set selected(b) {
if (selected_mc._visible != b) {
if (b) {
group.release({target:this});
} else {
group.release({target:null});
}
}
selected_mc._visible = b;
//return(selected);
}
static var DIVIDER = "_";
}
Symbol 1367 MovieClip [__Packages.ShopWindow] Frame 0
class ShopWindow extends MovieClip
{
var _y, _height;
function ShopWindow () {
super();
targetY = (startY = _y);
}
function onEnterFrame() {
if (targetY > startY) {
targetY = startY;
} else if (targetY < ((startY - _height) + 220)) {
targetY = (startY - _height) + 220;
}
_y = (targetY + (_y * 10)) / 11;
}
var targetY = 0;
var startY = 0;
}
Symbol 1368 MovieClip [__Packages.Scroller] Frame 0
class Scroller extends MovieClip
{
var target, _parent, handle, scrollUpBtn, scrollDownBtn, onEnterFrame;
function Scroller () {
super();
target = _parent.shopWindow;
handle.onPress = handleOn;
handle.onRelease = handleOff;
target.startY = target._y;
target.maxY = target._height;
scrollUpBtn.onRelease = scrollUp;
scrollDownBtn.onRelease = scrollDown;
}
function handleOn() {
target = _parent.target;
onEnterFrame = function () {
this._y = this._ymouse;
};
}
function scrollUp() {
target._y = target._y - 1;
}
function scrollDown() {
target._y = target._y + 1;
}
function handleOff() {
delete onEnterFrame;
}
}
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 18
stop();
Symbol 90 MovieClip Frame 34
stop();
Symbol 94 MovieClip [afganHound.north] Frame 1
#initclip 138
Object.registerClass("afganHound.north", DogMcBody);
#endinitclip
Symbol 317 MovieClip [avatarHead] Frame 1
#initclip 40
Object.registerClass("avatarHead", Avatar);
#endinitclip
Symbol 321 MovieClip [afganHound.south] Frame 1
#initclip 41
Object.registerClass("afganHound.south", DogMcBody);
#endinitclip
Symbol 323 MovieClip [afganHound.pickedUp] Frame 1
#initclip 42
Object.registerClass("afganHound.pickedUp", DogMcBody);
#endinitclip
Symbol 324 MovieClip [afganHound] Frame 1
#initclip 43
Object.registerClass("afganHound", DogMc);
#endinitclip
Symbol 324 MovieClip [afganHound] Frame 2
stop();
Symbol 328 MovieClip [beagle.north] Frame 1
#initclip 44
Object.registerClass("beagle.north", DogMcBody);
#endinitclip
Symbol 330 MovieClip [beagle.south] Frame 1
#initclip 45
Object.registerClass("beagle.south", DogMcBody);
#endinitclip
Symbol 334 MovieClip [beagle.pickedUp] Frame 1
#initclip 46
Object.registerClass("beagle.pickedUp", DogMcBody);
#endinitclip
Symbol 335 MovieClip [beagle] Frame 1
#initclip 47
Object.registerClass("beagle", DogMc);
#endinitclip
Symbol 335 MovieClip [beagle] Frame 2
stop();
Symbol 339 MovieClip [bichonFrise.north] Frame 1
#initclip 48
Object.registerClass("bichonFrise.north", DogMcBody);
#endinitclip
Symbol 341 MovieClip [bichonFrise.south] Frame 1
#initclip 49
Object.registerClass("bichonFrise.south", DogMcBody);
#endinitclip
Symbol 345 MovieClip [bichonFrise.pickedUp] Frame 1
#initclip 50
Object.registerClass("bichonFrise.pickedUp", DogMcBody);
#endinitclip
Symbol 346 MovieClip [bichonFrise] Frame 1
#initclip 51
Object.registerClass("bichonFrise", DogMc);
#endinitclip
Symbol 346 MovieClip [bichonFrise] Frame 2
stop();
Symbol 350 MovieClip [borderCollie.north] Frame 1
#initclip 52
Object.registerClass("borderCollie.north", DogMcBody);
#endinitclip
Symbol 352 MovieClip [borderCollie.south] Frame 1
#initclip 53
Object.registerClass("borderCollie.south", DogMcBody);
#endinitclip
Symbol 354 MovieClip [borderCollie.pickedUp] Frame 1
#initclip 54
Object.registerClass("borderCollie.pickedUp", DogMcBody);
#endinitclip
Symbol 355 MovieClip [borderCollie] Frame 1
#initclip 55
Object.registerClass("borderCollie", DogMc);
#endinitclip
Symbol 355 MovieClip [borderCollie] Frame 2
stop();
Symbol 357 MovieClip [boxer.north] Frame 1
#initclip 56
Object.registerClass("boxer.north", DogMcBody);
#endinitclip
Symbol 359 MovieClip [boxer.south] Frame 1
#initclip 57
Object.registerClass("boxer.south", DogMcBody);
#endinitclip
Symbol 361 MovieClip [boxer.pickedUp] Frame 1
#initclip 58
Object.registerClass("boxer.pickedUp", DogMcBody);
#endinitclip
Symbol 362 MovieClip [boxer] Frame 1
#initclip 59
Object.registerClass("boxer", DogMc);
#endinitclip
Symbol 362 MovieClip [boxer] Frame 2
stop();
Symbol 364 MovieClip [bulldog.north] Frame 1
#initclip 60
Object.registerClass("bulldog.north", DogMcBody);
#endinitclip
Symbol 366 MovieClip [bulldog.south] Frame 1
#initclip 61
Object.registerClass("bulldog.south", DogMcBody);
#endinitclip
Symbol 368 MovieClip [bulldog.pickedUp] Frame 1
#initclip 62
Object.registerClass("bulldog.pickedUp", DogMcBody);
#endinitclip
Symbol 369 MovieClip [bulldog] Frame 1
#initclip 63
Object.registerClass("bulldog", DogMc);
#endinitclip
Symbol 369 MovieClip [bulldog] Frame 2
stop();
Symbol 373 MovieClip [bullTerrier.north] Frame 1
#initclip 64
Object.registerClass("bullTerrier.north", DogMcBody);
#endinitclip
Symbol 375 MovieClip [bullTerrier.south] Frame 1
#initclip 65
Object.registerClass("bullTerrier.south", DogMcBody);
#endinitclip
Symbol 377 MovieClip [bullTerrier.pickedUp] Frame 1
#initclip 66
Object.registerClass("bullTerrier.pickedUp", DogMcBody);
#endinitclip
Symbol 378 MovieClip [bullTerrier] Frame 1
#initclip 67
Object.registerClass("bullTerrier", DogMc);
#endinitclip
Symbol 378 MovieClip [bullTerrier] Frame 2
stop();
Symbol 382 MovieClip [chihuahua.north] Frame 1
#initclip 68
Object.registerClass("chihuahua.north", DogMcBody);
#endinitclip
Symbol 384 MovieClip [chihuahua.south] Frame 1
#initclip 69
Object.registerClass("chihuahua.south", DogMcBody);
#endinitclip
Symbol 386 MovieClip [chihuahua.pickedUp] Frame 1
#initclip 70
Object.registerClass("chihuahua.pickedUp", DogMcBody);
#endinitclip
Symbol 387 MovieClip [chihuahua] Frame 1
#initclip 71
Object.registerClass("chihuahua", DogMc);
#endinitclip
Symbol 387 MovieClip [chihuahua] Frame 2
stop();
Symbol 391 MovieClip [collie.north] Frame 1
#initclip 72
Object.registerClass("collie.north", DogMcBody);
#endinitclip
Symbol 393 MovieClip [collie.south] Frame 1
#initclip 73
Object.registerClass("collie.south", DogMcBody);
#endinitclip
Symbol 395 MovieClip [collie.pickedUp] Frame 1
#initclip 74
Object.registerClass("collie.pickedUp", DogMcBody);
#endinitclip
Symbol 396 MovieClip [collie] Frame 1
#initclip 75
Object.registerClass("collie", DogMc);
#endinitclip
Symbol 396 MovieClip [collie] Frame 2
stop();
Symbol 400 MovieClip [dachsund.north] Frame 1
#initclip 76
Object.registerClass("dachsund.north", DogMcBody);
#endinitclip
Symbol 402 MovieClip [dachshund.south] Frame 1
#initclip 77
Object.registerClass("dachshund.south", DogMcBody);
#endinitclip
Symbol 404 MovieClip [dachshund.pickedUp] Frame 1
#initclip 78
Object.registerClass("dachshund.pickedUp", DogMcBody);
#endinitclip
Symbol 405 MovieClip [dachshund] Frame 1
#initclip 79
Object.registerClass("dachshund", DogMc);
#endinitclip
Symbol 405 MovieClip [dachshund] Frame 2
stop();
Symbol 409 MovieClip [dalmation.north] Frame 1
#initclip 80
Object.registerClass("dalmation.north", DogMcBody);
#endinitclip
Symbol 411 MovieClip [dalmation.south] Frame 1
#initclip 81
Object.registerClass("dalmation.south", DogMcBody);
#endinitclip
Symbol 413 MovieClip [dalmation.pickedUp] Frame 1
#initclip 82
Object.registerClass("dalmation.pickedUp", DogMcBody);
#endinitclip
Symbol 414 MovieClip [dalmation] Frame 1
#initclip 83
Object.registerClass("dalmation", DogMc);
#endinitclip
Symbol 414 MovieClip [dalmation] Frame 2
stop();
Symbol 416 MovieClip [doberman.north] Frame 1
#initclip 84
Object.registerClass("doberman.north", DogMcBody);
#endinitclip
Symbol 418 MovieClip [doberman.south] Frame 1
#initclip 85
Object.registerClass("doberman.south", DogMcBody);
#endinitclip
Symbol 420 MovieClip [doberman.pickedUp] Frame 1
#initclip 86
Object.registerClass("doberman.pickedUp", DogMcBody);
#endinitclip
Symbol 421 MovieClip [doberman] Frame 1
#initclip 87
Object.registerClass("doberman", DogMc);
#endinitclip
Symbol 421 MovieClip [doberman] Frame 2
stop();
Symbol 425 MovieClip [foxHound.north] Frame 1
#initclip 88
Object.registerClass("foxHound.north", DogMcBody);
#endinitclip
Symbol 427 MovieClip [foxHound.south] Frame 1
#initclip 89
Object.registerClass("foxHound.south", DogMcBody);
#endinitclip
Symbol 429 MovieClip [foxHound.pickedUp] Frame 1
#initclip 90
Object.registerClass("foxHound.pickedUp", DogMcBody);
#endinitclip
Symbol 430 MovieClip [foxHound] Frame 1
#initclip 91
Object.registerClass("foxHound", DogMc);
#endinitclip
Symbol 430 MovieClip [foxHound] Frame 2
stop();
Symbol 434 MovieClip [germanShepherd.north] Frame 1
#initclip 92
Object.registerClass("germanShepherd.north", DogMcBody);
#endinitclip
Symbol 436 MovieClip [germanShepherd.south] Frame 1
#initclip 93
Object.registerClass("germanShepherd.south", DogMcBody);
#endinitclip
Symbol 438 MovieClip [germanShepherd.pickedUp] Frame 1
#initclip 94
Object.registerClass("germanShepherd.pickedUp", DogMcBody);
#endinitclip
Symbol 439 MovieClip [germanShepherd] Frame 1
#initclip 95
Object.registerClass("germanShepherd", DogMc);
#endinitclip
Symbol 439 MovieClip [germanShepherd] Frame 2
stop();
Symbol 443 MovieClip [goldenRetriever.north] Frame 1
#initclip 96
Object.registerClass("goldenRetriever.north", DogMcBody);
#endinitclip
Symbol 445 MovieClip [goldenRetriever.south] Frame 1
#initclip 97
Object.registerClass("goldenRetriever.south", DogMcBody);
#endinitclip
Symbol 447 MovieClip [goldenRetriever.pickedUp] Frame 1
#initclip 98
Object.registerClass("goldenRetriever.pickedUp", DogMcBody);
#endinitclip
Symbol 448 MovieClip [goldenRetriever] Frame 1
#initclip 99
Object.registerClass("goldenRetriever", DogMc);
#endinitclip
Symbol 448 MovieClip [goldenRetriever] Frame 2
stop();
Symbol 452 MovieClip [irishSetter.north] Frame 1
#initclip 100
Object.registerClass("irishSetter.north", DogMcBody);
#endinitclip
Symbol 456 MovieClip [irishSetter.south] Frame 1
#initclip 101
Object.registerClass("irishSetter.south", DogMcBody);
#endinitclip
Symbol 460 MovieClip [irishSetter.pickedUp] Frame 1
#initclip 102
Object.registerClass("irishSetter.pickedUp", DogMcBody);
#endinitclip
Symbol 461 MovieClip [irishSetter] Frame 1
#initclip 103
Object.registerClass("irishSetter", DogMc);
#endinitclip
Symbol 461 MovieClip [irishSetter] Frame 2
stop();
Symbol 465 MovieClip [jackRussell.north] Frame 1
#initclip 104
Object.registerClass("jackRussell.north", DogMcBody);
#endinitclip
Symbol 467 MovieClip [jackRussell.south] Frame 1
#initclip 105
Object.registerClass("jackRussell.south", DogMcBody);
#endinitclip
Symbol 469 MovieClip [jackRussell.pickedUp] Frame 1
#initclip 106
Object.registerClass("jackRussell.pickedUp", DogMcBody);
#endinitclip
Symbol 470 MovieClip [jackRussell] Frame 1
#initclip 107
Object.registerClass("jackRussell", DogMc);
#endinitclip
Symbol 470 MovieClip [jackRussell] Frame 2
stop();
Symbol 474 MovieClip [japaneseSpitz.north] Frame 1
#initclip 108
Object.registerClass("japaneseSpitz.north", DogMcBody);
#endinitclip
Symbol 476 MovieClip [japaneseSpitz.south] Frame 1
#initclip 109
Object.registerClass("japaneseSpitz.south", DogMcBody);
#endinitclip
Symbol 478 MovieClip [japaneseSpitz.pickedUp] Frame 1
#initclip 110
Object.registerClass("japaneseSpitz.pickedUp", DogMcBody);
#endinitclip
Symbol 479 MovieClip [japaneseSpitz] Frame 1
#initclip 111
Object.registerClass("japaneseSpitz", DogMc);
#endinitclip
Symbol 479 MovieClip [japaneseSpitz] Frame 2
stop();
Symbol 481 MovieClip [pitBull.north] Frame 1
#initclip 112
Object.registerClass("pitBull.north", DogMcBody);
#endinitclip
Symbol 483 MovieClip [pitBull.south] Frame 1
#initclip 113
Object.registerClass("pitBull.south", DogMcBody);
#endinitclip
Symbol 485 MovieClip [pitBull.pickedUp] Frame 1
#initclip 114
Object.registerClass("pitBull.pickedUp", DogMcBody);
#endinitclip
Symbol 486 MovieClip [pitBull] Frame 1
#initclip 115
Object.registerClass("pitBull", DogMc);
#endinitclip
Symbol 486 MovieClip [pitBull] Frame 2
stop();
Symbol 490 MovieClip [poodle.north] Frame 1
#initclip 116
Object.registerClass("poodle.north", DogMcBody);
#endinitclip
Symbol 492 MovieClip [poodle.south] Frame 1
#initclip 117
Object.registerClass("poodle.south", DogMcBody);
#endinitclip
Symbol 496 MovieClip [poodle.pickedUp] Frame 1
#initclip 118
Object.registerClass("poodle.pickedUp", DogMcBody);
#endinitclip
Symbol 497 MovieClip [poodle] Frame 1
#initclip 119
Object.registerClass("poodle", DogMc);
#endinitclip
Symbol 497 MovieClip [poodle] Frame 2
stop();
Symbol 499 MovieClip [rottweiler.north] Frame 1
#initclip 120
Object.registerClass("rottweiler.north", DogMcBody);
#endinitclip
Symbol 501 MovieClip [rottweiler.south] Frame 1
#initclip 121
Object.registerClass("rottweiler.south", DogMcBody);
#endinitclip
Symbol 503 MovieClip [rottweiler.pickedUp] Frame 1
#initclip 122
Object.registerClass("rottweiler.pickedUp", DogMcBody);
#endinitclip
Symbol 504 MovieClip [rottweiler] Frame 1
#initclip 123
Object.registerClass("rottweiler", DogMc);
#endinitclip
Symbol 504 MovieClip [rottweiler] Frame 2
stop();
Symbol 508 MovieClip [scottishTerrier.north] Frame 1
#initclip 124
Object.registerClass("scottishTerrier.north", DogMcBody);
#endinitclip
Symbol 510 MovieClip [scottishTerrier.south] Frame 1
#initclip 125
Object.registerClass("scottishTerrier.south", DogMcBody);
#endinitclip
Symbol 512 MovieClip [scottishTerrier.pickedUp] Frame 1
#initclip 126
Object.registerClass("scottishTerrier.pickedUp", DogMcBody);
#endinitclip
Symbol 513 MovieClip [scottishTerrier] Frame 1
#initclip 127
Object.registerClass("scottishTerrier", DogMc);
#endinitclip
Symbol 513 MovieClip [scottishTerrier] Frame 2
stop();
Symbol 517 MovieClip [shihTzu.north] Frame 1
#initclip 128
Object.registerClass("shihTzu.north", DogMcBody);
#endinitclip
Symbol 519 MovieClip [shihTzu.south] Frame 1
#initclip 129
Object.registerClass("shihTzu.south", DogMcBody);
#endinitclip
Symbol 523 MovieClip [shihTzu.pickedUp] Frame 1
#initclip 130
Object.registerClass("shihTzu.pickedUp", DogMcBody);
#endinitclip
Symbol 524 MovieClip [shihTzu] Frame 1
#initclip 131
Object.registerClass("shihTzu", DogMc);
#endinitclip
Symbol 524 MovieClip [shihTzu] Frame 2
stop();
Symbol 528 MovieClip [whippet.north] Frame 1
#initclip 132
Object.registerClass("whippet.north", DogMcBody);
#endinitclip
Symbol 530 MovieClip [whippet.south] Frame 1
#initclip 133
Object.registerClass("whippet.south", DogMcBody);
#endinitclip
Symbol 534 MovieClip [whippet.pickedUp] Frame 1
#initclip 134
Object.registerClass("whippet.pickedUp", DogMcBody);
#endinitclip
Symbol 535 MovieClip [whippet] Frame 1
#initclip 135
Object.registerClass("whippet", DogMc);
#endinitclip
Symbol 535 MovieClip [whippet] Frame 2
stop();
Symbol 545 MovieClip [stars] Frame 1
#initclip 136
Object.registerClass("stars", Stars);
#endinitclip
Symbol 548 Button
on (release) {
_parent._parent._parent.buyDog(this);
}
Symbol 559 MovieClip [dogShopPanel] Frame 1
stop();
Symbol 560 MovieClip [block] Frame 1
#initclip 137
Object.registerClass("block", Block);
#endinitclip
Symbol 582 MovieClip Frame 1
stop();
Symbol 608 MovieClip [blackOverlay] Frame 1
#initclip 139
Object.registerClass("blackOverlay", ClickBlocker);
#endinitclip
Symbol 618 Button
on (release) {
_parent.gotoAndPlay("out");
}
Symbol 635 Button
on (release) {
nextFrame();
}
Symbol 651 Button
on (release) {
prevFrame();
}
Symbol 670 MovieClip Frame 1
so = SharedObject.get("celPed");
if (!so.howToPlayed) {
so.setProperty("howToPlayed", true);
gotoAndStop ("intro");
} else {
stop();
}
Symbol 670 MovieClip Frame 6
_global.root.engine.showObjectives();
_parent.gotoAndPlay("out");
Symbol 671 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 6
stop();
Symbol 671 MovieClip Frame 10
gotoAndStop ("off");
Symbol 685 Button
on (release) {
_global.root.gotoTriviala();
}
Symbol 690 Button
on (release) {
getURL ("http://www.killerviral.com", "_blank");
_root.kvClick(848);
}
Symbol 693 MovieClip Frame 1
stop();
Symbol 697 MovieClip Frame 1
stop();
Symbol 699 MovieClip Frame 50
stop();
Symbol 700 MovieClip Frame 15
stop();
Symbol 715 Button
on (release) {
howToPlay.gotoAndPlay("in");
}
Symbol 716 Button
on (release) {
play();
}
Symbol 717 MovieClip Frame 1
function setDog(t, a) {
i = Math.random();
t.gotoAndStop(a[Math.floor(i * a.length)]);
t.frontHair.gotoAndStop(a[Math.floor(i * a.length)]);
t.backHair.gotoAndStop(a[Math.floor(i * a.length)]);
t.mouth.gotoAndStop(a[Math.floor(i * a.length)]);
t.eyes.gotoAndStop(a[Math.floor(i * a.length)]);
t.nose.gotoAndStop(a[Math.floor(i * a.length)]);
t.faceMask.gotoAndStop(a[Math.floor(i * a.length)]);
}
girlArray = [1, 2, 3, 9, 10, 12, 14, 16, 18, 21, 23, 26, 28, 30, 32];
boyArray = [4, 5, 6, 7, 8, 11, 13, 15, 17, 19, 20, 22, 24, 27, 29, 31];
setDog(girl.head, girlArray);
setDog(boy.head, boyArray);
howToPlay.stop();
Instance of Symbol 703 MovieClip in Symbol 717 MovieClip Frame 49
onClipEvent (load) {
if (_global.sndman.mute) {
gotoAndStop ("off");
} else {
gotoAndStop ("on");
}
this.onRelease = function () {
if (_global.sndman.mute) {
gotoAndStop ("on");
if (_global.root.unmuteEvent) {
_root.kvEvent(_global.root.unmuteEvent);
}
_global.sndman.mute = false;
} else {
gotoAndStop ("off");
_global.sndman.mute = true;
if (_global.root.muteEvent) {
_root.kvEvent(_global.root.muteEvent);
}
}
};
}
Symbol 717 MovieClip Frame 57
stop();
Symbol 717 MovieClip Frame 64
_parent.play();
Symbol 741 MovieClip Frame 1
stop();
Symbol 741 MovieClip Frame 36
gotoAndStop ("off");
Symbol 751 MovieClip [marker] Frame 1
#initclip 163
Object.registerClass("marker", Marker);
#endinitclip
stop();
Symbol 751 MovieClip [marker] Frame 20
gotoAndStop ("off");
Symbol 756 Button
on (release) {
gotoAndPlay ("in");
}
Symbol 760 Button
on (release) {
_global.root.engine.highscoresAnim.gotoAndPlay("in");
_global.root.engine.highscoresAnim.panel.getScores("level");
buttonClicked();
}
Symbol 762 Button
on (release) {
_global.root.engine.howToPlay.gotoAndPlay("in");
buttonClicked();
}
Symbol 765 Button
on (release) {
doThis = function () {
_global.root.engine.gameOver();
_root.kvEvent(1668);
};
_global.root.engine.askYesNo("Are you sure you want to Quit?", doThis);
}
Symbol 774 MovieClip Frame 1
stop();
Symbol 774 MovieClip Frame 5
stop();
Symbol 778 Button
on (release) {
buttonClicked();
}
Symbol 779 MovieClip Frame 1
stop();
Instance of Symbol 774 MovieClip in Symbol 779 MovieClip Frame 2
onClipEvent (load) {
if (_global.sndman.mute) {
gotoAndStop ("off");
} else {
gotoAndStop ("on");
}
this.onRelease = function () {
if (_global.sndman.mute) {
gotoAndStop ("on");
if (_global.root.unmuteEvent) {
_root.kvEvent(_global.root.unmuteEvent);
}
_global.sndman.mute = false;
} else {
gotoAndStop ("off");
_global.sndman.mute = true;
if (_global.root.muteEvent) {
_root.kvEvent(_global.root.muteEvent);
}
}
};
}
Symbol 779 MovieClip Frame 9
function buttonEndTurn() {
_global.root.engine.endTurn();
gotoAndPlay ("out");
}
function buttonClicked(target) {
gotoAndPlay ("out");
}
stop();
Symbol 779 MovieClip Frame 10
delete buttonClicked;
Symbol 779 MovieClip Frame 17
gotoAndStop ("off");
Symbol 794 Button
on (release) {
_global.root.engine.hud.buttonClicked();
}
Symbol 797 MovieClip [shopWindow] Frame 1
#initclip 140
Object.registerClass("shopWindow", ShopWindow);
#endinitclip
Symbol 802 Button
on (release) {
_parent.shopWindow.targetY = _parent.shopWindow.targetY - _parent._parent.moveSpeed;
}
Symbol 803 Button
on (release) {
_parent.shopWindow.targetY = _parent.shopWindow.targetY + _parent._parent.moveSpeed;
}
Symbol 804 MovieClip [scrollbar] Frame 1
#initclip 141
Object.registerClass("scrollbar", Scroller);
#endinitclip
Symbol 805 MovieClip Frame 1
scrollBar.attachTo = shopWindow;
Symbol 816 MovieClip [shop] Frame 1
#initclip 142
Object.registerClass("shop", Shop);
#endinitclip
stop();
Symbol 816 MovieClip [shop] Frame 2
makePanels();
updatePanels();
Symbol 816 MovieClip [shop] Frame 16
stop();
checkCurrentMenu();
Symbol 816 MovieClip [shop] Frame 23
goToOff();
Symbol 829 MovieClip Frame 1
stop();
Symbol 833 Button
on (release) {
_parent._parent.sellDog(this);
}
Symbol 838 MovieClip [dog ratings] Frame 1
#initclip 143
Object.registerClass("dog ratings", DogRatings);
#endinitclip
Symbol 844 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 2
stop();
Symbol 852 MovieClip Frame 12
stop();
Symbol 860 MovieClip Frame 1
stop();
Symbol 861 Button
on (release) {
_global.root.engine.breederBoard.hide();
}
Symbol 880 MovieClip [breederBoard] Frame 1
#initclip 144
Object.registerClass("breederBoard", BreederBoard);
#endinitclip
stop();
Symbol 880 MovieClip [breederBoard] Frame 2
updatePanels();
Symbol 880 MovieClip [breederBoard] Frame 14
stop();
checkCurrentMenu();
Symbol 880 MovieClip [breederBoard] Frame 22
goToOff();
Symbol 888 Button
on (release) {
buttonEndTurn();
}
Symbol 902 MovieClip Frame 1
stop();
Symbol 905 MovieClip Frame 1
stop();
Symbol 905 MovieClip Frame 14
gotoAndStop ("off");
Symbol 913 MovieClip Frame 1
stop();
Symbol 913 MovieClip Frame 4
stop();
Symbol 924 MovieClip Frame 1
stop();
Symbol 928 Button
on (release) {
buttonClicked("breederBoard");
}
Symbol 931 Button
on (release) {
buttonClicked("shop");
}
Symbol 934 Button
on (release) {
_parent.showObjectives();
}
Symbol 939 Button
on (release) {
buttonClicked("shop");
}
Symbol 943 Button
on (release) {
buttonClicked("breederBoard");
}
Symbol 944 Button
on (release) {
buttonClicked("shop");
}
Symbol 945 MovieClip [HUD] Frame 1
#initclip 145
Object.registerClass("HUD", HUD);
#endinitclip
function buttonEndTurn() {
if (_global.root.engine.money > _global.root.engine.feedBill) {
buttonClicked();
delete currentMenu;
_global.root.engine.endTurn();
} else {
_global.root.engine.gameOverMaybe.gotoAndPlay("in");
}
}
function buttonClicked(target, forcePage) {
if (((target == "shop") && (_global.root.engine.isKennelsFull)) && (currentMenu != "shop")) {
_global.root.engine.showError("You don't have enough room in your kennels!");
} else if ((target == currentMenu) && (forcePage)) {
} else if ((target == currentMenu) && (!forcePage)) {
_global.root.engine[currentMenu].hide();
delete currentMenu;
} else if ((!target) && (currentMenu)) {
_global.root.engine[currentMenu].hide();
delete currentMenu;
} else if (currentMenu) {
_global.root.engine[currentMenu].hide(_global.root.engine[target]);
currentMenu = target;
} else if (!_global.root.engine[target].showing) {
_global.root.engine[target].show();
currentMenu = target;
}
}
stop();
stop();
Symbol 952 MovieClip Frame 1
stop();
Symbol 961 MovieClip [dogProfiles] Frame 1
#initclip 146
Object.registerClass("dogProfiles", DogPopUp);
#endinitclip
Symbol 962 MovieClip Frame 1
stop();
Symbol 962 MovieClip Frame 6
stop();
Symbol 962 MovieClip Frame 11
panel.menuClosed();
Symbol 979 MovieClip Frame 1
stop();
Symbol 979 MovieClip Frame 5
stop();
Symbol 979 MovieClip Frame 11
stop();
Symbol 997 MovieClip Frame 12
stop();
Symbol 999 MovieClip [click blocker] Frame 1
#initclip 147
Object.registerClass("click blocker", ClickBlocker);
#endinitclip
Symbol 1006 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1008 MovieClip Frame 90
_parent.play();
Symbol 1008 MovieClip Frame 91
stop();
Symbol 1016 MovieClip Frame 2
_global.root.engine.sndman.playAndRemove(Engine.SOUND_FANFARE).volume = 60;
Symbol 1016 MovieClip Frame 21
pup = _global.root.engine.puppy.makeClip(dogHolder, false, false);
pup.gotoAndStop("south");
Symbol 1016 MovieClip Frame 106
_parent._parent.revealDad();
Symbol 1016 MovieClip Frame 131
stop();
_parent.done();
Symbol 1018 MovieClip Frame 2
_global.root.engine.sndman.playAndRemove(Engine.SOUND_FANFARE).volume = 60;
Symbol 1018 MovieClip Frame 21
pup = _global.root.engine.puppy.makeClip(dogHolder, false, false);
pup.gotoAndStop("south");
Symbol 1018 MovieClip Frame 106
_parent._parent.revealDad();
Symbol 1018 MovieClip Frame 131
stop();
_parent.done();
Symbol 1023 MovieClip Frame 2
_global.root.engine.sndman.playAndRemove(Engine.SOUND_FANFARE).volume = 60;
Symbol 1023 MovieClip Frame 21
pup = _global.root.engine.puppy.makeClip(dogHolder, false, false);
pup.gotoAndStop("south");
Symbol 1023 MovieClip Frame 121
_parent._parent.revealDad();
Symbol 1023 MovieClip Frame 164
_parent.done();
stop();
Symbol 1029 MovieClip Frame 2
_global.root.engine.sndman.playAndRemove(Engine.SOUND_POOFARE).volume = 60;
Symbol 1029 MovieClip Frame 21
pup = _global.root.engine.puppy.makeClip(dogHolder, false, false);
pup.gotoAndStop("south");
Symbol 1029 MovieClip Frame 89
_parent._parent.revealDad();
Symbol 1029 MovieClip Frame 100
_parent.done();
stop();
Symbol 1030 MovieClip Frame 1
function done() {
_parent.play();
gotoAndStop ("off");
}
stop();
Symbol 1030 MovieClip Frame 11
stop();
Symbol 1030 MovieClip Frame 12
Symbol 1030 MovieClip Frame 19
stop();
Symbol 1030 MovieClip Frame 27
stop();
Symbol 1030 MovieClip Frame 35
stop();
Symbol 1031 MovieClip [BreedingResults] Frame 1
#initclip 148
Object.registerClass("BreedingResults", BreedingResults);
#endinitclip
stop();
Symbol 1031 MovieClip [BreedingResults] Frame 6
_parent.sndman.playAndRemove("getItOn");
stop();
i = 0;
while (i < _parent.yardDogs.length) {
_parent.yardDogs[i]._visible = false;
i++;
}
Symbol 1031 MovieClip [BreedingResults] Frame 7
stop();
playCelebrationAnim();
Symbol 1031 MovieClip [BreedingResults] Frame 12
stop();
Symbol 1031 MovieClip [BreedingResults] Frame 13
i = 0;
while (i < _parent.yardDogs.length) {
_parent.yardDogs[i]._visible = true;
i++;
}
Symbol 1031 MovieClip [BreedingResults] Frame 15
_global.root.engine.checkEvents();
menuClear();
Symbol 1034 Button
on (release) {
_parent.gotoAndPlay("out");
}
Symbol 1039 MovieClip Frame 1
stop();
Symbol 1039 MovieClip Frame 5
stop();
Symbol 1043 MovieClip Frame 1
stop();
Symbol 1043 MovieClip Frame 5
stop();
Symbol 1046 Button
on (release) {
_parent.doTheThing();
_parent.gotoAndPlay("out");
}
Symbol 1051 Button
on (release) {
_parent.gotoAndPlay("out");
}
Symbol 1053 MovieClip Frame 1
stop();
Symbol 1053 MovieClip Frame 5
stop();
Symbol 1067 MovieClip [dog ratings blackbg] Frame 1
#initclip 149
Object.registerClass("dog ratings blackbg", DogRatings);
#endinitclip
Symbol 1073 MovieClip [possibleBreeding panel] Frame 1
#initclip 150
Object.registerClass("possibleBreeding panel", PossibleBreedingMatch);
#endinitclip
Symbol 1074 MovieClip Frame 1
stop();
Symbol 1074 MovieClip Frame 5
stop();
Symbol 1074 MovieClip Frame 9
panel.menuClear();
Symbol 1078 Button
on (release) {
_parent.gameOver();
}
Symbol 1080 Button
on (release) {
gotoAndPlay ("out");
_global.root.engine.hud.buttonClicked("breederBoard", true);
}
Symbol 1082 MovieClip Frame 1
stop();
Symbol 1082 MovieClip Frame 7
stop();
Symbol 1109 Button
on (release) {
_global.root.gotoTriviala();
}
Symbol 1116 Button
on (release) {
_global.root.gotoFBApp();
}
Symbol 1122 MovieClip Frame 393
gotoAndPlay ("loop");
Symbol 1123 MovieClip [endOfTurn.Anim] Frame 1
#initclip 151
Object.registerClass("endOfTurn.Anim", EndTurnPage);
#endinitclip
Symbol 1125 Button
on (release) {
_global.root.engine.showHighscores();
}
Symbol 1134 MovieClip [submit score mc] Frame 1
#initclip 152
Object.registerClass("submit score mc", SaveScoreButton);
#endinitclip
stop();
Symbol 1139 Button
on (release) {
_global.root.engine.goToNextTurn();
}
Symbol 1140 MovieClip Frame 1
stop();
Instance of Symbol 1134 MovieClip [submit score mc] "submit_score_mc" in Symbol 1140 MovieClip Frame 2
/* no clip actions */
Symbol 1140 MovieClip Frame 7
stop();
Symbol 1140 MovieClip Frame 13
gotoAndStop ("off");
Symbol 1148 MovieClip [gameComplete panel] Frame 1
#initclip 153
Object.registerClass("gameComplete panel", GameCompletePanel);
#endinitclip
Symbol 1151 Button
on (release) {
play();
}
Symbol 1154 Button
on (release) {
play();
}
Symbol 1155 MovieClip Frame 1
stop();
Instance of Symbol 1134 MovieClip [submit score mc] "submit_score_mc" in Symbol 1155 MovieClip Frame 2
/* no clip actions */
Symbol 1155 MovieClip Frame 7
stop();
Symbol 1155 MovieClip Frame 13
_global.root.gotoAndStop("startpage");
Symbol 1164 Button
on (release) {
_parent._parent.gotoAndPlay("Out");
}
Symbol 1170 Button
on (release) {
_global.root.gotoTriviala();
}
Symbol 1172 MovieClip [GameObjectivesPanel] Frame 1
#initclip 154
Object.registerClass("GameObjectivesPanel", ObjectivesPanel);
#endinitclip
stop();
Symbol 1173 MovieClip Frame 1
stop();
Symbol 1173 MovieClip Frame 5
stop();
Symbol 1173 MovieClip Frame 10
hidden();
Symbol 1175 Button
on (release) {
_parent.gotoAndPlay("out");
}
Symbol 1182 Button
on (release) {
_global.root.gotoKV();
}
Symbol 1183 MovieClip [EndOfGame.Panel] Frame 1
#initclip 155
Object.registerClass("EndOfGame.Panel", GameOverPanel);
#endinitclip
Instance of Symbol 1122 MovieClip in Symbol 1183 MovieClip [EndOfGame.Panel] Frame 1
on (release) {
_global.root.gotoTriviala();
}
Symbol 1184 MovieClip Frame 1
stop();
Symbol 1184 MovieClip Frame 7
stop();
Symbol 1184 MovieClip Frame 12
gotoAndStop ("off");
Symbol 1185 MovieClip Frame 1
stop();
Symbol 1185 MovieClip Frame 7
stop();
Symbol 1185 MovieClip Frame 12
_parent.gotoStartpage();
Symbol 1195 Button
on (release) {
populateScores(me);
}
Symbol 1198 Button
on (release) {
getScores("country");
}
Symbol 1200 Button
on (release) {
getScores("sex");
}
Symbol 1202 Button
on (release) {
getScores("age");
}
Symbol 1204 Button
on (release) {
getScores("fanOf");
}
Symbol 1206 Button
on (release) {
populateScores(top10);
}
Symbol 1209 Button
on (release) {
getScores("level");
}
Symbol 1210 Button
on (release) {
_parent.gotoAndPlay("out");
}
Symbol 1215 MovieClip [highscoresItem] Frame 1
stop();
Symbol 1220 MovieClip Frame 1
stop();
Symbol 1221 MovieClip Frame 1
function getScores(mode) {
throbber.gotoAndStop("throb");
xml = new XML();
xml.ignoreWhite = true;
var _local2;
switch (mode) {
case "level" :
case "cheats" :
_local2 = (((_global.backendURL + "comms/getscores.comms.php?lId=") + lId) + "&mode=") + mode;
break;
case "sex" :
case "age" :
case "fanOf" :
case "country" :
_local2 = ((_global.backendURL + "cache/leagues/") + mode.toLowerCase()) + ".xml?";
}
if (_global.root.pId) {
_local2 = _local2 + ("&pId=" + _global.root.pId);
}
_local2 = _local2 + ("&r=" + Math.random());
xml.onLoad = gotScores;
xml.load(_local2);
}
function gotScores(success) {
if (success) {
var _local5 = this.firstChild;
var _local3;
best_txt.text = "";
top10 = [];
me = [];
var _local4 = 0;
while (_local4 < _local5.childNodes.length) {
_local3 = _local5.childNodes[_local4];
switch (_local3.nodeName) {
case "top10" :
top10 = nodeToArray(_local3);
break;
case "me" :
me = nodeToArray(_local3);
break;
case "best" :
best_txt.text = (((("You are the " + _local3.attributes.rank) + " highest scoring ") + _global.root.sexArr[_global.root.sex]) + " player who is ") + _global.root.ageArr[_global.root.age];
}
_local4++;
}
if (_global.root.pId && (me.length)) {
populateScores(me);
findYou_btn._visible = true;
} else {
populateScores(top10);
findYou_btn._visible = false;
}
switch (_local5.attributes.mode) {
case "level" :
var _local6 = (lId ? (_global.root.levelData[lId].title) : "All Levels");
scoresFor_txt.htmlText = "Scores: " + _local6;
break;
case "country" :
scoresFor_txt.htmlText = "Scores: Country";
break;
case "sex" :
scoresFor_txt.htmlText = "Scores: Gender";
break;
case "age" :
scoresFor_txt.htmlText = "Scores: Age Group";
break;
case "band" :
scoresFor_txt.htmlText = "Scores: Fave Band";
break;
case "cheats" :
scoresFor_txt.htmlText = "Scores: Cheats";
}
}
throbber.gotoAndPlay("throbOut");
}
function nodeToArray(node) {
arr = [];
i = 0;
while (i < node.childNodes.length) {
arr.push(node.childNodes[i].attributes);
i++;
}
if (node.attributes.mypos) {
arr.mypos = Number(node.attributes.mypos);
}
return(arr);
}
function populateScores(arr) {
var _local5 = 17;
var _local4 = 0;
for (var _local6 in highscores_mc) {
if (highscores_mc[_local6] instanceof MovieClip) {
highscores_mc[_local6].removeMovieClip();
}
}
var _local3;
var _local1 = 0;
while ((_local1 < arr.length) && (_local1 < 10)) {
_local3 = highscores_mc.attachMovie("highscoresItem", "hsi" + _local1, _local1);
_local3._y = _local4;
_local3.pos_txt.text = arr[_local1].pos;
_local3.name_txt.text = (checkSwear(arr[_local1].name) ? (checkSwear(arr[_local1].name)) : "anonymous");
_local3.score_txt.text = Format.number(arr[_local1].score);
_local4 = _local4 + _local5;
if ((!(arr.mypos === undefined)) && ((arr.mypos + 1) == arr[_local1].pos)) {
_local3.gotoAndStop("you");
}
_local1++;
}
}
function selectLevel(n) {
lId = n;
getScores("level");
selectLevel_mc.gotoAndPlay("hideLevels");
}
swearArray = new Array("fuck", "shit", "cunt", "fuk", "kunt", "phuk", "phuck");
checkSwear = function (mytext, peek) {
findMe = swearArray;
peek = 1;
myTotal = 0;
myWords = 0;
while (myWords <= (findMe.length - 1)) {
look = 0;
while (look < mytext.length) {
j = 0;
fill = "";
mySmall = mytext.substr(look, findMe[myWords].length).toLowerCase();
wordSmall = findMe[myWords].toLowerCase();
if (mySmall == wordSmall) {
while (j < (findMe[myWords].length - (2 * peek))) {
fill = fill + "*";
j++;
}
mytext = (mytext.substr(0, look + peek) + fill) + mytext.substr((look - peek) + findMe[myWords].length);
myTotal++;
}
look++;
}
myWords++;
}
return(mytext);
};
lId = 1;
if (!(_global.root.levels.lvl === undefined)) {
lId = _global.root.levels.lvl;
} else {
lId = 1;
}
if (!_global.root.pId) {
findYou_btn._visible = false;
}
Symbol 1222 MovieClip Frame 1
stop();
Symbol 1222 MovieClip Frame 6
stop();
Symbol 1230 Button
on (release) {
_parent.gotoAndPlay("out");
}
Symbol 1242 MovieClip [maleBtn] Frame 1
#initclip 156
Object.registerClass("maleBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 1245 MovieClip [femaleBtn] Frame 1
#initclip 157
Object.registerClass("femaleBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 1249 MovieClip [ageChildBtn] Frame 1
#initclip 158
Object.registerClass("ageChildBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 1253 MovieClip [ageAdultBtn] Frame 1
#initclip 159
Object.registerClass("ageAdultBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 1256 MovieClip [ageOAPBtn] Frame 1
#initclip 160
Object.registerClass("ageOAPBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 1281 MovieClip [scrollItem] Frame 1
#initclip 161
Object.registerClass("scrollItem", cust.GUI.RadioBtn);
#endinitclip
Symbol 1284 Button
on (release) {
_parent.gotoAndPlay("out");
}
Symbol 1287 MovieClip Frame 1
function createUser() {
var _local2 = new LoadVars();
_local2.lId = 1;
_local2.name = (_global.root.name = name_txt.text);
_local2.age = (_global.root.age = age.selectedIndex);
_local2.sex = (_global.root.sex = sex.selectedIndex);
var _local3 = cust.GUI.RadioGroup.GET_RADIO_GROUP("bands");
SO.setVar("age", age.selectedIndex);
SO.setVar("sex", sex.selectedIndex);
SO.setVar("fanOf", _local3.__get__selectedIndex());
_local2.fanOf = _local3.selectedIndex;
_local2.score = _global.root.engine.score;
_local2.bestDog = _global.root.engine.bestBreedRating;
_local2.r = Math.random();
_global.root.autosave = true;
submitAndShowThrobber(_local2);
}
function updateScore(indicator) {
var _local2 = new LoadVars();
_local2.lId = 1;
_local2.pId = _global.root.pId;
_local2.score = _global.root.engine.score;
_local2.bestDog = _global.root.engine.bestBreedRating;
_local2.r = Math.random();
_local2.indicator = indicator;
submitAndShowThrobber(_local2);
}
function submitAndShowThrobber(lv) {
_root.kvEvent(1667);
lv.onLoad = scoreSubmitted;
lv.sendAndLoad(_global.backendURL + "comms/submitscore.comms.php", lv, "GET");
gotoAndStop ("saving");
}
function scoreSubmitted(success) {
this.indicator.scoreSaved();
if (success) {
if (this.result == "success") {
if (!_global.root.pId) {
_global.root.pId = Number(this.pId);
if (_global.root.autosave) {
SO.setVar("pId", _global.root.pId);
}
}
gotoAndStop ("saved");
} else {
gotoAndStop ("error");
}
} else {
gotoAndStop ("error");
}
}
Symbol 1287 MovieClip Frame 2
function onScrollbarDrag() {
var _local1 = (bandsList.scroller._ymouse - mouseClickYOffset) / bandsList.scroller.bar.dist;
_local1 = ((_local1 < 0) ? 0 : (((_local1 > 1) ? 1 : (_local1))));
bandsList.contents._y = (-(bandsList.contents._height - 170)) * _local1;
}
function onStopScrollbarDrag() {
delete onMouseMove;
delete onMouseUp;
}
stop();
name_txt.restrict = "a-zA-Z";
var age = cust.GUI.RadioGroup.GET_RADIO_GROUP("age");
var sex = cust.GUI.RadioGroup.GET_RADIO_GROUP("sex");
age.__set__selectedIndex(0);
sex.__set__selectedIndex(0);
save_btn.onRelease = createUser;
bandsListArray = _global.root.fanOfArr;
itemSpacing = 19;
itemX = 0;
itemY = 0;
var mc;
var i = 0;
while (i < bandsListArray.length) {
mc = bandsList.contents.attachMovie("scrollItem", "bands_" + i, i);
mc._x = itemX;
mc._y = itemY;
mc.name_txt.text = bandsListArray[i];
itemY = itemY + itemSpacing;
i++;
}
var bands = cust.GUI.RadioGroup.GET_RADIO_GROUP("bands");
bandsList.scrollDir = 0;
bandsList.scrollSpeed = 6;
bandsList.onEnterFrame = function () {
bandsList.contents._y = bandsList.contents._y + (bandsList.scrollDir * bandsList.scrollSpeed);
if (bandsList.contents._y > 0) {
bandsList.contents._y = 0;
} else if (bandsList.contents._y < (-(bandsList.contents._height - 170))) {
bandsList.contents._y = -(bandsList.contents._height - 170);
}
bandsList.scroller.bar._y = bandsList.scroller.start._y + ((bandsList.contents._y / (-(bandsList.contents._height - 170))) * (bandsList.scroller.bar.dist - bandsList.scroller.start._y));
};
bandsList.scroller.bar.dist = bandsList.scroller.end._y - bandsList.scroller.start._y;
bandsList.scroller.bar.contentHeight = itemY;
bandsList.scroller.bar.visibleHeight = 170;
bandsList.scroller.bar._height = bandsList.scroller.bar.dist * (bandsList.scroller.bar.visibleHeight / bandsList.scroller.bar.contentHeight);
bandsList.scroller.bar._y = bandsList.scroller.bar.start._y;
bandsList.scroller.bar.onPress = function () {
onMouseMove = onScrollbarDrag;
onMouseUp = onStopScrollbarDrag;
mouseClickYOffset = bandsList.scroller._ymouse - bandsList.scroller.bar._y;
};
bandsList.scroller.up_btn.onPress = function () {
bandsList.scrollDir = 1;
};
bandsList.scroller.up_btn.onRelease = function () {
bandsList.scrollDir = 0;
};
bandsList.scroller.dn_btn.onPress = function () {
bandsList.scrollDir = -1;
};
bandsList.scroller.dn_btn.onRelease = function () {
bandsList.scrollDir = 0;
};
Symbol 1288 MovieClip Frame 1
stop();
Symbol 1288 MovieClip Frame 6
stop();
Symbol 1305 Button
on (release) {
_global.root.engine.howToPlay.gotoAndPlay("in");
_parent.howToPlayPressed = true;
_parent.gotoAndPlay("out");
}
Symbol 1311 Button
on (release) {
_parent.gotoAndPlay("out");
}
Symbol 1313 MovieClip Frame 65
stop();
Symbol 1313 MovieClip Frame 78
if (!howToPlayPressed) {
_global.root.engine.showObjectives();
}
stop();
Symbol 1316 MovieClip Frame 1
stop();
this.onRelease = function () {
this.gotoAndPlay("out");
};
Symbol 1316 MovieClip Frame 150
_parent.checkEvents();
Symbol 1323 MovieClip Frame 1
_parent.completeAchivement();
Symbol 1323 MovieClip Frame 19
sndman.playAndRemove(Engine.SOUND_ACHIEVEMENT).volume = 50;
Symbol 1328 MovieClip Frame 1
_parent.completeAchivement();
Symbol 1328 MovieClip Frame 19
sndman.playAndRemove(Engine.SOUND_ACHIEVEMENT).volume = 50;
Symbol 1329 MovieClip [engine] Frame 1
#initclip 162
Object.registerClass("engine", Engine);
#endinitclip
Instance of Symbol 678 MovieClip in Symbol 1329 MovieClip [engine] Frame 1
on (release) {
_global.root.gotoTriviala();
}