Frame 1
function followMouse(mc, lag, xTrue, yTrue) {
mc.onEnterFrame = function () {
if (xTrue) {
movex = (_root._xmouse - mc._x) / lag;
mc._x = mc._x + movex;
}
if (yTrue) {
movey = (_root._ymouse - mc._y) / lag;
mc._y = mc._y + movey;
}
};
}
function createPubTimer() {
function counter() {
count++;
output = count;
if (count >= 15) {
_root.stopAnimation = true;
clearInterval(timer);
count = 0;
}
}
count = 0;
timer = setInterval(counter, 1000);
}
function checkSiteID() {
var siteArray = new Array();
var lv = new LoadVars();
lv.load("http://bannerfarm.ace.advertising.com/bannerfarm/84352/siteIDs.txt");
lv.onLoad = function (ok) {
if (ok) {
output = lv;
siteArray = this.siteVals.split("\r");
i = 0;
while (i < siteArray.length) {
if (parseInt(siteValue) == parseInt(siteArray[i])) {
createPubTimer();
}
i++;
}
}
};
}
function startTrack() {
if ((!trackStarted) && (allowInteractionTrack)) {
trackTimer = setInterval(interActSet, 1000);
trackStarted = 1;
}
}
function interActSet() {
clearInterval(trackTimer);
trackStarted = 0;
if (!interacted) {
interacted = 1;
trace("interacted");
if (func1) {
getURL (("javascript:" + func1) + "()");
}
}
}
function stopTrack() {
clearInterval(trackTimer);
trackStarted = 0;
}
function pickRandomNum(min, max) {
var _local1 = Math.round(Math.random() * (max - min)) + min;
return(_local1);
}
function pauseMovie(frequency) {
function playMovie() {
play();
clearInterval(pauseTimer);
}
pauseTimer = setInterval(playMovie, frequency * 1000);
}
checkSiteID();
allowInteractionTrack = 1;
dog.onEnterFrame = function () {
if (_root.stopAnimation && (!stoppeded)) {
stoppeded = 1;
dog.gotoAndStop(1);
dog.eye.gotoAndStop(1);
}
};
eyeX = dog.eye._x;
eyeY = dog.eye._y;
dog.eye.onEnterFrame = function () {
dog.eye._x = eyeX + ((bone._x - (Stage.width / 2)) / 15);
dog.eye._y = (eyeY + ((bone._y - (Stage.height / 2)) / 10)) - 2;
};
bone.onEnterFrame = function () {
if (over) {
this._x = _xmouse;
this._y = _ymouse;
Mouse.hide();
} else {
Mouse.show();
}
};
tControl._visible = 0;
tControl.onEnterFrame = function () {
if (this.hitTest(_xmouse, _ymouse) && (!inited)) {
dog.tongue._visible = 1;
dog.tongue.gotoAndPlay(2);
inited = 1;
}
if (!this.hitTest(_xmouse, _ymouse)) {
inited = 0;
}
};
Symbol 2 Button
on (rollOver) {
over = 1;
startTrack();
}
on (rollOut) {
over = 0;
stopTrack();
}
on (release) {
getURL (AceClick, _blank);
}
Symbol 10 MovieClip Frame 1
stop();
this._visible = 0;