Frame 1
onEnterFrame = function () {
nRealLoad = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (nRealLoad > (nCurrLoad + nSpeed)) {
nCurrLoad = nCurrLoad + nSpeed;
} else {
nCurrLoad = nRealLoad;
}
this.mcLoading.gotoAndStop(nCurrLoad);
if ((nCurrLoad == 100) && (_root.getBytesTotal() > 100)) {
delete this.onEnterFrame;
_root.gotoAndStop("Game");
}
};
stop();
Frame 20
new Trivia(this);
Symbol 119 MovieClip [__Packages.Trivia] Frame 0
class Trivia
{
var mcRef, nHighScore, nState, aQuestionList, nTimeRemaining, nLastTimer, bTimerActive, nTimeQuestion, nTimerStateTimer, nLastStateTimer, nCurrentQuestion, nMultipler, nScore, nTimeCountdown, aQuestions, nGoodAnswers, nCreditsOffset;
function Trivia (_mcRef) {
mcRef = _mcRef;
mcRef.onEnterFrame = library.Delegate.create(this, update);
setQuestionList();
nHighScore = 0;
var _local2 = SharedObject.getLocal("BahamutTrivia");
if (!isNaN(_local2.data.score)) {
nHighScore = _local2.data.score;
}
new library.SoundManager(mcRef.mcSound);
if (_local2.data.sound == false) {
changeSound();
}
setState(nSTATE_TITLE);
}
function update() {
library.SoundManager.__get__Instance().enterFrame();
if (library.SoundManager.__get__Instance().sCurrentSong == "") {
library.SoundManager.__get__Instance().playSong("theme", 9999);
}
switch (nState) {
case nSTATE_LOADING :
var _local4 = 1;
var _local3 = true;
var _local2;
_local2 = 0;
while (_local2 < aQuestionList.length) {
mcRef.mcHud.mcImage.mcImage["mcImage" + (_local2 + 1)]._visible = false;
_local3 = _local3 & (mcRef.mcHud.mcImage.mcImage["mcImage" + (_local2 + 1)].getBytesLoaded() == mcRef.mcHud.mcImage.mcImage["mcImage" + (_local2 + 1)].getBytesTotal());
if (isNaN(mcRef.mcHud.mcImage.mcImage["mcImage" + (_local2 + 1)].getBytesTotal()) || (mcRef.mcHud.mcImage.mcImage["mcImage" + (_local2 + 1)].getBytesTotal() < 1)) {
_local3 = false;
} else {
_local4++;
}
_local2++;
}
if (_local3) {
setState(nSTATE_LOAD_END);
} else {
mcRef.mcHud.mcLoading.gotoAndStop(_local4);
}
break;
case nSTATE_LOAD_END :
_local2 = 0;
while (_local2 < aQuestionList.length) {
mcRef.mcHud.mcImage.mcImage["mcImage" + (_local2 + 1)]._visible = false;
_local2++;
}
setState(nSTATE_COUNTDOWN);
break;
case nSTATE_GAME :
var _local5 = getTimer();
nTimeRemaining = Math.max(0, nTimeRemaining - (_local5 - nLastTimer));
if (bTimerActive) {
nTimeQuestion = Math.max(nTimeQuestion - (_local5 - nLastTimer), nMINIMUM_Q_SCORE);
}
nLastTimer = _local5;
if (!bTimerActive) {
nTimerStateTimer = nTimerStateTimer - (_local5 - nLastStateTimer);
if (nTimerStateTimer <= 0) {
if (nCurrentQuestion < nTOTAL_QUESTIONS) {
nextQuestion();
} else {
setState(nSTATE_RESULT);
}
}
nLastStateTimer = _local5;
}
mcRef.mcHud.txtQuestion.text = "Q " + Math.min(10, nCurrentQuestion + 1);
mcRef.mcHud.txtTimer.text = (Math.floor(nTimeRemaining / 1000) + ".") + (Math.floor(nTimeRemaining / 10) % 100);
mcRef.mcHud.txtValue.text = (library.Tools.formatNumber(nTimeQuestion) + " X") + nMultipler;
mcRef.mcHud.txtScore.text = library.Tools.formatNumber(nScore);
if (nTimeRemaining <= 0) {
timeOver();
}
break;
case nSTATE_COUNTDOWN :
_local5 = getTimer();
nTimeCountdown = Math.max(0, nTimeCountdown - (_local5 - nLastTimer));
nLastTimer = _local5;
if (nTimeCountdown <= 0) {
setState(nSTATE_GAME);
}
break;
case nSTATE_TIMEOUT :
_local5 = getTimer();
nTimeCountdown = Math.max(0, nTimeCountdown - (_local5 - nLastTimer));
nLastTimer = _local5;
if (nTimeCountdown > 0) {
break;
}
setState(nSTATE_RESULT);
}
}
function setState(_nState) {
nState = _nState;
var _local2;
switch (nState) {
case nSTATE_TITLE :
library.SoundManager.__get__Instance().playSong("theme", 9999);
aQuestionList = new Array();
mcRef.mcHud.mcLoading._visible = false;
mcRef.mcHud.mcGetReady._visible = false;
mcRef.mcHud.mcTimeOut._visible = false;
mcRef.mcPopupTitle._visible = true;
mcRef.mcPopupCredits._visible = false;
mcRef.mcPopupResults._visible = false;
setButton(mcRef.mcPopupTitle.mcStart, "Start", library.Delegate.create(this, setState, nSTATE_LOADING));
setButton(mcRef.mcPopupTitle.mcCredits, "Credits", library.Delegate.create(this, setState, nSTATE_CREDITS));
if (library.SoundManager.__get__Instance().nMaxVolume > 0) {
setButton(mcRef.mcPopupTitle.mcSound, "Sound", library.Delegate.create(this, changeSound));
} else {
setButton(mcRef.mcPopupTitle.mcSound, "No snd", library.Delegate.create(this, changeSound));
}
mcRef.mcHud.txtTimer.text = "0.00";
mcRef.mcHud.txtQuestion.text = "Q";
mcRef.mcHud.txtValue.text = "000 X 1";
mcRef.mcHud.txtScore.text = "000";
mcRef.mcPopupTitle.txHightScore.text = library.Tools.formatNumber(nHighScore);
var _local6 = 0;
_local2 = 0;
while (_local2 < nTOTAL_ANSWERS) {
mcRef.mcHud["mcAnswer" + (_local2 + 1)]._visible = false;
_local2++;
}
_local2 = 0;
while (_local2 < aQuestions.length) {
_local6 = _local6 + aQuestions[_local2].aImgURLs.length;
_local6 = _local6 + aQuestions[_local2].aImgLinkages.length;
_local2++;
}
mcRef.mcPopupTitle.txtImages.text = library.Tools.formatNumber(_local6);
mcRef.mcPopupTitle.txtArtists.text = library.Tools.formatNumber(aQuestions.length);
setButton(mcRef.mcPopupTitle.mcLink, "", library.Delegate.create(this, getURL, "http://www.furaffinity.net/user/bahamutdragons/", "_blank"));
break;
case nSTATE_LOADING :
mcRef.mcHud.mcLoading._visible = true;
mcRef.mcPopupCredits_visible = false;
mcRef.mcPopupTitle._visible = false;
aQuestionList = new Array();
var _local3;
_local2 = 0;
while (_local2 < nTOTAL_QUESTIONS) {
do {
_local3 = Math.floor(Math.random() * aQuestions.length);
} while (library.Tools.inArray(_local3, aQuestionList) >= 0);
aQuestionList.push(_local3);
_local2++;
}
_local2 = 0;
while (_local2 < nTOTAL_ANSWERS) {
mcRef.mcHud["mcAnswer" + (_local2 + 1)]._visible = false;
_local2++;
}
nMultipler = 1;
nScore = 0;
nGoodAnswers = 0;
nCurrentQuestion = 0;
nTimeRemaining = nCOUNTDOWN;
loadImages();
break;
case nSTATE_COUNTDOWN :
mcRef.mcHud.mcLoading._visible = false;
mcRef.mcHud.mcGetReady._visible = true;
mcRef.mcHud.mcGetReady.gotoAndPlay(1);
nLastTimer = getTimer();
nTimeCountdown = 3700;
library.SoundManager.__get__Instance().playSong("countdown", 1);
break;
case nSTATE_GAME :
nTimeRemaining = nCOUNTDOWN;
mcRef.mcHud.mcGetReady._visible = false;
mcRef.mcHud.mcLoading._visible = false;
_local2 = 0;
while (_local2 < nTOTAL_ANSWERS) {
mcRef.mcHud["mcAnswer" + (_local2 + 1)]._visible = true;
_local2++;
}
_local2 = 0;
while (_local2 < aQuestionList.length) {
mcRef.mcHud.mcImage.mcImage["mcImage" + (_local2 + 1)]._visible = false;
_local2++;
}
nextQuestion();
break;
case nSTATE_TIMEOUT :
mcRef.mcPopupCredits_visible = false;
mcRef.mcPopupTitle._visible = false;
mcRef.mcHud.mcTimeOut._visible = true;
nLastTimer = getTimer();
nTimeCountdown = 2200;
var _local4;
_local4 = 0;
while (_local4 < nTOTAL_ANSWERS) {
mcRef.mcHud["mcAnswer" + (_local4 + 1)]._visible = false;
_local4++;
}
break;
case nSTATE_RESULT :
mcRef.mcHud.mcTimeOut._visible = false;
library.SoundManager.__get__Instance().playSong("endgame", 1);
unloadImages();
mcRef.mcPopupCredits_visible = false;
mcRef.mcPopupTitle._visible = false;
mcRef.mcPopupResults._visible = true;
mcRef.mcPopupResults.txtScore.text = "Score:";
mcRef.mcPopupResults.txtNScore.text = library.Tools.formatNumber(nScore);
mcRef.mcPopupResults.txtRemainingTime.text = "Remaining time:";
mcRef.mcPopupResults.txtNRemainingTime.text = Math.floor(nTimeRemaining / 10);
mcRef.mcPopupResults.txtAnswers.text = "Good answers:";
mcRef.mcPopupResults.txtNAnswers.text = library.Tools.formatNumber(nGoodAnswers);
mcRef.mcPopupResults.txtX.text = "X";
mcRef.mcPopupResults.txtFinalScore.text = "Final score:";
var _local7 = nScore + (Math.floor(nTimeRemaining / 10) * nGoodAnswers);
mcRef.mcPopupResults.txtNFinalScore.text = library.Tools.formatNumber(_local7);
nHighScore = Math.max(_local7, nHighScore);
var _local8 = SharedObject.getLocal("BahamutTrivia");
_local8.data.score = nHighScore;
_local8.flush();
setButton(mcRef.mcPopupResults.mcClose, "Start", library.Delegate.create(this, setState, nSTATE_CREDITS));
var _local5;
_local5 = 0;
while (_local5 < nTOTAL_ANSWERS) {
mcRef.mcHud["mcAnswer" + (_local5 + 1)]._visible = false;
_local5++;
}
break;
case nSTATE_CREDITS :
nCreditsOffset = 0;
mcRef.mcPopupCredits._visible = true;
mcRef.mcPopupTitle._visible = false;
mcRef.mcPopupResults._visible = false;
setButton(mcRef.mcPopupCredits.mcClose, "Close", library.Delegate.create(this, setState, nSTATE_TITLE));
setButton(mcRef.mcPopupCredits.mcPrevious, "Prev", library.Delegate.create(this, creditsOffset, -1));
setButton(mcRef.mcPopupCredits.mcNext, "Next", library.Delegate.create(this, creditsOffset, 1));
if (aQuestionList.length > 0) {
mcRef.mcPopupCredits.mcPrevious._visible = false;
mcRef.mcPopupCredits.mcNext._visible = false;
_local2 = 0;
while (_local2 < aQuestionList.length) {
setButton(mcRef.mcPopupCredits["mcCredit" + (_local2 + 1)], aQuestions[aQuestionList[_local2]].sArtist, library.Delegate.create(this, getURL, aQuestions[aQuestionList[_local2]].sURL, "_blank"));
mcRef.mcPopupCredits["mcCredit" + (_local2 + 1)]._visible = true;
_local2++;
}
} else {
mcRef.mcPopupCredits.mcPrevious._visible = true;
mcRef.mcPopupCredits.mcNext._visible = true;
_local2 = 0;
for(;;){
if (_local2 >= aQuestions.length) {
break;
}
setButton(mcRef.mcPopupCredits["mcCredit" + (_local2 + 1)], aQuestions[_local2].sArtist, library.Delegate.create(this, getURL, aQuestions[_local2].sURL, "_blank"));
mcRef.mcPopupCredits["mcCredit" + (_local2 + 1)]._visible = true;
_local2++;
};
}
}
}
function changeSound() {
var _local2 = SharedObject.getLocal("BahamutTrivia");
if (library.SoundManager.__get__Instance().nMaxVolume > 0) {
library.SoundManager.__get__Instance().setVolume(0);
_local2.data.sound = false;
} else {
library.SoundManager.__get__Instance().setVolume(100);
_local2.data.sound = true;
}
_local2.flush();
if (library.SoundManager.__get__Instance().nMaxVolume > 0) {
setButton(mcRef.mcPopupTitle.mcSound, "Sound", library.Delegate.create(this, changeSound));
} else {
setButton(mcRef.mcPopupTitle.mcSound, "No snd", library.Delegate.create(this, changeSound));
}
}
function creditsOffset(_nCreditsOffset) {
nCreditsOffset = nCreditsOffset + _nCreditsOffset;
if (nCreditsOffset < 0) {
nCreditsOffset = Math.floor(aQuestions.length / 10);
} else if ((nCreditsOffset * 10) >= aQuestions.length) {
nCreditsOffset = 0;
}
var _local2;
_local2 = nCreditsOffset * 10;
while (_local2 < ((nCreditsOffset * 10) + 10)) {
if (_local2 < aQuestions.length) {
mcRef.mcPopupCredits["mcCredit" + ((_local2 - (nCreditsOffset * 10)) + 1)]._visible = true;
setButton(mcRef.mcPopupCredits["mcCredit" + ((_local2 - (nCreditsOffset * 10)) + 1)], aQuestions[_local2].sArtist, library.Delegate.create(this, getURL, aQuestions[_local2].sURL, "_blank"));
} else {
mcRef.mcPopupCredits["mcCredit" + ((_local2 - (nCreditsOffset * 10)) + 1)]._visible = false;
}
_local2++;
}
}
function loadImages() {
var _local2;
var _local3;
_local2 = 0;
while (_local2 < aQuestionList.length) {
_local3 = Math.floor(Math.random() * (aQuestions[aQuestionList[_local2]].aImgURLs.length + aQuestions[aQuestionList[_local2]].aImgLinkages.length));
if (_local3 < aQuestions[aQuestionList[_local2]].aImgURLs.length) {
mcRef.mcHud.mcImage.mcImage.createEmptyMovieClip("mcImage" + (_local2 + 1), mcRef.mcHud.mcImage.mcImage.getNextHighestDepth());
mcRef.mcHud.mcImage.mcImage["mcImage" + (_local2 + 1)].loadMovie(aQuestions[aQuestionList[_local2]].aImgURLs[_local3]);
} else {
mcRef.mcHud.mcImage.mcImage.attachMovie("mcInternalImage", "mcImage" + (_local2 + 1), mcRef.mcHud.mcImage.mcImage.getNextHighestDepth());
mcRef.mcHud.mcImage.mcImage["mcImage" + (_local2 + 1)].gotoAndStop(aQuestions[aQuestionList[_local2]].aImgLinkages[_local3 - aQuestions[aQuestionList[_local2]].aImgURLs.length]);
}
_local2++;
}
}
function unloadImages() {
var _local2;
var _local3 = Math.floor(Math.random() * (aQuestions[aQuestionList[nCurrentQuestion]].aImgURLs.length + aQuestions[aQuestionList[nCurrentQuestion]].aImgLinkages.length));
var _local4;
_local2 = 0;
while (_local2 < aQuestionList.length) {
mcRef.mcHud.mcImage.mcImage["mcImage" + (_local2 + 1)].removeMovieClip();
_local2++;
}
}
function nextQuestion() {
bTimerActive = true;
nLastTimer = getTimer();
nTimeQuestion = nQUESTION_COUNTDOWN + nMINIMUM_Q_SCORE;
var _local2;
var _local4;
var _local3 = new Array();
_local3.push(aQuestionList[nCurrentQuestion]);
do {
do {
_local4 = Math.floor(Math.random() * aQuestions.length);
} while (library.Tools.inArray(_local4, _local3) >= 0);
_local3.push(_local4);
} while (_local3.length < nTOTAL_ANSWERS);
var _local6;
var _local5 = new Array();
do {
_local4 = Math.floor(Math.random() * _local3.length);
if (_local3[_local4] == aQuestionList[nCurrentQuestion]) {
_local6 = _local5.length;
}
_local5.push(_local3.splice(_local4, 1)[0]);
} while (_local3.length > 0);
_local2 = 0;
while (_local2 < _local5.length) {
setButton(mcRef.mcHud["mcAnswer" + (_local2 + 1)], aQuestions[_local5[_local2]].sArtist, library.Delegate.create(this, answer, _local2, _local6));
_local2++;
}
_local2 = 0;
while (_local2 < aQuestionList.length) {
mcRef.mcHud.mcImage.mcImage["mcImage" + (_local2 + 1)]._visible = false;
_local2++;
}
mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._visible = true;
var _local7;
_local7 = Math.min(1, Math.max(nIMAGE_WIDTH / mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._width, nIMAGE_HEIGHT / mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._height));
if ((mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._width * _local7) > nIMAGE_MAXWIDTH) {
_local7 = nIMAGE_MAXWIDTH / mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._width;
}
if ((mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._height * _local7) > nIMAGE_MAX_HEIGHT) {
_local7 = nIMAGE_MAX_HEIGHT / mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._height;
}
mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._xscale = _local7 * 100;
mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._yscale = _local7 * 100;
mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._x = -((mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._width - nIMAGE_WIDTH) / 2);
mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._y = -((mcRef.mcHud.mcImage.mcImage["mcImage" + (nCurrentQuestion + 1)]._height - nIMAGE_HEIGHT) / 2);
}
function setQuestion(_aImgURLs, _aImgLinkages, _sArtist, _sURL) {
var _local1 = new Object();
_local1.aImgURLs = _aImgURLs;
_local1.aImgLinkages = _aImgLinkages;
_local1.sArtist = _sArtist;
_local1.sURL = _sURL;
return(_local1);
}
function setButton(_mcButton, _sText, _fFunction) {
_mcButton.onRollOver = library.Delegate.create(this, setButtonState, _mcButton, _sText, "Over");
_mcButton.onRollOut = library.Delegate.create(this, setButtonState, _mcButton, _sText, "Idle");
_mcButton.onMouseUp = library.Delegate.create(this, setButtonState, _mcButton, _sText, "Idle");
_mcButton.onPress = _fFunction;
setButtonState(_mcButton, _sText, "Idle");
}
function clearButton(_mcButton) {
_mcButton.onRollOver = undefined;
_mcButton.onRollOut = undefined;
_mcButton.onMouseUp = undefined;
_mcButton.onPress = undefined;
}
function setButtonState(_mcButton, _sText, _sState) {
_mcButton.gotoAndStop(_sState);
_mcButton.txtQuestion.text = _sText;
}
function preloadImages() {
var _local2;
_local2 = 0;
while (_local2 < aQuestionList.length) {
(aQuestionList);// not popped
_local2++;
}
}
function answer(_nAnswer, _nGoodAnswer) {
clearButton(mcRef.mcHud.mcAnswer1);
clearButton(mcRef.mcHud.mcAnswer2);
clearButton(mcRef.mcHud.mcAnswer3);
clearButton(mcRef.mcHud.mcAnswer4);
clearButton(mcRef.mcHud.mcAnswer5);
clearButton(mcRef.mcHud.mcAnswer6);
if (_nAnswer == _nGoodAnswer) {
library.SoundManager.__get__Instance().playSFX("right");
nMultipler = Math.min(nMultipler + 1, nMAX_MULTIPLIER);
nScore = nScore + (nTimeQuestion * nMultipler);
nGoodAnswers++;
setButtonState(mcRef.mcHud["mcAnswer" + (_nGoodAnswer + 1)], mcRef.mcHud["mcAnswer" + (_nGoodAnswer + 1)].txtQuestion.text, "Good");
} else {
library.SoundManager.__get__Instance().playSFX("wrong");
nMultipler = 1;
setButtonState(mcRef.mcHud["mcAnswer" + (_nAnswer + 1)], mcRef.mcHud["mcAnswer" + (_nAnswer + 1)].txtQuestion.text, "Bad");
setButtonState(mcRef.mcHud["mcAnswer" + (_nGoodAnswer + 1)], mcRef.mcHud["mcAnswer" + (_nGoodAnswer + 1)].txtQuestion.text, "Good");
}
nCurrentQuestion++;
bTimerActive = false;
nLastStateTimer = getTimer();
nTimerStateTimer = nNNEXT_QUESTION_BAD;
}
function timeOver() {
bTimerActive = false;
setState(nSTATE_TIMEOUT);
}
function setQuestionList() {
var _local2;
var _local3;
aQuestions = new Array();
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/alpha0/1391132494.alpha0_moose_sp.jpg", "http://d.facdn.net/art/alpha0/1391033062.alpha0_wolf_deer_sp.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Alpha0", "http://www.furaffinity.net/user/alpha0/"));
_local2 = new Array("http://d.facdn.net/art/antidev/1354572142.antidev_postable_sabbath.jpg", "http://d.facdn.net/art/antidev/1381471978.antidev_chipthewolf2.jpg");
aQuestions.push(setQuestion(_local2, _local3, "anti_dev", "http://www.furaffinity.net/user/antidev/"));
_local2 = new Array("http://d.facdn.net/art/argonvile/1395518698.argonvile_drekozar-horse-frot-commish.jpg", "http://d.facdn.net/art/argonvile/1392383523.argonvile_teriath-naga-vore.jpg");
aQuestions.push(setQuestion(_local2, _local3, "argon_vile", "http://www.furaffinity.net/user/argonvile/"));
_local2 = new Array("http://d.facdn.net/art/arjuna/1383619611.arjuna_vulture.jpg", "http://d.facdn.net/art/arjuna/1322424171.arjuna_ohhai.jpg", "http://d.facdn.net/art/arjuna/1219652443.arjuna_motel6.jpg");
aQuestions.push(setQuestion(_local2, _local3, "arjuna", "http://www.furaffinity.net/user/arjuna/"));
_local2 = new Array("http://d.facdn.net/art/beay/1239130833.beay_ba_escort.jpg", "http://d.facdn.net/art/beay/1397342052.beay_com_secretkitsune_cock.jpg", "http://d.facdn.net/art/beay/1349728667.beay_121001_aidenanubis.png");
aQuestions.push(setQuestion(_local2, _local3, "BeAy", "http://www.furaffinity.net/user/beay/"));
_local2 = new Array("http://d.facdn.net/art/blazingcheecks/1381790541.blazingcheecks_boborc2_copy.jpg", "http://d.facdn.net/art/blazingcheecks/1290781553.blazingcheecks_sanguinemelancholic.jpg", "http://d.facdn.net/art/blazingcheecks/1381098268.blazingcheecks_bowler_hat_gang_scene.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Blazingcheecks", "http://www.furaffinity.net/user/blazingcheecks"));
_local2 = new Array("http://d.facdn.net/art/brubearbrown/1384923800.brubearbrown_the_healer_and_the_warrior.png");
aQuestions.push(setQuestion(_local2, _local3, "BruBearBrown", "http://www.furaffinity.net/user/brubearbrown"));
_local2 = new Array("http://d.facdn.net/art/brunodonk/1396832364.brunodonk_meatyboar.jpg", "http://d.facdn.net/art/brunodonk/1398227339.brunodonk_hippoandcrocfull.jpg");
aQuestions.push(setQuestion(_local2, _local3, "BrukoDonk", "http://www.furaffinity.net/user/brunodonk"));
_local2 = new Array("http://d.facdn.net/art/caesarcub/1393806616.caesarcub_redneck_grandpa.png", "http://d.facdn.net/art/caesarcub/1381927520.caesarcub_orctoberfest-2x.png");
aQuestions.push(setQuestion(_local2, _local3, "Caesarcub", "http://www.furaffinity.net/user/caesarcub/"));
_local2 = new Array("http://d.facdn.net/art/celestial/1299044664.celestial_cel_11_lt-tiger.jpg", "http://d.facdn.net/art/celestial/1389274067.celestial_cel_14_haircut.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Celestial", "http://www.furaffinity.net/user/celestial/"));
_local3 = new Array("cobalt1", "cobalt2");
_local2 = new Array("http://d.facdn.net/art/cobalt/1392492112.cobalt_cobalt_cupid_hi.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Cobalt", "http://www.furaffinity.net/user/cobalt/"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/cth/1353080325.cth_orona_b.jpg", "http://d.facdn.net/art/cth/1364234836.cth_lutra.jpg");
aQuestions.push(setQuestion(_local2, _local3, "cth", "http://www.furaffinity.net/user/cth/"));
_local2 = new Array("http://d.facdn.net/art/dbruin/1365190263.dbruin_abumpinthewoods.jpg", "http://d.facdn.net/art/dbruin/1377457292.dbruin_alonetime.jpg", "http://d.facdn.net/art/dbruin/1377298551.dbruin_stikcysweetnesssm.jpg");
aQuestions.push(setQuestion(_local2, _local3, "dbruin", "http://www.furaffinity.net/user/dbruin/"));
_local2 = new Array("http://d.facdn.net/art/dredd/1362600491.dredd_evildaddycoloredsmall.jpg", "http://d.facdn.net/art/dredd/1357435141.dredd_daddywang.jpg", "http://d.facdn.net/art/dredd/1333920683.dredd_olderdragonguysm.jpg");
aQuestions.push(setQuestion(_local2, _local3, "dredd", "http://www.furaffinity.net/user/dredd/"));
_local2 = new Array("http://d.facdn.net/art/dreke/1383687120.dreke_dreke_chub.jpg", "http://d.facdn.net/art/dreke/1209114278.dreke_trex_rape.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Dreke", "http://www.furaffinity.net/user/dreke"));
_local3 = new Array("fabercastel1", "fabercastel2");
_local2 = new Array("http://d.facdn.net/art/fabercastel/1274075025.fabercastel_wathogs.png");
aQuestions.push(setQuestion(_local2, _local3, "fabercastel", "http://www.furaffinity.net/user/fabercastel"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/furfragged/1299477552.furfragged_climax_.jpg", "http://d.facdn.net/art/furfragged/1325497759.furfragged_public-fapper-game-concept.jpg", "http://d.facdn.net/art/furfragged/1384163630.furfragged_naked-beach-play2.jpg");
aQuestions.push(setQuestion(_local2, _local3, "furfragged", "http://www.furaffinity.net/user/furfragged"));
_local2 = new Array("http://d.facdn.net/art/futonmania/1389150310.futonmania_commissionkyu2fa.png", "http://d.facdn.net/art/futonmania/1387924291.futonmania_commissionsniperfoxx66xxfa.png", "http://d.facdn.net/art/futonmania/1379979752.futonmania_hapbirtricyfa.png");
aQuestions.push(setQuestion(_local2, _local3, "futonmania", "http://www.furaffinity.net/user/futonmania"));
_local2 = new Array("http://d.facdn.net/art/hammytoy/1293867761.hammytoy_orainkedcolouredcummy.jpg", "http://d.facdn.net/art/hammytoy/1340568299.hammytoy_darkfoxorgy115psd.jpg");
aQuestions.push(setQuestion(_local2, _local3, "HammyToy", "http://www.furaffinity.net/user/hammytoy"));
_local2 = new Array("http://d.facdn.net/art/ianrsoulfox/1390815956.ianrsoulfox_wez_and__bl.png", "http://d.facdn.net/art/ianrsoulfox/1371456632.ianrsoulfox_duez_cheshire.png", "http://d.facdn.net/art/ianrsoulfox/1372668244.ianrsoulfox_tsuko_kitteh_alt.png");
aQuestions.push(setQuestion(_local2, _local3, "Ian R Soulfox", "http://www.furaffinity.net/user/ianrsoulfox"));
_local2 = new Array("http://d.facdn.net/art/jerseydevil/1397016221.jerseydevil_pierce_againfa.jpg", "http://d.facdn.net/art/jerseydevil/1390550389.jerseydevil_goblin01.jpg", "http://d.facdn.net/art/jerseydevil/1385681603.jerseydevil_chua.jpg");
aQuestions.push(setQuestion(_local2, _local3, "JerseyDevil", "http://www.furaffinity.net/user/jerseydevil"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/k-9/1392803321.k-9_defeated_2014_800.jpg", "http://d.facdn.net/art/k-9/1383675480.k-9_wrestle_800.jpg");
aQuestions.push(setQuestion(_local2, _local3, "k-9", "http://www.furaffinity.net/user/k-9/"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/ket-ralus/1385261138.ket-ralus_tivo__rough_.png", "http://d.facdn.net/art/ket-ralus/1297500813.ket-ralus_k7_20110212c_braskoopa_for_temp_anon.png", "http://d.facdn.net/art/ket-ralus/1329474773.ket-ralus_vday2012final.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Ket-Ralus", "http://www.furaffinity.net/user/ket-ralus/"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/kingursa/1377019659.kingursa_tomik_commission_copy.png", "http://d.facdn.net/art/kingursa/1380582020.kingursa_bearsome.png", "http://d.facdn.net/art/kingursa/1387665630.kingursa_macro_bruno_copy.png");
aQuestions.push(setQuestion(_local2, _local3, "KingUrsa", "http://www.furaffinity.net/user/kingursa/"));
_local2 = new Array("http://d.facdn.net/art/kizu/1391928559.kizu_the_pink_tiger_shrunk.jpg", "http://d.facdn.net/art/kizu/1392135318.kizu_ych5_shrunk.jpg", "http://d.facdn.net/art/kizu/1394337480.kizu_ych6_shrunk.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Kizu", "http://www.furaffinity.net/user/kizu/"));
_local2 = new Array("http://d.facdn.net/art/kloogshicer/1395700334.kloogshicer_vollschwul.jpg", "http://d.facdn.net/art/kloogshicer/1380145346.kloogshicer_yobro.jpg", "http://d.facdn.net/art/kloogshicer/1397583325.kloogshicer_bert_swimming_teacher.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Kloogshicer", "http://www.furaffinity.net/user/kloogshicer/"));
_local2 = new Array("http://d.facdn.net/art/kolossal/1331359522.kolossal_dumbass_copy.jpg", "http://d.facdn.net/art/kolossal/1328429930.kolossal_three_copy.jpg", "http://d.facdn.net/art/kolossal/1330918059.kolossal_fryf_compat.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Kolossal", "http://www.furaffinity.net/user/kolossal/"));
_local3 = new Array("leafdog1", "leafdog2");
_local2 = new Array();
aQuestions.push(setQuestion(_local2, _local3, "leafdog", "http://www.furaffinity.net/user/leafdog/"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/narse/1343000533.narse_gremlins_pron.jpg", "http://d.facdn.net/art/narse/1338872780.narse_exotic_underground_5.png", "http://d.facdn.net/art/narse/1338138587.narse_exoticunderground_4_alt.png");
aQuestions.push(setQuestion(_local2, _local3, "Narse", "http://www.furaffinity.net/user/narse/"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/nek0gami/1381054467.nek0gami_gc_rex.jpg", "http://d.facdn.net/art/nek0gami/1346736650.nek0gami_gc_skirruleon.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Nek0gami", "http://www.furaffinity.net/user/nek0gami/"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/neokat/1389616616.neokat_kiska_christmas_final.png", "http://d.facdn.net/art/neokat/1387298229.neokat_lumines_pig_girl_topost.png", "http://d.facdn.net/art/neokat/1381254436.neokat_darlator_image_topost.jpg");
aQuestions.push(setQuestion(_local2, _local3, "neokat", "http://www.furaffinity.net/user/neokat/"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/nommz/1391402974.nommz_superbowl.png", "", "http://d.facdn.net/art/nommz/1388788918.nommz_tblpawsmooshrepost.png", "http://d.facdn.net/art/nommz/1391402974.nommz_superbowl.png");
aQuestions.push(setQuestion(_local2, _local3, "Nommz", "http://www.furaffinity.net/user/nommz/"));
_local2 = new Array("http://d.facdn.net/art/rand/1325564407.rand_likerabbits.jpg", "http://d.facdn.net/art/rand/1346121301.rand_firsttime.jpg");
aQuestions.push(setQuestion(_local2, _local3, "rand", "http://www.furaffinity.net/user/rand/"));
_local2 = new Array("http://d.facdn.net/art/raghan/1367184610.raghan_soumission_of_dracorex_-_for_furaffinity.jpg", "http://d.facdn.net/art/raghan/1287447337.raghan_commission-iron-color.jpg", "http://d.facdn.net/art/raghan/1359054458.raghan_dsitraction_before_the_battle_-_charrs.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Raghan", "http://www.furaffinity.net/user/raghan/"));
_local2 = new Array("http://d.facdn.net/art/rathmutatio/1386134420.rathmutatio_sleepy_head.png", "http://d.facdn.net/art/rathmutatio/1389762831.rathmutatio_musclegutbravin.png");
aQuestions.push(setQuestion(_local2, _local3, "RathMutatio", "http://www.furaffinity.net/user/rathmutatio/"));
_local2 = new Array("http://d.facdn.net/art/redrusker/1362133505.redrusker_[03.01]_a_used_tissue.png", "http://d.facdn.net/art/redrusker/1384899134.redrusker_[11.18]_krispup_-_ace_in_the_hole.png", "http://d.facdn.net/art/redrusker/1395957380.redrusker_moka_-_evening_lights__low_resolution_.png");
aQuestions.push(setQuestion(_local2, _local3, "RedRusker", "http://www.furaffinity.net/user/redrusker/"));
_local2 = new Array("http://d.facdn.net/art/seamaster/1397879466.seamaster_kooper.jpg", "http://d.facdn.net/art/seamaster/1394314380.seamaster_six_in_shorts.jpg", "http://d.facdn.net/art/seamaster/1393645072.seamaster__seamaster_sixloadinh.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Seamaster", "http://www.furaffinity.net/user/seamaster/"));
_local2 = new Array("http://d.facdn.net/art/shin0r0z/1249007429.shin0r0z_ol1097.jpg", "http://d.facdn.net/art/shin0r0z/1326072418.shin0r0z_equustrade.png");
aQuestions.push(setQuestion(_local2, _local3, "shin0r0z", "http://www.furaffinity.net/user/shin0r0z/"));
_local2 = new Array("http://d.facdn.net/art/shiuk/1387927664.shiuk_happyholidayssm.jpg", "http://d.facdn.net/art/shiuk/1388000451.shiuk_mistletoesm.jpg", "http://d.facdn.net/art/shiuk/1391129618.shiuk_afterpartysm.jpg");
aQuestions.push(setQuestion(_local2, _local3, "shiuk", "http://www.furaffinity.net/user/shiuk/"));
_local2 = new Array("http://d.facdn.net/art/sonictweaker/1396836535.sonictweaker_twistedsnake.png", "http://d.facdn.net/art/sonictweaker/1395889385.sonictweaker_seamaster4.png");
aQuestions.push(setQuestion(_local2, _local3, "SonicTweaker", "http://www.furaffinity.net/user/sonictweaker/"));
_local2 = new Array("http://d.facdn.net/art/tanio/1395886683.tanio_taniopinupai.png", "http://d.facdn.net/art/tanio/1388119146.tanio_mogjeicomai.png", "http://d.facdn.net/art/tanio/1375063268.tanio_tyhotanio.png");
aQuestions.push(setQuestion(_local2, _local3, "Tanio", "http://www.furaffinity.net/user/tanio"));
_local2 = new Array("http://d.facdn.net/art/the-cobalt-nocturne/1391651734.the-cobalt-nocturne_cobaltpinu2.png", "http://d.facdn.net/art/the-cobalt-nocturne/1389861923.the-cobalt-nocturne_ych101.jpg");
aQuestions.push(setQuestion(_local2, _local3, "the-cobalt-nocturne", "http://www.furaffinity.net/user/the-cobalt-nocturne"));
_local2 = new Array("http://d.facdn.net/art/tokeki/1381123051.tokeki_afterpractice.png", "http://d.facdn.net/art/tokeki/1397102994.tokeki_rackwargreymon.png", "http://d.facdn.net/art/tokeki/1258433620.tokeki_upside-down.png");
aQuestions.push(setQuestion(_local2, _local3, "Tokeki", "http://www.furaffinity.net/user/tokeki"));
_local2 = new Array("http://d.facdn.net/art/twinkle-sez/1396945510.twinkle-sez_ichigo-fl.jpg", "http://d.facdn.net/art/twinkle-sez/1351527986.twinkle-sez_4rez2web.jpg", "http://d.facdn.net/art/twinkle-sez/1390375960.twinkle-sez_4tibo-f.jpg");
aQuestions.push(setQuestion(_local2, _local3, "twinkle-sez", "http://www.furaffinity.net/user/twinkle-sez"));
_local2 = new Array("http://d.facdn.net/art/ukent/1396620134.ukent_reavbillscumversion.jpg", "http://d.facdn.net/art/ukent/1373490858.ukent_jcfox_commission_color2.png");
aQuestions.push(setQuestion(_local2, _local3, "Ukent", "http://www.furaffinity.net/user/ukent"));
_local2 = new Array("http://d.facdn.net/art/viktria/1397480662.viktria_furry_hentai.png", "http://d.facdn.net/art/viktria/1393351756.viktria_bun_comish.png", "http://d.facdn.net/art/viktria/1393352148.viktria_comet.png");
aQuestions.push(setQuestion(_local2, _local3, "Viktria", "http://www.furaffinity.net/user/viktria"));
_local2 = new Array("http://d.facdn.net/art/virus.exe/1389076943.virus.exe_jabu.png", "http://d.facdn.net/art/virus.exe/1394428435.virus.exe_dededed32.png", "http://d.facdn.net/art/virus.exe/1390513263.virus.exe_avianfa.png");
aQuestions.push(setQuestion(_local2, _local3, "ViRuS.exe", "http://www.furaffinity.net/user/virus.exe"));
_local2 = new Array("http://d.facdn.net/art/whitefeathersrain/1397509765.whitefeathersrain_commissions.jpg", "http://d.facdn.net/art/whitefeathersrain/1396806894.whitefeathersrain_stream_feature_1.jpg", "http://d.facdn.net/art/whitefeathersrain/1396135280.whitefeathersrain_navvypinup.jpg", "http://d.facdn.net/art/wordcaster/1398269209.wordcaster_1390207699.wordcaster_mr._dayglo_gift.jpg");
aQuestions.push(setQuestion(_local2, _local3, "whitefeathersrain", "http://www.furaffinity.net/user/whitefeathersrain"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/wolfblade/1378414575.wolfblade_wb_bdc-artie.png", "http://d.facdn.net/art/wolfblade/1380227843.wolfblade_wb_bdc-billcat.png");
aQuestions.push(setQuestion(_local2, _local3, "Wolfblade", "http://www.furaffinity.net/user/wolfblade/"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/yellowpower/1394602906.yellowpower_odarblazsolo.png", "http://d.facdn.net/art/yellowpower/1372037889.yellowpower_bloke+michael.png", "http://d.facdn.net/art/yellowpower/1393122668.yellowpower_3komariazuul.png");
aQuestions.push(setQuestion(_local2, _local3, "yellowpower", "http://www.furaffinity.net/user/yellowpower/"));
_local3 = new Array();
_local2 = new Array("http://d.facdn.net/art/zaush/1168512998.zaush_volle-adult-folio-illo-web.jpg", "http://d.facdn.net/art/zaush/1363172056.zaush_the-kings-tailors-final-web.jpg", "http://d.facdn.net/art/zaush/1298719938.zaush_fawx-final-web.jpg");
aQuestions.push(setQuestion(_local2, _local3, "Zaush", "http://www.furaffinity.net/user/zaush/"));
}
static var nIMAGE_WIDTH = 780;
static var nIMAGE_HEIGHT = 440;
static var nIMAGE_MAXWIDTH = 880;
static var nIMAGE_MAX_HEIGHT = 540;
var nNNEXT_QUESTION_GOOD = 1000;
var nNNEXT_QUESTION_BAD = 1000;
var nCOUNTDOWN = 40000;
var nQUESTION_COUNTDOWN = 4000;
var nMINIMUM_Q_SCORE = 1000;
var nMAX_MULTIPLIER = 5;
var nTOTAL_QUESTIONS = 10;
var nTOTAL_ANSWERS = 6;
static var nSTATE_TITLE = 0;
static var nSTATE_LOADING = 1;
static var nSTATE_LOAD_END = 10;
static var nSTATE_GAME = 2;
static var nSTATE_RESULT = 3;
static var nSTATE_GALLERY = 4;
static var nSTATE_CREDITS = 5;
static var nSTATE_COUNTDOWN = 6;
static var nSTATE_TIMEOUT = 7;
}
Symbol 120 MovieClip [__Packages.library.Delegate] Frame 0
class library.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local3 = arguments.callee.target;
var _local4 = arguments.callee.func;
var _local2 = arguments.callee.arg;
_local2 = _local2.concat(arguments);
return(_local4.apply(_local3, _local2));
};
_local2.target = obj;
_local2.func = func;
_local2.arg = arguments.slice(2);
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 121 MovieClip [__Packages.library.SoundManager] Frame 0
class library.SoundManager
{
static var oCTRL;
var mcRef, aSFX, oSound, nFade, nVolume, nMaxVolume, sCurrentSong, nLoops, oSFX;
function SoundManager (_mcRef) {
mcRef = _mcRef;
aSFX = new Array();
oSound = new Sound();
oCTRL = this;
nFade = 0;
nVolume = 100;
nMaxVolume = 100;
mcRef.onEnterFrame = library.Delegate.create(this, enterFrame);
}
function enterFrame() {
if (nFade != 0) {
nVolume = nVolume + nFade;
nVolume = Math.min(nVolume, nMaxVolume);
nVolume = Math.max(nVolume, 0);
oSound.setVolume(nVolume);
if (nVolume == 0) {
nFade = 6;
oSound.stop();
delete oSound;
oSound = new Sound();
oSound.attachSound(sCurrentSong);
oSound.start(0, nLoops);
oSound.setVolume(nMaxVolume);
} else if (nVolume == 100) {
nFade = 0;
}
}
}
function soundComplete() {
oSound.stop();
delete oSound;
sCurrentSong = "";
}
function playSong(_sCurrentSong, _nLoops) {
if (sCurrentSong != undefined) {
nFade = -50;
nLoops = _nLoops;
} else {
oSound.attachSound(_sCurrentSong);
oSound.start(0, _nLoops);
oSound.setVolume(nMaxVolume);
if (_nLoops == 1) {
oSound.onSoundComplete = library.Delegate.create(this, soundComplete);
}
}
sCurrentSong = _sCurrentSong;
}
function playSFX(_sSFX) {
oSFX = new Sound();
oSFX.attachSound(_sSFX);
oSFX.start(0, 1);
oSFX.setVolume(nMaxVolume);
}
function setVolume(_nVolume) {
nMaxVolume = _nVolume;
oSound.setVolume(nMaxVolume);
oSFX.setVolume(nMaxVolume);
}
static function get Instance() {
return(oCTRL);
}
}
Symbol 122 MovieClip [__Packages.library.Tools] Frame 0
class library.Tools
{
function Tools () {
}
static function inArray(_oItem, _aItem) {
var _local2 = -1;
var _local1;
var _local3 = _aItem.length;
_local1 = 0;
while (_local1 < _local3) {
if (_aItem[_local1] == _oItem) {
_local2 = _local1;
break;
}
_local1++;
}
return(_local2);
}
static function formatNumber(_nValue) {
var _local1 = "";
if (_nValue >= 1000000) {
if ((Math.floor(_nValue / 1000) % 1000) < 10) {
_local1 = _local1 + "00";
} else if ((Math.floor(_nValue / 1000) % 1000) < 100) {
_local1 = _local1 + "0";
}
}
if (_nValue >= 1000) {
_local1 = _local1 + ((Math.floor(_nValue / 1000) % 1000) + " ");
}
if ((_nValue % 1000) < 10) {
_local1 = _local1 + "00";
} else if ((_nValue % 1000) < 100) {
_local1 = _local1 + "0";
}
_local1 = _local1 + String(_nValue % 1000);
return(_local1);
}
}