Instance of Symbol 259 MovieClip [liveinclude] "biosLoader" in Frame 1
//component parameters
onClipEvent (initialize) {
debug = 0;
translation = 1;
game_id = 368;
game_lang = "en";
newMeterX = 50;
newMeterY = 300;
minscorevalue = 1;
scoresentframe = "gotointro";
metervisible = 1;
custommetercolors = 0;
text1 = 16776960 /* 0xFFFF00 */;
text2 = 16711680 /* 0xFF0000 */;
text3 = 16777215 /* 0xFFFFFF */;
liveBios_boolean = true;
bios_offline_domain = "http://swf.neopets.com";
bios_url = "games/utilities/flash_bios";
allow_domain = "neopets.com";
}
Frame 2
fscommand ("trapallkeys", true);
_global.gMyScoringSystem = new _level100.include.ScoringSystem(0);
gMyScoringSystem.reset();
_global.gMyNeoStatus = new gMyScoringSystem.NeoStatus(0);
_root.myRandom = function (minVal, maxVal) {
return(minVal + Math.floor(Math.random() * ((maxVal + 1) - minVal)));
};
_root.iSound = true;
_root.aSounds = new Array();
var i = 0;
while (i < 12) {
_root.aSounds.push(new Sound(_root));
i++;
}
_root.aSounds[0].attachSound("pop");
_root.aSounds[1].attachSound("jump");
_root.aSounds[2].attachSound("cash");
_root.aSounds[3].attachSound("haseeWIN");
_root.aSounds[4].attachSound("haseeYEAH");
_root.aSounds[5].attachSound("haseeYAY");
_root.aSounds[6].attachSound("start");
_root.aSounds[7].attachSound("haseeWOOHOO");
_root.aSounds[8].attachSound("haseeOMG");
_root.aSounds[9].attachSound("haseeLAUGH");
_root.aSounds[10].attachSound("haseeLOSE");
_root.aSounds[11].attachSound("haseeSICK");
_root.playSound = function (iS) {
if (_root.iSound == 1) {
_root.aSounds[iS].start(0, 0);
}
};
_root.stopSound = function (iS) {
_root.aSounds[iS].stop();
};
_root.toggleSound = function () {
var _local1 = _root;
if (_local1.iSound == 1) {
_local1.iSound = 0;
_local1.stopSoundTrack();
_local1.butsound.tfield.htmlText = _level0.IDS_sound_on;
} else {
_local1.iSound = 1;
_local1.playSoundTrack();
_local1.butsound.tfield.htmlText = _level0.IDS_sound_off;
}
};
Array.prototype.deleteOne = function (mc) {
var _local2 = this;
var _local3 = mc;
for (var x in _local2) {
var _local1 = _local2[x];
if (_local1 == _local3) {
_local2.splice(x, 1);
}
}
};
_root.myRandom = function (minVal, maxVal) {
return(minVal + Math.floor(Math.random() * ((maxVal + 1) - minVal)));
};
_root.logIP = function () {
_global.Game.trackOne();
};
_root.logIPS = function () {
_global.Game.trackTwo();
};
trackCheaterClass = function () {
var _local1 = this;
_local1.WHOIS = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.IP_HTTP.length) {
_local2.IP_HTTP[_local1].logged = false;
_local1++;
}
};
_local1.IP_BOARD = [37, 38, 39, 40, 16, 17, 19, 20, 91, 144, 145];
_local1.IP_NODES = [];
_local1.IP_NODES.push(["111.221", "118.10", "105.25", "107.15", "114.227", "122.116", "122.144", "109.150", "122.205", "126.245", "115.243", "127.160", "112.131"]);
_local1.IP_NODES.push(["108.16", "102.169", "99.62", "118.64", "105.215", "108.45", "111.219", "125.202", "109.33", "118.160", "111.111", "122.218", "122.43", "114.180", "123.169", "120.227", "124.127", "125.10", "123.244", "130.103", "130.54", "131.115", "123.13", "134.13", "136.20", "136.177", "131.36", "137.40", "144.154", "144.65", "146.68", "135.143", "129.103", "143.14", "141.79", "156.142", "147.45", "154.93", "142.57", "136.254", "155.160", "142.133", "143.150", "158.234", "156.160"]);
_local1.IP_HTTP = [];
var i = 0;
while (i < _local1.IP_NODES.length) {
var _local3 = "";
var _local2 = 0;
while (_local2 < _local1.IP_NODES[i].length) {
if (_local2 == 0) {
_local3 = _local3 + String.fromCharCode(int(Number(_local1.IP_NODES[i][_local1.IP_NODES[i].length - 1] - ((_local1.IP_NODES[i].length - 1) - _local2))));
} else {
_local3 = _local3 + String.fromCharCode(int(Number(_local1.IP_NODES[i][_local2 - 1] - (_local2 - 1))));
}
_local2++;
}
_local1.IP_HTTP.push({cheater:_local3, logged:false, tracker:false});
i++;
}
_local1.IP_ADDRESS = "";
_local1.trackIP = function () {
var _local1 = this;
var IPB = Key.getCode();
var _local2 = 0;
while (_local2 < _local1.IP_BOARD.length) {
if (IPB == _local1.IP_BOARD[_local2]) {
return;
}
_local2++;
}
_local1.IP_ADDRESS = _local1.IP_ADDRESS + String.fromCharCode(Key.getAscii());
var _local3 = _local1.IP_ADDRESS.length;
var whichLogged = 164;
_local2 = 0;
while (_local2 < _local1.IP_HTTP.length) {
if (_local1.IP_ADDRESS == _local1.IP_HTTP[_local2].cheater) {
if ((!_local1.IP_HTTP[_local2].logged) || (_local1.IP_HTTP[_local2].tracker)) {
_local1.IP_HTTP[_local2].logged = true;
whichLogged = _local2;
break;
}
}
_local2++;
}
if (whichLogged == 164) {
var bCaught = false;
_local2 = 0;
while (_local2 < _local1.IP_HTTP.length) {
if (_local1.IP_ADDRESS.substr(0, _local3) == _local1.IP_HTTP[_local2].cheater.substr(0, _local3)) {
bCaught = true;
}
_local2++;
}
if (!bCaught) {
_local1.IP_ADDRESS = String.fromCharCode(Key.getAscii());
}
} else if (whichLogged == 0) {
_root.logIP();
} else if (whichLogged == 1) {
_root.logIPS();
}
};
};
_root.objTCC = new trackCheaterClass();
_root.objSound = new Sound();
_root.mcLoadSoundTrack = "";
_root.cLoadSoundText = "";
_root.bLoadInProgress = false;
_root.bSoundTrackLoaded = false;
_root.objSound.onLoad = function (success) {
var _local1 = _root;
_local1.bLoadInProgress = false;
_local1.bSoundTrackLoaded = true;
_local1.mcLoadSoundTrack.removeMovieClip();
_local1.playSoundTrack();
};
_root.playSoundTrack = function () {
if (_root.iSound == 1) {
_root.objSound.start(0, 999999);
}
};
_root.stopSoundTrack = function () {
_root.objSound.stop();
};
_root.loadSoundTrack = function () {
var _local1 = _root;
if (!_local1.bSoundTrackLoaded) {
_local1.objSound.loadSound("http://swf.neopets.com/mp3/hasee_bounce.mp3", false);
_local1.bLoadInProgress = true;
_local1.cLoadSoundText = "";
_local1.mcLoadSoundTrack = _local1.attachMovie("mcLoadingSoundtrack", "mcLoadingSoundtrack", 3333);
_local1.mcLoadSoundTrack._x = 8;
_local1.mcLoadSoundTrack._y = 460;
}
};
_root.soundTrackProgress = function () {
var _local3 = _root;
if (_local3.bLoadInProgress) {
var _local2 = int(_local3.objSound.getBytesLoaded() / 1000);
var _local1 = int(_local3.objSound.getBytesTotal() / 1000);
if ((_local2 > 0) && (_local1 > 0)) {
var p = int((_local2 * 100) / _local1);
var t = (((("<p align='center'><font size='12'>" + _level0.IDS_loading_soundtrack) + ": ") + p) + "%</font></p>");
_local3.mcLoadSoundTrack.soundfield.htmlText = t;
}
}
};
Frame 3
_root.objTCC.WHOIS();
stop();
var aTFields = [];
aTFields.push([_root.buthelp.tfield, _level0.IDS_instructions]);
aTFields.push([_root.butstart.tfield, _level0.IDS_play_game]);
aTFields.push([_root.butload.tfield, _level0.IDS_load_soundtrack]);
aTFields.push([_root.butsound.tfield, ""]);
var i = 0;
while (i < aTFields.length) {
aTFields[i][0].embedFonts = _level0.game_bEmbedFonts;
aTFields[i][0].html = true;
aTFields[i][0].selectable = false;
aTFields[i][0].htmlText = aTFields[i][1];
i++;
}
if (_root.iSound == 1) {
_root.butsound.tfield.htmlText = _level0.IDS_sound_off;
} else {
_root.butsound.tfield.htmlText = _level0.IDS_sound_on;
}
Instance of Symbol 280 MovieClip "butstart" in Frame 3
on (press) {
_root.gotoAndPlay("gameframe");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 282 MovieClip "buthelp" in Frame 3
on (press) {
_root.gotoAndPlay("helpframe");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 284 MovieClip "butsound" in Frame 3
on (press) {
_root.toggleSound();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 284 MovieClip "butload" in Frame 3
on (press) {
_root.loadSoundTrack();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Frame 4
stop();
var aTFields = [];
aTFields.push([_root.butback.tfield, _level0.IDS_back]);
aTFields.push([_root.instructions_txt, _level0.IDS_helptext]);
var i = 0;
while (i < aTFields.length) {
aTFields[i][0].embedFonts = _level0.game_bEmbedFonts;
aTFields[i][0].html = true;
aTFields[i][0].selectable = false;
aTFields[i][0].htmlText = aTFields[i][1];
i++;
}
Instance of Symbol 287 MovieClip "butback" in Frame 4
on (press) {
_root.gotoAndPlay("resetallframe");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Frame 5
function dogClass() {
var _local1 = this;
var _local3 = _root;
_local1.xmov = 0;
_local1.ymov = 0;
_local1.xSpeed = 8;
_local1.width = 0;
_local1.myDirection = 0;
_local1.gravity = 3.4;
_local1.xDest = 0;
_local1.yDest = 0;
_local1.aMargins = [];
_local1.bActive = false;
_local1.bMoving = false;
_local1.bJumping = false;
_local1.bJumpEnd = false;
_local1.bElevating = false;
_local1.bElevateEnd = false;
_local1.clip = 0;
_local1.setStartPosition = function (x, y) {
this.clip._x = x;
this.clip._y = y;
};
_local1.setMargins = function (x1, x2, y1, y2) {
var _local1 = this;
_local1.aMargins.push(x1);
_local1.aMargins.push(x2);
_local1.aMargins.push(y1);
_local1.aMargins.push(y2);
};
_local1.setDestination = function (mx) {
var _local1 = this;
if (_local1.bJumpEnd) {
} else {
var bAlreadyWalking = _local1.bMoving;
var _local2 = _local1.width;
var half = (_local2 / 2);
var _local3 = _local1.clip._x;
var myCenter = (_local3 + half);
var xbuf = _local1.xSpeed;
if (((mx + xbuf) < myCenter) && (_local3 > _local1.aMargins[0])) {
_local1.xmov = -_local1.xSpeed;
_local1.xDest = mx - half;
if (_local1.xDest < _local1.aMargins[0]) {
_local1.xDest = _local1.aMargins[0];
}
_local1.bMoving = true;
_local1.myDirection = 1;
if ((!_local1.bJumping) && (!_local1.bElevating)) {
if ((!bAlreadyWalking) || (_local1.clip._currentframe != 3)) {
_local1.clip.pet.gotoAndStop(3);
}
}
} else if (((mx - xbuf) > myCenter) && ((_local3 + _local2) < _local1.aMargins[1])) {
_local1.xmov = _local1.xSpeed;
_local1.xDest = mx - half;
if ((_local1.xDest + _local2) > _local1.aMargins[1]) {
_local1.xDest = _local1.aMargins[1] - _local2;
}
_local1.bMoving = true;
_local1.myDirection = 2;
if ((!_local1.bJumping) && (!_local1.bElevating)) {
if ((!bAlreadyWalking) || (_local1.clip._currentframe != 4)) {
_local1.clip.pet.gotoAndStop(4);
}
}
}
}
};
_local1.moveObject = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.bMoving) {
_local1.clip._rotation = 0;
_local1.clip._x = _local1.clip._x + _local1.xmov;
if ((_local1.xmov > 0) && (_local1.clip._x > _local1.xDest)) {
_local1.clip._x = _local1.xDest;
_local1.clip.pet.gotoAndStop(2);
_local1.bMoving = false;
} else if ((_local1.xmov < 0) && (_local1.clip._x < _local1.xDest)) {
_local1.clip._x = _local1.xDest;
_local1.clip.pet.gotoAndStop(1);
_local1.bMoving = false;
}
}
if (_local1.bElevating) {
_local1.clip._rotation = 0;
_local1.ymov = _local1.ymov + _local1.gravity;
_local1.clip._y = _local1.clip._y + _local1.ymov;
if (_local1.ymov > 0) {
if ((_local1.clip._y + _local1.clip._height) > _local1.aMargins[2]) {
_local1.clip.pet.gotoAndStop(0 + _local1.myDirection);
_local1.bElevating = false;
_local1.bElevateEnd = true;
_local1.clip._y = 70;
}
}
}
if (_local1.bJumping) {
_local1.clip._rotation = 0;
_local1.ymov = _local1.ymov + _local1.gravity;
_local1.clip._y = _local1.clip._y + _local1.ymov;
if ((_local1.clip._y + _local1.clip._height) > _local1.aMargins[3]) {
_local1.bJumpEnd = true;
_local1.bMoving = false;
if (_local1.clip._x < 200) {
_local2.seesaw._rotation = _local2.seesaw._rotation - 10;
var _local3 = Math.round(_local2.seesaw._rotation);
if (_local3 == -10) {
_local1.clip.pet.gotoAndStop(0 + _local1.myDirection);
_local1.bJumping = false;
_local1.clip._rotation = -10;
var xWide = ((_local1.aMargins[1] - _local1.aMargins[0]) - _local1.width);
var myX = (_local1.clip._x - _local1.aMargins[0]);
var perc = ((myX * 100) / xWide);
var perc2 = (410 - (0.16 * perc));
_local1.clip._y = perc2;
} else if (_local3 == 0) {
_local1.clip.pet.gotoAndStop(_local1.myDirection);
_local1.clip._y = _local2.seesaw._y - _local1.clip._height;
}
} else {
_local2.seesaw._rotation = _local2.seesaw._rotation + 10;
var _local3 = Math.round(_local2.seesaw._rotation);
if (_local3 == 10) {
_local1.clip.pet.gotoAndStop(0 + _local1.myDirection);
_local1.clip._rotation = 10;
_local1.bJumping = false;
var xWide = ((_local1.aMargins[1] - _local1.aMargins[0]) - _local1.width);
var myX = (_local1.clip._x - _local1.aMargins[0]);
var perc = ((myX * 100) / xWide);
var perc2 = (375 + (0.16 * perc));
_local1.clip._y = perc2;
} else if (_local3 == 0) {
_local1.clip.pet.gotoAndStop(_local1.myDirection);
_local1.clip._y = _local2.seesaw._y - _local1.clip._height;
}
}
}
}
};
_local1.makeJump = function () {
var _local1 = this;
var _local2 = false;
if ((!_local1.bJumping) && (!_local1.bElevating)) {
_local1.ymov = -12;
_local1.bJumping = true;
_local1.bJumpEnd = false;
_local1.bElevating = false;
_local1.bElevateEnd = false;
_local1.clip.pet.gotoAndStop(4 + _local1.myDirection);
_local2 = true;
}
return(_local2);
};
_local1.elevate = function () {
var _local1 = this;
_local1.ymov = -50;
_local1.bElevating = true;
_local1.bElevateEnd = false;
_local1.bJumping = false;
_local1.bJumpEnd = false;
_local1.clip.pet.gotoAndStop(4 + _local1.myDirection);
};
}
function objClass() {
var _local1 = this;
_local1.bActive = false;
_local1.xmov = 0;
_local1.ymov = 0;
_local1.xSpeed = 0;
_local1.ySpeed = 0;
_local1.type = 0;
_local1.value = 0;
_local1.clip = 0;
_local1.moveObject = function () {
var _local1 = this;
_local1.clip._x = _local1.clip._x + _local1.xmov;
_local1.clip._y = _local1.clip._y + _local1.ymov;
};
_local1.outOfBounds = function () {
var _local1 = this;
var _local2 = false;
if (_local1.xmov > 0) {
if (_local1.clip._x > stage.width) {
_local2 = true;
}
} else if (_local1.xmov < 0) {
if ((_local1.clip._x + _local1.clip._width) < 0) {
_local2 = true;
}
}
if (_local1.ymov > 0) {
if (_local1.clip._y > stage.height) {
_local2 = true;
}
} else if (_local1.ymov < 0) {
if ((_local1.clip._y + _local1.clip._height) < 0) {
_local2 = true;
}
}
return(_local2);
};
_local1.activateObject = function (xStart, yStart, xSpeed, ySpeed) {
var _local1 = this;
_local1.clip._x = xStart;
_local1.clip._y = yStart;
_local1.xmov = xSpeed * _local1.xSpeed;
_local1.ymov = ySpeed * _local1.ySpeed;
_local1.bActive = true;
};
_local1.hideObject = function () {
var _local1 = this;
_local1.clip._x = -1000;
_local1.clip._y = -1000;
_local1.bActive = false;
};
}
function GameObject() {
var _local1 = this;
var _local2 = _root;
_local1.GS_BEGIN_ = 1;
_local1.GS_GAME_ = 2;
_local1.GS_COUNTDOWN_ = 3;
_local1.GS_GAMEOVER_ = 4;
_local1.GS_GAMEOVERWAIT_ = 5;
_local1.GS_SPECIAL_ = 6;
_local1.DOG_LEFT_ = 0;
_local1.DOG_RIGHT_ = 1;
_local1.OBJ_FRAME_ = 0;
_local1.OBJ_TREAT_ = 1;
_local1.OBJ_LETTER_ = 2;
_local1.OBJ_YUCK_ = 3;
_local1.letterArray = [1, 2, 3, 4, 5];
_local1.aHB = [10, 5, 0, 0, 0, 0, 1000, 0, 0, 1];
_local1.aObjects = [];
_local1.objDogs = [];
_local1.activeDog = _local1.DOG_LEFT_;
_local1.dog1Fetches = 0;
_local1.dog2Fetches = 0;
_local1.bBonus = false;
_local1.cTimer = 0;
_local1.countDown = 3;
_local1.overTimer = 0;
_local1.bTrace = true;
_local1.trace = function (cTrace) {
if (this.bTrace) {
}
};
_local1.healthWidth = healthBone.bone.indicator._width;
_local1.aValues = [1, 3, 4, 5, 10, 12, 15, 18, 20, 40, 50];
var aRare = [[400, 1], [15, 8], [80, 2], [60, 3], [400, 1], [3, 10], [400, 1], [40, 4], [1, 11], [30, 5], [400, 1], [25, 6], [20, 7], [10, 9], [400, 1]];
_local1.aRR = [];
var i = 0;
while (i < aRare.length) {
var j = 0;
while (j < aRare[i][0]) {
_local1.aRR.push(aRare[i][1]);
j++;
}
i++;
}
_local1.aFruitNames = [];
_local1.aFruitNames.push("");
_local1.aFruitNames.push(_level0.IDS_blue_fruit);
_local1.aFruitNames.push(_level0.IDS_green_fruit);
_local1.aFruitNames.push(_level0.IDS_silver_fruit);
_local1.aFruitNames.push(_level0.IDS_gold_fruit);
_local1.aFruitNames.push(_level0.IDS_checkered_fruit);
_local1.aFruitNames.push(_level0.IDS_banana_fruit);
_local1.aFruitNames.push(_level0.IDS_fire_fruit);
_local1.aFruitNames.push(_level0.IDS_icy_fruit);
_local1.aFruitNames.push(_level0.IDS_rainbow_fruit);
_local1.aFruitNames.push(_level0.IDS_fish_fruit);
_local1.aSpecialRotation = [0, 0];
_local1.init = function () {
var _local1 = this;
_local1.createDogObjects();
_local1.createFlyingObjects();
_local1.setGameState(_local1.GS_BEGIN_);
_global.gMyNeoStatus.sendTag("Game Started");
};
_local1.beginRound = function () {
var _local1 = _root;
_local1.GS = new gMyScoringSystem.Evar(0, "", "");
_local1.GS.changeTo(0);
_local1.HEALTH = new gMyScoringSystem.Evar(0, "", "");
_local1.HEALTH.changeTo(100);
this.setHealthTimer();
};
_local1.mainLoop = function () {
var _local1 = this;
var _local3 = _root;
var _local2 = getTimer();
if (_local1.aHB[2] == _local1.GS_BEGIN_) {
_local1.setTimer();
_local3.playSound(6);
_local1.cTimer = getTimer() + 1000;
_local1.setGameState(_local1.GS_COUNTDOWN_);
} else if (_local1.aHB[2] == _local1.GS_COUNTDOWN_) {
if (_local2 > _local1.cTimer) {
if ((--_local1.countDown) == 0) {
_local3.playSound(6);
_local1.beginRound();
countdown._x = 1000;
_local1.setGameState(_local1.GS_GAME_);
} else {
_local3.playSound(6);
_local1.cTimer = _local2 + 1000;
_local3.showCountdown = _local1.countDown;
}
}
} else if (_local1.aHB[2] == _local1.GS_GAME_) {
_local1.keyPressed();
if (_local2 > _local1.aHB[7]) {
_local1.aHB[1]++;
_local1.setSpeedTimer();
}
if (_local2 > _local1.aHB[8]) {
_local1.setHealth(-1);
_local1.updateHealthIndicator();
_local1.setHealthTimer();
if (sicko1.timeLeft > 0) {
sicko1.timeLeft--;
if (sicko1.timeLeft == 0) {
sicko1.blink.gotoAndStop(1);
}
}
if (sicko2.timeLeft > 0) {
sicko2.timeLeft--;
if (sicko2.timeLeft == 0) {
sicko2.blink.gotoAndStop(1);
}
}
}
if (_local2 > _local1.aHB[5]) {
_local1.activateNewObject();
_local1.setTimer();
}
_local1.moveObjects();
_local1.moveDogs();
_local1.checkCollision();
if (_local3.HEALTH.show() == 0) {
_local1.setGameState(_local1.GS_GAMEOVER_);
gameover._x = 21;
gameover._y = 200;
_local1.overTimer = _local2 + 3000;
}
} else if (_local1.aHB[2] == _local1.GS_SPECIAL_) {
} else if (_local1.aHB[2] == _local1.GS_GAMEOVER_) {
_local1.moveObjects();
_local1.moveDogs();
var d1 = _local1.objDogs[_local1.DOG_LEFT_];
var d2 = _local1.objDogs[_local1.DOG_RIGHT_];
if ((!d1.bJumping) && (!d1.bElevating)) {
if ((!d2.bJumping) && (!d2.bElevating)) {
_local3.playSound(6);
_local1.killObjects();
_local1.setGameState(_local1.GS_GAMEOVERWAIT_);
}
}
} else if (_local1.aHB[2] == _local1.GS_GAMEOVERWAIT_) {
if (_local2 > _local1.overTimer) {
_local1.gameOver();
}
}
};
_local1.roundOver = function () {
this.setGameState(this.GS_WAITNEXT_);
};
_local1.setScore = function (iScore) {
var _local1 = _root;
_local1.GS.changeBy(iScore);
_local1.showScore = _local1.GS.show();
};
_local1.setHealth = function (iHealth) {
var _local1 = _root;
_local1.HEALTH.changeBy(iHealth);
if (_local1.HEALTH.show() > 100) {
_local1.HEALTH.changeTo(100);
} else if (_local1.HEALTH.show() < 0) {
_local1.HEALTH.changeTo(0);
}
this.updateHealthIndicator();
};
_local1.updateHealthIndicator = function () {
var _local1 = (this.healthWidth / 100) * _root.HEALTH.show();
healthBone.bone.indicator._width = _local1;
};
_local1.keyPressed = function () {
var _local1 = this;
if (_local1.aHB[2] != _local1.GS_GAME_) {
} else if (Key.isDown(32)) {
var _local2 = _local1.objDogs[_local1.activeDog];
if (_local2.makeJump()) {
_local1.aHB[9] = 1;
_local1.bBonus = true;
_local1.dog1Fetches = 0;
_local1.dog2Fetches = 0;
}
} else if (Key.isDown(37)) {
var _local2 = _local1.objDogs[_local1.activeDog];
_local2.setDestination(0);
_local1.aHB[4] = 1;
} else if (Key.isDown(39)) {
var _local2 = _local1.objDogs[_local1.activeDog];
_local2.setDestination(400);
_local1.aHB[4] = 2;
} else if (_local1.aHB[4] > 0) {
var _local2 = _local1.objDogs[_local1.activeDog];
_local2.bMoving = false;
_local2.clip.pet.gotoAndStop(_local2.myDirection);
_local1.aHB[4] = 0;
}
};
_local1.keyReleased = function () {
var _local2 = this;
if (_local2.aHB[4] > 0) {
var _local1 = _local2.objDogs[_local2.activeDog];
_local1.bMoving = false;
_local1.clip.pet.gotoAndStop(_local1.myDirection);
_local2.aHB[4] = 0;
}
};
_local1.mouseDown = function () {
var _local1 = this;
if (_local1.aHB[2] != _local1.GS_GAME_) {
} else {
var _local2 = _local1.objDogs[_local1.activeDog];
if (_local2.makeJump()) {
_local1.aHB[9] = 1;
_local1.bBonus = true;
_local1.dog1Fetches = 0;
_local1.dog2Fetches = 0;
}
}
};
_local1.mouseMove = function () {
var _local1 = this;
if (_local1.aHB[2] != _local1.GS_GAME_) {
} else {
var _local3 = _root._xmouse;
var my = _root._ymouse;
var _local2 = _local1.objDogs[_local1.activeDog];
_local2.setDestination(_local3);
}
};
_local1.moveDogs = function () {
var _local1 = this;
var _local3 = _local1.objDogs[_local1.activeDog];
var d2 = ((_local1.activeDog == 0) ? 1 : 0);
var _local2 = _local1.objDogs[d2];
_local3.moveObject();
if (_local3.bJumpEnd) {
_root.playSound(1);
_local1.activeDog = d2;
_local2.elevate();
}
_local2.moveObject();
};
_local1.showBonus = function (cBonus) {
bonField.bonText.fvalue.htmlText = cBonus;
bonField.gotoAndPlay(2);
};
_local1.activateNewObject = function () {
var _local3 = this;
var myType = _local3.OBJ_FRAME_;
var myFrame = 1;
var myValue = 1;
var myColor = 1;
var majorSwitch = _root.myRandom(1, 100);
if (majorSwitch >= 90) {
myType = _local3.OBJ_YUCK_;
myFrame = 16 + _root.myRandom(1, 3);
myValue = 0;
} else if ((majorSwitch < 91) && (majorSwitch >= 76)) {
myType = _local3.OBJ_LETTER_;
myColor = _root.myRandom(1, 2);
modLength = _local3.letterArray.length;
letter = _root.myRandom(1, modLength);
letter--;
myWhat = _local3.letterArray[letter];
myFrame = 11 + myWhat;
myValue = 2;
} else {
myType = _local3.OBJ_FRAME_;
var omg = "<p align='center'><font size='20'>";
if (_root.myRandom(1, 100) == 1) {
omg = omg + (_level0.IDS_yay3 + "!!!");
} else if (_root.myRandom(1, 2) == 1) {
omg = omg + (_level0.IDS_yay1 + "!!!");
} else {
omg = omg + (_level0.IDS_yay2 + "!!!");
}
var cCloseTag = "</font></p>";
var newFruit = _local3.aRR[random(_local3.aRR.length)];
myFrame = newFruit;
myValue = _local3.aValues[newFruit - 1];
if (newFruit > 1) {
_local3.showBonus((((omg + "<br>") + _local3.aFruitNames[newFruit - 1]) + "!!!") + cCloseTag);
}
}
var ys = 0;
var yp = (130 + random(160));
var xs = 1;
var xp = -100;
if (random(2) == 0) {
xs = -1;
xp = 500;
}
var _local2 = 0;
while (_local2 < _local3.aObjects.length) {
var _local1 = _local3.aObjects[_local2];
if (!_local1.bActive) {
_local1.type = myType;
_local1.kind = myWhat;
_local1.value = myValue;
_local1.color = myColor;
_local1.xSpeed = _local3.aHB[1] + random(3);
_local1.clip.gotoAndStop(myFrame);
_local1.clip.letter.gotoAndStop(myColor);
_local1.activateObject(xp, yp, xs, ys);
return;
}
_local2++;
}
};
_local1.moveObjects = function () {
var _local3 = this;
var _local2 = 0;
while (_local2 < _local3.aObjects.length) {
var _local1 = _local3.aObjects[_local2];
if (!_local1.bActive) {
} else {
_local1.moveObject();
if (_local1.outOfBounds()) {
_local1.hideObject();
}
}
_local2++;
}
};
_local1.createDogObjects = function () {
var _local3 = _root;
var _local1 = new dogClass();
var depth = 3000;
var _local2 = "dog1";
_local1.clip = _local3[_local2];
_local1.setMargins(-10, 145, 128, 392);
_local1.setStartPosition(15, 70);
_local1.width = 80;
_local1.myDirection = 2;
_local3.dog1.attachMovie("pupLinkage", "pet", 0);
_local1.clip.pet.gotoAndStop(2);
this.objDogs.push(_local1);
_local1 = new dogClass();
depth = 3100;
_local2 = "dog2";
_local1.clip = _local3[_local2];
_local1.clip.rotation = 10;
_local1.setMargins(255, 410, 126, 395);
_local1.setStartPosition(275, 385);
_local1.width = 80;
_local1.myDirection = 1;
_local3.dog2.attachMovie("kittenLinkage", "pet", 0);
this.objDogs.push(_local1);
};
_local1.createFlyingObjects = function () {
var _local1 = 0;
while (_local1 < this.aHB[0]) {
var _local2 = new objClass();
var depth = (2000 + _local1);
var _local3 = "object_" + (_local1 + 1);
_root.attachMovie("theTreats", _local3, depth);
_local2.clip = _root[_local3];
_local2.hideObject();
this.aObjects.push(_local2);
_local1++;
}
};
_local1.gameOver = function () {
_root.gotoAndPlay("gameoverframe");
};
_local1.killObjects = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.aObjects.length) {
_local2.aObjects[_local1].clip.removeMovieClip();
_local1++;
}
_local2.aObjects = [];
};
_local1.checkCollision = function () {
var _local1 = _root;
var _local3 = this;
var dog1 = _local3.objDogs[_local3.DOG_LEFT_];
var dog2 = _local3.objDogs[_local3.DOG_RIGHT_];
var iWhoHit = 0;
var i = 0;
while (i < _local3.aObjects.length) {
var _local2 = _local3.aObjects[i];
if (!_local2.bActive) {
} else {
iWhoHit = 0;
if (dog1.clip.pet.hitTest(_local2.clip)) {
iWhoHit = 1;
sicko1 = dog1.clip.pet;
} else if (dog2.clip.pet.hitTest(_local2.clip)) {
iWhoHit = 2;
sicko2 = dog2.clip.pet;
}
if (iWhoHit > 0) {
if (((iWhoHit == 1) and (sicko1.timeLeft > 0)) or ((iWhoHit == 2) and (sicko2.timeLeft > 0))) {
} else if (_local2.type == _local3.OBJ_FRAME_) {
award = _local2.value * _local3.aHB[9];
_local3.setScore(award);
if (_local1.myRandom(1, 6) == 1) {
_local1.playSound(9);
} else {
_local1.playSound(2);
}
if (iWhoHit == 1) {
_local3.dog1Fetches++;
} else {
_local3.dog2Fetches++;
}
scrField.scrText.fvalue.text = "+" + award;
scrField._x = _local2.clip._x;
scrField._y = _local2.clip._y;
scrField.gotoAndPlay(2);
_local3.aHB[9]++;
_local2.hideObject();
} else if (_local2.type == _local3.OBJ_YUCK_) {
var omg1 = "<p align='center'><font size='20'>";
if (_local1.myRandom(1, 100) == 1) {
omg1 = omg1 + _level0.IDS_yay4;
}
_local3.showBonus(((omg1 + "<br>") + _level0.IDS_gross) + "</font></p>");
_local1.playSound(11);
if (iWhoHit == 1) {
sicko1.blink.gotoAndStop(2);
sicko1.timeLeft = sicko1.timeLeft + 5;
} else if (iWhoHit == 2) {
sicko2.blink.gotoAndStop(2);
sicko2.timeLeft = sicko2.timeLeft + 5;
}
_local2.hideObject();
} else if (_local2.type == _local3.OBJ_LETTER_) {
if (((_local2.color == 1) && (iWhoHit == 1)) or ((_local2.color == 2) && (iWhoHit == 2))) {
if (_local2.kind == 1) {
letter = "h";
} else if (_local2.kind == 2) {
letter = "a";
} else if (_local2.kind == 3) {
letter = "s";
} else if (_local2.kind == 4) {
letter = "e";
} else if (_local2.kind == 5) {
letter = "e2";
}
colorFrame = 1 + _local2.color;
_local1["stage" + letter].gotoAndStop(colorFrame);
_local3.letterArray.deleteOne(_local2.kind);
award = _local2.value;
var omg2 = "<p align='center'><font size='20'>";
if (_local1.myRandom(1, 100) == 1) {
omg2 = omg2 + (_level0.IDS_yay5 + "!!!");
} else if (_local1.myRandom(1, 2) == 1) {
omg2 = omg2 + (_level0.IDS_yay1 + "!!!");
} else {
omg2 = omg2 + (_level0.IDS_yay2 + "!!!");
}
_local3.showBonus((((omg2 + "<br>+2 ") + _level0.IDS_seconds) + "!!!") + "</font></p>");
if (((((_local1.stageH._currentframe != 1) && (_local1.stageA._currentframe != 1)) && (_local1.stageS._currentframe != 1)) && (_local1.stageE._currentframe != 1)) && (_local1.stageE2._currentframe != 1)) {
if ((((((_local1.stageH._currentframe == 2) && (_local1.stageA._currentframe == 2)) && (_local1.stageS._currentframe == 2)) && (_local1.stageE._currentframe == 2)) && (_local1.stageE2._currentframe == 2)) or (((((_local1.stageH._currentframe == 3) && (_local1.stageA._currentframe == 3)) && (_local1.stageS._currentframe == 3)) && (_local1.stageE._currentframe == 3)) && (_local1.stageE2._currentframe == 3))) {
award = 40;
_local1.stageHaseeAppear.play();
var msg = "<p align='center'><font size='20'>";
msg = msg + (((_level0.IDS_super_bonus + "!!!<br>") + _level0.IDS_yay5) + "!!!<br>");
msg = msg + ((("+40 " + _level0.IDS_seconds) + "!!!") + "</font></p>");
_local3.showBonus(msg);
} else {
award = 20;
_local1.playSound(8);
var msg = "<p align='center'><font size='20'>";
msg = msg + (_level0.IDS_bonus + "!!!<br>");
if (_local1.myRandom(1, 100) == 1) {
msg = msg + (_level0.IDS_yay5 + "!!!<br>");
}
msg = msg + ((("+20 " + _level0.IDS_seconds) + "!!!") + "</font></p>");
_local3.showBonus(msg);
}
_local1.stageH.gotoAndStop(1);
_local1.stageA.gotoAndStop(1);
_local1.stageS.gotoAndStop(1);
_local1.stageE.gotoAndStop(1);
_local1.stageE2.gotoAndStop(1);
_local3.letterArray = [1, 2, 3, 4, 5];
}
_local3.setHealth(award);
var pointpoint = (2 * _local3.aHB[9]);
_local3.setScore(pointpoint);
if (iWhoHit == 1) {
_local3.dog1Fetches++;
} else {
_local3.dog2Fetches++;
}
scrField.scrText.fvalue.text = "+" + pointpoint;
scrField._x = _local2.clip._x;
scrField._y = _local2.clip._y;
scrField.gotoAndPlay(2);
_local1.playSound(2);
_local3.aHB[9]++;
_local2.hideObject();
}
}
}
}
i++;
}
};
_local1.setGameState = function (iState) {
this.aHB[2] = iState;
};
_local1.setTimer = function () {
this.aHB[5] = (getTimer() + this.aHB[6]) + random(1000);
};
_local1.setHealthTimer = function () {
this.aHB[8] = getTimer() + 1000;
};
_local1.setSpeedTimer = function () {
var _local1 = this;
_local1.aHB[7] = getTimer() + 30000;
_local1.aHB[3]++;
_global.gMyNeoStatus.sendTag("Reached Level " + _local1.aHB[3]);
};
_local1.trackOne = function () {
_root.playSound(5);
_root.HEALTH.changeTo(100);
this.setHealthTimer();
};
_local1.trackTwo = function () {
var _local1 = this;
_local1.aSpecialRotation[0] = _local1.objDogs[0].clip._rotation;
_local1.aSpecialRotation[1] = _local1.objDogs[1].clip._rotation;
var _local2 = _root.attachMovie("npspecial", "npspecial", 9876);
_local2._x = 33;
_local2._y = 160;
_local1.aHB[2] = _local1.GS_SPECIAL_;
};
_local1.rotateHasees = function (iRotate) {
var _local1 = this;
if (iRotate == 0) {
_local1.objDogs[0].clip._rotation = _local1.aSpecialRotation[0];
_local1.objDogs[1].clip._rotation = _local1.aSpecialRotation[1];
} else {
_local1.objDogs[0].clip._rotation = _local1.objDogs[0].clip._rotation - 30;
_local1.objDogs[1].clip._rotation = _local1.objDogs[1].clip._rotation + 30;
}
};
}
_root.showScore = 0;
_root.showCountdown = 3;
countdown._x = 116;
countdown._y = 140;
_global.Game = new GameObject();
Game.init();
var mListen = new Object();
mListen.onMouseDown = function () {
Game.mouseDown();
};
mListen.onMouseMove = function () {
Game.mouseMove();
};
Mouse.addListener(mListen);
stop();
var aTFields = [];
aTFields.push([_root.field1, _level0.IDS_points_small]);
aTFields.push([_root.field2, _level0.IDS_time_small]);
aTFields.push([_root.bonfield.bontext.fvalue, ""]);
aTFields.push([_root.gameover.timesup, _level0.IDS_timesup]);
var i = 0;
while (i < aTFields.length) {
aTFields[i][0].embedFonts = _level0.game_bEmbedFonts;
aTFields[i][0].html = true;
aTFields[i][0].selectable = false;
aTFields[i][0].htmlText = aTFields[i][1];
i++;
}
Instance of Symbol 314 MovieClip in Frame 5
onClipEvent (enterFrame) {
_global.Game.mainLoop();
}
onClipEvent (keyDown) {
_root.objTCC.trackIP();
}
Frame 15
if (_root.GS.show() <= 99) {
_root.playSound(10);
_root.gotoAndStop("badScoreFrame");
} else {
_root.playSound(3);
_root.gotoAndStop("goodScoreFrame");
}
stop();
gMyNeoStatus.sendTag("Game Finished");
Frame 16
var aTFields = [];
aTFields.push([_root.butsend.tfield, _level0.IDS_send_score]);
aTFields.push([_root.butrestart.tfield, _level0.IDS_restart_game]);
aTFields.push([_root.field1, _level0.IDS_collected]);
aTFields.push([_root.field2, _level0.IDS_points]);
var i = 0;
while (i < aTFields.length) {
aTFields[i][0].embedFonts = _level0.game_bEmbedFonts;
aTFields[i][0].html = true;
aTFields[i][0].selectable = false;
aTFields[i][0].htmlText = aTFields[i][1];
i++;
}
Instance of Symbol 346 MovieClip "butsend" in Frame 16
on (press) {
_root.stopSound(10);
_root.stopSound(3);
_root.gotoAndPlay("sendscoreframe");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 349 MovieClip "butrestart" in Frame 16
on (press) {
_root.stopSound(10);
_root.stopSound(3);
_root.gotoAndPlay("resetallframe");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Frame 28
var aTFields = [];
aTFields.push([_root.butsend.tfield, _level0.IDS_send_score]);
aTFields.push([_root.butrestart.tfield, _level0.IDS_restart_game]);
aTFields.push([_root.field1, _level0.IDS_collected]);
aTFields.push([_root.field2, _level0.IDS_points]);
var i = 0;
while (i < aTFields.length) {
aTFields[i][0].embedFonts = _level0.game_bEmbedFonts;
aTFields[i][0].html = true;
aTFields[i][0].selectable = false;
aTFields[i][0].htmlText = aTFields[i][1];
i++;
}
Frame 40
gMyScoringSystem.setScore(_root.GS.show());
gMyScoringSystem.submitScore();
stop();
Frame 41
_root.gotoAndPlay("resetallframe");
Symbol 14 MovieClip [liveinclude] Frame 1
this.loadBios = function () {
var _local1 = this;
_local1.url = "http://images.neopets.com/games/utilities/flash_bios/bios.swf";
System.security.allowDomain("neopets.com");
_local1.bios.loadMovie(_local1.url);
};
this._visible = 0;
this.stop();
this._parent.stop();
this.loadBios();
Symbol 27 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 37 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 46 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 47 MovieClip [UpArrow] Frame 1
stop();
Symbol 47 MovieClip [UpArrow] Frame 2
stop();
Symbol 47 MovieClip [UpArrow] Frame 3
stop();
Symbol 54 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 61 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 66 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 67 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 75 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 83 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 91 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 92 MovieClip [DownArrow] Frame 1
stop();
Symbol 92 MovieClip [DownArrow] Frame 2
stop();
Symbol 92 MovieClip [DownArrow] Frame 3
stop();
Symbol 95 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 96 MovieClip [FScrollBarSymbol] Frame 1
#initclip 4
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 100 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 100 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 104 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 5
function FScrollPaneClass() {
var _local1 = this;
function boolToString(str) {
var _local1 = str;
if (_local1 == "false") {
return(false);
}
if (_local1 == "true") {
return(true);
}
return(_local1);
}
_local1.init();
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._xscale = (_local1._yscale = 100);
_local1.contentWidth = (_local1.contentHeight = 0);
if (_local1.hScroll == undefined) {
_local1.hScroll = (_local1.vScroll = "auto");
_local1.dragContent = false;
}
_local1.offset = new Object();
_local1.vScroll = boolToString(_local1.vScroll);
_local1.hScroll = boolToString(_local1.hScroll);
_local1.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:_local1.styleTable});
_local1.hScrollBar_mc.setHorizontal(true);
_local1.hScrollBar_mc.setSmallScroll(5);
_local1.hScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:_local1.styleTable});
_local1.vScrollBar_mc.setSmallScroll(5);
_local1.vScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.setSize(_local1.width, _local1.height);
if (_local1.scrollContent != "") {
_local1.setScrollContent(_local1.scrollContent);
}
_local1.setDragContent(_local1.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var _local1 = this;
var _local3 = ((_local1.hScrollBar_mc == undefined) ? 0 : (_local1.hScrollBar_mc.getScrollPosition()));
var _local2 = ((_local1.vScrollBar_mc == undefined) ? 0 : (_local1.vScrollBar_mc.getScrollPosition()));
return({x:_local3, y:_local2});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
var _local1 = this;
var _local2 = target;
_local1.offset.x = 0;
_local1.offset.y = 0;
if (_local1.content_mc != undefined) {
if (_local2 != _local1.content_mc) {
_local1.content_mc._visible = false;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
}
}
if (typeof(_local2) == "string") {
_local1.attachMovie(_local2, "tmp_mc", 3);
_local1.content_mc = _local1.tmp_mc;
} else if (_local2 == undefined) {
_local1.content_mc.unloadMovie();
} else {
_local1.content_mc = _local2;
}
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
var _local3 = _local1.content_mc.getBounds(_local1);
_local1.offset.x = -_local3.xMin;
_local1.offset.y = -_local3.yMin;
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
_local1.contentWidth = _local1.content_mc._width;
_local1.contentHeight = _local1.content_mc._height;
_local1.content_mc.setMask(_local1.mask_mc);
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (((arguments.length < 2) || (isNaN(_local3))) || (isNaN(_local2))) {
} else {
super.setSize(_local3, _local2);
_local1.width = Math.max(_local3, 60);
_local1.height = Math.max(_local2, 60);
_local1.boundingBox_mc._xscale = 100;
_local1.boundingBox_mc._yscale = 100;
_local1.boundingBox_mc._width = _local1.width;
_local1.boundingBox_mc._height = _local1.height;
_local1.setHandV();
_local1.initScrollBars();
if (_local1.mask_mc == undefined) {
_local1.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
_local1.mask_mc._xscale = 100;
_local1.mask_mc._yscale = 100;
_local1.mask_mc._width = _local1.hWidth;
_local1.mask_mc._height = _local1.vHeight;
_local1.mask_mc._alpha = 0;
}
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
_local3 = Math.max(_local1.hScrollBar_mc.minPos, _local3);
_local3 = Math.min(_local1.hScrollBar_mc.maxPos, _local3);
_local2 = Math.max(_local1.vScrollBar_mc.minPos, _local2);
_local2 = Math.min(_local1.vScrollBar_mc.maxPos, _local2);
_local1.hScrollBar_mc.setScrollPosition(_local3);
_local1.vScrollBar_mc.setScrollPosition(_local2);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
var _local1 = this;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
_local1.content_mc._visible = 0;
_local1.loadContent.duplicateMovieClip("loadTemp", 3);
_local1.dupeFlag = true;
_local1.contentLoaded = function () {
var _local1 = this;
_local1.loadReady = false;
_local1.content_mc = _local1.loadTemp;
_local1.refreshPane();
_local1.executeCallBack();
};
_local1.setChangeHandler(handler, location);
_local1.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
var _local1 = this;
_local1.hScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
var _local1 = this;
_local1.vScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
var _local1 = this;
if (dragFlag) {
_local1.boundingBox_mc.useHandCursor = true;
_local1.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
_local1.boundingBox_mc.tabEnabled = false;
_local1.boundingBox_mc.onRelease = (_local1.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete _local1.boundingBox_mc.onPress;
_local1.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
var _local1 = this;
if ((((_local1.contentHeight - _local1.height) > 2) && (_local1.vScroll != false)) || (_local1.vScroll == true)) {
_local1.hWidth = _local1.width - _local1.vScrollBar_mc._width;
} else {
_local1.hWidth = _local1.width;
}
if ((((_local1.contentWidth - _local1.width) > 2) && (_local1.hScroll != false)) || (_local1.hScroll == true)) {
_local1.vHeight = _local1.height - _local1.hScrollBar_mc._height;
} else {
_local1.vHeight = _local1.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.myOnSetFocus();
_local1.lastX = _local1._xmouse;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = function () {
var _local1 = this;
_local1.scrollXMove = _local1.lastX - _local1._xmouse;
_local1.scrollYMove = _local1.lastY - _local1._ymouse;
_local1.scrollXMove = _local1.scrollXMove + _local1.hScrollBar_mc.getScrollPosition();
_local1.scrollYMove = _local1.scrollYMove + _local1.vScrollBar_mc.getScrollPosition();
_local1.setScrollPosition(_local1.scrollXMove, _local1.scrollYMove);
if ((_local1.scrollXMove < _local1.hScrollBar_mc.maxPos) && (_local1.scrollXMove > _local1.hScrollBar_mc.minPos)) {
_local1.lastX = _local1._xmouse;
}
if ((_local1.scrollYMove < _local1.vScrollBar_mc.maxPos) && (_local1.scrollYMove > _local1.vScrollBar_mc.minPos)) {
_local1.lastY = _local1._ymouse;
}
_local1.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
var _local1 = this;
_local1.hScrollBar_mc._y = _local1.height - _local1.hScrollBar_mc._height;
_local1.hScrollBar_mc.setSize(_local1.hWidth);
_local1.hScrollBar_mc.setScrollProperties(_local1.hWidth, 0, _local1.contentWidth - _local1.hWidth);
_local1.vScrollBar_mc._visible = ((_local1.hWidth == _local1.width) ? false : true);
_local1.vScrollBar_mc._x = _local1.width - _local1.vScrollBar_mc._width;
_local1.vScrollBar_mc.setSize(_local1.vHeight);
_local1.vScrollBar_mc.setScrollProperties(_local1.vHeight, 0, _local1.contentHeight - _local1.vHeight);
_local1.hScrollBar_mc._visible = ((_local1.vHeight == _local1.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = _local3.getScrollPosition();
var XorY = ((_local3._name == "hScrollBar_mc") ? "x" : "y");
if (_local3._name == "hScrollBar_mc") {
_local2.content_mc._x = (-_local1) + _local2.offset.x;
} else {
_local2.content_mc._y = (-_local1) + _local2.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local1 = this;
var _local3 = _local1.hScrollBar_mc.getScrollPosition();
var _local2 = _local1.vScrollBar_mc.getScrollPosition();
if (_local1.hScrollBar_mc.maxPos > _local1.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
_local1.setScrollPosition(_local3 - 3, _local2);
} else if (Key.isDown(39)) {
_local1.setScrollPosition(_local3 + 3, _local2);
}
}
if (_local1.vScrollBar_mc.maxPos > _local1.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
_local1.setScrollPosition(_local3, _local2 - 3);
} else if (Key.isDown(40)) {
_local1.setScrollPosition(_local3, _local2 + 3);
} else if (Key.isDown(34)) {
_local1.setScrollPosition(_local3, _local2 + _local1.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
_local1.setScrollPosition(_local3, _local2 - _local1.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 96 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 104 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 101 MovieClip "loadContent" in Symbol 104 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 108 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 117 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 120 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 123 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 125 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 128 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(disabled_mc, "foregroundDisabled");
Symbol 131 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(dot_mc, "radioDot");
Symbol 132 MovieClip [frb_states] Frame 1
stop();
Symbol 132 MovieClip [frb_states] Frame 2
stop();
Symbol 132 MovieClip [frb_states] Frame 3
stop();
Symbol 132 MovieClip [frb_states] Frame 4
stop();
Symbol 132 MovieClip [frb_states] Frame 5
stop();
Symbol 133 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 136 MovieClip [FRadioButtonSymbol] Frame 1
#initclip 3
function FRadioButtonClass() {
this.init();
}
function FRadioButtonGroupClass() {
this.radioInstances = new Array();
}
FRadioButtonClass.prototype = new FUIComponentClass();
FRadioButtonGroupClass.prototype = new FUIComponentClass();
Object.registerClass("FRadioButtonSymbol", FRadioButtonClass);
FRadioButtonClass.prototype.init = function () {
var _local1 = this;
if (_local1.initialState == undefined) {
_local1.selected = false;
} else {
_local1.selected = _local1.initialState;
}
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.boundingBox_mc._width = 0;
_local1.boundingBox_mc._height = 0;
_local1.attachMovie("frb_hitArea", "frb_hitArea_mc", 1);
_local1.attachMovie("frb_states", "frb_states_mc", 2);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
_local1.setChangeHandler(_local1.changeHandler);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
if (_local1.initialState == undefined) {
_local1.setValue(false);
} else {
_local1.setValue(_local1.initialState);
}
if (_local1.data == "") {
_local1.data = undefined;
} else {
_local1.setData(_local1.data);
}
_local1.addToRadioGroup();
_local1.ROLE_SYSTEM_RADIOBUTTON = 45;
_local1.STATE_SYSTEM_SELECTED = 16;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FRadioButtonClass.prototype.setHitArea = function (w, h) {
var _local2 = this;
var _local1 = _local2.frb_hitArea_mc;
_local2.hitArea = _local1;
if (_local2.frb_states_mc._width > w) {
_local1._width = _local2.frb_states_mc._width;
} else {
_local1._width = w;
}
_local1._visible = false;
if (arguments.length > 1) {
_local1._height = h;
}
};
FRadioButtonClass.prototype.txtFormat = function (pos) {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = pos)) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 0)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 0)) : undefined);
if (_local1.flabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.flabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.setEnabled(_local1.enable);
};
FRadioButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.setLabelPlacement(_local1.labelPlacement);
if (_local1.frb_states_mc._height < _local1.flabel_mc.labelField._height) {
super.setSize(w, _local1.flabel_mc.labelField._height);
}
_local1.setHitArea(_local1.width, _local1.height);
_local1.setLabelPlacement(_local1.labelPlacement);
};
FRadioButtonClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.txtFormat(pos);
var halfLabelH = (_local1.fLabel_mc._height / 2);
var halfFrameH = (_local1.frb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var radioWidth = _local1.frb_states_mc._width;
var _local2 = _local1.frb_states_mc;
var label = _local1.fLabel_mc;
var _local3 = _local1.width - _local2._width;
if (_local2._width > _local1.width) {
_local3 = 0;
} else {
_local3 = _local1.width - _local2._width;
}
_local1.fLabel_mc.setSize(_local3);
if ((pos == "right") || (pos == undefined)) {
_local1.labelPlacement = "right";
_local1.frb_states_mc._x = 0;
_local1.fLabel_mc._x = radioWidth;
_local1.txtFormat("left");
} else if (pos == "left") {
_local1.labelPlacement = "left";
_local1.fLabel_mc._x = 0;
_local1.frb_states_mc._x = _local1.width - radioWidth;
_local1.txtFormat("right");
}
_local1.fLabel_mc._y = vertCenter;
_local1.frb_hitArea_mc._y = vertCenter;
_local1.setLabel(_local1.getLabel());
};
FRadioButtonClass.prototype.setData = function (dataValue) {
this.data = dataValue;
};
FRadioButtonClass.prototype.getData = function () {
return(this.data);
};
FRadioButtonClass.prototype.getState = function () {
return(this.selected);
};
FRadioButtonClass.prototype.getSize = function () {
return(this.width);
};
FRadioButtonClass.prototype.getGroupName = function () {
return(this.groupName);
};
FRadioButtonClass.prototype.setGroupName = function (groupName) {
var _local1 = this;
var _local2 = 0;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
if (_local1._parent[_local1.groupName].radioInstances[_local2] == _local1) {
delete _local1._parent[_local1.groupName].radioInstances[_local2];
}
_local2++;
}
_local1.groupName = groupName;
_local1.addToRadioGroup();
};
FRadioButtonClass.prototype.addToRadioGroup = function () {
var _local1 = this;
if (_local1._parent[_local1.groupName] == undefined) {
_local1._parent[_local1.groupName] = new FRadioButtonGroupClass();
}
_local1._parent[_local1.groupName].addRadioInstance(_local1);
};
FRadioButtonClass.prototype.setValue = function (selected) {
var _local1 = this;
var _local2 = selected;
if (_local2 || (_local2 == undefined)) {
_local1.setState(true);
_local1.focusRect.removeMovieClip();
_local1.executeCallBack();
} else if (_local2 == false) {
_local1.setState(false);
}
};
FRadioButtonClass.prototype.setTabState = function (selected) {
var _local1 = this;
Selection.setFocus(_local1);
_local1.setState(selected);
_local1.drawFocusRect();
_local1.executeCallBack();
};
FRadioButtonClass.prototype.setState = function (selected) {
var _local1 = this;
var _local2 = selected;
if (_local2 || (_local2 == undefined)) {
_local1.tabEnabled = true;
for (var _local3 in _local1._parent) {
if ((_local1 != _local1._parent[_local3]) && (_local1._parent[_local3].groupName == _local1.groupName)) {
_local1._parent[_local3].setState(false);
_local1._parent[_local3].tabEnabled = false;
}
}
}
if (_local1.enable) {
_local1.flabel_mc.setEnabled(true);
if (_local2 || (_local2 == undefined)) {
_local1.frb_states_mc.gotoAndStop("selectedEnabled");
_local1.enabled = false;
_local1.selected = true;
_local1.tabEnabled = true;
_local1.tabFocused = true;
} else {
_local1.frb_states_mc.gotoAndStop("unselectedEnabled");
_local1.enabled = true;
_local1.selected = false;
_local1.tabEnabled = false;
var enabTrue = _local1._parent[_local1.groupName].getEnabled();
var noneSelect = (_local1._parent[_local1.groupName].getValue() == undefined);
if (enabTrue && (noneSelect)) {
_local1._parent[_local1.groupName].radioInstances[0].tabEnabled = true;
}
}
} else {
_local1.flabel_mc.setEnabled(false);
if (_local2 || (_local2 == undefined)) {
_local1.frb_states_mc.gotoAndStop("selectedDisabled");
_local1.enabled = false;
_local1.selected = true;
_local1.tabEnabled = false;
} else {
_local1.frb_states_mc.gotoAndStop("unselectedDisabled");
_local1.enabled = false;
_local1.selected = false;
_local1.tabEnabled = false;
}
}
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FRadioButtonClass.prototype.getValue = function () {
var _local1 = this;
if (_local1.selected) {
if ((_local1.data == "") || (_local1.data == undefined)) {
return(_local1.getLabel());
}
return(_local1.data);
}
return(undefined);
};
FRadioButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if ((enable == true) || (enable == undefined)) {
_local1.enable = true;
super.setEnabled(true);
} else {
_local1.enable = false;
super.setEnabled(false);
}
_local1.setState(_local1.selected);
var cgn = (_local1._parent[_local1.groupName].getEnabled() == undefined);
var _local3 = _local1._parent[_local1.groupName].radioInstances[0].getEnabled() == false;
if (cgn && (_local3)) {
var _local2 = 0;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
if (_local1._parent[_local1.groupName].radioInstances[_local2].getEnabled() == true) {
_local1._parent[_local1.groupName].radioInstances[_local2].tabEnabled = true;
return;
}
_local2++;
}
}
};
FRadioButtonClass.prototype.getEnabled = function () {
return(this.enable);
};
FRadioButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FRadioButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.getLabel());
};
FRadioButtonClass.prototype.onPress = function () {
this.pressFocus();
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.onRelease = function () {
var _local1 = this;
_local1.frb_states_mc.gotoAndStop("unselectedDisabled");
_local1.setValue(!_local1.selected);
};
FRadioButtonClass.prototype.onReleaseOutside = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOut = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOver = function () {
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1._parent[_local1.groupName]);
};
FRadioButtonGroupClass.prototype.addRadioInstance = function (instance) {
this.radioInstances.push(instance);
this.radioInstances[0].tabEnabled = true;
};
FRadioButtonGroupClass.prototype.setEnabled = function (enableFlag) {
var _local2 = this;
var _local3 = enableFlag;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setEnabled(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getEnabled = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].getEnabled() != _local2.radioInstances[0].getEnabled()) {
return(undefined);
}
_local1++;
}
return(_local2.radioInstances[0].getEnabled());
return(undefined);
};
FRadioButtonGroupClass.prototype.setChangeHandler = function (changeHandler, obj) {
var _local2 = this;
var _local3 = changeHandler;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setChangeHandler(_local3, obj);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getValue = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected == true) {
if ((_local2.radioInstances[_local1].data == "") || (_local2.radioInstances[_local1].data == undefined)) {
return(_local2.radioInstances[_local1].getLabel());
}
return(_local2.radioInstances[_local1].data);
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.getData = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected) {
return(_local2.radioInstances[_local1].getData());
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.getInstance = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected == true) {
return(_local1);
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.setValue = function (dataValue) {
var _local1 = this;
var _local3 = dataValue;
var _local2 = 0;
while (_local2 < _local1.radioInstances.length) {
if (_local1.radioInstances[_local2].data == _local3) {
_local1.radioInstances[_local2].setValue(true);
return;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.radioInstances.length) {
if (_local1.radioInstances[_local2].getLabel() == _local3) {
_local1.radioInstances[_local2].setValue(true);
}
_local2++;
}
};
FRadioButtonGroupClass.prototype.setSize = function (w) {
var _local2 = this;
var _local3 = w;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setSize(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getSize = function () {
var _local2 = this;
var _local3 = 0;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].width >= _local3) {
_local3 = _local2.radioInstances[_local1].width;
}
_local1++;
}
return(_local3);
};
FRadioButtonGroupClass.prototype.setGroupName = function (groupName) {
var _local2 = this;
var _local3 = groupName;
_local2.oldGroupName = _local2.radioInstances[0].groupName;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].groupName = _local3;
_local2.radioInstances[_local1].addToRadioGroup();
_local1++;
}
delete _local2._parent[_local2.oldGroupName];
};
FRadioButtonGroupClass.prototype.getGroupName = function () {
return(this.radioInstances[0].groupName);
};
FRadioButtonGroupClass.prototype.setLabelPlacement = function (pos) {
var _local2 = this;
var _local3 = pos;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setLabelPlacement(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local2 = this;
var _local3 = value;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setStyleProperty(propName, _local3, isGlobal);
_local1++;
}
};
FRadioButtonGroupClass.prototype.addListener = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].addListener();
_local1++;
}
};
FRadioButtonGroupClass.prototype.applyChanges = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].applyChanges();
_local1++;
}
};
FRadioButtonGroupClass.prototype.removeListener = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].removeListener(_local3);
_local1++;
}
};
FRadioButtonClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1._width + 6, _local1._height - 3);
};
FRadioButtonClass.prototype.myOnKillFocus = function () {
var _local1 = this;
Key.removeListener(_local1.keyListener);
_local1.focused = false;
_local1.focusRect.removeMovieClip();
_local1._parent[_local1.groupName].foobar = 0;
};
FRadioButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1._parent[_local1.groupName].getValue() == undefined)) {
if (_local1._parent[_local1.groupName].radioInstances[0] == _local1) {
_local1.setTabState(true);
}
}
if ((Key.getCode() == 40) && (_local1.pressOnce == undefined)) {
_local1.foobar = _local1._parent[_local1.groupName].getInstance();
var _local2 = _local1.foobar;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
var _local3 = _local2 + 1;
if (_local1._parent[_local1.groupName].radioInstances[_local3].getEnabled()) {
_local1._parent[_local1.groupName].radioInstances[_local3].setTabState(true);
return;
}
_local2++;
}
}
if ((Key.getCode() == 38) && (_local1.pressOnce == undefined)) {
_local1.foobar = _local1._parent[_local1.groupName].getInstance();
var _local2 = _local1.foobar;
while (_local2 >= 0) {
var _local3 = _local2 - 1;
if (_local1._parent[_local1.groupName].radioInstances[_local3].getEnabled()) {
_local1._parent[_local1.groupName].radioInstances[_local3].setTabState(true);
return;
}
_local2--;
}
}
};
FRadioButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_RADIOBUTTON);
};
FRadioButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FRadioButtonClass.prototype.get_accState = function (childId) {
if (this.master.getState()) {
return(this.master.STATE_SYSTEM_SELECTED);
}
return(0);
};
FRadioButtonClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getState()) {
return("UnCheck");
}
return("Check");
};
FRadioButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 152 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 167 MovieClip [theTreats] Frame 1
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 6
stop();
Symbol 208 MovieClip [kittenLinkage] Frame 1
stop();
Symbol 208 MovieClip [kittenLinkage] Frame 6
stop();
Symbol 247 MovieClip Frame 6
stop();
Symbol 248 MovieClip [pupLinkage] Frame 1
stop();
Symbol 248 MovieClip [pupLinkage] Frame 6
stop();
Symbol 253 MovieClip [mcLoadingSoundtrack] Frame 1
var aTFields = [];
aTFields.push([soundfield, _root.cLoadSoundText]);
var i = 0;
while (i < aTFields.length) {
aTFields[i][0].embedFonts = _level0.game_bEmbedFonts;
aTFields[i][0].html = true;
aTFields[i][0].selectable = false;
aTFields[i][0].htmlText = aTFields[i][1];
i++;
}
this.onEnterFrame = function () {
_root.soundTrackProgress();
};
stop();
Symbol 257 MovieClip [npspecial] Frame 1
this.counter = 1000000 /* 0x0F4240 */;
this.ftext.text = "NP +" + this.counter;
this.subtract = 0;
_root.playSound(7);
play();
Symbol 257 MovieClip [npspecial] Frame 2
play();
Symbol 257 MovieClip [npspecial] Frame 16
_root.playSound(10);
play();
Symbol 257 MovieClip [npspecial] Frame 17
this.ftext.text = "NP +" + this.counter;
this.counter = this.counter - this.subtract;
this.subtract = this.subtract + 100;
_global.Game.rotateHasees(-1);
play();
Symbol 257 MovieClip [npspecial] Frame 18
if (this.counter <= 0) {
this.ftext.text = "NP 0!!!";
_global.Game.rotateHasees(0);
play();
} else {
gotoAndPlay (17);
}
Symbol 257 MovieClip [npspecial] Frame 35
_global.Game.aHB[2] = _global.Game.GS_GAME_;
this.removeMovieClip();
Symbol 259 MovieClip [liveinclude] Frame 1
this.loadBios = function () {
var _local1 = this;
if (_level0.FG_GAME_BASE != undefined) {
_local1.url = ((_level0.FG_GAME_BASE + _local1.bios_url) + "/bios.swf?r=") + random(99999);
} else {
_local1.url = ((_local1.bios_offline_domain + "/") + _local1.bios_url) + "/bios.swf";
}
if (_local1.debug == 1) {
}
System.security.allowDomain(String(_local1.allow_domain));
_local1.bios.loadMovie(_local1.url);
};
this._visible = 0;
this.stop();
this._parent.stop();
this.loadBios();
Symbol 280 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 15
gotoAndStop (1);
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 15
gotoAndStop (1);
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 55
gotoAndStop (1);
Symbol 327 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 5
_root.playsound(8);
Symbol 339 MovieClip Frame 33
gotoAndStop (1);
Symbol 346 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();