STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228138
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5122

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/90949550?noj=FRM90949550-18DC" width="1" height="1"></div>

Buzz Hollywood Quiz.swf

This is the info page for
Flash #47986

(Click the ID number above for more basic data on this flash file.)


Text
<p align="left"><font face="Univers LT Std 59 UltraCn" size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">USERNAME</font></p>

<p align="right"><font face="Univers LT Std 57 Cn" size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">01234</font></p>

trigger "mode finished" event

back

MUSIC ON / OFF

<p align="center"><font face="Univers LT Std 73 Black Ext" size="9" color="#ffff00" letterSpacing="0.000000" kerning="1">10/10</font></p>

SCORE:

<p align="center"><font face="Univers LT Std 73 Black Ext" size="15" color="#444444" letterSpacing="0.000000" kerning="1">+450p</font></p>

<p align="center"><font face="Univers LT Std 73 Black Ext" size="15" color="#444444" letterSpacing="0.000000" kerning="1">+450p</font></p>

IN STORES
NOW!

<p align="center"><font face="Univers LT Std 59 UltraCn" size="23" color="#ffffff" letterSpacing="0.000000" kerning="1">HIGH SCORE</font></p>

RULES

INSTRUCTIONS

GRAB CODE

SEND TO FRIEND

TOP 10 LIST

SINGLE PLAYER

MULTIPLAYER

TODAY

THIS WEEK

THIS MONTH

TOP 10 LIST

GAME CONTROLS

INSTRUCTIONS

For both single player and multiplayer there will be various game
modes with different rules. Every game mode will have four possible
answers displayed on the screen.  Before each game mode the
controls will be illustrated.

SEND

YOUR EMAIL ADDRESS

YOUR NAME

MESSAGE

FRIENDS EMAIL ADDRESS

SENDING YOUR EMAIL

<p align="center"><font face="Univers LT Std 59 UltraCn" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1">SENDING EMAIL - FAILED</font></p>

YOUR EMAIL HAS BEEN SENT

COPY CODE TO CLIPBOARD

<p align="left"><font face="Univers LT Std 59 UltraCn" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">grabCode here</font></p>

START PLAYING

SELECT CHARACTER

<p align="left"><font face="Univers LT Std 59 UltraCn" size="16" color="#000000" letterSpacing="0.000000" kerning="1">PLAYER 1</font></p>

<p align="left"><font face="Univers LT Std 59 UltraCn" size="16" color="#000000" letterSpacing="0.000000" kerning="1"><b>PLAYER 2</b></font></p>

PLAYER SETTINGS

OK

PLAYER 1 ANSWERS

PLAYER 1 COLLECT POT

PLAYER 2 ANSWERS

PLAYER 2 COLLECT POT

CONTINUE

START UP

You will both receive 10 questions to answer, and both
players may answer the same question at the same time.  A
correct answer is worth 250 points.
Let’s Buzz!

TIME ATTACK

The first player to answer correctly will earn 400 points,
while the second to answer correctly will only earn 250
points.
Don't be slow now!

POT PLAY

You and your opponent will take turns answering questions.
Correct answers earn 250 points, but wrong answers put
those points into an open pot. All points from the pot are
collected when a player answers correctly.

THIEF!

You and your opponent will take turns answering questions.
A correct answer will result in stealing 500 points from your
opponent!
This is the final round, so let the best Buzzer win!

COLLECT TIME

You will receive 10 questions to answer correctly as fast as
possible. The remaining time of each question (10 seconds)
will be added to your time stash for the next game mode.
More time means more score, now go for it!

POINT PLAY

Answer as many questions as possible before the time’s up.
Correct answers will add points to the pot - using the left
SHIFT key will transfer the points from the pot to your score.
Missing a question empties the pot; however winning
streaks will quickly multiply your score!

SUBMIT SCORE

PLAY AGAIN

THE WINNER IS

<p align="center"><font face="Univers LT Std 59 UltraCn" size="40" color="#ffffff" letterSpacing="0.000000" kerning="1">5000</font></p>

YOUR FINAL SCORE IS

SUBMIT

NAME

EMAIL

SUBMIT YOUR SCORE

<p align="left"><font face="Univers LT Std 59 UltraCn" size="21" color="#ffffff" letterSpacing="0.000000" kerning="1">Error message</font></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"><font face="Myriad Pro Light" size="14" color="#ffcc33" letterSpacing="0.000000" kerning="1">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus mollis dictum felis. Vivamus nec ante.</font></p>

<p align="left"></p>

<p align="left"><font face="Univers LT Std 85 XBlk" size="11" color="#505050" letterSpacing="0.000000" kerning="1">K</font></p>

<p align="center"><font face="Myriad Pro Light" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Answer</font></p>

<p align="center"><font face="Myriad Pro Light" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Answer</font></p>

<p align="center"><font face="Myriad Pro Light" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Answerasd</font></p><p align="center"><font face="Myriad Pro Light" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"> asdasd</font></p>

<p align="center"><font face="Myriad Pro Light" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Answer</font></p>

START UP

TIME ATTACK

POT PLAY

THIEF!

COLLECT TIME

POINT PLAY

Buzz! TM /(c) 2008 SCEE.  Developed by Relentless Software.

ActionScript [AS3]

Section 1
//InGameAnswerKey_4 (bhWidget_fla.InGameAnswerKey_4) package bhWidget_fla { import flash.display.*; import flash.text.*; public dynamic class InGameAnswerKey_4 extends MovieClip { public var textField:TextField; } }//package bhWidget_fla
Section 2
//mcCurtainAnim_15 (bhWidget_fla.mcCurtainAnim_15) package bhWidget_fla { import flash.display.*; public dynamic class mcCurtainAnim_15 extends MovieClip { public function mcCurtainAnim_15(){ addFrameScript(89, frame90); } function frame90(){ stop(); } } }//package bhWidget_fla
Section 3
//mcCurtainAnimOpen_18 (bhWidget_fla.mcCurtainAnimOpen_18) package bhWidget_fla { import flash.display.*; public dynamic class mcCurtainAnimOpen_18 extends MovieClip { public function mcCurtainAnimOpen_18(){ addFrameScript(89, frame90); } function frame90(){ stop(); } } }//package bhWidget_fla
Section 4
//PlayerGainScoreAnimation_11 (bhWidget_fla.PlayerGainScoreAnimation_11) package bhWidget_fla { import flash.display.*; public dynamic class PlayerGainScoreAnimation_11 extends MovieClip { public var scoreClip:MovieClip; } }//package bhWidget_fla
Section 5
//PlayerGainScoreAnimationMaterial_12 (bhWidget_fla.PlayerGainScoreAnimationMaterial_12) package bhWidget_fla { import flash.display.*; import flash.text.*; public dynamic class PlayerGainScoreAnimationMaterial_12 extends MovieClip { public var scoreText:TextField; } }//package bhWidget_fla
Section 6
//PlayerLoseScoreAnimation_9 (bhWidget_fla.PlayerLoseScoreAnimation_9) package bhWidget_fla { import flash.display.*; public dynamic class PlayerLoseScoreAnimation_9 extends MovieClip { public var scoreClip:MovieClip; } }//package bhWidget_fla
Section 7
//PlayerLoseScoreAnimationMaterial_10 (bhWidget_fla.PlayerLoseScoreAnimationMaterial_10) package bhWidget_fla { import flash.display.*; import flash.text.*; public dynamic class PlayerLoseScoreAnimationMaterial_10 extends MovieClip { public var scoreText:TextField; } }//package bhWidget_fla
Section 8
//SendToFriendErrorMessage_41 (bhWidget_fla.SendToFriendErrorMessage_41) package bhWidget_fla { import flash.display.*; import flash.text.*; public dynamic class SendToFriendErrorMessage_41 extends MovieClip { public var textField:TextField; } }//package bhWidget_fla
Section 9
//SingleContainer_31 (bhWidget_fla.SingleContainer_31) package bhWidget_fla { import flash.display.*; public dynamic class SingleContainer_31 extends MovieClip { public var ctlSinglePlayerCharacter:CharacterSelectControl; } }//package bhWidget_fla
Section 10
//VersusContainer_35 (bhWidget_fla.VersusContainer_35) package bhWidget_fla { import flash.display.*; import flash.text.*; public dynamic class VersusContainer_35 extends MovieClip { public var ctlPlayer2Character:CharacterSelectControl; public var txtPlayer2Name:TextField; public var txtPlayer1Name:TextField; public var ctlPlayer1Character:CharacterSelectControl; } }//package bhWidget_fla
Section 11
//Answer (configuration.Answer) package configuration { class Answer { private var _blnIsCorrect:Boolean; private var _strText:String; function Answer(_arg1:String, _arg2:Boolean){ this._strText = _arg1; this._blnIsCorrect = _arg2; } public function get isCorrect():Boolean{ return (this._blnIsCorrect); } public function get text():String{ return (this._strText); } public function toString():String{ return (this._strText); } } }//package configuration
Section 12
//CharacterData (configuration.CharacterData) package configuration { import flash.media.*; public class CharacterData { private var _objBuzzSound:Sound; private var _intCharacterIndex:int; public function CharacterData(_arg1:int, _arg2:Sound){ this._intCharacterIndex = _arg1; this._objBuzzSound = _arg2; } public function get characterIndex():int{ return (this._intCharacterIndex); } public function get buzzSound():Sound{ return (this._objBuzzSound); } } }//package configuration
Section 13
//GameModeData (configuration.GameModeData) package configuration { public class GameModeData { private var _arrPlayData:Array; private var _objSettings:GameModeSettings; public function GameModeData(_arg1:GameModeSettings, _arg2:int){ var _local3:int; super(); this._objSettings = _arg1; this._arrPlayData = new Array(); _local3 = 0; while (_local3 < _arg2) { this._arrPlayData.push(new PlayData()); _local3++; }; } public function get settings():GameModeSettings{ return (this._objSettings); } public function get hasAllPlayersAnswered():Boolean{ var _local1:PlayData; for each (_local1 in this._arrPlayData) { if (!_local1.hasAnswered){ return (false); }; }; return (true); } public function getNextScore(_arg1:int){ var _local2:int; if (this.settings.points.length == 0){ trace("GameModeData.as, getNextScore(): There are no points in game mode settings"); return (0); }; _local2 = 0; if (this.settings.usePlayerPots){ _local2 = ((_arg1 < this._arrPlayData.length)) ? this._arrPlayData[_arg1].correctAnswerCombo : 0; } else { if (this.settings.useLadder){ _local2 = this.getPlayData(_arg1).answerLadderIndex; }; }; return (this.settings.points[((_local2 < this.settings.points.length)) ? _local2 : (this.settings.points.length - 1)]); } public function isAllQuestionsHandedOut():Boolean{ var _local1:PlayData; for each (_local1 in this._arrPlayData) { if (_local1.numQuestionsReceived != this.settings.numQuestions){ return (false); }; }; return (true); } public function getPlayData(_arg1:int):PlayData{ return (this._arrPlayData[_arg1]); } public function getNumHandedOutQuestions():int{ var _local1:int; var _local2:PlayData; _local1 = 0; for each (_local2 in this._arrPlayData) { _local1 = (_local1 + _local2.numQuestionsReceived); }; return (((this._arrPlayData.length > 1)) ? (this.settings.isTurnBased) ? _local1 : (_local1 / 2) : _local1); } public function resetAnswerStates(_arg1:int=-1){ var _local2:int; if (_arg1 != -1){ this._arrPlayData[_arg1].resetAnswer(); } else { _local2 = 0; while (_local2 < this._arrPlayData.length) { this.resetAnswerStates(_local2); _local2++; }; }; } } }//package configuration
Section 14
//GameModeSettings (configuration.GameModeSettings) package configuration { import se.rocketxl.util.*; public class GameModeSettings { private var _blnIsTurnBased:Boolean; private var _blnUsePlayerPots:Boolean; private var _blnUseWrongAnswerPot:Boolean; private var _blnUseSteal:Boolean; private var _numQuestionWaitTime:Number; private var _blnUseRemainingTime:Boolean; private var _blnUseLadder:Boolean; private var _arrPoints:Array; private var _numTimeLimit:Number; private var _strId:String; private var _numQuestionReadTime:Number; private var _blnShowGainedTime:Boolean; private var _intNumQuestions:int; private var _blnUseTimeAttack:Boolean; public function GameModeSettings(_arg1:String, _arg2:int, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Array, _arg7:Boolean, _arg8:Boolean, _arg9:Boolean, _arg10:Boolean, _arg11:Boolean, _arg12:Boolean, _arg13:Boolean, _arg14:Boolean){ if (_arg6 == null){ throw (new ArgumentError("Argument may not be null.\nParameter name: pointLadder")); }; this._strId = _arg1; this._intNumQuestions = _arg2; this._numTimeLimit = _arg3; this._blnIsTurnBased = _arg7; this._blnUseRemainingTime = _arg8; this._blnUsePlayerPots = _arg10; this._blnUseWrongAnswerPot = _arg11; this._blnUseSteal = _arg9; this._blnUseTimeAttack = _arg12; this._arrPoints = ((_arg6.length == 0)) ? [0] : _arg6; this._blnShowGainedTime = _arg13; this._numQuestionReadTime = _arg4; this._numQuestionWaitTime = _arg5; this._blnUseLadder = _arg14; } public function get useLadder():Boolean{ return (this._blnUseLadder); } public function get id():String{ return (this._strId); } public function get useRemainingTime():Boolean{ return (this._blnUseRemainingTime); } public function get questionReadTime():Number{ return (this._numQuestionReadTime); } public function get points():Array{ return (this._arrPoints); } public function get usePlayerPots():Boolean{ return (this._blnUsePlayerPots); } public function get showGainedTime():Boolean{ return (this._blnShowGainedTime); } public function get useSteal():Boolean{ return (this._blnUseSteal); } public function get useTimeAttack():Boolean{ return (this._blnUseTimeAttack); } public function get isTurnBased():Boolean{ return (this._blnIsTurnBased); } public function get questionWaitTime():Number{ return (this._numQuestionWaitTime); } public function get useWrongAnswerPot():Boolean{ return (this._blnUseWrongAnswerPot); } public function toString():String{ return (((((((((((((((((((((((((("ID: " + this._strId) + "\n") + "IsTurnBased: ") + this._blnIsTurnBased) + "\n") + "PermitSteal: ") + this._blnUseSteal) + "\n") + "UsePlayerPots: ") + this._blnUsePlayerPots) + "\n") + "RemainingTime: ") + this._blnUseRemainingTime) + "\n") + "UseWrongAnswerPot: ") + this._blnUseWrongAnswerPot) + "\n") + "NumQuestions: ") + this._intNumQuestions) + "\n") + "TimeLimit: ") + this._numTimeLimit) + "\n") + "Points: ") + this._arrPoints)); } public function get timeLimit():Number{ return (this._numTimeLimit); } public function get numQuestions():int{ return (this._intNumQuestions); } public static function selectArrayFromXml(_arg1:XML, _arg2:PlayerModeType){ var _local3:XML; for each (_local3 in _arg1.gameModeCombination) { if ((((_local3.@playerMode.length() > 0)) && ((PlayerModeType.getType(_local3.@playerMode) == _arg2)))){ return (arrayFromXmlList(_local3.gameMode)); }; }; return (new Array()); } public static function arrayFromXmlList(_arg1:XMLList):Array{ var _local2:Array; var _local3:XML; _local2 = new Array(); for each (_local3 in _arg1) { _local2.push(fromXml(_local3)); }; return (_local2); } private static function getXmlBool(_arg1:XMLList):Boolean{ return (((_arg1.length() == 0)) ? false : (_arg1.toString().toLowerCase() == "true")); } public static function fromXml(_arg1:XML):GameModeSettings{ if (_arg1.@id.length() == 0){ trace("GameModeSettings: fromXml(): Tag missing 'id' attribute, skipping tag."); return (null); }; if (_arg1.@timelimit.length() == 0){ trace("GameModeSettings: fromXml(): Tag missing 'timelimit' attribute, skipping tag."); return (null); }; return (new GameModeSettings(_arg1.@id, ((_arg1.@numquestions.length() == 0)) ? -1 : _arg1.@numquestions, _arg1.@timelimit, getXmlAttribute(_arg1.@questionreadtime, 0), getXmlAttribute(_arg1.@questionwaittime, 0), ArrayUtils.splitAndParse(_arg1.@points, ",", int), getXmlBool(_arg1.@isturnbased), getXmlBool(_arg1.@useremainingtime), getXmlBool(_arg1.@steal), getXmlBool(_arg1.@playerpots), getXmlBool(_arg1.@wronganswerpot), getXmlBool(_arg1.@timeattack), getXmlBool(_arg1.@showgainedtime), getXmlBool(_arg1.@ladder))); } private static function getXmlAttribute(_arg1:XMLList, _arg2){ return (((_arg1.length() == 0)) ? _arg2 : _arg1.toString()); } } }//package configuration
Section 15
//GameSettings (configuration.GameSettings) package configuration { import flash.utils.*; import flash.display.*; public class GameSettings { private var _arrGameModes:Array; private var _arrPlayerSettings:Array; private var _objQuestionHandler:QuestionHandler; private var _intCurrentGameModeIndex:int; private var _objPlayerMode:PlayerModeType; public static const characterDataArray:Array = createCharacterDataArray(); public function GameSettings(_arg1:Array, _arg2:PlayerModeType, ... _args){ var _local4:int; super(); if (_args.length == 0){ throw (new ArgumentError("You need at least one playerSettings argument.\nParameter name: playerSettings")); }; if (_arg2 == null){ throw (new ArgumentError("Argument may not be null.\nParameter name: playerMode")); }; if (_arg1 == null){ throw (new ArgumentError("Argument may not be null.\nParameter name: gameModes")); }; if (_arg1.length == 0){ throw (new ArgumentError("Argument array must have a size greater than zero.\nParameter name: gameModes")); }; _local4 = 0; while (_local4 < _args.length) { if (_args[_local4] == null){ _args.splice(_local4, 1); } else { if (!(_args[_local4] is PlayerSettings)){ throw (new ArgumentError((("Argument array must only contain PlayerSettings items, found " + getQualifiedClassName(_args[_local4])) + ".\nParameter name: playerSettings"))); }; }; _local4++; }; this._arrGameModes = new Array(); _local4 = 0; while (_local4 < _arg1.length) { this._arrGameModes.push(new GameModeData(_arg1[_local4], _args.length)); _local4++; }; this._objPlayerMode = _arg2; this._arrPlayerSettings = _args; this._intCurrentGameModeIndex = 0; this._objQuestionHandler = new QuestionHandler(); } public function get playerMode():PlayerModeType{ return (this._objPlayerMode); } public function get currentMode():GameModeData{ return (this._arrGameModes[this._intCurrentGameModeIndex]); } public function getPlayerSettingsAt(_arg1:int):PlayerSettings{ return (this._arrPlayerSettings[_arg1]); } public function get questionHandler():QuestionHandler{ return (this._objQuestionHandler); } public function nextGameMode():Boolean{ if (this._intCurrentGameModeIndex == (this._arrGameModes.length - 1)){ return (false); }; this._intCurrentGameModeIndex++; return (true); } public function get previousMode():GameModeData{ return (((this._intCurrentGameModeIndex > 0)) ? this._arrGameModes[(this._intCurrentGameModeIndex - 1)] : null); } public function get numPlayers():int{ return (this._arrPlayerSettings.length); } private static function createCharacterDataArray():Array{ return ([new CharacterData(0, new Buzz_Girl()), new CharacterData(1, new Buzz_Goose()), new CharacterData(2, new Buzz_Horse()), new CharacterData(3, new Buzz_Monkey()), new CharacterData(4, new Buzz_Scream()), new CharacterData(5, new Buzz_Train())]); } public static function createCharacterClip(_arg1:int):MovieClip{ switch (_arg1){ case 0: return (new Character1()); case 1: return (new Character2()); case 2: return (new Character3()); case 3: return (new Character4()); case 4: return (new Character5()); case 5: return (new Character6()); }; return (null); } } }//package configuration
Section 16
//PlayData (configuration.PlayData) package configuration { public class PlayData { private var _intLadderIndex:int; private var _numScore:Number; private var _blnWasAnswerCorrect:Boolean; private var _blnHasAnswered:Boolean; private var _intNumQuestionsReceived:int; private var _intCorrectAnswerCombo:int; private var _numCollectedTime:Number; public function PlayData(){ this._numScore = 0; this.resetAnswer(); this.resetCombo(); this.resetQuestions(); this._numCollectedTime = 0; } public function resetQuestions(){ this._intNumQuestionsReceived = 0; } public function logQuestion(){ this._intNumQuestionsReceived++; } public function get score():Number{ return (this._numScore); } public function get hasAnswered():Boolean{ return (this._blnHasAnswered); } public function logAnswer(_arg1:Boolean, _arg2:int=0):void{ this._blnHasAnswered = true; this._blnWasAnswerCorrect = _arg1; this._intLadderIndex = _arg2; } public function get wasAnswerCorrect():Boolean{ return (this._blnWasAnswerCorrect); } public function get correctAnswerCombo():Number{ return (this._intCorrectAnswerCombo); } public function logAnswerTime(_arg1:Number){ this._numCollectedTime = (this._numCollectedTime + _arg1); } public function logCombo(){ this._intCorrectAnswerCombo++; } public function resetAnswer(){ this._intLadderIndex = 0; this._blnHasAnswered = false; this._blnWasAnswerCorrect = false; } public function get numQuestionsReceived():int{ return (this._intNumQuestionsReceived); } public function addScore(_arg1:Number, _arg2:Number=0):Number{ this._numScore = (this._numScore + _arg1); this.logAnswerTime(_arg2); return (this._numScore); } public function get collectedTime():Number{ return (this._numCollectedTime); } public function get answerLadderIndex():int{ return (this._intLadderIndex); } public function resetCombo(){ this._intCorrectAnswerCombo = 0; } } }//package configuration
Section 17
//PlayerControlsSettings (configuration.PlayerControlsSettings) package configuration { public class PlayerControlsSettings { private var _uintBuzz:uint; private var _uintAnswer1:uint; private var _uintAnswer2:uint; private var _uintAnswer3:uint; private var _uintAnswer4:uint; public function PlayerControlsSettings(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint){ this._uintBuzz = _arg1; this._uintAnswer1 = _arg2; this._uintAnswer2 = _arg3; this._uintAnswer3 = _arg4; this._uintAnswer4 = _arg5; } public function get Answer1():uint{ return (this._uintAnswer1); } public function get Answer2():uint{ return (this._uintAnswer2); } public function get Answer4():uint{ return (this._uintAnswer4); } public function getAnswerKeyIndexFromKeyCode(_arg1:uint):int{ switch (_arg1){ case this.Answer1: return (0); case this.Answer2: return (1); case this.Answer3: return (2); case this.Answer4: return (3); }; return (-1); } public function getAnswerCharCodeFromKeyIndex(_arg1:int):uint{ switch (_arg1){ case 0: return (this.Answer1); case 1: return (this.Answer2); case 2: return (this.Answer3); case 3: return (this.Answer4); }; return (0); } public function get Buzz():uint{ return (this._uintBuzz); } public function get Answer3():uint{ return (this._uintAnswer3); } } }//package configuration
Section 18
//PlayerModeType (configuration.PlayerModeType) package configuration { import se.rocketxl.*; public class PlayerModeType implements IEnum { private var value:String; public static const SINGLE:PlayerModeType = new PlayerModeType("SINGLE"); ; public static const VERSUS:PlayerModeType = new PlayerModeType("VERSUS"); ; public function PlayerModeType(_arg1:String){ this.value = _arg1; } public function equals(_arg1:Object):Boolean{ return (((((!(_arg1) is PlayerModeType)) || ((_arg1 == null)))) ? false : (_arg1.value == this.value)); } public function toString():String{ return (this.value); } public static function getType(_arg1:String):PlayerModeType{ switch (_arg1){ case SINGLE.value: return (SINGLE); case VERSUS.value: return (VERSUS); }; return (null); } } }//package configuration
Section 19
//PlayerSettings (configuration.PlayerSettings) package configuration { public class PlayerSettings { private var _objGameControls:PlayerControlsSettings; private var _objCharacterData:CharacterData; private var _strName:String; public function PlayerSettings(_arg1:String, _arg2:CharacterData, _arg3:PlayerControlsSettings){ this._objCharacterData = _arg2; this._strName = _arg1; this._objGameControls = _arg3; } public function get gameControls():PlayerControlsSettings{ return (this._objGameControls); } public function get playerName():String{ return (this._strName); } public function get characterData():CharacterData{ return (this._objCharacterData); } } }//package configuration
Section 20
//Question (configuration.Question) package configuration { import se.rocketxl.util.*; public class Question { private var _intCorrectAnswerIndex:int; private var _arrAnswers:Array; private var _strText:String; public function Question(_arg1:String, _arg2:Array, _arg3:int=0){ var _local4:int; super(); if (_arg2 == null){ throw (new ArgumentError("Argument may not be null.\nParameter name: answers")); }; if (_arg2.length == 0){ throw (new ArgumentError("Argument array has to contain at least one value.\nParameter name: answers")); }; if ((((_arg3 < 0)) || ((_arg3 >= _arg2.length)))){ throw (new ArgumentError("Argument must equal or greater than 0 and lesser than this.answers.length.\nParameter name: correctAnswerIndex")); }; this._intCorrectAnswerIndex = _arg3; this._arrAnswers = new Array(); this._strText = _arg1; _local4 = 0; while (_local4 < _arg2.length) { this._arrAnswers.push(new Answer(_arg2[_local4], (this._intCorrectAnswerIndex == _local4))); _local4++; }; } public function isCorrect(_arg1:int):Boolean{ return ((_arg1 == this._intCorrectAnswerIndex)); } public function randomizeAnswers():void{ var _local1:int; this._arrAnswers = ArrayUtils.randomizeArray(this._arrAnswers); _local1 = 0; while (_local1 < this._arrAnswers.length) { if (this._arrAnswers[_local1].isCorrect){ this._intCorrectAnswerIndex = _local1; }; _local1++; }; } public function toString():String{ return (((this.text + ": ") + this._arrAnswers)); } public function get text():String{ return (this._strText); } public function getCorrectAnswer():String{ return (this._arrAnswers[this._intCorrectAnswerIndex]); } public function get answers():Array{ return (this._arrAnswers); } } }//package configuration
Section 21
//QuestionHandler (configuration.QuestionHandler) package configuration { import flash.events.*; import se.rocketxl.util.*; public class QuestionHandler extends EventDispatcher { private var _intCurrentQuestionIndex:int; private var _arrQuestions:Array; public function QuestionHandler(){ this._arrQuestions = new Array(); this._intCurrentQuestionIndex = -1; } public function loadQuestions(){ var _local1:Question; this._arrQuestions = new Array(); this._arrQuestions.push(new Question("Who shouts out to his girlfriend \"Yo, Adrian!\" wearing nothing but a pair of shorts?", ["ROCKY BALBOA", "JAMES BOND", "BUTCH CASSIDY", "INSPECTOR CLOUSEAU"])); this._arrQuestions.push(new Question("Who is not a member of Ocean's Eleven?", ["JOHN TRAVOLTA", "MATT DAMON", "DON CHEADLE", "GEORGE CLOONEY"])); this._arrQuestions.push(new Question("In 'Walk the Line', Joaquin Phoenix stars as which man in black?", ["JOHNNY CASH", "ELVIS PRESLEY", "BOBBY DARIN", "JERRY LEE LEWIS"])); this._arrQuestions.push(new Question("In the 1984 movie' Amadeus', who is the reckless but brilliant composer played by Tom Hulce?", ["MOZART", "HANDEL", "BEETHOVEN", "ROSSINI"])); this._arrQuestions.push(new Question("In 'The Chronicles of Narnia: the Lion, the Witch, and the Wardrobe', who is the 'King of the Beasts'?", ["ASLAN", "ASTON", "AUSTIN", "ASBO"])); this._arrQuestions.push(new Question("In 'My Best Friend's Wedding', who does Dermot Mulroney eventually marry?", ["CAMERON DIAZ", "JULIA ROBERTS", "REN�E ZELLWEGER", "JENNIFER ANISTON"])); this._arrQuestions.push(new Question("Who plays symbologist Robert Langdon in the 2006 drama 'The Da Vinci Code'?", ["TOM HANKS", "ROBERT REDFORD", "PAUL SORVINO", "KEANU REEVES"])); this._arrQuestions.push(new Question("Who plays 'the bad' � in 'The Good, the Bad and the Ugly'?", ["LEE VAN CLEEF", "CLINT EASTWOOD", "ELI WALLACH", "KLAUS KINSKI"])); this._arrQuestions.push(new Question("Who won an Oscar� in 2007 for their role in 'The Last King of Scotland'?", ["FOREST WHITAKER", "ELIJAH WOOD", "DEFOREST KELLEY", "NATALIE WOOD"])); this._arrQuestions.push(new Question("Which epic pits Maximus against Commodus?", ["GLADIATOR", "TROY", "SPARTACUS", "KINGDOM OF HEAVEN"])); this._arrQuestions.push(new Question("Which 'Mean Girl' stars in 'Freaky Friday' and 'Herbie: Fully Loaded'?", ["LINDSAY LOHAN", "RACHEL MCADAMS", "HILARY DUFF", "ANNE HATHAWAY"])); this._arrQuestions.push(new Question("Who lives in Bag End?", ["FRODO BAGGINS", "ARWEN UND�MIEL", "LEGOLAS GREENLEAF", "ELROND THE HALF-ELVEN"])); this._arrQuestions.push(new Question("Which martial arts star twirls his sword in 'The Shaolin Temple'?", ["JET LI", "BRUCE LEE", "JACKIE CHAN", "DAVID CARRADINE"])); this._arrQuestions.push(new Question("In 'When Harry Met Sally', who met Billy Crystal?", ["MEG RYAN", "JULIA ROBERTS", "DEMI MOORE", "GOLDIE HAWN"])); this._arrQuestions.push(new Question("Which remake features Naomi Watts, Jack Black, and a very famous ending in New York?", ["KING KONG", "ALL THE KING'S MEN", "THE MANCHURIAN CANDIDATE", "OCEAN'S ELEVEN"])); this._arrQuestions.push(new Question("Who plays 'Alfie' in the 2004 remake of the Michael Caine classic?", ["JUDE LAW", "CHRISTIAN BALE", "COLIN FARRELL", "LEONARDO DICAPRIO"])); this._arrQuestions.push(new Question("In which movie does Paul Newman return as pool hustler 'Fast Eddie' Felson?", ["THE COLOR OF MONEY", "COOL HAND LUKE", "ROAD TO PERDITION", "THE STING"])); this._arrQuestions.push(new Question("After seeing off Hans Gruber in the Nakatomi Plaza, in which sequel does John McClane fight terrorists in an airport?", ["DIE HARD 2", "LETHAL WEAPON 2", "TERMINATOR 2", "RUSH HOUR 2"])); this._arrQuestions.push(new Question("In 'Return of the Jedi', who turns out to be Princess Leia's brother?", ["LUKE SKYWALKER", "HAN SOLO", "DARTH VADER", "OBI-WAN KENOBI"])); this._arrQuestions.push(new Question("Which blockbuster has the chilling tagline \"In space no one can hear you scream\"?", ["ALIEN", "APOLLO 13", "STARSHIP TROOPERS", "2001: A SPACE ODYSSEY"])); this._arrQuestions.push(new Question("In which movie does Jake Gyllenhaal ask, \"Why are you wearing that stupid bunny-suit?\"", ["DONNIE DARKO", "BUBBLE BOY", "THE GOOD GIRL", "BROKEBACK MOUNTAIN"])); this._arrQuestions.push(new Question("In The Matrix, Keanu Reeves is revealed as 'The One', but what is his character's name?", ["NEO", "NEMO", "NERO", "NOAH"])); this._arrQuestions.push(new Question("Which 1975 movie soundtrack earned John Williams an Oscar�?", ["JAWS", "HALLOWEEN", "THE MAN WITH THE GOLDEN GUN", "BLADE RUNNER"])); this._arrQuestions.push(new Question("Which name does Val Kilmer answer to in the 1986 action movie 'Top Gun'?", ["ICEMAN", "GOOSE", "VIPER", "WOLFMAN"])); this._arrQuestions.push(new Question("Which character was made popular by the 1928 animated Steamboat Willie?", ["MICKEY MOUSE", "DONALD DUCK", "PLUTO", "GOOFY"])); this._arrQuestions.push(new Question("From which 'Glorious Nation' is Borat Sagdiyev the cultural spokesman?", ["KAZAKHSTAN", "TURKMENISTAN", "AFGHANISTAN", "UZBEKISTAN"])); this._arrQuestions.push(new Question("Which item of footwear sees Dorothy safely to the Emerald City?", ["RUBY SLIPPERS", "FUR BOOTS", "GOLDEN STOCKINGS", "VELVET SANDALS"])); this._arrQuestions.push(new Question("Who stars opposite Grace Kelly in High Noon?", ["GARY COOPER", "JOHN WAYNE", "CLINT EASTWOOD", "RIP TORN"])); this._arrQuestions.push(new Question("Which Lion King character gets its booming voice from James Earl Jones?", ["MUFASA", "SIMBA", "TIMON", "ZAZU"])); this._arrQuestions.push(new Question("Which screen siren falls for the charms of Bogart in The African Queen?", ["KATHARINE HEPBURN", "JANE RUSSELL", "MARILYN MONROE", "MARLENE DIETRICH"])); this._arrQuestions.push(new Question("Who is 'My Fair Lady'?", ["ELIZA DOOLITTLE", "SABRINA FAIRCHILD", "HOLLY GOLIGHTLY", "NICOLE BONNET"])); this._arrQuestions.push(new Question("From where is Jack Nicholson trying to escape in 'One Flew Over the Cuckoo's Nest'?", ["MENTAL HOSPITAL", "ARMY CAMP", "PRISON", "SCHOOL"])); this._arrQuestions.push(new Question("Who is the 'international man of mystery'?", ["AUSTIN POWERS", "JAMES BOND", "PETER PARKER", "CLARK KENT"])); this._arrQuestions.push(new Question("Which Irish actor plays the lead in Spielberg's harrowing 'Schindler's List'?", ["LIAM NEESON", "PIERCE BROSNAN", "BEN KINGSLEY", "GEOFFREY RUSH"])); this._arrQuestions.push(new Question("Which sacred item links Indiana Jones and Monty Python?", ["HOLY GRAIL", "TURIN SHROUD", "ARK OF THE COVENANT", "ROSETTA STONE"])); this._arrQuestions.push(new Question("Who is Mrs. Gomez Addams?", ["MORTICIA", "WEDNESDAY", "PUGSLEY", "FESTER"])); this._arrQuestions.push(new Question("Which battle is the setting for the 2006 drama 'Flags of our Fathers'?", ["IWO JIMA", "GETTYSBURG", "THE SOMME", "EL ALAMEIN"])); this._arrQuestions.push(new Question("Who was Jessica Alba's love interest in 'Sin City'?", ["BRUCE WILLIS", "JOSH HARTNETT", "CLIVE OWEN", "ELIJAH WOOD"])); this._arrQuestions.push(new Question("Which 1995 literary adaptation stars Winona Ryder as a march sister?", ["LITTLE WOMEN", "PRIDE AND PREJUDICE", "THE SHAWSHANK REDEMPTION", "THE PELICAN BRIEF"])); this._arrQuestions.push(new Question("Who won a Best Actor Oscar� for his portrayal of Gandhi?", ["BEN KINGSLEY", "ART MALIK", "CHARLES DANCE", "SAEED JAFFREY"])); this._arrQuestions.push(new Question("Which British favorite plays Alfred the Butler in the 2005 movie Batman Begins?", ["MICHAEL CAINE", "RICHARD ATTENBOROUGH", "SEAN CONNERY", "JOHN CLEESE"])); this._arrQuestions.push(new Question("In the 1994 movie The Shawshank Redemption, what is Shawshank?", ["PRISON", "ASYLUM", "PREACHER", "PSYCHIATRIST"])); this._arrQuestions.push(new Question("Which child actor lends a hand to con-artist Moses Pray in 'Paper Moon'?", ["TATUM O'NEAL", "BROOKE SHIELDS", "JODIE FOSTER", "DREW BARRYMORE"])); this._arrQuestions.push(new Question("Who plays legendary crime fighter Eliot Ness in the 1987 movie 'The Untouchables'?", ["KEVIN COSTNER", "BRUCE WILLIS", "HARVEY KEITEL", "JOHN TRAVOLTA"])); this._arrQuestions.push(new Question("Which 'Man on Fire' gives his life for Dakota Fanning?", ["DENZEL WASHINGTON", "MARC ANTHONY", "MICKEY ROURKE", "CHRISTOPHER WALKEN"])); this._arrQuestions.push(new Question("Susan Sarandon was Louise, but who played Thelma?", ["GEENA DAVIS", "GOLDIE HAWN", "GWYNETH PALTROW", "DARYL HANNAH"])); this._arrQuestions.push(new Question("Who plays Arnold Schwarzenegger's 'Twin' in the 1988 movie?", ["DANNY DEVITO", "BOB HOSKINS", "JOE PESCI", "ROBIN WILLIAMS"])); this._arrQuestions.push(new Question("Which supermodel makes a one-minute appearance in the 2003 movie 'Love Actually'?", ["CLAUDIA SCHIFFER", "CINDY CRAWFORD", "NAOMI CAMPBELL", "HEIDI KLUM"])); this._arrQuestions.push(new Question("Who founded 'The Derek Zoolander Center for Kids Who Can't Read Good and Wanna Learn to Do Other Stuff Good Too?", ["BEN STILLER", "VINCE VAUGHN", "STEVE CARELL", "LUKE WILSON"])); this._arrQuestions.push(new Question("Which of these sequels won a Best Picture Oscar�?", ["THE GODFATHER: PART II", "JAWS 2", "THE GOOD, THE BAD AND THE UGLY", "ROCKY II"])); this._arrQuestions.push(new Question("Which movie introduces us to the Android, T-1000?", ["TERMINATOR 2: JUDGMENT DAY", "2001: A SPACE ODYSSEY", "TRON", "TOY STORY"])); this._arrQuestions.push(new Question("In 'Star Trek: First Contact', Picard disobeys orders by taking the Enterprise�where?", ["EARTH", "THE ROMULAN NEUTRAL ZONE", "PLUTO", "THE DELTA QUADRANT"])); this._arrQuestions.push(new Question("For which role did Audrey Hepburn win her only Academy Award�?", ["PRINCESS ANN", "ELIZA DOOLITTLE", "MAID MARIAN", "SABRINA FAIRCHILD"])); this._arrQuestions.push(new Question("On the set of which movie did Ben Affleck meet future wife, Jennifer Garner?", ["DAREDEVIL", "PEARL HARBOR", "CHANGING LANES", "ARMAGEDDON"])); this._arrQuestions.push(new Question("Steve Martin was the 'Father of the Bride', but who was the mother?", ["DIANE KEATON", "MERYL STREEP", "ANNETTE BENING", "SALLY FIELD"])); this._arrQuestions.push(new Question("Who plays the unhinged babysitter in 'The Hand that Rocks the Cradle'?", ["REBECCA DE MORNAY", "JENNIFER JASON LEIGH", "ROSANNA ARQUETTE", "GEENA DAVIS"])); this._arrQuestions.push(new Question("Who was 'Romancing the Stone' with Michael Douglas in 1984?", ["KATHLEEN TURNER", "MERYL STREEP", "LINDA HAMILTON", "SANDRA BULLOCK"])); this._arrQuestions.push(new Question("Which horror movie begins in 1966 with the birth of a baby boy in Rome?", ["THE OMEN", "THE EXORCIST", "FRIDAY THE 13TH", "THE HOWLING"])); this._arrQuestions.push(new Question("Who plays the pressured airport manager, Mel Bakersfield, in 'Airport'?", ["BURT LANCASTER", "JACK NICHOLSON", "CHUCK CONNORS", "DAVID NIVEN"])); this._arrQuestions.push(new Question("In 'Blazing Saddles', what is everybody's surname in the beleaguered frontier town of Rock Ridge?", ["JOHNSON", "LUKES", "MATTHEWS", "MARX"])); this._arrQuestions.push(new Question("Which 70s movie follow the exploits of arch-rivals Fat Sam and Dandy Dan?", ["BUGSY MALONE", "THE STING", "THE SLIPPER AND THE ROSE", "MARATHON MAN"])); this._arrQuestions.push(new Question("Guess who came to Dinner in 1967?", ["SIDNEY POITIER", "HENRY FONDA", "HARRY BELAFONTE", "PETER O'TOOLE"])); this._arrQuestions.push(new Question("In the movie 'Way of the Dragon', who is defeated by Bruce Lee in Rome's Colosseum?", ["CHUCK NORRIS", "JACKIE CHAN", "DAVID CARRADINE", "JET LI"])); this._arrQuestions.push(new Question("Which movie features the memorable closing line, \"Louis, I think this is the beginning of a beautiful friendship?\"", ["CASABLANCA", "THE MALTESE FALCON", "THE BIG SLEEP", "FROM HERE TO ETERNITY"])); this._arrQuestions.push(new Question("For which 1992 movie did Al Pacino receive his first Oscar� for best actor?", ["SCENT OF A WOMAN", "DEVIL'S ADVOCATE", "CARLITO'S WAY", "HEAT"])); this._arrQuestions.push(new Question("What is the name of Elizabeth Taylor's winning horse in the classic 'National Velvet'?", ["THE PIE", "BEAUTY", "SILVER", "BEN"])); this._arrQuestions.push(new Question("Which city is the setting for the movie 'Trainspotting'?", ["EDINBURGH", "DUBLIN", "MANCHESTER", "LEEDS"])); this._arrQuestions.push(new Question("With which movie did George Clooney make his directorial debut?", ["CONFESSIONS OF A DANGEROUS MIND", "GOOD NIGHT, AND GOOD LUCK", "OCEAN'S THIRTEEN", "OUT OF SIGHT"])); this._arrQuestions.push(new Question("George Lucas co-founded movie studio American Zoetrope with which other director?", ["FRANCIS FORD COPPOLA", "JOHN LANDIS", "MARTIN SCORSESE", "STEVEN SPIELBERG"])); this._arrQuestions.push(new Question("Which of these is a successful movie despite the fact that James Cameron did not direct it?", ["RAMBO: FIRST BLOOD", "TITANIC", "THE ABYSS", "TERMINATOR"])); this._arrQuestions.push(new Question("Which group does Jamie Foxx take to the top of the charts?", ["DEENA JONES & THE DREAMS", "LORRELL ROBINSON & THE FLOWERS", "EFFIE WHITE & THE ANGELS", "DIANA ROSS & THE SUPREMES"])); this._arrQuestions.push(new Question("Which of these characters does not appear in the Jeff Bridges movie, 'Tron'?", ["HAL", "CLU", "SOLAR SAILER", "SARK"])); this._arrQuestions.push(new Question("As which chaotic character did Jeff Goldblum arrive in 'Jurassic Park'?", ["DR. IAN MALCOLM", "DR. ALAN GRANT", "JOHN HAMMOND", "DENNIS NEDRY"])); this._arrQuestions.push(new Question("In which surreal movie does Jennifer Lopez outwit a serial killer while in virtual reality?", ["THE CELL", "BLOOD & WINE", "ANGEL EYES", "ENOUGH"])); this._arrQuestions.push(new Question("What was Whoopi Goldberg's disguise in 'Sister Act'?", ["NUN", "CLAIRVOYANT", "CHEERLEADER", "NURSE"])); this._arrQuestions.push(new Question("Willem Dafoe cackles his way through the 2002 movie 'Spider-Man' as which comic-book villain?", ["THE GREEN GOBLIN", "THE JOKER", "KINGPIN", "DOCTOR OCTOPUS"])); this._arrQuestions.push(new Question("Who portrays rabble-rousing Scotsman William Wallace in the 1995 epic 'Braveheart'?", ["MEL GIBSON", "SEAN CONNERY", "RUSSELL CROWE", "CHRISTOPHER LAMBERT"])); this._arrQuestions.push(new Question("Who takes the lead as \"Crash\" Davis in the 1988 movie 'Bull Durham'?", ["KEVIN COSTNER", "HARRISON FORD", "TIM ROBBINS", "SEAN PENN"])); this._arrQuestions.push(new Question("In which movie do Keanu Reeves and Jack Nicholson play love rivals?", ["SOMETHING'S GOTTA GIVE", "ABOUT SCHMIDT", "THE LAKE HOUSE", "SWEET NOVEMBER"])); this._arrQuestions.push(new Question("In the comedy drama 'K-Pax', Kevin Spacey plays a hospital patient who thinks he is� what?", ["AN ALIEN", "THE PRESIDENT OF THE USA", "GOD", "JIMI HENDRIX"])); this._arrQuestions.push(new Question("In 2000, Christian Bale unnerved us as Patrick Bateman, an 'American�' what?", ["PSYCHO", "BEAUTY", "GIGOLO", "WEREWOLF"])); this._arrQuestions.push(new Question("Who plays the psychopathic Tommy Devito in 'Goodfellas'?", ["JOE PESCI", "AL PACINO", "ROBERT DUVALL", "WILLIAM HURT"])); this._arrQuestions.push(new Question("From whose novel was 'The Green Mile' adapted?", ["STEPHEN KING", "THOMAS HARRIS", "DAN BROWN", "ROBERT LUDLUM"])); this._arrQuestions.push(new Question("In which Alfred Hitchcock thriller does Laurence Olivier play the frosty lead?", ["REBECCA", "THE LADY VANISHES", "REAR WINDOW", "VERTIGO"])); this._arrQuestions.push(new Question("Who directed all four 'Lethal Weapon' movies?", ["RICHARD DONNER", "STEVEN SPIELBERG", "BRETT RATNER", "JOHN MCTIERNAN"])); this._arrQuestions.push(new Question("Who was only 14 years old when she played the part of Iris in the movie 'Taxi Driver'?", ["JODIE FOSTER", "BROOKE SHIELDS", "DREW BARRYMORE", "PATSY KENSIT"])); this._arrQuestions.push(new Question("Which 2004 Oscar� nominated movie has dialog in Aramaic, Latin, and Hebrew?", ["THE PASSION OF THE CHRIST", "ALEXANDER", "TROY", "APOCALYPTO"])); this._arrQuestions.push(new Question("Who plays the sinister Sy Parrish in 'One Hour Photo'?", ["ROBIN WILLIAMS", "JOHNNY DEPP", "PAUL SORVINO", "TOM SELLECK"])); this._arrQuestions.push(new Question("In 'Braveheart', what does Mel Gibson cry out at the moment of his execution?", ["FREEDOM!", "COWARDS!", "SCOTLAND!", "NEVER!"])); this._arrQuestions.push(new Question("In 'From Here to Eternity', which actress shares a kiss with Burt Lancaster in the famous beach scene?", ["DEBORAH KERR", "MARILYN MONROE", "JANE RUSSELL", "RITA HAYWORTH"])); this._arrQuestions.push(new Question("What type of movie is 'A Funny Thing Happened on the Way to the Forum', Buster Keaton's last big-screen appearance?", ["MUSICAL FARCE", "HISTORICAL EPIC", "MURDER MYSTERY", "FILM NOIR"])); this._arrQuestions.push(new Question("At the beginning of 'Carlito's Way', Al Pacino is about to be taken away in a�what?", ["AMBULANCE", "HELICOPTER", "RIOT VAN", "SUBWAY TRAIN"])); this._arrQuestions.push(new Question("Who plays Carrie, a socially awkward teenage girl in the 1976 movie of the same name?", ["SISSY SPACEK", "FAYE DUNAWAY", "SALLY FIELD", "SUSAN SARANDON"])); this._arrQuestions.push(new Question("Who stars in both 'Bend it like Beckham' and 'King Arthur'?", ["KEIRA KNIGHTLEY", "CLIVE OWEN", "COLIN FIRTH", "KIRSTEN DUNST"])); this._arrQuestions.push(new Question("For which movie did Clark Gable win the only Academy Award� of his career?", ["IT HAPPENED ONE NIGHT", "GONE WITH THE WIND", "MUTINY ON THE BOUNTY", "BOOM TOWN"])); this._arrQuestions.push(new Question("Which master of the stage appears as Reginald Johnston in the epic 'The Last Emperor'?", ["PETER O'TOOLE", "RICHARD HARRIS", "JOHN GIELGUD", "LAURENCE OLIVIER"])); this._arrQuestions.push(new Question("In the Caribbean, what is the 'black pearl'?", ["GHOST SHIP", "PRECIOUS JEWEL", "ISLAND", "PIRATE'S GLASS EYE"])); this._arrQuestions.push(new Question("Which 'Reservoir Dogs' actor makes an appearance as Buddy Holly in 'Pulp Fiction'?", ["STEVE BUSCEMI", "CHRIS PENN", "MICHAEL MADSEN", "LAWRENCE TIERNEY"])); this._arrQuestions.push(new Question("For which family movie did Mariah Carey and Whitney Houston team up to sing the theme tune?", ["THE PRINCE OF EGYPT", "STUART LITTLE", "THE BORROWERS", "BEDKNOBS AND BROOMSTICKS"])); this._arrQuestions.push(new Question("In the 1939 movie adaptation of 'Wuthering Heights' who plays Cathy to Lawrence Oliver's Heathcliffe?", ["MERLE OBERON", "JEAN HARLOW", "JOAN FONTAINE", "OLIVIA DE HAVILLAND"])); this._arrQuestions.push(new Question("Which Chinese actress stars in 'House of Flying Daggers' and 'Memoirs of a Geisha'?", ["ZIYI ZHANG", "RINKO KIKUCHI", "LUCY LIU", "BAI LING"])); this._arrQuestions.push(new Question("How many Spartans took on a much larger Persian force in the movie of the same name?", ["300", "200", "100", "DIRTY DOZEN"])); this._arrQuestions.push(new Question("Which anarchic TV comedy became 'Bigger, Longer & Uncut' as a 1999 movie?", ["SOUTH PARK", "BEAVIS AND BUTT-HEAD", "SPONGEBOB SQUAREPANTS", "FAMILY GUY"])); this._arrQuestions.push(new Question("Who plays washed-up prizefighter Butch Coolidge in the epic crime movie, 'Pulp Fiction'?", ["BRUCE WILLIS", "JOHN TRAVOLTA", "GARY OLDMAN", "VING RHAMES"])); this._arrQuestions.push(new Question("Who won an Academy Award� for her role as Ruby in the American Civil War movie, 'Cold Mountain'?", ["REN�E ZELLWEGER", "ANNE HATHAWAY", "CATE BLANCHETT", "KATHY BATES"])); this._arrQuestions.push(new Question("Which movie was not directed by British film-maker, Danny Boyle?", ["BIG FISH", "TRAINSPOTTING", "MILLIONS", "28 DAYS LATER"])); this._arrQuestions.push(new Question("In 'Pirates of the Caribbean: Dead Man's Chest', how does Captain Jack Sparrow settle his debt with Davy Jones?", ["GETS EATEN BY THE KRAKEN", "DELIVERS THE BLACK PEARL", "RETURNS THE GOLD COINS", "SINKS THE 'FLYING DUTCHMAN'"])); this._arrQuestions.push(new Question("During which conflict does 'The Pianist' fear for his life?", ["WORLD WAR II", "VIETNAM WAR", "KOREAN WAR", "WORLD WAR I"])); this._arrQuestions.push(new Question("What gave the 'Fantastic Four' their superhero powers?", ["COSMIC CLOUD", "CHEMICAL PLANT EXPLOSION", "MEDICAL EXPERIMENT", "TOXIC WASTE"])); this._arrQuestions.push(new Question("Which Beatles' movie is animated?", ["YELLOW SUBMARINE", "HELP!", "A HARD DAY'S NIGHT", "LET IT BE"])); this._arrQuestions.push(new Question("In Oliver Stone's 'Alexander', who plays 'The Great' man himself?", ["COLIN FARRELL", "CHRISTOPHER WALKEN", "DANIEL DAY LEWIS", "SEAN CONNERY"])); this._arrQuestions.push(new Question("Which disaster movie has the people of Manhattan freezing on the spot as a result of global warming?", ["THE DAY AFTER TOMORROW", "ARMAGEDDON", "THE SUM OF ALL FEARS", "CHILDREN OF MEN"])); this._arrQuestions.push(new Question("In 'All the President's Men', who is the president in question?", ["RICHARD NIXON", "JOHN F. KENNEDY", "JIMMY CARTER", "FRANKLIN D. ROOSEVELT"])); this._arrQuestions.push(new Question("In the 2004 adaptation of the book, 'Bridget Jones: The Edge of Reason', where does Bridget end up in jail?", ["THAILAND", "INDIA", "AMERICA", "UNITED KINGDOM"])); this._arrQuestions.push(new Question("Who won yet another Oscar� for directing 'Million Dollar Baby'?", ["CLINT EASTWOOD", "MARTIN SCORSESE", "FRANK DARABONT", "MEL GIBSON"])); this._arrQuestions.push(new Question("Who plays the lone dissenter in the jury-room classic, \"Twelve Angry Men'?", ["HENRY FONDA", "KIRK DOUGLAS", "PAUL NEWMAN", "SEAN CONNERY"])); this._arrQuestions.push(new Question("Which movie holds the record for using the most extras?", ["GANDHI", "BEN-HUR", "TITANIC", "GONE WITH THE WIND"])); this._arrQuestions.push(new Question("Which 2006 drama weaves together stories taking place in Morocco, Japan, Mexico and the United States?", ["BABEL", "THE CONSTANT GARDENER", "LETTERS FROM IWO JIMA", "THE PURSUIT OF HAPPYNESS"])); this._arrQuestions.push(new Question("Who livens up proceedings as bumbling cleric Father Gerald in 'Four Weddings and a Funeral'?", ["ROWAN ATKINSON", "STEVE MARTIN", "ROBIN WILLIAMS", "ROBBIE COLTRANE"])); this._arrQuestions.push(new Question("Which beauty pageant are Steve Carell and Toni Collette racing across the desert to reach?", ["LITTLE MISS SUNSHINE", "MISS WORLD", "MISS FIRECRACKER", "MISS CONGENIALITY"])); this._arrQuestions.push(new Question("What are sharing Samuel L. Jackson's flight in the 2006 movie?", ["SNAKES", "TERRORISTS", "ALIENS", "PRESCHOOLERS"])); this._arrQuestions.push(new Question("Which actress is best known for her role as aspiring dancer, Alex Owens, in 'Flashdance'?", ["JENNIFER BEALS", "OLIVIA NEWTON-JOHN", "MADONNA", "JESSICA ALBA"])); this._arrQuestions.push(new Question("According to the 1994 satirical movie, what are Woody Harrelson and Juliette Lewis?", ["NATURAL BORN KILLERS", "DUMB & DUMBER", "HEAVENLY CREATURES", "AIRHEADS"])); this._arrQuestions.push(new Question("Which European beauty does Ethan Hawke meet both 'Before Sunset' and 'Before Sunrise'?", ["JULIE DELPY", "AUDREY TAUTOU", "MONICA BELLUCCI", "PENELOPE CRUZ"])); this._arrQuestions.push(new Question("Which movie tells the tale of Josh Hartnett and Ben Affleck on the Doolittle Mission?", ["PEARL HARBOR", "PLATOON", "APOCALYPSE NOW", "SAVING PRIVATE RYAN"])); this._arrQuestions.push(new Question("In the 'Toy Story' movies, who is the Archenemy of Buzz Lightyear who later turns out to be his father?", ["EMPEROR ZURG", "SENATOR PLUTO", "DR. KAMIKAZI", "INVADER ZIM"])); this._arrQuestions.push(new Question("In the 1971 movie 'Willy Wonka and the Chocolate Factory,' which sweet can be sucked forever?", ["EVERLASTING GOBSTOPPER", "NON-STOP ANISEED BALL", "ENDLESS CANDY", "ETERNAL JAWBREAKER"])); this._arrQuestions.push(new Question("In 'The Talented Mr. Ripley', who meets his maker in a boat off the coast of Italy?", ["JUDE LAW", "RALPH FIENNES", "LEONARDO DICAPRIO", "EWAN MCGREGOR"])); this._arrQuestions.push(new Question("How does Mrs. Incredible save her kids when they are shot down by an anti-aircraft missile?", ["TURNS INTO A PARACHUTE", "MAKES AN ICE SLIDE", "SURROUNDS THEM WITH A FORCE FIELD", "CATCHES THEM ON A GIANT PILLOW"])); this._arrQuestions.push(new Question("Which movie contains the classic line, \"I coulda had class. I coulda been a contender.\"?", ["ON THE WATERFRONT", "MILLION DOLLAR BABY", "ROCKY", "THE CINDERELLA MAN"])); this._arrQuestions.push(new Question("Which condition makes Leonard's detective work difficult in the 2001 thriller 'Memento'?", ["MEMORY LOSS", "INSOMNIA", "BLINDNESS", "DEAFNESS"])); this._arrQuestions.push(new Question("In 'The Silence of the Lambs', which material, largely unavailable in shops, does the killer use to make his suit?", ["HUMAN SKIN", "ANIMAL BONES", "LION HAIR", "PEACOCK FEATHERS"])); this._arrQuestions.push(new Question("The 2005 movie 'The Matador' tells of the unlikely relationship between a mild-mannered salesman and a� what?", ["HITMAN", "SPY", "BANK ROBBER", "BOUNTY HUNTER"])); this._arrQuestions.push(new Question("Before becoming 'Male Gigolo', what was Deuce Bigalow's profession?", ["FISHTANK CLEANER", "ROAD SWEEPER", "BATHROOM ATTENDANT", "ZOOKEEPER"])); this._arrQuestions.push(new Question("In 'The Break-up', which sport do Gary and Brooke enjoy watching together?", ["BASEBALL", "ICE HOCKEY", "DARTS", "SOCCER"])); this._arrQuestions.push(new Question("In 'Goldeneye', Pierce Brosnan plays 007, but who plays 006?", ["SEAN BEAN", "ROBBIE COLTRANE", "JOE DON BAKER", "ROBERT CARLYLE"])); this._arrQuestions.push(new Question("Who plays Bill Foster, a self-appointed urban vigilante in the 1993 thriller 'Falling Down'?", ["MICHAEL DOUGLAS", "MARTIN SHEEN", "CHRISTOPHER WALKEN", "MICHAEL KEATON"])); this._arrQuestions.push(new Question("Which actress received a record 14th Oscar� nomination in 2006?", ["MERYL STREEP", "DIANE KEATON", "MICHELLE PFEIFFER", "JANE FONDA"])); this._arrQuestions.push(new Question("Which actress disguises herself as a boy in the 1983 musical 'Yentl'?", ["BARBRA STREISAND", "CHER", "JULIE ANDREWS", "MADONNA"])); this._arrQuestions.push(new Question("Which 'Lord of the Rings' finds himself in both 'Green Street' and 'Sin City'?", ["ELIJAH WOOD", "SEAN BEAN", "ORLANDO BLOOM", "IAN MCKELLEN"])); this._arrQuestions.push(new Question("In the anarchic 1996 movie, what do Beavis & Butt-head 'do'?", ["AMERICA", "EUROPE", "THE DESERT", "DISNEYLAND"])); this._arrQuestions.push(new Question("Who was Oscar�-nominated for her role as lawyer Gareth Peirce in the 1993 drama 'In the Name of the Father'?", ["EMMA THOMPSON", "HELENA BONHAM CARTER", "TILDA SWINTON", "CATE BLANCHETT"])); this._arrQuestions.push(new Question("Which heart-wrenching children's fantasy features an imaginary land across a river accessed by a swing rope?", ["BRIDGE TO TERABITHIA", "WILLOW", "ERAGON", "DRAGONHEART"])); this._arrQuestions.push(new Question("In 'Shrek 2', what is on the fairy godmother's business card?", ["HAPPINESS IS JUST A TEARDROP AWAY!", "HAPPINESS IS JUST AROUND THE BEND!", "CALL ME FOR A MAGICAL MAKEOVER!", "FOR ALL YOUR NUPTIAL NEEDS!"])); this._arrQuestions.push(new Question("What is 'The Fifth Element'?", ["LOVE", "HOPE", "FAITH", "CHARITY"])); this._arrQuestions.push(new Question("Which former world leader is the subject of Forest Whitaker's movie 'The Last King of Scotland'?", ["IDI AMIN", "JOHN F. KENNEDY", "MAO TSE-TUNG", "JUAN PER�N"])); this._arrQuestions.push(new Question("In the 1993 romantic comedy, who plays 'Benny' to Mary Stuart Masterson's 'Joon'?", ["JOHNNY DEPP", "BEN STILLER", "KEANU REEVES", "TOM HANKS"])); this._arrQuestions.push(new Question("Which actor's roles include the inventor, Caractacus Potts, and security guard, Cecil?", ["DICK VAN DYKE", "ROBIN WILLIAMS", "MICHAEL J FOX", "JOHN GOODMAN"])); this._arrQuestions.push(new Question("What kind of creature is the lovable 'Stuart Little'?", ["MOUSE", "CAT", "HEDGEHOG", "FROG"])); this._arrQuestions.push(new Question("In the 'Lethal Weapon' movies, who plays the highly-strung veteran, Sergeant Roger Murtaugh?", ["DANNY GLOVER", "JAMIE FOXX", "WESLEY SNIPES", "EDDIE MURPHY"])); this._arrQuestions.push(new Question("In 'Talladega Nights', which sport is Ricky Bobby's passion?", ["NASCAR�", "ICE HOCKEY", "SYNCHRONIZED SWIMMING", "GOLF"])); this._arrQuestions.push(new Question("Which unlikely-named underworld player helps Starsky and Hutch get the bad guys?", ["HUGGY BEAR", "SANDY CHEEKS", "MR. T", "MOANING MYRTLE"])); this._arrQuestions.push(new Question("Who had a nasty experience in the shower at the Bates Motel?", ["JANET LEIGH", "BARBARA STANWYCK", "AUDREY HEPBURN", "TIPPI HEDREN"])); this._arrQuestions.push(new Question("Where was Oscar�-winning actress Cate Blanchett born?", ["AUSTRALIA", "SOUTH AFRICA", "CANADA", "FRANCE"])); this._arrQuestions.push(new Question("Which war is the setting for Spielberg's 'Saving Private Ryan'?", ["WORLD WAR II", "WORLD WAR I", "VIETNAM WAR", "AMERICAN WAR OF INDEPENDENCE"])); this._arrQuestions.push(new Question("Scarlett Johansson provides the voice for Princess Mindy in which animated movie?", ["THE SPONGEBOB SQUAREPANTS MOVIE", "TEAM AMERICA: WORLD POLICE", "TOY STORY", "CARS"])); this._arrQuestions.push(new Question("Sharon Stone stars in a 2006 movie about the assassination of which political figure?", ["ROBERT F. KENNEDY", "MAHATMA GANDHI", "MALCOLM X", "MARTIN LUTHER KING, JR."])); this._arrQuestions.push(new Question("Who is Carrie Fisher's filmstar mother?", ["DEBBIE REYNOLDS", "ELIZABETH TAYLOR", "JUDY GARLAND", "JANET LEIGH"])); this._arrQuestions.push(new Question("Which of these Bruce Willis movies does NOT also features Samuel L. Jackson?", ["THE SIXTH SENSE", "UNBREAKABLE", "PULP FICTION", "DIE HARD WITH A VENGEANCE"])); this._arrQuestions.push(new Question("In 'The Sound of Music', who plays Julie Andrews' favorite thing, Captain Von Trapp?", ["CHRISTOPHER PLUMMER", "DICK VAN DYKE", "KIRK DOUGLAS", "GEORGE PEPPARD"])); this._arrQuestions.push(new Question("Which French actress is in 'The Da Vinci Code' and 'Am�lie'?", ["AUDREY TAUTOU", "JULIETTE BINOCHE", "EVA GREEN", "BRIGITTE BARDOT"])); this._arrQuestions.push(new Question("Who challenges Ron Burgundy to become lead anchor on channel four news?", ["CHRISTINA APPLEGATE", "ISLA FISHER", "CHRISTINE TAYLOR", "ANNA FARIS"])); this._arrQuestions.push(new Question("Which Hollywood legend does Cate Blanchett portray in 'The Aviator'?", ["KATHARINE HEPBURN", "MAE WEST", "MARILYN MONROE", "BETTY GRABLE"])); this._arrQuestions.push(new Question("Who is the only man left standing at the end of 'The Departed'?", ["MARK WAHLBERG", "LEONARDO DICAPRIO", "MARTIN SHEEN", "MATT DAMON"])); this._arrQuestions.push(new Question("Which Academy Award�-winning actor is 'Driving Miss Daisy'?", ["MORGAN FREEMAN", "SIDNEY POITIER", "JOHN GIELGUD", "MICHAEL CAINE"])); this._arrQuestions.push(new Question("Who isn't one of the elite 'Top Gun' Pilots?", ["JACKAL", "MAVERICK", "GOOSE", "ICE MAN"])); this._arrQuestions.push(new Question("Where do 'Bad Boys' Martin Lawrence and Will Smith do their policing?", ["MIAMI", "NEW YORK", "CHICAGO", "LOS ANGELES"])); this._arrQuestions.push(new Question("For which creature does Julia Roberts provide the voice in the 2006 movie 'Charlotte's Web'?", ["CHARLOTTE THE SPIDER", "TEMPLETON THE RAT", "BITSY THE COW", "FERN"])); this._arrQuestions.push(new Question("In the 2001 romantic comedy of the same name, what exactly is 'The Mexican'?", ["GUN", "HITMAN", "HAIRCUT", "MEAL"])); this._arrQuestions.push(new Question("As 'The Cooler', where does William H. Macy put his talent to use?", ["THE CASINO", "BASEBALL FIELD", "BOXING RING", "RACING TRACK"])); this._arrQuestions.push(new Question("In the 2002 movie 'We Were Soldiers', who plays born leader, Lieutenant Colonel Hal Moore?", ["MEL GIBSON", "WOODY HARRELSON", "CHARLIE SHEEN", "JAKE GYLLENHAAL"])); this._arrQuestions.push(new Question("In the 2006 movie 'In Her Shoes' what does Rose do for a living once she quiets her job as a lawyer?", ["DOG WALKER", "WAITRESS", "CARE ASSISTANT", "PERSONAL SHOPPER"])); this._arrQuestions.push(new Question("Who plays the caped crusader in the movie 'Batman Returns'?", ["MICHAEL KEATON", "GEORGE CLOONEY", "VAL KILMER", "CHRISTIAN BALE"])); this._arrQuestions.push(new Question("What is at the end of 'The Green Mile'?", ["ELECTRIC CHAIR", "FREEDOM", "EIGHTEENTH HOLE", "FINISHING POST"])); this._arrQuestions.push(new Question("Gregory Peck won an Oscar� for playing Lawyer, Atticus Finch, but in which movie?", ["TO KILL A MOCKINGBIRD", "MOBY DICK", "THE GUNS OF NAVARONE", "ROMAN HOLIDAY"])); this._arrQuestions.push(new Question("In which of these movies does John Travolta manage to stay alive?", ["STAYING ALIVE", "PULP FICTION", "BROKEN ARROW", "THE PUNISHER"])); this._arrQuestions.push(new Question("In 'Kill Bill: Volume 2' which creature helps Budd into an early grave?", ["BLACK MAMBA", "SCORPION", "TARANTULA", "POISON DART FROG"])); this._arrQuestions.push(new Question("In 'Sin City', Hartigan is released from Jail to find a grown-up Nancy earning a living as a � what?", ["DANCER", "CROUPIER", "WAITRESS", "POLICEWOMAN"])); this._arrQuestions.push(new Question("At the end of 'The Sixth Sense', who is revealed to have actually died in the film's opening scene?", ["BRUCE WILLIS", "HALEY JOEL OSMENT", "TONI COLETTE", "OLIVIA WILLIAMS"])); this._arrQuestions.push(new Question("In which movie does Keanu Reeves yell the line, \"Shoot the Hostage!\"?", ["SPEED", "POINT BREAK", "PARENTHOOD", "CONSTANTINE"])); this._arrQuestions.push(new Question("Which actress does NOT appear in the 1989 comedy drama 'Steel Magnolias'?", ["MICHELLE PFEIFFER", "SALLY FIELD", "JULIA ROBERTS", "SHIRLEY MACLAINE"])); this._arrQuestions.push(new Question("In \"Bridget Jones: The Edge of Reason' where does the fight between Hugh Grand and Colin Firth end up?", ["FOUNTAIN", "DUCK POND", "DOUBLE DECKER BUS", "CARNIVAL PROCESSION"])); this._arrQuestions.push(new Question("Who famously cut short a marketplace fight scene by drawing a gun and shooting their sword-wielding opponent?", ["INDIANA JONES", "LARA CROFT", "HAN SOLO", "JAMES BOND"])); this._arrQuestions.push(new Question("What does Cuba Gooding Jr. shout down the phone to Tom Cruise in 'Jerry Maguire'?", ["SHOW ME THE MONEY!", "THIS GUY IS GETTING ON MY NERVES", "CAREFUL, STUART. CAREFUL", "MORPHEUS BELIEVES HE IS THE ONE"])); this._arrQuestions.push(new Question("In the final scenes of '50 First Dates' where does Lucy wake up?", ["SAILBOAT", "BEACH HUT", "AIRPLANE", "EMPIRE STATE BUILDING"])); this._arrQuestions.push(new Question("Jim Carrey stars in the 2004 romantic drama 'Eternal Sunshine of the Spotless�' what?", ["MIND", "KITCHEN", "LEOPARD", "DRIVER'S LICENSE"])); this._arrQuestions.push(new Question("To which 'Unfortunate' children's character does Jude Law lend his vocal talents?", ["LEMONY SNICKET", "GARFIELD", "BABE", "CURIOUS GEORGE"])); this._arrQuestions.push(new Question("Who has never starred as Gotham's 'Dark Knight'?", ["KIEFER SUTHERLAND", "GEORGE CLOONEY", "MICHAEL KEATON", "CHRISTIAN BALE"])); this._arrQuestions.push(new Question("Who is the object of Spider-Man's affections?", ["MARY JANE WATSON", "LOIS LANE", "DR. BETTY ROSS", "RACHEL DAWES"])); this._arrQuestions.push(new Question("How is Dustin Hoffman's character Raymond Babbit better known?", ["RAIN MAN", "TOOTSIE", "CAPTAIN HOOK", "ISHTAR"])); this._arrQuestions.push(new Question("In which movie does Eddie Murphy play six members of the Klump family?", ["THE NUTTY PROFESSOR", "DOCTOR DOLITTLE", "BEVERLY HILLS COP", "DREAMGIRLS"])); this._arrQuestions.push(new Question("Playing opposite which actor did Nicole Kidman find her 'Eyes Wide Shut'?", ["TOM CRUISE", "BRUCE WILLIS", "GEORGE CLOONEY", "BRAD PITT"])); this._arrQuestions.push(new Question("Which legendary Greek is portrayed by Orlando Bloom in the epic, 'Troy'?", ["PARIS", "ACHILLES", "ODYSSEUS", "HECTOR"])); this._arrQuestions.push(new Question("What is the occupation of Owen Wilson's 'Zoolander' character, Hansel?", ["MODEL", "BARTENDER", "JOCKEY", "CONGRESSMAN"])); this._arrQuestions.push(new Question("Which group of puppets have their headquarters in Mount Rushmore?", ["TEAM AMERICA", "INTERNATIONAL RESCUE", "THE INCREDIBLES", "SPECTRE"])); this._arrQuestions.push(new Question("Who won an Oscar� for being a 'Million Dollar Baby'?", ["HILARY SWANK", "PENELOPE CRUZ", "ANGELINA JOLIE", "CATE BLANCHETT"])); this._arrQuestions.push(new Question("At which sport does Forrest Gump become an international star and diplomat?", ["TABLE TENNIS", "GOLF", "BASEBALL", "CHESS"])); for each (_local1 in this._arrQuestions) { if (_local1.answers.length != 4){ trace(_local1); }; }; } public function nextQuestion():Boolean{ if (this._intCurrentQuestionIndex == (this._arrQuestions.length - 1)){ return (false); }; this._intCurrentQuestionIndex++; return (true); } private function doQuestionsLoaded(_arg1:Event){ this.dispatchEvent(new Event(Event.COMPLETE)); } public function randomizeQuestions():void{ var _local1:Question; this._arrQuestions = ArrayUtils.randomizeArray(this._arrQuestions); for each (_local1 in this._arrQuestions) { _local1.randomizeAnswers(); }; } public function get currentQuestion():Question{ return (((((this._intCurrentQuestionIndex < 0)) || ((this._intCurrentQuestionIndex >= this._arrQuestions.length)))) ? null : this._arrQuestions[this._intCurrentQuestionIndex]); } } }//package configuration
Section 22
//AnswerResultControl (controls.AnswerResultControl) package controls { import flash.events.*; import flash.display.*; import se.rocketxl.*; import flash.text.*; import se.rocketxl.ui.*; import se.rocketxl.ui.widget.gui.*; public class AnswerResultControl extends Element { private var _clpLoseScore:MovieClip; private var _strCurrentScoreDeltaText:String; private var _txtScore:TextField; private var _clpGainScore:MovieClip; public function AnswerResultControl(){ this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); } private function doAddedToStage(_arg1:Event){ if (_arg1.target == this){ this._txtScore = (DataBinder.getProperty(this, "txtScore", TextField) as TextField); this._clpGainScore = (DataBinder.getProperty(this, "clpGainScore") as MovieClip); this._clpGainScore.stop(); this._clpGainScore.visible = false; this._clpLoseScore = (DataBinder.getProperty(this, "clpLoseScore") as MovieClip); this._clpLoseScore.stop(); this._clpLoseScore.visible = false; this.removeEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); }; } public function updateScore(_arg1:Number, _arg2:Number, _arg3:String=null){ var _local4:Boolean; this._txtScore.text = _arg1.toString(); if (int(_arg2) != 0){ _local4 = (_arg2 < 0); this._strCurrentScoreDeltaText = (_local4) ? "-" : "+"; this._strCurrentScoreDeltaText = (this._strCurrentScoreDeltaText + ((_arg3 == null)) ? _arg2.toFixed(1) : StringUtils.format(_arg3, Math.round(Math.abs(_arg2)))); this.playClip((_local4) ? this._clpLoseScore : this._clpGainScore, this.doAnimateScoreDelta); }; } protected function playClip(_arg1:MovieClip, _arg2:Function){ _arg1.visible = true; _arg1.addEventListener(Event.ENTER_FRAME, _arg2); _arg1.gotoAndPlay(0); } private function doAnimateScoreDelta(_arg1:Event){ if (this.generalMovieClipAnimation(_arg1, this.doAnimateScoreDelta)){ if (((((((_arg1.target.hasOwnProperty("scoreClip")) && (!((_arg1.target.scoreClip == null))))) && (_arg1.target.scoreClip.hasOwnProperty("scoreText")))) && (!((_arg1.target.scoreClip.scoreText == null))))){ _arg1.target.scoreClip.scoreText.text = this._strCurrentScoreDeltaText; }; }; } protected function generalMovieClipAnimation(_arg1:Event, _arg2:Function):Boolean{ if ((_arg1.target is MovieClip)){ if (_arg1.target.currentFrame == _arg1.target.totalFrames){ _arg1.target.removeEventListener(Event.ENTER_FRAME, _arg2); _arg1.target.visible = false; _arg1.target.stop(); }; return (true); }; return (false); } } }//package controls
Section 23
//CharacterSelectControl (controls.CharacterSelectControl) package controls { import flash.events.*; import flash.display.*; import configuration.*; import mx.effects.*; import flash.geom.*; import se.rocketxl.ui.*; import mx.effects.easing.*; import mx.events.*; import flash.filters.*; public class CharacterSelectControl extends MovieClip { public var clpAvatarContainer:MovieClip; private var _pntAvatarContainerOriginSize:Point; private var _intCharacterIndex:int; private var _pntAvatarContainerOriginPos:Point; public var btnNextCharacter:MovieClip; private var _clpAvatarContainer:MovieClip; private var _objAvatarTween:Tween; private var _btnPreviousCharacter:MovieClip; private var _btnNextCharacter:MovieClip; public var btnPreviousCharacter:MovieClip; public function CharacterSelectControl(){ this._intCharacterIndex = 0; this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); } private function doAvatarTween(_arg1:Number){ this._clpAvatarContainer.x = _arg1; } public function get characterIndex():int{ return (this._intCharacterIndex); } private function stopAvatarTween(){ if (this._objAvatarTween != null){ this._objAvatarTween.pause(); this._objAvatarTween = null; }; } private function doAddedToStage(_arg1:Event):void{ var _local2:int; var _local3:MovieClip; var _local4:Array; if (_arg1.target == this){ this._btnPreviousCharacter = (DataBinder.getProperty(this, "btnPreviousCharacter") as MovieClip); this._btnNextCharacter = (DataBinder.getProperty(this, "btnNextCharacter") as MovieClip); this._clpAvatarContainer = (DataBinder.getProperty(this, "clpAvatarContainer") as MovieClip); this._pntAvatarContainerOriginSize = new Point(this._clpAvatarContainer.width, this._clpAvatarContainer.height); this._pntAvatarContainerOriginPos = new Point(this._clpAvatarContainer.x, this._clpAvatarContainer.y); _local2 = 0; while (_local2 < GameSettings.characterDataArray.length) { _local3 = GameSettings.createCharacterClip(_local2); if (((_local3.hasOwnProperty("clip")) && ((_local3["clip"] is MovieClip)))){ if ((_local3["clip"] as MovieClip).filters.length > 0){ if (((_local3["clip"] as MovieClip).filters[0] is GlowFilter)){ _local4 = new Array((_local3["clip"] as MovieClip).filters[0]); (_local4[0] as GlowFilter).color = 0xFF0000; (_local3["clip"] as MovieClip).filters = _local4; }; }; }; this._clpAvatarContainer.addChild(_local3); _local3.x = ((_local2 * this._pntAvatarContainerOriginSize.x) + ((this._pntAvatarContainerOriginSize.x - _local3.width) / 2)); _local3.y = 0; _local2++; }; this._btnPreviousCharacter.addEventListener(MouseEvent.CLICK, this.doPreviousCharacter); this._btnPreviousCharacter.buttonMode = true; this._btnNextCharacter.addEventListener(MouseEvent.CLICK, this.doNextCharacter); this._btnNextCharacter.buttonMode = true; this.removeEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); }; } private function changeCharacter(_arg1:int){ var _local2:int; this._intCharacterIndex = (this._intCharacterIndex + _arg1); _local2 = (Math.abs(this._intCharacterIndex) % GameSettings.characterDataArray.length); this._intCharacterIndex = ((this._intCharacterIndex < 0)) ? (GameSettings.characterDataArray.length - _local2) : _local2; this.dispatchEvent(new TweenEvent("characterChanged", false, false, this._intCharacterIndex)); this.startAvatarTween(); } private function doAvatarTweenComplete(_arg1:Number){ this.doAvatarTween(_arg1); this.stopAvatarTween(); } private function doNextCharacter(_arg1:MouseEvent){ this.changeCharacter(1); } private function doPreviousCharacter(_arg1:MouseEvent){ this.changeCharacter(-1); } private function startAvatarTween(){ this.stopAvatarTween(); this._objAvatarTween = new Tween(this, this._clpAvatarContainer.x, (_pntAvatarContainerOriginPos.x - (this.characterIndex * this._pntAvatarContainerOriginSize.x)), 600); this._objAvatarTween.easingFunction = Circular.easeInOut; this._objAvatarTween.setTweenHandlers(this.doAvatarTween, this.doAvatarTweenComplete); } } }//package controls
Section 24
//ClapperTop (controls.ClapperTop) package controls { import se.rocketxl.ui.widget.events.*; import se.rocketxl.ui.widget.gui.*; public class ClapperTop extends Element { public function ClapperTop(){ addFrameScript(0, frame1, 4, frame5, 7, frame8, 11, frame12); } protected function processCommandEvent(_arg1:CommandEvent){ switch (_arg1.command){ case "CLAP": if (_arg1.args.length > 0){ this.gotoAndPlay(_arg1.args[0]); }; break; }; } function frame12(){ stop(); } function frame1(){ stop(); } function frame5(){ stop(); } override public function processWidgetEvent(_arg1:IWidgetEvent){ if ((_arg1 is CommandEvent)){ this.processCommandEvent((_arg1 as CommandEvent)); }; } function frame8(){ stop(); } } }//package controls
Section 25
//CurtainElement (controls.CurtainElement) package controls { import flash.events.*; import flash.display.*; import se.rocketxl.ui.*; import se.rocketxl.ui.widget.gui.*; public class CurtainElement extends Element { private var _clpOpenRight:MovieClip; private var _clpCloseLeft:MovieClip; public var clpCloseRight:MovieClip; private var _clpCloseRight:MovieClip; public var clpCloseLeft:MovieClip; public var clpOpenRight:MovieClip; public var clpOpenLeft:MovieClip; private var _clpOpenLeft:MovieClip; public function CurtainElement(){ super._blnUseHidingState = true; this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); } private function openCurtain(){ this._clpCloseLeft.visible = false; this._clpCloseRight.visible = false; this._clpOpenLeft.visible = true; this._clpOpenLeft.gotoAndPlay(1); this._clpOpenRight.visible = true; this._clpOpenRight.gotoAndPlay(1); } override public function showElement():void{ super._blnIsHidden = false; this.closeCurtain(); } public function doAddedToStage(_arg1:Event){ if (_arg1.target == this){ this._clpOpenLeft = (DataBinder.getProperty(this, "clpOpenLeft") as MovieClip); this._clpOpenLeft.visible = false; this._clpOpenLeft.stop(); this._clpOpenRight = (DataBinder.getProperty(this, "clpOpenRight") as MovieClip); this._clpOpenRight.visible = false; this._clpOpenRight.stop(); this._clpCloseLeft = (DataBinder.getProperty(this, "clpCloseLeft") as MovieClip); this._clpCloseLeft.visible = false; this._clpCloseLeft.stop(); this._clpCloseRight = (DataBinder.getProperty(this, "clpCloseRight") as MovieClip); this._clpCloseRight.visible = false; this._clpCloseRight.stop(); this.removeEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); }; } override public function hideElement():void{ super._blnIsHidden = true; this.openCurtain(); } private function closeCurtain(){ this._clpOpenLeft.visible = false; this._clpOpenRight.visible = false; this._clpCloseLeft.visible = true; this._clpCloseLeft.gotoAndPlay(1); this._clpCloseRight.visible = true; this._clpCloseRight.gotoAndPlay(1); } } }//package controls
Section 26
//GameControlsInfoElement (controls.GameControlsInfoElement) package controls { import se.rocketxl.ui.widget.container.*; import configuration.*; public class GameControlsInfoElement extends GameSettingsControlledElement { public var btnOkContinue:OkContinueButton; override public function showElement():void{ super.showElement(); if (this.gameSettings != null){ if (this.gameSettings.playerMode == PlayerModeType.SINGLE){ if (this.gameSettings.currentMode.settings.usePlayerPots){ this.gotoAndStop("COLLECT"); } else { this.gotoAndStop("SINGLE"); }; } else { if (this.gameSettings.currentMode.settings.usePlayerPots){ this.gotoAndStop("NORMAL"); } else { this.gotoAndStop("VERSUS"); }; }; } else { this.gotoAndStop("NORMAL"); }; this.stop(); } override public function applySettings(_arg1:XML, _arg2:IElementContainer):void{ super.applySettings(_arg1, _arg2); } } }//package controls
Section 27
//GameModeElement (controls.GameModeElement) package controls { import se.rocketxl.ui.widget.container.*; import se.rocketxl.ui.widget.events.*; import flash.utils.*; import flash.events.*; import configuration.*; import flash.media.*; import mx.effects.*; import flash.text.*; import se.rocketxl.util.*; import se.rocketxl.ui.*; import mx.effects.easing.*; import se.rocketxl.ui.widget.gui.*; public class GameModeElement extends GameSettingsControlledElement { public var ctlPot:InGamePot; private var _numScorePot:Number; private var _objCurtainElement:Element; private var _ctlGeneralScorePot:InGamePlayerPanel; private var _blnIsTimerActive:Boolean; private var _sndClockTickChannel:SoundChannel; private var _arrPlayerPots:Array; private var _objNextQuestionDelayTimer:Timer; private var _objClockWaitTimer:Timer; private var _sndWrongAnswer:Sound; private var _arrAnswerControls:Array; private var _txtDebug:TextField; private var _intPlayerTurnIndex:int; public var ctlQuestion:InGameQuestion; private var _objInputListener:InputListener; private var _sndClockTick:Sound; private var _objClockTween:Tween; private var _objClockElement:InGameClock; private var _ctlQuestion:InGameQuestion; private var _numCurrentTimerValue:Number; public var ctlAnswer1:InGameAnswerBox1; public var ctlAnswer2:InGameAnswerBox2; public var ctlAnswer4:InGameAnswerBox4; private var _objQuestionReadDelayTimer:Timer; public var ctlAnswer3:InGameAnswerBox3; private var _blnNoMoreQuestions:Boolean; private var _objQuizNumberElement:Element; private var _intCurrentLadderIndex:int; private var _arrPlayerPanels:Array; public function GameModeElement(){ this._sndWrongAnswer = new WrongAnswerSound(); this._sndClockTick = new ClockTick(); this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); } private function updateGeneralPot(_arg1:Number, _arg2:Number=0){ var _local3:Number; var _local4:Number; _local3 = 0; if (this.gameSettings.currentMode.settings.usePlayerPots){ for each (_local4 in this._arrPlayerPots) { _local3 = (_local3 + (isNaN(_local4)) ? 0 : _local4); }; }; this.updateScorePanel(this._ctlGeneralScorePot, (_local3 + this._numScorePot), _arg1, _arg2); } private function stopQuestionTimer():void{ if (this._objNextQuestionDelayTimer != null){ this._objNextQuestionDelayTimer.reset(); }; if (((((!((this.gameSettings == null))) && (!((this.gameSettings.currentMode == null))))) && (!(this.gameSettings.currentMode.settings.useTimeAttack)))){ if (this._objQuestionReadDelayTimer != null){ this._objQuestionReadDelayTimer.reset(); }; }; if (this._sndClockTickChannel != null){ this._sndClockTickChannel.stop(); }; if (this._objClockTween != null){ this._objClockTween.pause(); this._objClockTween = null; }; this._blnIsTimerActive = false; this.updateClockAnimation(0); } private function updateScorePanel(_arg1:InGamePlayerPanel, _arg2:Number, _arg3:Number, _arg4:Number){ _arg1.updateScore(_arg2, (this.gameSettings.currentMode.settings.showGainedTime) ? _arg4 : _arg3, (this.gameSettings.currentMode.settings.showGainedTime) ? "{0}s" : "{0}p"); } private function updateClockAnimation(_arg1:Number):void{ this._numCurrentTimerValue = _arg1; this._objClockElement.setTimerPercentage(_arg1); } private function doWrongAnswer(_arg1:int){ var _local2:PlayData; var _local3:Number; this._arrPlayerPots[_arg1] = 0; if (this.gameSettings.currentMode.settings.useWrongAnswerPot){ if (this._arrPlayerPots[_arg1] == null){ this._arrPlayerPots[_arg1] = 0; }; this._arrPlayerPots[_arg1] = (this._arrPlayerPots[_arg1] + this.gameSettings.currentMode.getNextScore(_arg1)); this._numScorePot = (this._numScorePot + this._arrPlayerPots[_arg1]); this.updateGeneralPot(this._arrPlayerPots[_arg1]); this._arrPlayerPots[_arg1] = 0; } else { _local3 = this._numScorePot; this._numScorePot = 0; this.updateGeneralPot(-(_local3)); }; this._sndWrongAnswer.play(0, 0, new SoundTransform(0.5, ((_arg1 == 0)) ? -1 : 1)); _local2 = this.gameSettings.currentMode.getPlayData(_arg1); _local2.resetCombo(); } private function doAddedToStage(_arg1:Event){ if (_arg1.target == this){ this._arrAnswerControls = DataBinder.getPropertyIncremental(this, "ctlAnswer", InGameAnswer); this._ctlGeneralScorePot = (DataBinder.getProperty(this, "ctlPot", InGamePlayerPanel) as InGamePlayerPanel); this._ctlQuestion = (DataBinder.getProperty(this, "ctlQuestion", InGameQuestion) as InGameQuestion); this._objInputListener = new InputListener(this.stage); this.removeEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); }; } private function completeClockAnimation(_arg1:Number):void{ var _local2:int; this.updateClockAnimation(_arg1); if (this.gameSettings.currentMode.settings.useTimeAttack){ _local2 = 0; while (_local2 < this.gameSettings.numPlayers) { this.doCollectScore(_local2); _local2++; }; this.doComplete(); } else { this.doQuestionComplete(); }; } private function doComplete(){ var _local1:Array; this.doQuestionComplete(false); _local1 = new Array(); _local1["settings"] = this.gameSettings; if (this.gameSettings.nextGameMode()){ this.dispatchEvent(new SectionChangeEvent("gameModePreloader", _local1)); } else { this.dispatchEvent(new SectionChangeEvent("gameResults", _local1)); }; } private function initClockTimer(){ if (this.gameSettings.currentMode.settings.useTimeAttack){ this.startClockTimer(); } else { this._objQuestionReadDelayTimer.reset(); this._objQuestionReadDelayTimer.start(); }; } private function init():void{ var _local1:uint; var _local2:PlayerSettings; this._arrPlayerPots = new Array(); this._numScorePot = 0; this._blnNoMoreQuestions = false; this._intPlayerTurnIndex = Math.round((Math.random() * (this.gameSettings.numPlayers - 1))); this._ctlGeneralScorePot.visible = ((this.gameSettings.currentMode.settings.usePlayerPots) || (this.gameSettings.currentMode.settings.useWrongAnswerPot)); _local1 = 0; while (_local1 < this._arrPlayerPanels.length) { this._arrPlayerPanels[_local1].visible = (_local1 < this.gameSettings.numPlayers); _local1++; }; _local1 = 0; while ((((_local1 < this.gameSettings.numPlayers)) && ((_local1 < this._arrPlayerPanels.length)))) { _local2 = this.gameSettings.getPlayerSettingsAt(_local1); if (this.gameSettings.previousMode != null){ this.gameSettings.currentMode.getPlayData(_local1).addScore(this.gameSettings.previousMode.getPlayData(_local1).score); }; this.updateScorePanel(this._arrPlayerPanels[_local1], this.gameSettings.currentMode.getPlayData(_local1).score, 0, 0); _local1++; }; this._objQuestionReadDelayTimer = new Timer((this.gameSettings.currentMode.settings.questionReadTime * 1000), 1); this._objQuestionReadDelayTimer.addEventListener(TimerEvent.TIMER_COMPLETE, this.startClockTimer); this._objNextQuestionDelayTimer = new Timer((this.gameSettings.currentMode.settings.questionWaitTime * 1000), 1); this._objNextQuestionDelayTimer.addEventListener(TimerEvent.TIMER_COMPLETE, this.nextQuestion); if (this.gameSettings.previousMode == null){ this.dispatchEvent(new CommandEvent("tracker", "TRACK", [((this.gameSettings.numPlayers == 1)) ? "StartSingleplayer" : "StartMultiplayer"])); }; this.nextQuestion(); } private function doAnswerQuestion(_arg1:int, _arg2:int):void{ var _local3:Boolean; var _local4:CharacterData; if (((((!(this.gameSettings.currentMode.getPlayData(_arg1).hasAnswered)) && (!(this._blnNoMoreQuestions)))) && (((!(this.gameSettings.currentMode.settings.isTurnBased)) || (((this.gameSettings.currentMode.settings.isTurnBased) && ((this._intPlayerTurnIndex == _arg1)))))))){ _local3 = this.gameSettings.questionHandler.currentQuestion.isCorrect(_arg2); _local4 = this.gameSettings.getPlayerSettingsAt(_arg1).characterData; if (((!((_local4 == null))) && (!((_local4.buzzSound == null))))){ _local4.buzzSound.play(); }; this.gameSettings.currentMode.getPlayData(_arg1).logAnswer(_local3, this._intCurrentLadderIndex); if (_local3){ this._intCurrentLadderIndex++; }; if (this.gameSettings.playerMode == PlayerModeType.VERSUS){ if (this.gameSettings.currentMode.settings.isTurnBased){ if (this.gameSettings.currentMode.getPlayData(this._intPlayerTurnIndex).hasAnswered){ this.doQuestionComplete(); }; } else { if (this.gameSettings.currentMode.hasAllPlayersAnswered){ this.doQuestionComplete(); }; }; } else { this.doQuestionComplete(); }; this.updatePanelDisplay(); }; } private function doNoMoreQuestions(){ this._blnNoMoreQuestions = true; this.doComplete(); } override public function showElement():void{ if (this._objCurtainElement != null){ this._objCurtainElement.hideElement(); }; super.showElement(); this.updatePanelDisplay(true); this.init(); this._objInputListener.addEventListener(ExtendedKeyboardEvent.KEY_PRESSED, this.doKeyPressedEvent); } override public function hideElement():void{ this.updatePanelDisplay(false); this.stopQuestionTimer(); if (this._objQuizNumberElement.hasOwnProperty("textField")){ this._objQuizNumberElement.textField.text = ""; }; if (this._objCurtainElement != null){ this._objCurtainElement.showElement(); }; super.hideElement(); this._objInputListener.removeEventListener(ExtendedKeyboardEvent.KEY_PRESSED, this.doKeyPressedEvent); } private function changePlayerTurns():void{ this._intPlayerTurnIndex++; if (this._intPlayerTurnIndex >= this.gameSettings.numPlayers){ this._intPlayerTurnIndex = 0; }; this.updatePanelDisplay(); } public function updatePanelDisplay(_arg1:Boolean=true, _arg2:GameSettings=null):void{ var _local3:uint; var _local4:int; var _local5:int; var _local6:PlayerSettings; _local3 = 0; while (_local3 < this._arrPlayerPanels.length) { this._arrPlayerPanels[_local3].visible = false; _local3++; }; _local4 = ((_arg2)!=null) ? Math.min(_arg2.numPlayers, this._arrPlayerPanels.length) : ((this.gameSettings == null)) ? 0 : Math.min(this.gameSettings.numPlayers, this._arrPlayerPanels.length); _local5 = 0; while (_local5 < _local4) { if (this._arrPlayerPanels[_local5] != null){ if (((!((this.gameSettings == null))) || (!((_arg2 == null))))){ _local6 = ((_arg2 == null)) ? this.gameSettings : _arg2.getPlayerSettingsAt(_local5); if (_local6 != null){ this._arrPlayerPanels[_local5].setSettings(_local6.playerName, GameSettings.createCharacterClip(_local6.characterData.characterIndex)); }; }; this._arrPlayerPanels[_local5].visible = _arg1; if (this.gameSettings != null){ if (this._arrPlayerPanels[_local5].playerNameField != null){ this._arrPlayerPanels[_local5].playerNameField.visible = (((_arg2)!=null) ? _arg2.numPlayers : this.gameSettings.numPlayers > 1); }; this._arrPlayerPanels[_local5].setAvatarFocus(true); if (this.gameSettings.currentMode != null){ if (this.gameSettings.currentMode.getPlayData(_local5) != null){ if (this.gameSettings.currentMode.getPlayData(_local5).hasAnswered){ this._arrPlayerPanels[_local5].setAvatarFocus(false); }; } else { if (this.gameSettings.currentMode.settings != null){ if (this.gameSettings.currentMode.settings.isTurnBased){ this._arrPlayerPanels[_local5].setAvatarFocus((this._intPlayerTurnIndex == _local5)); }; }; }; }; }; }; _local5++; }; } override public function applySettings(_arg1:XML, _arg2:IElementContainer):void{ super.applySettings(_arg1, _arg2); this._objClockElement = (this.elementContainer.getElementByName("clock") as InGameClock); this._arrPlayerPanels = [this.elementContainer.getElementByName("player1Panel"), this.elementContainer.getElementByName("player2Panel")]; this._objCurtainElement = (this.elementContainer.getElementByName("curtain") as Element); this._objQuizNumberElement = (this.elementContainer.getElementByName("quizNumber") as Element); this.updatePanelDisplay(false); } private function doCollectScore(_arg1:int, _arg2:Number=0):void{ var _local3:Number; var _local4:PlayData; var _local5:Number; var _local6:Array; var _local7:int; var _local8:int; var _local9:PlayData; _local3 = ((this._arrPlayerPots[_arg1])!=null) ? this._arrPlayerPots[_arg1] : 0; this._arrPlayerPots[_arg1] = 0; if (this.gameSettings.currentMode.settings.useWrongAnswerPot){ if (this._numScorePot > 0){ _local3 = (_local3 + this._numScorePot); _local5 = this._numScorePot; this._numScorePot = 0; this.updateGeneralPot(-(_local5), -(_arg2)); }; } else { if (this.gameSettings.currentMode.settings.usePlayerPots){ _local3 = (_local3 + this._numScorePot); this._numScorePot = 0; this.updateGeneralPot(0, 0); }; }; _local4 = this.gameSettings.currentMode.getPlayData(_arg1); if (((this.gameSettings.currentMode.settings.useSteal) && ((this.gameSettings.numPlayers > 1)))){ _local6 = new Array(); _local7 = 0; while (_local7 < this.gameSettings.numPlayers) { if (_local7 != _arg1){ _local6.push(_local7); }; _local7++; }; _local8 = ArrayUtils.randomizeArray(_local6)[0]; _local9 = this.gameSettings.currentMode.getPlayData(_local8); if (_local9.score < _local3){ _local3 = _local9.score; }; _local4.addScore(_local3, _arg2); _local9.addScore(-(_local3)); this.updateScorePanel(this._arrPlayerPanels[_local8], _local9.score, -(_local3), 0); } else { _local4.addScore(_local3, _arg2); }; this.updateScorePanel(this._arrPlayerPanels[_arg1], _local4.score, _local3, _arg2); _local4.resetCombo(); this._numScorePot = 0; } private function doKeyPressedEvent(_arg1:ExtendedKeyboardEvent){ var _local2:int; var _local3:PlayerControlsSettings; var _local4:int; _local4 = 0; while (_local4 < this.gameSettings.numPlayers) { _local3 = this.gameSettings.getPlayerSettingsAt(_local4).gameControls; _local2 = _local3.getAnswerKeyIndexFromKeyCode(_arg1.keyCode); if (_local2 != -1){ this.doAnswerQuestion(_local4, _local2); } else { if ((((this.gameSettings.playerMode == PlayerModeType.SINGLE)) && ((_arg1.keyCode == _local3.Buzz)))){ if (((this.gameSettings.currentMode.settings.isTurnBased) && (!((_local4 == this._intPlayerTurnIndex))))){ return; }; this.doCollectScore(_local4); }; }; _local4++; }; } private function updateQuestion(){ var _local1:int; var _local2:String; var _local3:String; this._ctlQuestion.changeText(this.gameSettings.questionHandler.currentQuestion.text); _local1 = 0; while (_local1 < this.gameSettings.questionHandler.currentQuestion.answers.length) { if (_local1 < this._arrAnswerControls.length){ this._arrAnswerControls[_local1].changeText(this.gameSettings.questionHandler.currentQuestion.answers[_local1].text, (_local1 * ((this.gameSettings.currentMode.settings.questionReadTime * 500) / this._arrAnswerControls.length))); _local2 = String.fromCharCode(this.gameSettings.getPlayerSettingsAt(0).gameControls.getAnswerCharCodeFromKeyIndex(_local1)); _local3 = ((this.gameSettings.numPlayers > 1)) ? String.fromCharCode(this.gameSettings.getPlayerSettingsAt(1).gameControls.getAnswerCharCodeFromKeyIndex(_local1)) : null; this._arrAnswerControls[_local1].setKeys(_local2, _local3); }; _local1++; }; } private function startClockTimer(_arg1:TimerEvent=null):void{ var _local2:Number; this.stopQuestionTimer(); this._blnIsTimerActive = true; _local2 = this.gameSettings.currentMode.settings.timeLimit; if (this.gameSettings.currentMode.settings.useTimeAttack){ _local2 = (_local2 + ((this.gameSettings.previousMode == null)) ? 0 : this.gameSettings.previousMode.getPlayData(this._intPlayerTurnIndex).collectedTime); }; this._objClockTween = new Tween(this, 0, 1, (_local2 * 1000)); this._objClockTween.easingFunction = Linear.easeNone; this._objClockTween.setTweenHandlers(this.updateClockAnimation, this.completeClockAnimation); this._sndClockTickChannel = this._sndClockTick.play(0, Math.ceil(((_local2 * 1000) / this._sndClockTick.length))); } private function doQuestionComplete(_arg1:Boolean=true){ var _local2:int; var _local3:PlayData; _local2 = 0; while ((((_local2 < this.gameSettings.numPlayers)) && ((_local2 < this._arrPlayerPanels.length)))) { _local3 = this.gameSettings.currentMode.getPlayData(_local2); if (_local3.hasAnswered){ if (_local3.wasAnswerCorrect){ this.doCorrectAnswer(_local2); this._arrPlayerPanels[_local2].animateRightAnswer(); } else { this.doWrongAnswer(_local2); this._arrPlayerPanels[_local2].animateWrongAnswer(); }; }; _local2++; }; if (!this.gameSettings.currentMode.settings.useTimeAttack){ this.stopQuestionTimer(); }; if (_arg1){ this._objNextQuestionDelayTimer.reset(); this._objNextQuestionDelayTimer.start(); }; } private function nextQuestion(_arg1:TimerEvent=null):void{ var _local2:int; if (this.gameSettings != null){ this.gameSettings.currentMode.resetAnswerStates(); if (this.gameSettings.currentMode.isAllQuestionsHandedOut()){ this.doComplete(); } else { if (!this.gameSettings.questionHandler.nextQuestion()){ this.doNoMoreQuestions(); } else { if (this._objQuizNumberElement.hasOwnProperty("textField")){ if (this.gameSettings.currentMode.settings.numQuestions == -1){ this._objQuizNumberElement.textField.text = (1 + this.gameSettings.currentMode.getNumHandedOutQuestions()).toString(); } else { this._objQuizNumberElement.textField.text = (((1 + this.gameSettings.currentMode.getNumHandedOutQuestions()).toString() + "/") + (this.gameSettings.currentMode.settings.isTurnBased) ? (this.gameSettings.currentMode.settings.numQuestions * 2) : this.gameSettings.currentMode.settings.numQuestions.toString()); }; }; this._intCurrentLadderIndex = 0; if (((!(this.gameSettings.currentMode.settings.useTimeAttack)) || (!(this._blnIsTimerActive)))){ this.initClockTimer(); }; if (this.gameSettings.currentMode.settings.isTurnBased){ this.changePlayerTurns(); this.gameSettings.currentMode.getPlayData(this._intPlayerTurnIndex).logQuestion(); } else { _local2 = 0; while (_local2 < this.gameSettings.numPlayers) { this.gameSettings.currentMode.getPlayData(_local2).logQuestion(); _local2++; }; }; this.updateQuestion(); this.updatePanelDisplay(); }; }; }; } private function doCorrectAnswer(_arg1:int){ var _local2:*; var _local3:PlayData; var _local4:Number; _local2 = ((1 - this._numCurrentTimerValue) * this.gameSettings.currentMode.settings.timeLimit); if (!this.gameSettings.currentMode.settings.useTimeAttack){ this.gameSettings.currentMode.getPlayData(_arg1).logAnswerTime(_local2); }; _local3 = this.gameSettings.currentMode.getPlayData(_arg1); _local4 = this.gameSettings.currentMode.getNextScore(_arg1); if (this.gameSettings.currentMode.settings.usePlayerPots){ _local3.logCombo(); if (this._arrPlayerPots[_arg1] == null){ this._arrPlayerPots[_arg1] = 0; }; this._arrPlayerPots[_arg1] = (this._arrPlayerPots[_arg1] + _local4); this.updateGeneralPot(_local4, _local2); } else { this._arrPlayerPots[_arg1] = _local4; this.doCollectScore(_arg1, _local2); }; } } }//package controls
Section 28
//GameModePreloaderElement (controls.GameModePreloaderElement) package controls { import se.rocketxl.ui.widget.container.*; import flash.display.*; public class GameModePreloaderElement extends GameSettingsControlledElement { private var _clpHost:MovieClip; public var btnContinueToGamePlayInfo:ContinueToGameButton; public function GameModePreloaderElement(){ addFrameScript(0, frame1); } override public function showElement():void{ super.showElement(); this._clpHost.visible = true; this._clpHost.gotoAndPlay(3); } override public function hideElement():void{ super.hideElement(); this._clpHost.gotoAndPlay(16); } function frame1(){ stop(); } override public function applySettings(_arg1:XML, _arg2:IElementContainer):void{ super.applySettings(_arg1, _arg2); this._clpHost = (this.elementContainer.getElementByName("host") as MovieClip); this._clpHost.visible = false; } } }//package controls
Section 29
//GameResultsElement (controls.GameResultsElement) package controls { import se.rocketxl.ui.widget.container.*; import se.rocketxl.ui.widget.events.*; import flash.events.*; import flash.display.*; import configuration.*; import flash.text.*; import se.rocketxl.ui.*; import se.rocketxl.ui.widget.gui.*; public class GameResultsElement extends GameSettingsControlledElement { public var btnGotoSubmitScore:SubmitScoreButton; public var txtFeedback:TextField; private var _objGameModeElement:GameModeElement; private var _btnPlayAgain:MovieClip; public var btnPlayAgain:PlayAgainButton; private var _btnGotoSubmitScore:MovieClip; private var _txtFeedback:TextField; public function GameResultsElement(){ addFrameScript(0, frame1); this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); } override public function showElement():void{ super.showElement(); this._objGameModeElement.updatePanelDisplay(true); this.dispatchEvent(new CommandEvent("tracker", "TRACK", [((this.gameSettings.numPlayers == 1)) ? "FinishSingleplayer" : "FinishMultiplayer"])); } private function switchLabel(_arg1:PlayerModeType){ var _local2:PlayData; var _local3:PlayData; this.gotoAndStop(_arg1.toString()); this._btnGotoSubmitScore.enabled = (_arg1 == PlayerModeType.SINGLE); this._btnGotoSubmitScore.visible = (_arg1 == PlayerModeType.SINGLE); if (((!((this.gameSettings == null))) && (!((this.gameSettings.currentMode == null))))){ switch (_arg1){ case PlayerModeType.SINGLE: this._txtFeedback.text = this.gameSettings.currentMode.getPlayData(0).score.toString(); break; case PlayerModeType.VERSUS: _local2 = this.gameSettings.currentMode.getPlayData(0); _local3 = this.gameSettings.currentMode.getPlayData(1); this._txtFeedback.text = ((_local2.score > _local3.score)) ? this.gameSettings.getPlayerSettingsAt(0).playerName : this.gameSettings.getPlayerSettingsAt(1).playerName; break; }; } else { trace("Error switching label: No gameSettings received to use for display"); }; } override public function hideElement():void{ super.hideElement(); this._objGameModeElement.updatePanelDisplay(false); } function frame1(){ stop(); } private function doAddedToStage(_arg1:Event){ if (_arg1.target == this){ this._btnGotoSubmitScore = (DataBinder.getProperty(this, "btnGotoSubmitScore", EventAlphaButton) as EventAlphaButton); this._txtFeedback = (DataBinder.getProperty(this, "txtFeedback", TextField) as TextField); this._btnPlayAgain = (DataBinder.getProperty(this, "btnPlayAgain", EventAlphaButton) as EventAlphaButton); this.removeEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); }; } private function processSectionChangeEvent(_arg1:SectionChangeEvent){ this.switchLabel(this.gameSettings.playerMode); } override public function applySettings(_arg1:XML, _arg2:IElementContainer):void{ super.applySettings(_arg1, _arg2); this._objGameModeElement = (this.elementContainer.getElementByName("gameMode") as GameModeElement); } override public function processWidgetEvent(_arg1:IWidgetEvent){ super.processWidgetEvent(_arg1); if ((_arg1 is SectionChangeEvent)){ this.processSectionChangeEvent((_arg1 as SectionChangeEvent)); }; } } }//package controls
Section 30
//GameSettingsControlledElement (controls.GameSettingsControlledElement) package controls { import se.rocketxl.ui.widget.container.*; import se.rocketxl.ui.widget.events.*; import flash.utils.*; import configuration.*; import se.rocketxl.*; import se.rocketxl.ui.widget.gui.specialized.*; public class GameSettingsControlledElement extends DropDownTweenInElement { private var _objGameModeElement:GameModeElement; private var _objGameSettings:GameSettings; private var _blnUsingPlayerMode:Boolean; public function GameSettingsControlledElement(_arg1:Boolean=false){ this._blnUsingPlayerMode = _arg1; } public function get gameSettings():GameSettings{ return (this._objGameSettings); } override public function showElement():void{ super.showElement(); this._objGameModeElement.updatePanelDisplay(true, this.gameSettings); } override public function hideElement():void{ super.hideElement(); this._objGameModeElement.updatePanelDisplay(false, this.gameSettings); } private function processSectionChangeEvent(_arg1:SectionChangeEvent){ if (_arg1.args["settings"] == null){ Debug.Log("Could not retrieve 'settings' from input arguments", "processSectionChangeEvent", getQualifiedClassName(this), DebugLevel.WARNING); } else { if (!(_arg1.args["settings"] is GameSettings)){ Debug.Log(("Could not retrieve 'settings' from input arguments, invalid argument type: " + getQualifiedClassName(_arg1.args["settings"])), "processSectionChangeEvent", getQualifiedClassName(this), DebugLevel.WARNING); } else { this.applyGameSettings(_arg1.args["settings"]); }; }; } override public function applySettings(_arg1:XML, _arg2:IElementContainer):void{ super.applySettings(_arg1, _arg2); this._objGameModeElement = (this.elementContainer.getElementByName("gameMode") as GameModeElement); } private function applyGameSettings(_arg1:GameSettings){ this._objGameSettings = _arg1; this.gotoAndStop((this._blnUsingPlayerMode) ? this._objGameSettings.playerMode.toString() : this._objGameSettings.currentMode.settings.id); } override public function processWidgetEvent(_arg1:IWidgetEvent){ if ((_arg1 is SectionChangeEvent)){ this.processSectionChangeEvent((_arg1 as SectionChangeEvent)); }; } } }//package controls
Section 31
//GameSettingsElement (controls.GameSettingsElement) package controls { import se.rocketxl.ui.widget.events.*; import flash.events.*; import flash.display.*; import configuration.*; import se.rocketxl.*; import flash.text.*; import se.rocketxl.ui.*; import se.rocketxl.ui.widget.gui.specialized.*; public class GameSettingsElement extends DropDownTweenInElement { private var _ctlSinglePlayerCharacter:CharacterSelectControl; private var _ctlPlayer1Character:CharacterSelectControl; public var singleContainer:MovieClip; private var _txtPlayer2Name:TextField; private var _ctlPlayer2Character:CharacterSelectControl; public var versusContainer:MovieClip; public var btnStartGame:StartGameButton; private var _clpSingleContainer:MovieClip; private var _objGameSettings:GameSettings; private var _objPlayerMode:PlayerModeType; private var _txtPlayer1Name:TextField; private var _clpVersusContainer:MovieClip; public function GameSettingsElement(){ addFrameScript(0, frame1); } function frame1(){ stop(); } private function processCommandEvent(_arg1:CommandEvent){ switch (_arg1.command){ case "SaveSettings": this.saveSettings(); break; }; } private function switchMode(_arg1:PlayerModeType){ this._clpVersusContainer = (DataBinder.getProperty(this, "versusContainer") as MovieClip); this._clpSingleContainer = (DataBinder.getProperty(this, "singleContainer") as MovieClip); this._ctlPlayer1Character = (DataBinder.getProperty(this._clpVersusContainer, "ctlPlayer1Character", CharacterSelectControl) as CharacterSelectControl); this._ctlPlayer2Character = (DataBinder.getProperty(this._clpVersusContainer, "ctlPlayer2Character", CharacterSelectControl) as CharacterSelectControl); this._ctlSinglePlayerCharacter = (DataBinder.getProperty(this._clpSingleContainer, "ctlSinglePlayerCharacter", CharacterSelectControl) as CharacterSelectControl); this._txtPlayer1Name = (DataBinder.getProperty(this._clpVersusContainer, "txtPlayer1Name", TextField) as TextField); this._txtPlayer2Name = (DataBinder.getProperty(this._clpVersusContainer, "txtPlayer2Name", TextField) as TextField); this._txtPlayer1Name.addEventListener(MouseEvent.CLICK, this.doFirstClick); this._txtPlayer2Name.addEventListener(MouseEvent.CLICK, this.doFirstClick); switch (_arg1){ case PlayerModeType.VERSUS: this._clpVersusContainer.visible = true; this._clpSingleContainer.visible = false; break; case PlayerModeType.SINGLE: this._clpVersusContainer.visible = false; this._clpSingleContainer.visible = true; this._ctlPlayer1Character = this._ctlSinglePlayerCharacter; break; }; } public function get gameSettings():GameSettings{ return (this._objGameSettings); } override public function showElement():void{ super.showElement(); if (this._objPlayerMode == null){ trace("No PlayerModeType received"); } else { this.switchMode(this._objPlayerMode); }; } private function processSectionChangeEvent(_arg1:SectionChangeEvent){ if (_arg1.args["playerMode"] == null){ Debug.Log("Could not retrieve 'playerMode' from input arguments", "processSectionChangeEvent", "GameSettingsElement", DebugLevel.ERROR); } else { this._objPlayerMode = ((_arg1.args["playerMode"] is PlayerModeType)) ? _arg1.args["playerMode"] : PlayerModeType.getType(_arg1.args["playerMode"].toString()); }; } private function doFirstClick(_arg1:MouseEvent){ trace((_arg1.target + " was clicked")); if (((_arg1.target.hasOwnProperty("textField")) && ((_arg1.target.textField is TextField)))){ _arg1.target.textField.text = ""; _arg1.target.removeEventListener(MouseEvent.CLICK, this.doFirstClick); }; } override public function processWidgetEvent(_arg1:IWidgetEvent){ super.processWidgetEvent(_arg1); if ((_arg1 is CommandEvent)){ this.processCommandEvent((_arg1 as CommandEvent)); } else { if ((_arg1 is SectionChangeEvent)){ this.processSectionChangeEvent((_arg1 as SectionChangeEvent)); }; }; } private function saveSettings(){ var _local1:PlayerSettings; var _local2:PlayerSettings; if (this._ctlPlayer1Character != null){ _local1 = new PlayerSettings(((this._objPlayerMode == PlayerModeType.VERSUS)) ? (DataBinder.getProperty(this._txtPlayer1Name, "text", null, false, false) as String) : null, GameSettings.characterDataArray[this._ctlPlayer1Character.characterIndex], new PlayerControlsSettings(Keyboard.SHIFT, Keyboard.NUMBER_1, Keyboard.NUMBER_2, Keyboard.NUMBER_3, Keyboard.NUMBER_4)); }; if (this._objPlayerMode == PlayerModeType.VERSUS){ _local2 = new PlayerSettings((DataBinder.getProperty(this._txtPlayer2Name, "text", null, false, false) as String), GameSettings.characterDataArray[this._ctlPlayer2Character.characterIndex], new PlayerControlsSettings(Keyboard.BACKSPACE, Keyboard.NUMBER_7, Keyboard.NUMBER_8, Keyboard.NUMBER_9, Keyboard.NUMBER_0)); }; this._objGameSettings = new GameSettings(GameModeSettings.selectArrayFromXml(this.settings, this._objPlayerMode), this._objPlayerMode, _local1, _local2); this._objGameSettings.questionHandler.loadQuestions(); this._objGameSettings.questionHandler.randomizeQuestions(); } } }//package controls
Section 32
//HighScoreElement (controls.HighScoreElement) package controls { import se.rocketxl.ui.widget.container.*; import se.rocketxl.ui.widget.events.*; import flash.utils.*; import flash.events.*; import flash.display.*; import flash.net.*; import flash.text.*; import se.rocketxl.ui.*; import se.rocketxl.ui.widget.gui.specialized.*; public class HighScoreElement extends DropDownTweenInElement { private const _intHighScoreListLengthLimit:int = 10; private var _txtCaption:TextField; private var _xmlScoreList:XML; private var _objHighScoreLoader:URLLoader; private var _clpHostess:MovieClip; private var _arrScoreEntries:Array; public var txtCaption:TextField; private var _strType:String; private var _blnHighlight:Boolean; public function HighScoreElement(){ this._arrScoreEntries = new Array(); this._objHighScoreLoader = new URLLoader(); this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); } private function doHighScoreListLoaded(_arg1:Event):void{ this._xmlScoreList = new XML(_arg1.target.data); this.updateHighScores(); this._objHighScoreLoader.removeEventListener(Event.COMPLETE, this.doHighScoreListLoaded); } protected function updateHighScores(){ var _local1:int; var _local2:int; var _local3:int; var _local4:XML; var _local5:*; var _local6:HighScoreEntry; _local1 = 1; _local2 = 0; _local3 = this._arrScoreEntries.length; _local2 = 0; while (_local2 < _local3) { this.removeChild(this._arrScoreEntries.pop()); _local2++; }; _local2 = 0; for each (_local4 in this._xmlScoreList.score) { _local5 = ("#" + (this._blnHighlight) ? _local4.@rank.toString() : (_local1 + _local2).toString()); _local6 = new HighScoreEntry(((_local5 + " ") + _local4.child("name").toString().toUpperCase()), _local4.result); _local6.x = ((this.width / 2) - (_local6.width / 2)); _local6.y = (50 + (_local6.height * _local2)); if (this._blnHighlight){ if (_local4.@current.toString() == "true"){ _local6.makeHighlighted(); } else { _local6.makeHidden(); }; } else { _local6.makeNormal(); }; this.addChild(_local6); this._arrScoreEntries.push(_local6); if (_local2 > this._intHighScoreListLengthLimit){ break; }; _local2++; }; } override public function showElement():void{ super.showElement(); if (this._xmlScoreList == null){ this.getHighScoresList(); } else { this.updateHighScores(); }; this._clpHostess.visible = true; this._clpHostess.gotoAndPlay(2); } private function doAddedToStage(_arg1:Event){ if (_arg1.target == this){ this._txtCaption = (DataBinder.getProperty(this, "txtCaption", TextField) as TextField); this.removeEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); }; } override public function hideElement():void{ super.hideElement(); this._xmlScoreList = null; this._blnHighlight = false; this._strType = null; this._clpHostess.gotoAndPlay(17); } protected function getHighScoresList(){ var _local1:URLRequest; if (this._objHighScoreLoader.hasEventListener(Event.COMPLETE)){ this._objHighScoreLoader.close(); } else { this._objHighScoreLoader.addEventListener(Event.COMPLETE, this.doHighScoreListLoaded); }; _local1 = new URLRequest(("http://www.rocketxl.com/buzzhollywood/Dev01/app/topten.php#" + getTimer())); _local1.data = new URLVariables(); _local1.method = URLRequestMethod.POST; if (this._strType != null){ _local1.data.type = this._strType; }; this._objHighScoreLoader.load(_local1); } private function processSectionChangeEvent(_arg1:SectionChangeEvent){ if (_arg1.args == null){ return; }; if (_arg1.args["rankxml"] != null){ trace("Received rankxml"); if ((_arg1.args["rankxml"] is XML)){ this._xmlScoreList = _arg1.args["rankxml"]; this._blnHighlight = true; } else { if ((_arg1.args["rankxml"] is String)){ this._xmlScoreList = new XML(_arg1.args["rankxml"]); this._blnHighlight = true; } else { trace((("HighScoreElement: processSectionChangeEvent(): Could not parse " + _arg1.args["rankxml"]) + " as XML")); }; }; }; if (_arg1.args["type"] != null){ this._strType = _arg1.args["type"].toString().toLowerCase(); switch (this._strType){ case "today": this._txtCaption.text = "Top 10 scores today"; break; case "week": this._txtCaption.text = "Top 10 scores this week"; break; case "month": this._txtCaption.text = "Top 10 scores this month"; break; }; }; } override public function applySettings(_arg1:XML, _arg2:IElementContainer):void{ super.applySettings(_arg1, _arg2); this._clpHostess = (this.elementContainer.getElementByName("hostess") as MovieClip); this._clpHostess.visible = false; } override public function processWidgetEvent(_arg1:IWidgetEvent){ super.processWidgetEvent(_arg1); if ((_arg1 is SectionChangeEvent)){ this.processSectionChangeEvent((_arg1 as SectionChangeEvent)); }; } } }//package controls
Section 33
//HighScoreEntry (controls.HighScoreEntry) package controls { import flash.display.*; import flash.text.*; import se.rocketxl.ui.*; public class HighScoreEntry extends MovieClip { private const _intMaxLength = 24; public var txtScore:TextField; private var _numScore:Number; public var txtUsername:TextField; private var _txtScore:TextField; private var _strUsername:String; private var _txtUsername:TextField; private var _strFullText:String; public function HighScoreEntry(_arg1:String, _arg2:Number){ this._strUsername = _arg1; this._numScore = _arg2; this._txtScore = (DataBinder.getProperty(this, "txtScore", TextField) as TextField); this._txtUsername = (DataBinder.getProperty(this, "txtUsername", TextField) as TextField); this._txtScore.text = this._numScore.toString(); this._txtUsername.text = this._strUsername; this.makeNormal(); } public function makeHidden(){ this.alpha = 0.5; this._txtUsername.textColor = 0xFFFFFF; } public function makeNormal(){ this.alpha = 1; this._txtUsername.textColor = 0xFFFFFF; } public function makeHighlighted(){ this.alpha = 1; this._txtUsername.textColor = 14530690; } } }//package controls
Section 34
//InGameAnswer (controls.InGameAnswer) package controls { import flash.events.*; import flash.display.*; import mx.effects.*; import flash.text.*; import se.rocketxl.util.*; import se.rocketxl.ui.*; public class InGameAnswer extends MovieClip { public var clpP1Key:MovieClip; public var clpP2Key:MovieClip; public var txtAnswer:TextField; private var _clpP1Key:MovieClip; private var _objFuncTimer:FuncTimer; private var _clpP2Key:MovieClip; private var _txtAnswer:TextField; private var _objTextTween:Tween; public function InGameAnswer(){ this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); this._objFuncTimer = new FuncTimer(); } private function doTextTween(_arg1:Number){ this.alpha = _arg1; } private function doTextTweenComplete(_arg1:Number){ this.doTextTween(_arg1); this.stopTween(); } public function doAddedToStage(_arg1:Event){ if (_arg1.target == this){ this._txtAnswer = (DataBinder.getProperty(this, "txtAnswer", TextField) as TextField); this._clpP1Key = (DataBinder.getProperty(this, "clpP1Key") as MovieClip); this._clpP2Key = (DataBinder.getProperty(this, "clpP2Key") as MovieClip); this.removeEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); }; } public function setKeys(_arg1:String=null, _arg2:String=null){ var _local3:TextField; var _local4:TextField; _local3 = (DataBinder.getProperty(this._clpP1Key, "textField", TextField) as TextField); _local4 = (DataBinder.getProperty(this._clpP2Key, "textField", TextField) as TextField); this._clpP1Key.visible = !((_arg1 == null)); if (this._clpP1Key.visible){ _local3.text = _arg1; }; this._clpP2Key.visible = !((_arg2 == null)); if (this._clpP2Key.visible){ _local4.text = _arg2; }; } private function stopTween(){ if (this._objTextTween != null){ this._objTextTween.pause(); this._objTextTween = null; }; } public function setTextAlpha(_arg1:Number=1){ this.stopTween(); this._objTextTween = new Tween(this, this.alpha, _arg1, 200); this._objTextTween.setTweenHandlers(this.doTextTween, this.doTextTweenComplete); } public function changeText(_arg1:String, _arg2:int=0){ this._txtAnswer.text = _arg1; this.alpha = 0; this._objFuncTimer.loopFunction(_arg2, 1, null, this.setTextAlpha); } } }//package controls
Section 35
//InGameClock (controls.InGameClock) package controls { import flash.events.*; import flash.display.*; import flash.geom.*; import se.rocketxl.ui.*; import se.rocketxl.ui.widget.gui.*; public class InGameClock extends Element { private var _clpFill:MovieClip; public var clpFill:MovieClip; private static var topRight:Point; private static var center:Point; private static var radius:Number; private static var top:Point; private static var botRight:Point; private static var topLeft:Point; private static var botLeft:Point; public function InGameClock(){ radius = ((this.height / 2) - 4); center = new Point(0, 0); topRight = new Point(radius, -(radius)); botLeft = new Point(-(radius), radius); botRight = new Point(radius, radius); topLeft = new Point(-(radius), -(radius)); top = new Point(0, -(radius)); this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); } private function doAddedToStage(_arg1:Event){ this._clpFill = (DataBinder.getProperty(this, "clpFill", MovieClip) as MovieClip); this.removeEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); } private function drawPolygon(_arg1:Sprite, _arg2:uint, ... _args){ var _local4:int; if (_args.length > 0){ _arg1.graphics.beginFill(_arg2); _arg1.graphics.moveTo(_args[0].x, _args[0].y); _local4 = 0; while (_local4 < _args.length) { if ((_args[_local4] is Point)){ _arg1.graphics.lineTo(_args[_local4].x, _args[_local4].y); }; _local4++; }; _arg1.graphics.lineTo(_args[0].x, _args[0].x); _arg1.graphics.endFill(); }; } public function setTimerPercentage(_arg1:Number){ var _local2:Number; var _local3:Number; var _local4:Point; var _local5:Point; if (int((_arg1 * 100)) != 0){ _local2 = (((_arg1 - 0.255) * Math.PI) * 2); _local3 = (_local2 - ((Math.PI * 5) / 180)); _local4 = new Point((Math.cos(_local2) * radius), (Math.sin(_local2) * radius)); _local5 = new Point((Math.cos(_local3) * radius), (Math.sin(_local3) * radius)); this.drawPolygon(this._clpFill, 0xCCCCCC, center, _local5, _local4); } else { this._clpFill.graphics.clear(); }; } } }//package controls
Section 36
//InGamePlayerPanel (controls.InGamePlayerPanel) package controls { import flash.events.*; import flash.display.*; import se.rocketxl.*; import mx.effects.*; import flash.text.*; import se.rocketxl.ui.*; public class InGamePlayerPanel extends AnswerResultControl { public var txtScore:TextField; public var clpGainScore:MovieClip; public var clpLoseScore:MovieClip; public var clpWrongAnswer:MovieClip; private var _clpWrongAnswer:MovieClip; public var ctlAvatar:PlayerAvatar; public var clpRightAnswer:MovieClip; private var _clpRightAnswer:MovieClip; private var _txtPlayerName:TextField; public var txtPlayerName:TextField; private var _objAvatarTween:Tween; private var _ctlAvatar:PlayerAvatar; public function InGamePlayerPanel(){ this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); } private function doAnimateWrongAnswer(_arg1:Event){ this.generalMovieClipAnimation(_arg1, this.doAnimateWrongAnswer); } private function doAvatarTween(_arg1:Number){ this._ctlAvatar.alpha = _arg1; } private function stopAvatarTween(){ if (this._objAvatarTween != null){ this._objAvatarTween.pause(); this._objAvatarTween = null; }; } public function animateWrongAnswer(){ if (this._clpWrongAnswer != null){ this.playClip(this._clpWrongAnswer, this.doAnimateWrongAnswer); }; } public function setAvatarFocus(_arg1:Boolean){ if (this._ctlAvatar != null){ this.setAvatarAlpha((_arg1) ? 1 : 0.5); }; } public function get playerNameField():TextField{ return (this._txtPlayerName); } private function doAddedToStage(_arg1:Event){ if (_arg1.target == this){ this._txtPlayerName = (DataBinder.getProperty(this, "txtPlayerName", TextField, false) as TextField); this._ctlAvatar = (DataBinder.getProperty(this, "ctlAvatar", PlayerAvatar, false) as PlayerAvatar); this._clpWrongAnswer = (DataBinder.getProperty(this, "clpWrongAnswer", MovieClip, false) as MovieClip); if (this._clpWrongAnswer != null){ this._clpWrongAnswer.stop(); this._clpWrongAnswer.visible = false; }; this._clpRightAnswer = (DataBinder.getProperty(this, "clpRightAnswer", MovieClip, false) as MovieClip); if (this._clpRightAnswer != null){ this._clpRightAnswer.stop(); this._clpRightAnswer.visible = false; }; this.removeEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); }; } public function animateRightAnswer(){ if (this._clpRightAnswer != null){ this.playClip(this._clpRightAnswer, this.doAnimateRightAnswer); }; } private function doAvatarTweenComplete(_arg1:Number){ this.doAvatarTween(_arg1); this.stopAvatarTween(); } public function setSettings(_arg1:String, _arg2:MovieClip){ this._txtPlayerName.text = ((_arg1 == null)) ? "" : _arg1; this._txtPlayerName.visible = ((!((_arg1 == null))) && (!((StringUtils.trim(_arg1) == "")))); this._ctlAvatar.setAvatar(_arg2); } private function doAnimateRightAnswer(_arg1:Event){ this.generalMovieClipAnimation(_arg1, this.doAnimateRightAnswer); } public function setAvatarAlpha(_arg1:Number=1){ this.stopAvatarTween(); this._objAvatarTween = new Tween(this, this._ctlAvatar.alpha, _arg1, 350); this._objAvatarTween.setTweenHandlers(this.doAvatarTween, this.doAvatarTweenComplete); } } }//package controls
Section 37
//InGameQuestion (controls.InGameQuestion) package controls { import flash.events.*; import flash.display.*; import mx.effects.*; import flash.text.*; import se.rocketxl.ui.*; public class InGameQuestion extends MovieClip { public var txtQuestion:TextField; private var _txtQuestion:TextField; private var _objTextTween:Tween; public function InGameQuestion(){ this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); } private function doTextTween(_arg1:Number){ this._txtQuestion.alpha = _arg1; } private function doTextTweenComplete(_arg1:Number){ this.doTextTween(_arg1); this.stopTween(); } public function doAddedToStage(_arg1:Event){ if (_arg1.target == this){ this._txtQuestion = (DataBinder.getProperty(this, "txtQuestion", TextField) as TextField); this.removeEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); }; } private function stopTween(){ if (this._objTextTween != null){ this._objTextTween.pause(); this._objTextTween = null; }; } public function setTextAlpha(_arg1:Number){ this.stopTween(); this._objTextTween = new Tween(this, this._txtQuestion.alpha, _arg1, 200); this._objTextTween.setTweenHandlers(this.doTextTween, this.doTextTweenComplete); } public function changeText(_arg1:String, _arg2:int=0){ this._txtQuestion.text = _arg1; this._txtQuestion.alpha = 0; this.setTextAlpha(1); } } }//package controls
Section 38
//LightBulb1 (controls.LightBulb1) package controls { import flash.display.*; public class LightBulb1 extends LightBulbControl { public var stars:MovieClip; public function LightBulb1(){ super(1); } } }//package controls
Section 39
//LightBulb2 (controls.LightBulb2) package controls { import flash.display.*; public class LightBulb2 extends LightBulbControl { public var stars:MovieClip; public function LightBulb2(){ super(2); } } }//package controls
Section 40
//LightBulb3 (controls.LightBulb3) package controls { import flash.display.*; public class LightBulb3 extends LightBulbControl { public var stars:MovieClip; public function LightBulb3(){ super(3); } } }//package controls
Section 41
//LightBulbControl (controls.LightBulbControl) package controls { import flash.utils.*; import flash.events.*; import flash.display.*; import se.rocketxl.ui.*; public class LightBulbControl extends MovieClip { private var _intCurrentIndex:int; private var _intStartFrame:int; private var _arrFrameIndexes:Array; private var _clpStars:MovieClip; private var _objTimer:Timer; public function LightBulbControl(_arg1:int){ this._intStartFrame = _arg1; this.addEventListener(Event.ADDED_TO_STAGE, this.onAddedToStage); } private function onAddedToStage(_arg1:Event){ var _local2:int; if (_arg1.target == this){ this._clpStars = (DataBinder.getProperty(this, "stars", MovieClip) as MovieClip); this._arrFrameIndexes = new Array(); _local2 = 1; while (_local2 <= this._clpStars.totalFrames) { this._arrFrameIndexes.push(_local2); _local2++; }; this._intCurrentIndex = (this._intStartFrame - 1); this._clpStars.gotoAndStop(this._intCurrentIndex); this._objTimer = new Timer(400); this._objTimer.addEventListener(TimerEvent.TIMER, this.onTimerEvent); this._objTimer.start(); }; } private function onTimerEvent(_arg1:TimerEvent){ this._intCurrentIndex++; this._intCurrentIndex = (this._intCurrentIndex % this._arrFrameIndexes.length); this._clpStars.gotoAndStop(this._arrFrameIndexes[this._intCurrentIndex]); } } }//package controls
Section 42
//MainMenuElement (controls.MainMenuElement) package controls { import se.rocketxl.ui.widget.events.*; import flash.media.*; import se.rocketxl.ui.widget.gui.specialized.*; public class MainMenuElement extends DropDownTweenInElement { private var _blnHasPlayed:Boolean; public var btnGotoSendToFriend:GotoSendToFriendButton; public var btnGotoInstructions:GotoInstructionsButton; private var _sndThemeMusic:Sound; private var _blnIsMusicOn:Boolean; public var btnGotoGrabCode:GotoGrabCodeButton; public var btnGotoRules:GotoRulesButton; public var btnGotoHighScores:GotoHighScoresButton; public var btnGotoVsMode:GotoVsModeButton; public var btnGotoSinglePlay:GotoSinglePlayButton; private var _sndThemeMusicChannel:SoundChannel; public function MainMenuElement(){ this._blnHasPlayed = false; this._blnIsMusicOn = false; this._sndThemeMusic = new Buzz_ThemeMusic(); } private function toggleMusic():void{ if (this._blnIsMusicOn){ if (this._sndThemeMusicChannel != null){ this._sndThemeMusicChannel.stop(); }; this._sndThemeMusicChannel = null; this._blnIsMusicOn = false; } else { this._sndThemeMusicChannel = this._sndThemeMusic.play(0, 9999); this._blnIsMusicOn = true; }; } override public function showElement():void{ super.showElement(); if (!this._blnHasPlayed){ this.toggleMusic(); this._blnHasPlayed = true; }; } override public function hideElement():void{ super.hideElement(); } override public function processWidgetEvent(_arg1:IWidgetEvent){ if ((_arg1 is CommandEvent)){ if ((_arg1 as CommandEvent).command == "TOGGLEMUSIC"){ this.toggleMusic(); }; }; } } }//package controls
Section 43
//PlayerAvatar (controls.PlayerAvatar) package controls { import flash.events.*; import flash.display.*; public class PlayerAvatar extends MovieClip { private var _clpAvatar:MovieClip; public function PlayerAvatar(){ this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); } public function setAvatar(_arg1:MovieClip){ if (((((!((this._clpAvatar == null))) && (!((this._clpAvatar.stage == null))))) && ((this._clpAvatar.parent == this)))){ this.removeChild(this._clpAvatar); }; this._clpAvatar = _arg1; this._clpAvatar.x = ((this.width - this._clpAvatar.width) / 2); this.addChild(this._clpAvatar); } public function doAddedToStage(_arg1:Event){ if (_arg1.target == this){ this.removeEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); }; } } }//package controls
Section 44
//SubmitScoreElement (controls.SubmitScoreElement) package controls { import se.rocketxl.ui.widget.events.*; import flash.utils.*; import flash.events.*; import flash.net.*; import se.rocketxl.*; import mx.effects.*; import flash.text.*; import se.rocketxl.util.*; import se.rocketxl.ui.*; import se.rocketxl.security.cryptography.*; public class SubmitScoreElement extends GameSettingsControlledElement { private const _rgxValidEmail:RegExp; public var txtEmail:TextField; private var _blnIsSubmitting:Boolean; public var txtNickName:TextField; public var txtInputErrorText:TextField; private var _objSendScoreLoader:URLLoader; private var _txtNickName:TextField; private var _txtEmail:TextField; public var btnSubmitScore:SubmitSubmitButton; private var _clpLeafLoader:LeafLoader; private var _objErrorMessageTween:Tween; private var _txtInputErrorText:TextField; public function SubmitScoreElement(){ _rgxValidEmail = /^[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i; super(); this.addEventListener(Event.ADDED_TO_STAGE, this.doAddedToStage); this._clpLeafLoader = new LeafLoader(); this._clpLeafLoader.x = (this.width / 2); this._clpLeafLoader.y = (this.height / 2); this.addChild(this._clpLeafLoader); } private function processCommandEvent(_arg1:CommandEvent){ switch (_arg1.command){ case "SubmitScore": if (StringUtils.trim(this._txtNickName.text) == ""){ this.showErrorMessage("please input your nick name"); } else { if (StringUtils.trim(this._txtNickName.text).length > 24){ this.showErrorMessage("input name was too long, 24 is max"); } else { if (StringUtils.trim(this._txtEmail.text) == ""){ this.showErrorMessage("please input your email"); } else { if (!_rgxValidEmail.test(this._txtEmail.text)){ this.showErrorMessage("please input a valid email"); } else { if (this._blnIsSubmitting){ trace("SubmitScoreElement: processCommandEvent(): SubmitScore: Can't submit score, it's already been submitted"); } else { this.sendScore(); }; }; }; }; }; break; }; } override public function showElement():void{ super.showElement(); this._blnIsSubmitting = false; } private function doAddedToStage(_arg1:Event):void{ this._txtEmail = (DataBinder.getProperty(this, "txtEmail", TextField) as TextField); this._txtNickName = (DataBinder.getProperty(this, "txtNickName", TextField) as TextField); this._txtInputErrorText = (DataBinder.getProperty(this, "txtInputErrorText", TextField) as TextField); this._txtInputErrorText.visible = false; } private function doSendScoreIOErrorEvent(_arg1:SecurityErrorEvent){ trace(("SendScore IO Error: " + _arg1)); } private function showErrorMessage(_arg1:String){ if (this._objErrorMessageTween != null){ this._objErrorMessageTween.pause(); this._objErrorMessageTween = null; }; this._txtInputErrorText.visible = true; this._txtInputErrorText.text = _arg1; this._objErrorMessageTween = new Tween(this, 1, 0, 1400); this._objErrorMessageTween.setTweenHandlers(this.doErrorMessageTween, doErrorMessageTweenComplete); } private function doErrorMessageTween(_arg1:Number){ this._txtInputErrorText.alpha = _arg1; } private function doSendScoreCompleteEvent(_arg1:Event){ var _local2:Array; trace(_arg1.target.data); _local2 = new Array(); _local2["rankxml"] = new XML(_arg1.target.data); _local2["type"] = "today"; this._clpLeafLoader.stopLoaderIcon(); this.dispatchEvent(new SectionChangeEvent("highScores", _local2)); } override public function processWidgetEvent(_arg1:IWidgetEvent){ super.processWidgetEvent(_arg1); if ((_arg1 is CommandEvent)){ this.processCommandEvent((_arg1 as CommandEvent)); }; } private function doSendScoreSecurityErrorEvent(_arg1:IOErrorEvent){ trace(("SendScore Security error: Could not load file: " + _arg1)); } private function doErrorMessageTweenComplete(_arg1:Number){ this._txtInputErrorText.visible = false; } private function sendScore():void{ var _local1:String; var _local2:URLRequest; if (this.gameSettings == null){ trace("SubmitScoreElement: sendScore(): No gameSettings received, can't submit score"); return; }; _local1 = "87e6fadc-269e-46cd-a569-bfba9ec3e742"; this._clpLeafLoader.startLoaderIcon(); _local2 = new URLRequest(); _local2.url = ("http://www.rocketxl.com/buzzhollywood/Dev01/app/rank.php#" + getTimer()); _local2.method = URLRequestMethod.POST; _local2.data = new URLVariables(); _local2.data.score = this.gameSettings.currentMode.getPlayData(0).score.toString(); _local2.data.name = this._txtNickName.text; _local2.data.email = this._txtEmail.text; _local2.data.checksum = SHA1.encrypt((((_local2.data.score + _local2.data.name) + _local2.data.email) + _local1)); this._objSendScoreLoader = new URLLoader(); this._objSendScoreLoader.dataFormat = URLLoaderDataFormat.TEXT; this._objSendScoreLoader.addEventListener(Event.COMPLETE, this.doSendScoreCompleteEvent); this._objSendScoreLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.doSendScoreSecurityErrorEvent); this._objSendScoreLoader.addEventListener(IOErrorEvent.IO_ERROR, this.doSendScoreIOErrorEvent); this._objSendScoreLoader.load(_local2); this._blnIsSubmitting = true; } } }//package controls
Section 45
//Circular (mx.effects.easing.Circular) package mx.effects.easing { public class Circular { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2)); } } }//package mx.effects.easing
Section 46
//Linear (mx.effects.easing.Linear) package mx.effects.easing { public class Linear { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } } }//package mx.effects.easing
Section 47
//Tween (mx.effects.Tween) package mx.effects { import flash.utils.*; import flash.events.*; import mx.events.*; public class Tween extends EventDispatcher { public var duration:Number;// = 3000 private var id:int; private var arrayMode:Boolean; private var _isPlaying:Boolean;// = true private var startValue:Object; public var listener:Object; private var userEquation:Function; private var previousUpdateTime:Number; var needToLayout:Boolean;// = false private var updateFunction:Function; private var _doSeek:Boolean;// = false var startTime:Number; private var endFunction:Function; private var endValue:Object; private var _doReverse:Boolean;// = false private var _playheadTime:Number;// = 0 private var _invertValues:Boolean;// = false private var maxDelay:Number;// = 87.5 private static var timer:Timer = null; private static var interval:Number = 10; private static var activeTweens:Array = []; static var intervalTime:Number = NAN; public function Tween(_arg1:Object, _arg2:Object, _arg3:Object, _arg4:Number=-1, _arg5:Number=-1){ needToLayout = false; maxDelay = 87.5; _doSeek = false; _isPlaying = true; _doReverse = false; userEquation = defaultEasingFunction; duration = 3000; _playheadTime = 0; _invertValues = false; super(); if (!_arg1){ return; }; if ((_arg2 is Array)){ arrayMode = true; }; this.listener = _arg1; this.startValue = _arg2; this.endValue = _arg3; if (((!(isNaN(_arg4))) && (!((_arg4 == -1))))){ this.duration = _arg4; }; if (((!(isNaN(_arg5))) && (!((_arg5 == -1))))){ maxDelay = (1000 / _arg5); }; if (_arg4 == 0){ endTween(); } else { Tween.addTween(this); }; } public function pause():void{ _isPlaying = false; } function get playheadTime():Number{ return (_playheadTime); } function get playReversed():Boolean{ return (_invertValues); } public function resume():void{ _isPlaying = true; startTime = (intervalTime - _playheadTime); if (_doReverse){ reverse(); _doReverse = false; }; } public function setTweenHandlers(_arg1:Function, _arg2:Function):void{ this.updateFunction = _arg1; this.endFunction = _arg2; } function set playReversed(_arg1:Boolean):void{ _invertValues = _arg1; } public function set easingFunction(_arg1:Function):void{ userEquation = _arg1; } private function defaultEasingFunction(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 / 2) * (Math.sin((Math.PI * ((_arg1 / _arg4) - 0.5))) + 1)) + _arg2)); } public function endTween():void{ var _local1:TweenEvent; var _local2:Object; _local1 = new TweenEvent(TweenEvent.TWEEN_END); _local2 = getCurrentValue(duration); _local1.value = _local2; dispatchEvent(_local1); if (endFunction != null){ endFunction(_local2); } else { listener.onTweenEnd(_local2); }; Tween.removeTweenAt(id); } public function reverse():void{ if (_isPlaying){ _doReverse = false; seek((duration - _playheadTime)); _invertValues = !(_invertValues); } else { _doReverse = !(_doReverse); }; } function doInterval():Boolean{ var _local1:Boolean; var _local2:Number; var _local3:Object; var _local4:TweenEvent; _local1 = false; previousUpdateTime = intervalTime; if (((_isPlaying) || (_doSeek))){ _local2 = (intervalTime - startTime); _playheadTime = _local2; _local3 = getCurrentValue(_local2); if ((((_local2 >= duration)) && (!(_doSeek)))){ endTween(); _local1 = true; } else { _local4 = new TweenEvent(TweenEvent.TWEEN_UPDATE); _local4.value = _local3; dispatchEvent(_local4); if (updateFunction != null){ updateFunction(_local3); } else { listener.onTweenUpdate(_local3); }; }; _doSeek = false; }; return (_local1); } public function seek(_arg1:Number):void{ var _local2:Number; _local2 = intervalTime; previousUpdateTime = _local2; startTime = (_local2 - _arg1); _doSeek = true; } function getCurrentValue(_arg1:Number):Object{ var _local2:Array; var _local3:int; var _local4:int; if (_invertValues){ _arg1 = (duration - _arg1); }; if (arrayMode){ _local2 = []; _local3 = startValue.length; _local4 = 0; while (_local4 < _local3) { _local2[_local4] = userEquation(_arg1, startValue[_local4], (endValue[_local4] - startValue[_local4]), duration); _local4++; }; return (_local2); //unresolved jump }; return (userEquation(_arg1, startValue, (Number(endValue) - Number(startValue)), duration)); } static function removeTween(_arg1:Tween):void{ removeTweenAt(_arg1.id); } private static function addTween(_arg1:Tween):void{ _arg1.id = activeTweens.length; activeTweens.push(_arg1); if (!timer){ timer = new Timer(interval); timer.addEventListener(TimerEvent.TIMER, timerHandler); timer.start(); } else { timer.start(); }; if (isNaN(intervalTime)){ intervalTime = getTimer(); }; _arg1.startTime = (_arg1.previousUpdateTime = intervalTime); } private static function timerHandler(_arg1:TimerEvent):void{ var _local2:Boolean; var _local3:Number; var _local4:int; var _local5:int; var _local6:Tween; _local2 = false; _local3 = intervalTime; intervalTime = getTimer(); _local4 = activeTweens.length; _local5 = _local4; while (_local5 >= 0) { _local6 = Tween(activeTweens[_local5]); if (_local6){ _local6.needToLayout = false; _local6.doInterval(); if (_local6.needToLayout){ _local2 = true; }; }; _local5--; }; if (_local2){ _arg1.updateAfterEvent(); }; } private static function removeTweenAt(_arg1:int):void{ var _local2:int; var _local3:int; var _local4:Tween; if ((((_arg1 >= activeTweens.length)) || ((_arg1 < 0)))){ return; }; activeTweens.splice(_arg1, 1); _local2 = activeTweens.length; _local3 = _arg1; while (_local3 < _local2) { _local4 = Tween(activeTweens[_local3]); _local4.id--; _local3++; }; if (_local2 == 0){ intervalTime = NaN; timer.reset(); }; } } }//package mx.effects
Section 48
//TweenEvent (mx.events.TweenEvent) package mx.events { import flash.events.*; public class TweenEvent extends Event { public var value:Object; public static const TWEEN_UPDATE:String = "tweenUpdate"; public static const TWEEN_END:String = "tweenEnd"; public function TweenEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Object=null){ super(_arg1, _arg2, _arg3); this.value = _arg4; } override public function clone():Event{ return (new TweenEvent(type, bubbles, cancelable, value)); } } }//package mx.events
Section 49
//AlphaButton (se.rocketxl.display.AlphaButton) package se.rocketxl.display { import mx.effects.*; public class AlphaButton extends Button { protected var TWEEN_DURATION:Number;// = 200 protected var ACTIVE_ALPHA:Number;// = 1 protected var NOT_ACTIVE_ALPHA:Number;// = 0.5 protected var animTween:Tween;// = null public function AlphaButton(){ NOT_ACTIVE_ALPHA = 0.5; ACTIVE_ALPHA = 1; TWEEN_DURATION = 200; animTween = null; super(); alpha = NOT_ACTIVE_ALPHA; } public function setAlpha(_arg1:Number){ if (animTween != null){ animTween.pause(); animTween = null; }; animTween = new Tween(this, alpha, _arg1, TWEEN_DURATION); animTween.setTweenHandlers(onTween, onTweenEnd); } public function onTweenEnd(_arg1:Number){ onTween(_arg1); animTween = null; } override public function deactivate(){ setAlpha(NOT_ACTIVE_ALPHA); } public function onTween(_arg1:Number){ alpha = _arg1; } override public function activate(){ setAlpha(ACTIVE_ALPHA); } } }//package se.rocketxl.display
Section 50
//Button (se.rocketxl.display.Button) package se.rocketxl.display { import flash.events.*; import flash.display.*; public class Button extends MovieClip { protected var active:Boolean; protected var mouseOver:Boolean; public function Button(){ buttonMode = true; addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); addEventListener(MouseEvent.MOUSE_OUT, onMouseOut); active = false; mouseOver = false; } public function onMouseOver(_arg1:MouseEvent){ mouseOver = true; if (!active){ activate(); }; } public function setActive(_arg1:Boolean){ this.active = _arg1; if (_arg1){ activate(); } else { if (!mouseOver){ deactivate(); }; }; } public function activate(){ } public function onMouseOut(_arg1:MouseEvent){ mouseOver = false; if (!active){ deactivate(); }; } public function deactivate(){ } } }//package se.rocketxl.display
Section 51
//Path (se.rocketxl.io.Path) package se.rocketxl.io { public class Path { private static const frontslash = "/"; private static const backslash = "\"; private static function getLastSlashIndex(_arg1:String):int{ return (((((_arg1 == null)) || ((_arg1.length == 0)))) ? -1 : Math.max(_arg1.lastIndexOf(frontslash), _arg1.lastIndexOf(backslash))); } public static function getFileExtension(_arg1:String):String{ var _local2:String; _local2 = getFileName(_arg1); return (_local2.substr((_local2.lastIndexOf(".") + 1))); } public static function getDirectory(_arg1:String, _arg2:Boolean=true):String{ var _local3:int; _local3 = getLastSlashIndex(_arg1); return (((_local3 == -1)) ? _arg1 : _arg1.substring(0, (_local3 + (_arg2) ? 1 : 0))); } public static function getFileName(_arg1:String):String{ var _local2:int; _local2 = getLastSlashIndex(_arg1); return (((_local2 == -1)) ? _arg1 : _arg1.substr((_local2 + 1))); } public static function changeExtension(_arg1:String, _arg2:String):String{ return ((_arg1.substr(0, _arg1.lastIndexOf(".")) + _arg2)); } } }//package se.rocketxl.io
Section 52
//SHA1 (se.rocketxl.security.cryptography.SHA1) package se.rocketxl.security.cryptography { public class SHA1 { public static const HEX_FORMAT_LOWERCASE:uint = 0; public static const BITS_PER_CHAR_ASCII:uint = 8; public static const BASE64_PAD_CHARACTER_DEFAULT_COMPLIANCE:String = ""; public static const HEX_FORMAT_UPPERCASE:uint = 1; public static const BITS_PER_CHAR_UNICODE:uint = 8; public static const BASE64_PAD_CHARACTER_RFC_COMPLIANCE:String = "="; public static var hexcase:uint = 0; public static var chrsz:uint = 8; public static var b64pad:String = ""; public static function binb2str(_arg1:Array):String{ var _local2:String; var _local3:Number; var _local4:Number; _local2 = ""; _local3 = ((1 << chrsz) - 1); _local4 = 0; while (_local4 < (_arg1.length * 32)) { _local2 = (_local2 + String.fromCharCode(((_arg1[(_local4 >> 5)] >>> ((32 - chrsz) - (_local4 % 32))) & _local3))); _local4 = (_local4 + chrsz); }; return (_local2); } public static function b64_sha1(_arg1:String):String{ return (binb2b64(core_sha1(str2binb(_arg1), (_arg1.length * chrsz)))); } public static function sha1_ft(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 < 20){ return (((_arg2 & _arg3) | (~(_arg2) & _arg4))); }; if (_arg1 < 40){ return (((_arg2 ^ _arg3) ^ _arg4)); }; if (_arg1 < 60){ return ((((_arg2 & _arg3) | (_arg2 & _arg4)) | (_arg3 & _arg4))); }; return (((_arg2 ^ _arg3) ^ _arg4)); } public static function core_hmac_sha1(_arg1:String, _arg2:String):Array{ var _local3:Array; var _local4:Array; var _local5:Array; var _local6:Number; var _local7:Array; _local3 = str2binb(_arg1); if (_local3.length > 16){ _local3 = core_sha1(_local3, (_arg1.length * chrsz)); }; _local4 = new Array(16); _local5 = new Array(16); _local6 = 0; while (_local6 < 16) { _local4[_local6] = (_local3[_local6] ^ 909522486); _local5[_local6] = (_local3[_local6] ^ 1549556828); _local6++; }; _local7 = core_sha1(_local4.concat(str2binb(_arg2)), (0x0200 + (_arg2.length * chrsz))); return (core_sha1(_local5.concat(_local7), (0x0200 + 160))); } public static function str_hmac_sha1(_arg1:String, _arg2:String):String{ return (binb2str(core_hmac_sha1(_arg1, _arg2))); } public static function str_sha1(_arg1:String):String{ return (binb2str(core_sha1(str2binb(_arg1), (_arg1.length * chrsz)))); } public static function sha1_vm_test():Boolean{ return ((hex_sha1("abc") == "a9993e364706816aba3e25717850c26c9cd0d89d")); } public static function binb2hex(_arg1:Array):String{ var _local2:String; var _local3:String; var _local4:Number; _local2 = (hexcase) ? "0123456789ABCDEF" : "0123456789abcdef"; _local3 = ""; _local4 = 0; while (_local4 < (_arg1.length * 4)) { _local3 = (_local3 + (_local2.charAt(((_arg1[(_local4 >> 2)] >> (((3 - (_local4 % 4)) * 8) + 4)) & 15)) + _local2.charAt(((_arg1[(_local4 >> 2)] >> ((3 - (_local4 % 4)) * 8)) & 15)))); _local4++; }; return (_local3); } public static function encrypt(_arg1:String):String{ return (hex_sha1(_arg1)); } public static function rol(_arg1:Number, _arg2:Number):Number{ return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2)))); } public static function hex_sha1(_arg1:String):String{ return (binb2hex(core_sha1(str2binb(_arg1), (_arg1.length * chrsz)))); } public static function sha1_kt(_arg1:Number):Number{ return (((_arg1)<20) ? 1518500249 : ((_arg1)<40) ? 1859775393 : ((_arg1)<60) ? -1894007588 : -899497514); } public static function core_sha1(_arg1:Array, _arg2:Number):Array{ var _local3:Array; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; _arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (24 - (_arg2 % 32)))); _arg1[((((_arg2 + 64) >> 9) << 4) + 15)] = _arg2; _local3 = new Array(80); _local4 = 1732584193; _local5 = -271733879; _local6 = -1732584194; _local7 = 271733878; _local8 = -1009589776; _local9 = 0; while (_local9 < _arg1.length) { _local10 = _local4; _local11 = _local5; _local12 = _local6; _local13 = _local7; _local14 = _local8; _local15 = 0; while (_local15 < 80) { if (_local15 < 16){ _local3[_local15] = _arg1[(_local9 + _local15)]; } else { _local3[_local15] = rol((((_local3[(_local15 - 3)] ^ _local3[(_local15 - 8)]) ^ _local3[(_local15 - 14)]) ^ _local3[(_local15 - 16)]), 1); }; _local16 = safe_add(safe_add(rol(_local4, 5), sha1_ft(_local15, _local5, _local6, _local7)), safe_add(safe_add(_local8, _local3[_local15]), sha1_kt(_local15))); _local8 = _local7; _local7 = _local6; _local6 = rol(_local5, 30); _local5 = _local4; _local4 = _local16; _local15++; }; _local4 = safe_add(_local4, _local10); _local5 = safe_add(_local5, _local11); _local6 = safe_add(_local6, _local12); _local7 = safe_add(_local7, _local13); _local8 = safe_add(_local8, _local14); _local9 = (_local9 + 16); }; return ([_local4, _local5, _local6, _local7, _local8]); } public static function binb2b64(_arg1:Array):String{ var _local2:String; var _local3:String; var _local4:Number; var _local5:Number; var _local6:Number; _local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; _local3 = ""; _local4 = 0; while (_local4 < (_arg1.length * 4)) { _local5 = (((((_arg1[(_local4 >> 2)] >> (8 * (3 - (_local4 % 4)))) & 0xFF) << 16) | (((_arg1[((_local4 + 1) >> 2)] >> (8 * (3 - ((_local4 + 1) % 4)))) & 0xFF) << 8)) | ((_arg1[((_local4 + 2) >> 2)] >> (8 * (3 - ((_local4 + 2) % 4)))) & 0xFF)); _local6 = 0; while (_local6 < 4) { if (((_local4 * 8) + (_local6 * 6)) > (_arg1.length * 32)){ _local3 = (_local3 + b64pad); } else { _local3 = (_local3 + _local2.charAt(((_local5 >> (6 * (3 - _local6))) & 63))); }; _local6++; }; _local4 = (_local4 + 3); }; return (_local3); } public static function str2binb(_arg1:String):Array{ var _local2:Array; var _local3:Number; var _local4:Number; _local2 = new Array(); _local3 = ((1 << chrsz) - 1); _local4 = 0; while (_local4 < (_arg1.length * chrsz)) { _local2[(_local4 >> 5)] = (_local2[(_local4 >> 5)] | ((_arg1.charCodeAt((_local4 / chrsz)) & _local3) << ((32 - chrsz) - (_local4 % 32)))); _local4 = (_local4 + chrsz); }; return (_local2); } public static function safe_add(_arg1:Number, _arg2:Number):Number{ var _local3:Number; var _local4:Number; _local3 = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF)); _local4 = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16)); return (((_local4 << 16) | (_local3 & 0xFFFF))); } public static function hex_hmac_sha1(_arg1:String, _arg2:String):String{ return (binb2hex(core_hmac_sha1(_arg1, _arg2))); } public static function b64_hmac_sha1(_arg1:String, _arg2:String):String{ return (binb2b64(core_hmac_sha1(_arg1, _arg2))); } } }//package se.rocketxl.security.cryptography
Section 53
//Track (se.rocketxl.track.Track) package se.rocketxl.track { import flash.net.*; public class Track { protected var _st:String;// = "" protected var trackURL:URLRequest;// = null protected var _campaign:String;// = "" protected var _trackerUrl:String;// = "" protected var _sc:String;// = "track" public static var ROTATE_3D_SCENE:String = "54"; public static var VOLUME_CHANGED:String = "18"; public static var GOTO_PREVIOUS_3D_SCENE:String = "10"; public static var GOTO_NEXT_IMAGE:String = "7"; public static var GOTO_NEXT_3D_SCENE:String = "9"; public static var GOTO_PREVIOUS_IMAGE:String = "8"; public static var OFFICIAL_SITE:String = "55"; public static var GOTO_IMAGE_THUMB:String = "11"; public static var GOTO_IMAGE:String = "5"; public static var TIMER_EVENT:String = "52"; public static var TRACKER_URL:String = "http://dev.rocketxl.se/cod4/tracking/index2.php"; public static var VIDEO_FINISHED:String = "17"; public static var SCRUBB_VIDEO:String = "16"; public static var GOTO_3D_SCENE_THUMB:String = "13"; public static var GOTO_VIDEO_THUMB:String = "12"; protected static var tracking:Boolean = true; protected static var tracker:Track = null; public static var SWITCH_MEDIA:String = "53"; public static var GOTO_3D_SCENE:String = "6"; public static var GOTO_VIDEO:String = "3"; public function Track(){ _trackerUrl = ""; _sc = "track"; _st = ""; _campaign = ""; trackURL = null; super(); } public function set campaign(_arg1:String){ this._campaign = _arg1; } public function doActionTrack(_arg1:String){ var _local2:URLVariables; if (trackURL != null){ _local2 = setupVariabels(); _local2.ac = "event"; _local2.eid = _arg1; trackURL.data = _local2; trace(((("Action: " + trackURL.url) + "?") + trackURL.data)); sendToURL(trackURL); } else { trace("Tracker not setup properly"); }; } public function set siteId(_arg1:String){ this._st = _arg1; } public function set trackerUrl(_arg1:String){ _trackerUrl = _arg1; trackURL = new URLRequest(_trackerUrl); } public function get campaign():String{ return (_campaign); } public function doVisitorTrack(){ var _local1:URLVariables; if (trackURL != null){ _local1 = setupVariabels(); _local1.ac = "default"; trackURL.data = _local1; trace(((("Visitor: " + trackURL.url) + "?") + trackURL.data)); sendToURL(trackURL); } else { trace("Tracker not setup properly"); }; } public function doSaleTrack(_arg1:String, _arg2:String){ var _local3:URLVariables; if (trackURL != null){ _local3 = setupVariabels(); _local3.ac = "sale"; if (_arg1 != ""){ _local3.product = _arg1; }; if (_arg2 != ""){ _local3.d = _arg2; }; trackURL.data = _local3; trace(((("Sale: " + trackURL.url) + "?") + trackURL.data)); sendToURL(trackURL); } else { trace("Tracker not setup properly"); }; } public function doTimeTrack(_arg1:String, _arg2:String, _arg3:String){ var _local4:URLVariables; if (trackURL != null){ _local4 = setupVariabels(); _local4.ac = "event"; _local4.eid = _arg2; _local4.st = _arg1; _local4.c = _arg3; trackURL.data = _local4; trace(((("Time: " + trackURL.url) + "?") + trackURL.data)); sendToURL(trackURL); } else { trace("Tracker not setup properly"); }; } public function setupVariabels():URLVariables{ var _local1:URLVariables; _local1 = new URLVariables(); _local1.sc = _sc; if (_st != ""){ _local1.st = _st; } else { trace("No SiteId to track"); return (null); }; if (_campaign != ""){ _local1.c = _campaign; } else { trace("No campaign to track"); }; return (_local1); } public static function trackSale(_arg1:String="", _arg2:String=""){ if (((!((tracker == null))) && (tracking))){ tracker.doSaleTrack(_arg1, _arg2); }; } public static function getCampaign():String{ if (tracker != null){ return (tracker.campaign); }; return (""); } public static function setTracking(_arg1:Boolean){ tracking = _arg1; } public static function setCampaign(_arg1:String){ if (tracker == null){ tracker = new (Track); }; tracker.campaign = _arg1; } public static function setSiteId(_arg1:String){ if (tracker == null){ tracker = new (Track); }; tracker.siteId = _arg1; } public static function trackTimeAction(_arg1:String, _arg2:String, _arg3:String){ if (((!((tracker == null))) && (tracking))){ tracker.doTimeTrack(_arg1, _arg2, _arg3); }; } public static function setTrackerURL(_arg1:String){ if (tracker == null){ tracker = new (Track); }; tracker.trackerUrl = _arg1; } public static function trackAction(_arg1:String){ if (((!((tracker == null))) && (tracking))){ tracker.doActionTrack(_arg1); }; } public static function trackVisitor(){ if (((!((tracker == null))) && (tracking))){ tracker.doVisitorTrack(); }; } } }//package se.rocketxl.track
Section 54
//GuiElementType (se.rocketxl.ui.widget.container.GuiElementType) package se.rocketxl.ui.widget.container { import se.rocketxl.*; public class GuiElementType implements IEnum { private var value:String; public static const OVERLAY:GuiElementType = new GuiElementType("overlay"); ; public static const GUIELEMENT:GuiElementType = new GuiElementType("guielement"); ; public static const SECTION:GuiElementType = new GuiElementType("section"); ; public function GuiElementType(_arg1:String){ this.value = _arg1; } public function equals(_arg1:Object):Boolean{ return (((((!(_arg1) is GuiElementType)) || ((this.value == null)))) ? false : (_arg1.value == this.value)); } public function toString():String{ return (this.value); } public static function getType(_arg1:String):GuiElementType{ switch (_arg1){ case GUIELEMENT.value: return (GUIELEMENT); case SECTION.value: return (SECTION); case OVERLAY.value: return (OVERLAY); }; return (null); } } }//package se.rocketxl.ui.widget.container
Section 55
//IElementContainer (se.rocketxl.ui.widget.container.IElementContainer) package se.rocketxl.ui.widget.container { import se.rocketxl.ui.widget.events.*; public interface IElementContainer { function processWidgetEvent(_arg1:IWidgetEvent):void; function getElementByName(_arg1:String):IGuiElement; } }//package se.rocketxl.ui.widget.container
Section 56
//IGuiElement (se.rocketxl.ui.widget.container.IGuiElement) package se.rocketxl.ui.widget.container { import se.rocketxl.ui.widget.events.*; import flash.events.*; public interface IGuiElement extends IEventDispatcher { function deactivateElement():void; function activateElement():void; function get useHidingState():Boolean; function processWidgetEvent(_arg1:IWidgetEvent); function applySettings(_arg1:XML, _arg2:IElementContainer):void; function get elementType():GuiElementType; function get instanceName():String; function hideElement():void; function get isHidden():Boolean; function showElement():void; } }//package se.rocketxl.ui.widget.container
Section 57
//Widget (se.rocketxl.ui.widget.container.Widget) package se.rocketxl.ui.widget.container { import se.rocketxl.ui.widget.events.*; import flash.events.*; import flash.display.*; import flash.net.*; import flash.system.*; import se.rocketxl.ui.*; public class Widget extends Sprite implements IElementContainer { protected var defaultPath:String;// = "" protected var configData:XML; protected var overlays:Array; protected var currentSection:IGuiElement; protected var guiLoader:Loader; private var _loadFromSelf:Boolean; protected var sections:Array; protected var originPath:String;// = "" protected var currentOverlay:IGuiElement; protected var guiLayer:DisplayObject; protected var GUILayerDefinition:Class; protected var elements:Object; public function Widget(_arg1:String="", _arg2:String="", _arg3:Boolean=false, _arg4:XML=null){ originPath = ""; defaultPath = ""; super(); this.originPath = _arg1; this._loadFromSelf = _arg3; if (_arg4 != null){ this.configData = _arg4; this.onConfigDataLoaded(null); } else { if (_arg2 != ""){ this.loadConfigFile((_arg1 + _arg2)); }; }; } protected function onGuiLoaded(_arg1:Event){ if (!this._loadFromSelf){ this.extractGuiLayerClassesfromGuiLoader(); this.buildGUILayers(); } else { this.guiLayer = this; }; this.extractGuiElementsfromLayers(); this.initWidget(); this.dispatchEvent(new Event(Event.COMPLETE)); } protected function onGuiIoError(_arg1:IOErrorEvent){ trace(("GuiFile IOErrorEvent: " + _arg1.text)); } public function changeSection(_arg1:IGuiElement){ switch (_arg1.elementType){ case GuiElementType.SECTION: this.setGuiElementsDisplayState(this.sections, false, _arg1); this.currentSection = _arg1; this.setGuiElementDisplayState(this.currentSection, true); break; case GuiElementType.OVERLAY: this.setGuiElementsDisplayState(this.overlays, false, _arg1); this.currentSection.deactivateElement(); this.currentOverlay = _arg1; this.setGuiElementDisplayState(this.currentOverlay, true); break; }; } public function onConfigSecurityError(_arg1:SecurityErrorEvent){ trace(("ConfigFile SecurityErrorEvent: " + _arg1.text)); } public function onConfigDataLoaded(_arg1:Event){ if (_arg1 != null){ this.configData = new XML(_arg1.target.data); }; this.setupConfiguration(); } public function onConfigIoError(_arg1:IOErrorEvent){ trace(("ConfigFile IOErrorEvent: " + _arg1.text)); } protected function setupDefaultPath(){ if (configData.@defaultpath.length() == 1){ defaultPath = configData.@defaultpath; } else { defaultPath = originPath; }; } public function get appDomain():ApplicationDomain{ return (((this.guiLoader == null)) ? ApplicationDomain.currentDomain : this.guiLoader.contentLoaderInfo.applicationDomain); } protected function extractGuiElementsfromLayers(){ var _local1:XML; var _local2:IGuiElement; var _local3:Class; this.elements = new Object(); this.sections = new Array(); this.overlays = new Array(); for each (_local1 in configData.element) { if (_local1.@name.length() == 0){ trace("Warning: Trying to extract an element without a name attribute"); trace(_local1.toXMLString()); } else { if (_local1.@type.length() == 0){ trace("Warning: Trying to extract an element without a type attribute"); trace(_local1.toXMLString()); } else { _local2 = (DataBinder.getProperty(this.guiLayer, _local1.@name, IGuiElement, false, false) as IGuiElement); if (_local2 == null){ if (_local1.attribute("class").length() == 0){ trace((("Warning: No class attribute specified for element '" + _local1.@name) + "', cannot create instance automatically")); break; } else { if (!this.appDomain.hasDefinition(_local1.attribute("class").toString())){ trace((((("Warning: Class definition specified in element '" + _local1.@name) + "' did not exist ('") + _local1.attribute("class").toString()) + "'), cannot create instance automatically")); break; } else { _local3 = (this.appDomain.getDefinition(_local1.attribute("class").toString()) as Class); _local2 = new (_local3); }; }; }; this.elements[_local1.@name] = _local2; switch (GuiElementType.getType(_local1.@type)){ case GuiElementType.SECTION: this.sections[sections.length] = _local2; break; case GuiElementType.OVERLAY: this.overlays[overlays.length] = _local2; break; }; }; }; }; for each (_local1 in configData.element) { if (_local1.@name.length() == 0){ } else { _local2 = this.elements[_local1.@name]; if (_local2 != null){ _local2.applySettings(_local1, this); } else { trace((("Warning: IGuiElement by instance name '" + _local1.@name) + "' did not exist in extracted list")); }; }; }; } protected function extractGuiLayerClassesfromGuiLoader():void{ this.GUILayerDefinition = extractClassfromGuiLoader("GuiObject"); } protected function initWidget(){ this.setGuiElementsDisplayState(this.sections, false); this.setGuiElementsDisplayState(this.overlays, false); if (this.sections.length > 0){ this.currentSection = this.sections[0]; this.currentSection.showElement(); }; } public function loadConfigFile(_arg1:String){ var _local2:URLLoader; _local2 = new URLLoader(); _local2.addEventListener(IOErrorEvent.IO_ERROR, onConfigIoError); _local2.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onConfigSecurityError); _local2.addEventListener(Event.COMPLETE, onConfigDataLoaded); _local2.load(new URLRequest(_arg1)); } protected function setupConfiguration(){ this.setupDefaultPath(); this.loadGuiFile(); } public function buildGUILayers(){ if (this.GUILayerDefinition != null){ this.guiLayer = new GUILayerDefinition(); this.addChild(this.guiLayer); }; } protected function loadGuiFile(){ var _local1:String; if ((((configData.@guiurl.length() == 0)) || ((configData.@guiurl == "")))){ trace("Config Error: No Gui Url Specified"); return; }; _local1 = (getGuiPath() + configData.@guiurl); if (this._loadFromSelf){ this.onGuiLoaded(null); } else { this.guiLoader = new Loader(); this.guiLoader.load(new URLRequest(_local1)); this.guiLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onGuiIoError); this.guiLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onGuiLoaded); }; } protected function setGuiElementsDisplayState(_arg1:Array, _arg2:Boolean, ... _args):void{ var _local4:Boolean; var _local5:IGuiElement; var _local6:IGuiElement; for each (_local5 in _arg1) { _local4 = false; for each (_local6 in _args) { if (_local5 == _local6){ _local4 = true; break; }; }; if (_local4){ } else { this.setGuiElementDisplayState(_local5, _arg2); }; }; } protected function extractClassfromGuiLoader(_arg1:String):Class{ if (appDomain.hasDefinition(_arg1)){ return ((appDomain.getDefinition(_arg1) as Class)); }; trace(("Class definition not found: " + _arg1)); return (null); } public function processWidgetEvent(_arg1:IWidgetEvent):void{ var _local2:IGuiElement; _local2 = elements[_arg1.targetElementIdentifier]; if (_local2 == null){ trace((("Error catching WidgetEvent: element by instance name '" + _arg1.targetElementIdentifier) + "' does not exist, could not redirect event to instance.")); } else { _local2.processWidgetEvent(_arg1); if ((_arg1 is SectionChangeEvent)){ this.changeSection(_local2); }; }; } protected function getGuiPath():String{ if (configData.@guipath.length() == 1){ if (configData.@guipath == "default"){ return (defaultPath); }; if (configData.@guipath == "absolute"){ return (""); }; if (configData.@guipath != "origin"){ trace("Warning guipath contains illegal value will default to origin path"); }; }; return (originPath); } protected function setGuiElementDisplayState(_arg1:IGuiElement, _arg2:Boolean):void{ if (_arg1 == null){ return; }; if (_arg1.useHidingState){ if (((_arg1.isHidden) && (_arg2))){ _arg1.showElement(); } else { if (((!(_arg1.isHidden)) && (!(_arg2)))){ _arg1.hideElement(); }; }; } else { if (_arg2){ _arg1.showElement(); } else { _arg1.hideElement(); }; }; } public function getElementByName(_arg1:String):IGuiElement{ var _local2:String; for (_local2 in this.elements) { if (_local2 == _arg1){ return ((this.elements[_local2] as IGuiElement)); }; }; trace(((("Widget: getElementByName(): Could not find element by name '" + _arg1) + "' in ") + this)); return (null); } } }//package se.rocketxl.ui.widget.container
Section 58
//WidgetContent (se.rocketxl.ui.widget.container.WidgetContent) package se.rocketxl.ui.widget.container { import controls.*; import se.rocketxl.io.*; public class WidgetContent extends Widget { public var clock:InGameClock; public var btnBackToMainMenu:BackToMainMenuButton; public var gamePlayInfo:GamePlayInfoElement; public var gameSettings:GameSettingsElement; public var grabCode:GrabCodeElement; public var btnGotoOfficialSite:GotoOfficialTrailerButton; protected var DEFAULT_CONFIG_FILENAME:String;// = "mpConfig.xml" public var highScores:HighScoreElement; public var player1Panel:InGamePlayer1Panel; public var musicToggleButton:MusicToggleButton; public var curtain:CurtainElement; public var sendToFriend:SendToFriendElement; public var gameMode:GameModeElement; public var mainMenu:MainMenuElement; public var clapperHotArea:ClipperHotArea; public var hostess:hostessEnterLeave; public var player2Panel:InGamePlayer2Panel; public var clapperTop:ClapperTop; public var gameModePreloader:GameModePreloaderElement; public var submitScore:SubmitScoreElement; public var highScoreSelection:HighScoreSelectionElement; public var startSplash:StartSplashElement; public var gamePlayInfoMenu:GamePlayInfoElement; public var gameResults:GameResultsElement; public var host:hostEnterLeave; public var instructions:InstructionsElement; public var btnGotoOfficialTrailer:GotoOfficialTrailerButton; public var quizNumber:QuizNumberElement; private static var overrideXml:XML = <mediaplayer guiurl="bhGui.swf"> <element buttonMode="true" name="startSplash" type="section"> <trigger type="click" event="SectionChangeEvent" target="mainMenu"/> </element> <!-- Stuff on top --> <element name="btnGotoOfficialTrailer" type="guielement"> <trigger type="mouseOver" event="CommandEvent" command="CLAP" args="mouseover" target="clapperTop"/> <trigger type="click" event="CommandEvent" command="CLAP" args="click" target="clapperTop"> <customEvent type="link" args="http://www.us.playstation.com/PS2/Games/Buzz_The_Hollywood_Quiz_Bundle"/> </trigger> </element> <element name="btnGotoOfficialSite" type="guielement"> <trigger type="mouseOver" event="CommandEvent" command="CLAP" args="mouseover" target="clapperTop"/> <trigger type="click" event="CommandEvent" command="CLAP" args="click" target="clapperTop"> <customEvent type="link" args="http://www.buzz-games.com"/> <!-- Cutter: This is the link you need to change --> </trigger> </element> <element name="musicToggleButton" type="guielement"> <trigger type="click" event="CommandEvent" command="TOGGLEMUSIC" args="click" target="mainMenu"/> </element> <element name="btnBackToMainMenu" type="guielement"> <trigger type="mouseOver" event="CommandEvent" command="CLAP" args="mouseover" target="clapperTop"/> <trigger type="click" event="CommandEvent" command="CLAP" args="click" target="clapperTop"/> <trigger type="click" event="SectionChangeEvent" target="mainMenu"/> </element> <element name="clock" type="guielement"/> <element name="quizNumber" type="guielement"/> <element name="player1Panel" type="guielement"/> <element name="player2Panel" type="guielement"/> <!-- Main Menu sections --> <element name="curtain" type="guielement"/> <element name="mainMenu" type="section"> <element name="btnGotoVsMode"> <trigger type="click" event="SectionChangeEvent" target="gameSettings" args="playerMode=VERSUS"/> </element> <element name="btnGotoSinglePlay"> <trigger type="click" event="SectionChangeEvent" target="gameSettings" args="playerMode=SINGLE"/> </element> <element name="btnGotoHighScores"> <trigger type="click" event="SectionChangeEvent" target="highScoreSelection"/> </element> <element name="btnGotoSendToFriend"> <trigger type="click" event="SectionChangeEvent" target="sendToFriend"/> </element> <element name="btnGotoGrabCode"> <trigger type="click" event="SectionChangeEvent" target="grabCode"/> </element> <element name="btnGotoInstructions"> <trigger type="click" event="SectionChangeEvent" target="instructions"/> </element> <element name="btnGotoRules"> <trigger type="click" event="CommandEvent" command="CLAP" args="click" target="clapperTop"> <customEvent type="link" args="http://www.rocketxl.com/buzzhollywood/rules.html"/> </trigger> </element> </element> <element name="highScores" type="section"/> <element name="highScoreSelection" type="section"> <element name="btnGotoToday"> <trigger type="click" event="SectionChangeEvent" args="type=today" target="highScores"/> </element> <element name="btnGotoThisWeek"> <trigger type="click" event="SectionChangeEvent" args="type=week" target="highScores"/> </element> <element name="btnGotoThisMonth"> <trigger type="click" event="SectionChangeEvent" args="type=month" target="highScores"/> </element> </element> <element name="clapperTop" type="guielement"/> <element name="clapperHotArea" type="guielement"> <trigger type="mouseOver" event="CommandEvent" command="CLAP" args="mouseover" target="clapperTop"/> <trigger type="mouseOut" event="CommandEvent" command="CLAP" args="mouseout" target="clapperTop"/> <trigger type="click" event="CommandEvent" command="CLAP" args="click" target="clapperTop"/> </element> <element name="host" type="guielement"/> <element name="hostess" type="guielement"/> <element name="sendToFriend" type="section" mailerurl="http://www.rocketxl.com/mailer.php"> <![CDATA[Hey, Check out the new free Buzz Hollywood online mini-game: http://www.rocketxl.com/buzzhollywoodquiz/assets/widget.html Post your score for a chance to win cool Buzz Hollywood stuff! You can even grab the code and add the mini-game to your site! ]]> </element> <element name="grabCode" type="section"> <![CDATA[<object width="515" height="450"><param name="movie" value="http://www.rocketxl.com/buzzhollywoodquiz/bhWidget.swf" /><param name="wmode" value="transparent" /><embed src="http://www.rocketxl.com/buzzhollywoodquiz/bhWidget.swf" type="application/x-shockwave-flash" wmode="transparent" width="515" height="450"></embed></object> ]]> </element> <element name="instructions" type="section"> <element name="btnGotoGameControls"> <trigger type="click" event="SectionChangeEvent" target="gamePlayInfoMenu"/> </element> </element> <!-- Gameplay sections --> <element name="gameSettings" type="section"> <playerControlsSettings player="1"/> <playerControlsSettings player="2"/> <gameModeCombination playerMode="VERSUS"> <gameMode id="regular" questionreadtime="2" questionwaittime="1" timelimit="10" numquestions="10" points="250"/> <gameMode id="timeattack" questionreadtime="2" questionwaittime="1" timelimit="10" numquestions="10" ladder="true" points="400,250"/> <gameMode id="potplay" questionreadtime="2" questionwaittime="1" timelimit="10" numquestions="5" wronganswerpot="true" isturnbased="true" points="250"/> <gameMode id="thief" questionreadtime="2" questionwaittime="1" timelimit="10" numquestions="5" steal="true" isturnbased="true" points="500"/> </gameModeCombination> <gameModeCombination playerMode="SINGLE"> <gameMode id="collecttime" questionreadtime="2" questionwaittime="1" timelimit="10" numquestions="10" showgainedtime="true"/> <gameMode id="savepoints" questionreadtime="2" questionwaittime="1" timelimit="10" useremainingtime="true" playerpots="true" timeattack="true" points="100,250,500,100,1500,2500"/> </gameModeCombination> <element name="btnStartGame"> <trigger type="click" event="CommandEvent" target="gameSettings" command="SaveSettings"/> <trigger type="click" event="SectionChangeEvent" target="gameModePreloader" args="settings={parent.gameSettings}"/> </element> </element> <element name="gameModePreloader" type="section"> <element name="btnContinueToGamePlayInfo"> <trigger type="click" event="SectionChangeEvent" target="gamePlayInfo" args="settings={parent.gameSettings}"/> </element> </element> <element name="gamePlayInfo" type="section"> <element name="btnOkContinue"> <trigger type="click" event="SectionChangeEvent" target="gameMode" args="settings={parent.gameSettings}"/> </element> </element> <element name="gamePlayInfoMenu" type="section"> <element name="btnOkContinue"> <trigger type="click" event="SectionChangeEvent" target="mainMenu"/> </element> </element> <element name="gameMode" type="section"/> <!-- Ending sections --> <element name="gameResults" type="section"> <element name="btnPlayAgain"> <trigger type="click" event="SectionChangeEvent" target="gameSettings" args="playerMode={parent.gameSettings.playerMode}"/> </element> <element name="btnGotoSubmitScore"> <trigger type="click" event="SectionChangeEvent" target="submitScore" args="settings={parent.gameSettings}"/> </element> </element> <element name="submitScore" type="section"> <element name="btnSubmitScore"> <trigger type="click" event="CommandEvent" command="SubmitScore" target="submitScore"/> </element> </element> <!-- Automatically created sections --> <element name="tracker" class="TrackerElement" type="section" desc="TrackerSection" visitor="true" siteid="66" campaignid="2808" trackerurl="http://www.rocketxl.com/buzzhollywoodquiz/track.php"> <event name="StartSingleplayer" id="171"/> <event name="FinishSingleplayer" id="172"/> <event name="StartMultiplayer" id="174"/> <event name="FinishMultiplayer" id="175"/> </element> </mediaplayer> ; public function WidgetContent(){ DEFAULT_CONFIG_FILENAME = "mpConfig.xml"; super(Path.getDirectory(root.loaderInfo.url), Path.changeExtension(Path.getFileName(root.loaderInfo.url), ".xml"), true, overrideXml); } } }//package se.rocketxl.ui.widget.container
Section 59
//CommandEvent (se.rocketxl.ui.widget.events.CommandEvent) package se.rocketxl.ui.widget.events { public class CommandEvent extends WidgetEventBase implements IWidgetEvent { private var _arrArguments:Array; private var _strCommand:String; public function CommandEvent(_arg1:String, _arg2:String, _arg3:Array){ super(_arg1); this._strCommand = _arg2; this._arrArguments = _arg3; } public function get command():String{ return (this._strCommand); } public function get args():Array{ return (this._arrArguments); } } }//package se.rocketxl.ui.widget.events
Section 60
//IWidgetEvent (se.rocketxl.ui.widget.events.IWidgetEvent) package se.rocketxl.ui.widget.events { public interface IWidgetEvent { function get targetElementIdentifier():String; } }//package se.rocketxl.ui.widget.events
Section 61
//SectionChangeEvent (se.rocketxl.ui.widget.events.SectionChangeEvent) package se.rocketxl.ui.widget.events { public class SectionChangeEvent extends WidgetEventBase implements IWidgetEvent { private var _arrArguments:Array; public function SectionChangeEvent(_arg1:String, _arg2:Array=null){ super(_arg1); this._arrArguments = ((_arg2 == null)) ? new Array() : _arg2; } public function get args():Array{ return (this._arrArguments); } } }//package se.rocketxl.ui.widget.events
Section 62
//WidgetEventBase (se.rocketxl.ui.widget.events.WidgetEventBase) package se.rocketxl.ui.widget.events { import flash.events.*; public class WidgetEventBase extends Event { private var _strTargetElementIdentifier:String; public static const Name:String = "widgetEvent"; public function WidgetEventBase(_arg1:String){ super(WidgetEventBase.Name); this._strTargetElementIdentifier = _arg1; } public function get targetElementIdentifier():String{ return (_strTargetElementIdentifier); } } }//package se.rocketxl.ui.widget.events
Section 63
//GrabCodeSection (se.rocketxl.ui.widget.gui.share.GrabCodeSection) package se.rocketxl.ui.widget.gui.share { import se.rocketxl.ui.widget.container.*; import flash.events.*; import flash.system.*; import flash.text.*; import se.rocketxl.track.*; import se.rocketxl.ui.widget.gui.specialized.*; public class GrabCodeSection extends DropDownTweenInElement { public var copyButton:CopyToClipboardButton; public var grabCodeText:TextField; var tracked:Boolean;// = false public function GrabCodeSection(){ tracked = false; super(); grabCodeText.text = "Error no Grab Code Provided"; copyButton.addEventListener(MouseEvent.MOUSE_UP, onCopyToClipBoard); } public function doGrabCodeTrack(){ Track.trackSale("GetCode", ""); } override public function applySettings(_arg1:XML, _arg2:IElementContainer):void{ super.applySettings(_arg1, _arg2); grabCodeText.text = _arg1; } public function onCopyToClipBoard(_arg1:MouseEvent){ if (!tracked){ tracked = true; doGrabCodeTrack(); }; System.setClipboard(grabCodeText.text); } } }//package se.rocketxl.ui.widget.gui.share
Section 64
//ShareWithFriendElement (se.rocketxl.ui.widget.gui.share.ShareWithFriendElement) package se.rocketxl.ui.widget.gui.share { import se.rocketxl.ui.widget.container.*; import flash.utils.*; import flash.events.*; import flash.display.*; import se.rocketxl.*; import mx.effects.*; import flash.text.*; import se.rocketxl.util.*; import se.rocketxl.ui.widget.gui.specialized.*; public dynamic class ShareWithFriendElement extends DropDownTweenInElement { private const _rgxValidEmail:RegExp; public var message:TextField; public var rEmail:TextField; public var inputError:MovieClip; private var _blnIsMailerUrlSet:Boolean; protected var mailer:Mailer; public var errorMessage:MovieClip; public var sEmail:TextField; private var _objMessageTween:Tween; private var _blnIsSubmitting:Boolean; public var sentMessage:MovieClip; public var sendMailButton:SendToFriendSendButton; protected var messageTimer:Timer; private var _objFuncTimer:FuncTimer; public var sName:TextField; public var processingMessage:MovieClip; public function ShareWithFriendElement(){ _rgxValidEmail = /^[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i; super(); if (!this.hasOwnProperty("sentMessage")){ throw (new Error("ShareWithFriendElement is missing 'sentMessage' MovieClip (should contain a TextField by the instance name 'textField')")); }; if (!this.hasOwnProperty("errorMessage")){ throw (new Error("ShareWithFriendElement is missing 'errorMessage' MovieClip (should contain a TextField by the instance name 'textField')")); }; if (!this.hasOwnProperty("processingMessage")){ throw (new Error("ShareWithFriendElement is missing 'processingMessage' MovieClip (should contain a TextField by the instance name 'textField')")); }; if (!this.hasOwnProperty("inputError")){ throw (new Error("ShareWithFriendElement is missing 'inputError' MovieClip (should contain a TextField by the instance name 'textField')")); }; sentMessage.visible = false; errorMessage.visible = false; processingMessage.visible = false; inputError.visible = false; messageTimer = new Timer(5000, 1); messageTimer.addEventListener(TimerEvent.TIMER, onCloseMessageTimer); this._objFuncTimer = new FuncTimer(); } private function showMessage(_arg1:String){ this.inputError.visible = true; this.inputError.textField.text = _arg1; this._objFuncTimer.removeByCallback(null, this.fadeOutMessage); this._objFuncTimer.loopFunction(1000, 1, null, this.fadeOutMessage); } private function fadeOutMessage(){ if (this._objMessageTween != null){ this._objMessageTween.pause(); this._objMessageTween = null; }; this._objMessageTween = new Tween(this, 1, 0, 300); this._objMessageTween.setTweenHandlers(this.onErrorMessageTween, onErrorMessageTweenComplete); } public function onSendMail(_arg1:MouseEvent){ if (!this._blnIsMailerUrlSet){ this.showMessage("Error in widget"); trace("Tried to send mail when mailer url not has been set"); return; }; if (((this.hasOwnProperty("inputError")) && (this.inputError.hasOwnProperty("textField")))){ if (StringUtils.trim(this.sName.text) == ""){ this.showMessage("please input your name"); return; }; if (StringUtils.trim(this.sEmail.text) == ""){ this.showMessage("please input your email"); return; }; if (!_rgxValidEmail.test(this.sEmail.text)){ this.showMessage("your email is not correct"); return; }; if (StringUtils.trim(this.rEmail.text) == ""){ this.showMessage("please input your friends email"); return; }; if (!_rgxValidEmail.test(this.rEmail.text)){ this.showMessage("your friends email is not correct"); return; }; if (this._blnIsSubmitting){ trace("ShareWithFriendElement: onSendMail(): Can't submit score, it's already been submitted"); return; }; }; this._blnIsSubmitting = true; processingMessage.visible = true; mailer.sendMail(sName.text, sEmail.text, rEmail.text, message.text); } private function onErrorMessageTween(_arg1:Number){ this.inputError.alpha = _arg1; } public function onMailSent(_arg1:MailerEvents){ rEmail.text = ""; processingMessage.visible = false; sentMessage.visible = true; messageTimer.start(); } private function onErrorMessageTweenComplete(_arg1:Number){ this.inputError.visible = false; this.inputError.alpha = 1; } override public function showElement():void{ super.showElement(); this._blnIsSubmitting = false; } public function onMailError(_arg1:MailerEvents){ processingMessage.visible = false; errorMessage.visible = true; messageTimer.start(); } public function onCloseMessageTimer(_arg1:TimerEvent){ sentMessage.visible = false; errorMessage.visible = false; processingMessage.visible = false; } override public function applySettings(_arg1:XML, _arg2:IElementContainer):void{ super.applySettings(_arg1, _arg2); message.text = _arg1; mailer = new Mailer(); this._blnIsMailerUrlSet = (_arg1.@mailerurl.length() > 0); if (this._blnIsMailerUrlSet){ mailer.setMailerUrl(_arg1.@mailerurl); } else { trace("Warning mailer url not specified"); }; mailer.addEventListener(MailerEvents.MAIL_SENT, onMailSent); mailer.addEventListener(MailerEvents.MAIL_ERROR, onMailError); sendMailButton.addEventListener(MouseEvent.CLICK, onSendMail); } } }//package se.rocketxl.ui.widget.gui.share
Section 65
//DropDownTweenInElement (se.rocketxl.ui.widget.gui.specialized.DropDownTweenInElement) package se.rocketxl.ui.widget.gui.specialized { import flash.geom.*; import se.rocketxl.ui.widget.gui.*; public class DropDownTweenInElement extends TweenInElement { public var btnGotoGameControls:GotoControlsInfoButton; public var btnGotoThisMonth:GotoThisMonthTopButton; public var btnGotoToday:GotoTodayTopButton; public var btnGotoThisWeek:GotoThisWeekTopButton; public function DropDownTweenInElement(){ super(600, new Point(this.x, (this.y - this.height)), null, false, true); } } }//package se.rocketxl.ui.widget.gui.specialized
Section 66
//Element (se.rocketxl.ui.widget.gui.Element) package se.rocketxl.ui.widget.gui { import se.rocketxl.ui.widget.container.*; import se.rocketxl.ui.widget.events.*; import flash.events.*; import flash.display.*; import flash.net.*; import se.rocketxl.*; import flash.text.*; import se.rocketxl.ui.*; public class Element extends MovieClip implements IGuiElement { private var _objElementContainer:IElementContainer; protected var _blnIsHidden:Boolean; protected var _blnUseHidingState:Boolean; private var _xmlSettings:XML; public var textField:TextField; private var _arrTriggerTypeIndexes:Object; public function Element(){ this._blnUseHidingState = false; this._blnIsHidden = false; } private function applyDesignSettings(_arg1:XML){ if (_arg1.@buttonMode.length() != 0){ (this as Sprite).buttonMode = (_arg1.@buttonMode == "true"); }; } protected function get settings():XML{ return (this._xmlSettings); } public function showElement():void{ this.visible = true; this.enabled = true; this.mouseEnabled = true; if (this._blnUseHidingState){ this._blnIsHidden = false; }; this.dispatchEvent(new Event("showElement")); } public function get elementType():GuiElementType{ return (GuiElementType.getType(this._xmlSettings.@type)); } public function get useHidingState():Boolean{ return (this._blnUseHidingState); } public function hideElement():void{ this.visible = false; this.enabled = false; this.mouseEnabled = false; if (this._blnUseHidingState){ this._blnIsHidden = true; }; this.dispatchEvent(new Event("hideElement")); } public function get isHidden():Boolean{ return (this._blnIsHidden); } public function activateElement():void{ } private function doCatchWidgetEvent(_arg1:IWidgetEvent){ this._objElementContainer.processWidgetEvent(_arg1); } private function applyTriggerSettings(_arg1:XML){ var _local2:int; this._arrTriggerTypeIndexes = new Object(); _local2 = 0; for (;_local2 < _arg1.trigger.length();_local2++) { if (_arg1.trigger[_local2].@type == 0){ trace("Trigger XML is missing 'type' attribute, skipping trigger"); continue; } else { if (((!((_arg1.trigger[_local2].@event.length() == 0))) && ((_arg1.trigger[_local2].@target.length() == 0)))){ trace("Trigger XML is having 'event' attribute wihout a 'target' attribute, skipping trigger"); continue; } else { if (((!((_arg1.trigger[_local2].@trigger.length() == 0))) && ((_arg1.trigger[_local2].@event.length() == 0)))){ trace("Trigger XML is having 'target' attribute wihout a 'event' attribute, skipping trigger"); continue; }; }; }; if (this._arrTriggerTypeIndexes[_arg1.trigger[_local2].@type] == null){ this._arrTriggerTypeIndexes[_arg1.trigger[_local2].@type] = new Array(); }; this._arrTriggerTypeIndexes[_arg1.trigger[_local2].@type].push(_local2); this.addEventListener(_arg1.trigger[_local2].@type, this.doEvent); }; } public function applySettings(_arg1:XML, _arg2:IElementContainer):void{ var _local3:Element; var _local4:XML; if (_arg1 == null){ throw (ArgumentError("Argument may not be null.\nParameter name: settings")); }; if (_arg2 == null){ throw (ArgumentError("Argument may not be null.\nParameter name: elementContainer")); }; this._xmlSettings = _arg1; this._objElementContainer = _arg2; this.addEventListener(WidgetEventBase.Name, this.doCatchWidgetEvent); this.applyDesignSettings(_arg1); this.applyTriggerSettings(_arg1); for each (_local4 in _arg1.element) { _local3 = (DataBinder.getProperty(this, _local4.@name, Element, false) as Element); if (_local3 != null){ _local3.applySettings(_local4, this._objElementContainer); }; }; } private function parseArgumentValue(_arg1:String){ var _local2:*; if ((((_arg1.substr(0, 1) == "{")) && ((_arg1.substr(-1, 1) == "}")))){ _local2 = StringUtils.trim(_arg1.substring(1, (_arg1.length - 1))); if (_local2.length > 0){ if (_local2.substr(0, 1) == "$"){ } else { return (DataBinder.getPropertyRecursive(this, _local2, null, false)); }; }; return (null); //unresolved jump }; return (_arg1); } private function getArguments(_arg1:String){ var _local2:Array; var _local3:String; var _local4:*; _local2 = new Array(); if (_arg1 != null){ for each (_local3 in _arg1.split("&")) { _local4 = _local3.indexOf("="); if (_local4 != -1){ _local2[_local3.substr(0, _local4)] = this.parseArgumentValue(_local3.substr((_local4 + 1))); } else { _local2.push(this.parseArgumentValue(_local3)); }; }; }; return (_local2); } public function get instanceName():String{ return (this._xmlSettings.@name); } public function processWidgetEvent(_arg1:IWidgetEvent){ } private function doEvent(_arg1:Event){ var _local2:int; var _local3:XML; var _local4:String; var _local5:String; var _local6:Array; for each (_local2 in this._arrTriggerTypeIndexes[_arg1.type]) { _local3 = this._xmlSettings.trigger[_local2]; _local4 = _local3.@target; _local5 = _local3.@command; _local6 = ((_local3.@args.length() == 0)) ? new Array() : this.getArguments(_local3.@args.toString()); this.processCustomEvents(_local3); switch (_local3.@event.toString()){ case "SectionChangeEvent": this.dispatchEvent(new SectionChangeEvent(_local4, _local6)); break; case "CommandEvent": this.dispatchEvent(new CommandEvent(_local4, _local5, _local6)); break; }; }; } protected function get elementContainer():IElementContainer{ return (this._objElementContainer); } public function deactivateElement():void{ } private function processCustomEvents(_arg1:XML){ var _local2:XML; var _local3:Array; for each (_local2 in _arg1.customEvent) { _local3 = ((_local2.@args.length() == 0)) ? new Array() : this.getArguments(_local2.@args.toString()); switch (_local2.@type.toString()){ case "link": if (_local3.length == 0){ trace("Received customEvent 'link' with no arguments (Attribute 'args')"); } else { navigateToURL(new URLRequest(_local3[0]), ((_local3.length == 0)) ? "_blank" : _local3[1]); }; break; default: trace(("Received unknown customEvent: " + _local2.@type)); }; }; } } }//package se.rocketxl.ui.widget.gui
Section 67
//EventAlphaButton (se.rocketxl.ui.widget.gui.EventAlphaButton) package se.rocketxl.ui.widget.gui { import flash.events.*; import mx.effects.*; public class EventAlphaButton extends Element { protected var TWEEN_DURATION:Number;// = 200 protected var _objAnimationTween:Tween;// = null protected var ACTIVE_ALPHA:Number;// = 1 protected var NOT_ACTIVE_ALPHA:Number;// = 0.5 public function EventAlphaButton(){ NOT_ACTIVE_ALPHA = 0.5; ACTIVE_ALPHA = 1; TWEEN_DURATION = 200; _objAnimationTween = null; super(); this.buttonMode = true; this.alpha = NOT_ACTIVE_ALPHA; this.addEventListener(MouseEvent.MOUSE_OVER, this.doMouseOver); this.addEventListener(MouseEvent.MOUSE_OUT, this.doMouseOut); } private function doTweenEnd(_arg1:Number){ this.doTween(_arg1); this._objAnimationTween = null; } private function doMouseOut(_arg1:MouseEvent){ this.setAlpha(NOT_ACTIVE_ALPHA); } public function setAlpha(_arg1:Number){ if (this._objAnimationTween != null){ this._objAnimationTween.pause(); this._objAnimationTween = null; }; this._objAnimationTween = new Tween(this, this.alpha, _arg1, TWEEN_DURATION); this._objAnimationTween.setTweenHandlers(doTween, doTweenEnd); } private function doTween(_arg1:Number){ this.alpha = _arg1; } private function doMouseOver(_arg1:MouseEvent){ this.setAlpha(ACTIVE_ALPHA); } } }//package se.rocketxl.ui.widget.gui
Section 68
//TrackerElement (se.rocketxl.ui.widget.gui.TrackerElement) package se.rocketxl.ui.widget.gui { import se.rocketxl.ui.widget.container.*; import se.rocketxl.ui.widget.events.*; import se.rocketxl.track.*; public class TrackerElement extends Element { protected var trackEvents:Object; public function TrackerElement(){ trackEvents = {}; super(); } override public function applySettings(_arg1:XML, _arg2:IElementContainer):void{ var _local3:XML; super.applySettings(_arg1, _arg2); if ((((_arg1.@track.length() > 0)) && ((_arg1.@track == "false")))){ Track.setTracking(false); trace("Tracking is turned off"); } else { Track.setTracking(true); }; if (_arg1.@trackerurl.length() > 0){ Track.setTrackerURL(_arg1.@trackerurl); } else { trace("Waringin: No trackerurl specified"); }; if (_arg1.@siteid.length() > 0){ Track.setSiteId(_arg1.@siteid); } else { trace("Waringin: No siteid specified"); }; if (_arg1.@campaignid.length() > 0){ Track.setCampaign(_arg1.@campaignid); } else { trace("Waringin: No campaignid specified"); }; if ((((_arg1.@visitor.length() > 0)) && ((_arg1.@visitor == "false")))){ trace("Waringin: Visitor Tracking turned off"); } else { Track.trackVisitor(); }; for each (_local3 in _arg1.event) { trackEvents[_local3.@name] = _local3.@id.toXMLString(); }; } override public function processWidgetEvent(_arg1:IWidgetEvent){ var _local2:*; var _local3:String; if ((_arg1 is CommandEvent)){ _local2 = (_arg1 as CommandEvent); if (_local2.command == "TRACK"){ trace(("Track Event: " + _local2.args[0])); _local3 = trackEvents[_local2.args[0]]; trace(("EventDispatcher id: " + _local3)); if (_local3 != null){ Track.trackAction(_local3); } else { trace(("Warning: Event not registerd " + _local2.args[0])); }; }; } else { trace("Unknown event type"); }; } } }//package se.rocketxl.ui.widget.gui
Section 69
//TweenInElement (se.rocketxl.ui.widget.gui.TweenInElement) package se.rocketxl.ui.widget.gui { import flash.events.*; import mx.effects.*; import flash.geom.*; public class TweenInElement extends Element { private var _fncEasingFunction:Function; private var _blnVisibleOnTweenComplete:Boolean; private var _blnIsCurrentlyTweening:Boolean;// = false private var _pntDelta:Point; private var _numDuration:Number; private var _objAnimationTween:Tween; private var _blnInvertTween:Boolean; private var _blnFade:Boolean; private var _pntNativePoint:Point; public function TweenInElement(_arg1:Number=0, _arg2:Point=null, _arg3:Function=null, _arg4:Boolean=false, _arg5:Boolean=false, _arg6:Point=null){ _blnIsCurrentlyTweening = false; super(); this._blnUseHidingState = true; this.visible = false; this._pntNativePoint = ((_arg6)!=null) ? _arg6 : new Point(this.x, this.y); this._numDuration = _arg1; this._blnFade = _arg4; this._fncEasingFunction = _arg3; this._blnInvertTween = _arg5; this._pntDelta = ((_arg2 == null)) ? new Point() : this._pntNativePoint.subtract(_arg2); } private function startTween(_arg1:Number, _arg2:Number){ this._objAnimationTween = new Tween(this, (this._blnInvertTween) ? _arg2 : _arg1, (this._blnInvertTween) ? _arg1 : _arg2, this._numDuration); if (this._fncEasingFunction != null){ this._objAnimationTween.easingFunction = this._fncEasingFunction; }; this._objAnimationTween.setTweenHandlers(this.onTween, this.onTweenEnd); this._blnIsCurrentlyTweening = true; } override public function showElement():void{ this.visible = true; this.stopTween(); this._blnVisibleOnTweenComplete = true; this.startTween(0, this._numDuration); } override public function hideElement():void{ this.stopTween(); this._blnVisibleOnTweenComplete = false; this.startTween(this._numDuration, 0); } private function onTweenEnd(_arg1:Number):void{ this.onTween(_arg1); this.stopTween(); if (this._blnVisibleOnTweenComplete){ super.showElement(); } else { super.hideElement(); }; this.dispatchEvent(new Event(Event.COMPLETE)); } private function stopTween():void{ if (this._objAnimationTween != null){ this._objAnimationTween.pause(); this._objAnimationTween = null; }; this._blnIsCurrentlyTweening = false; } private function onTween(_arg1:Number):void{ var _local2:Number; _local2 = (_arg1 / this._numDuration); this.y = (this._pntNativePoint.y - (this._pntDelta.y * _local2)); this.x = (this._pntNativePoint.x - (this._pntDelta.x * _local2)); if (this._blnFade){ this.alpha = _local2; }; } public function get isTweening():Boolean{ return (this._blnIsCurrentlyTweening); } } }//package se.rocketxl.ui.widget.gui
Section 70
//DataBinder (se.rocketxl.ui.DataBinder) package se.rocketxl.ui { import flash.utils.*; public class DataBinder { public static function tryGetProperty(_arg1:Object, _arg2:String, _arg3:Array, _arg4:Class=null, _arg5:Boolean=true, _arg6:Boolean=true, _arg7:Boolean=false):Boolean{ var _local8:String; if (_arg3 == null){ throw (new ArgumentError("Argument may not be null.\nParameter name: out")); }; if (_arg1 == null){ _local8 = (("input container was null, can't get property '" + _arg2) + "'"); } else { if (!_arg1.hasOwnProperty(_arg2)){ _local8 = (((((_arg1 + " (") + getQualifiedClassName(_arg1)) + ") did not contain '") + _arg2) + "'"); } else { if (((!((_arg4 == null))) && (!((_arg1[_arg2] is _arg4))))){ _local8 = (((((("Specified property '" + _arg2) + "' (") + getQualifiedClassName(_arg1[_arg2])) + ") was found, but was not of specified type '") + _arg4) + "'."); } else { if (_arg7){ trace(((((("Loaded '" + _arg2) + "' ") + _arg1[_arg2]) + " from ") + _arg1)); }; _arg3.push(_arg1[_arg2]); return (true); }; }; }; if (_arg5){ throw (new Error(_local8)); }; if (_arg6){ trace(_local8); }; return (false); } public static function getProperty(_arg1:Object, _arg2:String, _arg3:Class=null, _arg4:Boolean=true, _arg5:Boolean=true, _arg6:Boolean=false):Object{ var _local7:Array; _local7 = new Array(); if (tryGetProperty(_arg1, _arg2, _local7, _arg3, _arg4, _arg5, _arg6)){ return (_local7.pop()); }; return (null); } public static function getPropertyIncremental(_arg1:Object, _arg2:String, _arg3:Class=null, _arg4:Boolean=false):Array{ var _local5:int; var _local6:Array; var _local7:Array; _local5 = 1; _local6 = new Array(); _local7 = new Array(); while (true) { var _temp1 = _local5; _local5 = (_local5 + 1); if (tryGetProperty(_arg1, (_arg2 + _temp1), _local6, _arg3, false, false, _arg4)){ _local7.push(_local6.pop()); } else { break; }; }; return (_local7); } public static function getPropertyRecursive(_arg1:Object, _arg2:String, _arg3:Class=null, _arg4:Boolean=true, _arg5=true, _arg6:Boolean=false):Object{ var _local7:*; var _local8:Object; _local7 = _arg2.indexOf("."); if (_local7 >= 0){ _local8 = getProperty(_arg1, _arg2.substr(0, _local7), null, _arg4, _arg5, _arg6); if (_local8 != null){ return (getPropertyRecursive(_local8, _arg2.substr((_local7 + 1)), _arg3, _arg4, _arg5, _arg6)); }; return (null); //unresolved jump }; return (getProperty(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6)); } } }//package se.rocketxl.ui
Section 71
//ExtendedKeyboardEvent (se.rocketxl.ui.ExtendedKeyboardEvent) package se.rocketxl.ui { import flash.events.*; public class ExtendedKeyboardEvent extends KeyboardEvent { public static const KEY_DOWN:String = "keyDown"; public static const KEY_PRESSED:String = "keyPressed"; public static const KEY_UP:String = "keyUp"; public function ExtendedKeyboardEvent(_arg1:KeyboardEvent, _arg2:String=null){ super(((_arg2 == null)) ? _arg1.type : _arg2, _arg1.bubbles, _arg1.cancelable, _arg1.charCode, _arg1.keyCode, _arg1.keyLocation, _arg1.ctrlKey, _arg1.altKey, _arg1.shiftKey); } } }//package se.rocketxl.ui
Section 72
//InputListener (se.rocketxl.ui.InputListener) package se.rocketxl.ui { import flash.utils.*; import flash.events.*; public class InputListener extends EventDispatcher { private var _dtnKeyboardState:Dictionary; public function InputListener(_arg1:EventDispatcher){ var _local2:uint; super(); if (_arg1 == null){ throw (new ArgumentError("Argument may not be null.\nParameter name: listener")); }; this._dtnKeyboardState = new Dictionary(); _local2 = 0; while (_local2 < 0x0100) { this._dtnKeyboardState[_local2] = false; _local2++; }; _arg1.addEventListener(KeyboardEvent.KEY_DOWN, this.doKeyDown); _arg1.addEventListener(KeyboardEvent.KEY_UP, this.doKeyUp); } private function doKeyDown(_arg1:KeyboardEvent){ this.dispatchEvent(new ExtendedKeyboardEvent(_arg1)); if (!this._dtnKeyboardState[_arg1.keyCode]){ this.dispatchEvent(new ExtendedKeyboardEvent(_arg1, ExtendedKeyboardEvent.KEY_PRESSED)); }; this._dtnKeyboardState[_arg1.keyCode] = true; } private function doKeyUp(_arg1:KeyboardEvent){ this.dispatchEvent(new ExtendedKeyboardEvent(_arg1)); this._dtnKeyboardState[_arg1.keyCode] = false; } } }//package se.rocketxl.ui
Section 73
//Keyboard (se.rocketxl.ui.Keyboard) package se.rocketxl.ui { public final class Keyboard { public static const RIGHT:uint = 39; public static const LEFT:uint = 37; public static const F34String:String = "?"; public static const F17String:String = "?"; public static const ResetString:String = "?"; public static const F7String:String = "?"; public static const SysReqString:String = "?"; public static const F20String:String = "?"; public static const F28String:String = "?"; public static const NUMPAD_DECIMAL:uint = 110; public static const A:uint = 65; public static const B:uint = 66; public static const C:uint = 67; public static const D:uint = 68; public static const E:uint = 69; public static const ClearDisplayString:String = "?"; public static const G:uint = 71; public static const H:uint = 72; public static const I:uint = 73; public static const InsertString:String = "?"; public static const K:uint = 75; public static const L:uint = 76; public static const F:uint = 70; public static const N:uint = 78; public static const O:uint = 79; public static const MINUS:uint = 189; public static const J:uint = 74; public static const PAGE_DOWN:uint = 34; public static const M:uint = 77; public static const F31String:String = "?"; public static const P:uint = 80; public static const Q:uint = 81; public static const R:uint = 82; public static const ALTERNATE:uint = 18; public static const PageUpString:String = "?"; public static const PrevString:String = "?"; public static const V:uint = 86; public static const W:uint = 87; public static const BACKSPACE:uint = 8; public static const Y:uint = 89; public static const F14String:String = "?"; public static const S:uint = 83; public static const PAGE_UP:uint = 33; public static const SelectString:String = "?"; public static const F4String:String = "?"; public static const X:uint = 88; public static const SHIFT:uint = 16; public static const T:uint = 84; public static const U:uint = 85; public static const UndoString:String = "?"; public static const MenuString:String = "?"; public static const QUOTE:uint = 222; public static const Z:uint = 90; public static const ESCAPE:uint = 27; public static const F25String:String = "?"; public static const NUMPAD_ADD:uint = 107; public static const SEMICOLON:uint = 186; public static const F11String:String = "?"; public static const F1String:String = "?"; public static const F19String:String = "?"; public static const LEFTBRACKET:uint = 219; public static const DOWN:uint = 40; public static const F9String:String = "?"; public static const F1:uint = 112; public static const EndString:String = "?"; public static const F3:uint = 114; public static const F4:uint = 115; public static const F5:uint = 116; public static const F7:uint = 118; public static const COMMA:uint = 188; public static const F6:uint = 117; public static const ENTER:uint = 13; public static const F8:uint = 119; public static const F9:uint = 120; public static const END:uint = 35; public static const NUMBER_3:uint = 51; public static const NUMBER_5:uint = 53; public static const InsertCharString:String = "?"; public static const NUMBER_0:uint = 48; public static const NUMBER_1:uint = 49; public static const F22String:String = "?"; public static const NUMBER_6:uint = 54; public static const INSERT:uint = 45; public static const NUMBER_9:uint = 57; public static const NUMBER_2:uint = 50; public static const F2:uint = 113; public static const NUMBER_7:uint = 55; public static const NUMBER_8:uint = 56; public static const HelpString:String = "?"; public static const LeftArrowString:String = "?"; public static const UP:uint = 38; public static const BACKSLASH:uint = 220; public static const F33String:String = "?"; public static const F16String:String = "?"; public static const NUMPAD_MULTIPLY:uint = 106; public static const InsertLineString:String = "?"; public static const HOME:uint = 36; public static const F6String:String = "?"; public static const PrintScreenString:String = "?"; public static const F10:uint = 121; public static const F11:uint = 122; public static const F12:uint = 123; public static const F13:uint = 124; public static const F14:uint = 125; public static const F15:uint = 126; public static const NUMBER_4:uint = 52; public static const SPACE:uint = 32; public static const StopString:String = "?"; public static const PrintString:String = "?"; public static const F27String:String = "?"; public static const NextString:String = "?"; public static const RIGHTBRACKET:uint = 221; public static const EQUAL:uint = 187; public static const F13String:String = "?"; public static const F30String:String = "?"; public static const F3String:String = "?"; public static const COMMAND:uint = 19; public static const ClearLineString:String = "?"; public static const DeleteCharString:String = "?"; public static const CONTROL:uint = 17; public static const F24String:String = "?"; public static const NUMPAD_ENTER:uint = 108; public static const FindString:String = "?"; public static const NUMPAD:uint = 21; public static const SystemString:String = "?"; public static const DeleteLineString:String = "?"; public static const F10String:String = "?"; public static const F35String:String = "?"; public static const F18String:String = "?"; public static const F8String:String = "?"; public static const DownArrowString:String = "?"; public static const PageDownString:String = "?"; public static const SLASH:uint = 191; public static const F21String:String = "?"; public static const F29String:String = "?"; public static const F32String:String = "?"; public static const TAB:uint = 9; public static const F15String:String = "?"; public static const PauseString:String = "?"; public static const F5String:String = "?"; public static const DELETE:uint = 46; public static const NUMPAD_DIVIDE:uint = 111; public static const F26String:String = "?"; public static const DeleteString:String = "?"; public static const NUMPAD_1:uint = 97; public static const NUMPAD_2:uint = 98; public static const NUMPAD_3:uint = 99; public static const NUMPAD_6:uint = 102; public static const NUMPAD_0:uint = 96; public static const ExecuteString:String = "?"; public static const NUMPAD_9:uint = 105; public static const ModeSwitchString:String = "?"; public static const CAPS_LOCK:uint = 20; public static const NUMPAD_8:uint = 104; public static const RedoString:String = "?"; public static const BreakString:String = "?"; public static const NUMPAD_4:uint = 100; public static const BACKQUOTE:uint = 192; public static const F12String:String = "?"; public static const PERIOD:uint = 190; public static const NUMPAD_5:uint = 101; public static const UserString:String = "?"; public static const F2String:String = "?"; public static const NUMPAD_SUBTRACT:uint = 109; public static const RightArrowString:String = "?"; public static const NUMPAD_7:uint = 103; public static const ScrollLockString:String = "?"; public static const UpArrowString:String = "?"; public static const HomeString:String = "?"; public static const F23String:String = "?"; public static const BeginString:String = "?"; } }//package se.rocketxl.ui
Section 74
//ArrayUtils (se.rocketxl.util.ArrayUtils) package se.rocketxl.util { public class ArrayUtils { public static function randomizeArray(_arg1:Array):Array{ var _local2:int; var _local3:Array; var _local4:Array; _local3 = new Array(); _local2 = 0; while (_local2 < _arg1.length) { _local3.push(_local2); _local2++; }; _local4 = new Array(); while (_local3.length > 0) { _local2 = Math.round((Math.random() * (_local3.length - 1))); _local2 = _local3.splice(_local2, 1)[0]; _local4.push(_arg1[_local2]); }; return (_local4); } public static function splitAndParse(_arg1:String, _arg2:String, _arg3:Class, _arg4:Number=2147483647):Array{ var _local5:Array; var _local6:int; _local5 = _arg1.split(_arg2, _arg4); _local6 = 0; while (_local6 < _local5.length) { _local5[_local6] = new _arg3(_local5[_local6]); _local6++; }; return (_local5); } } }//package se.rocketxl.util
Section 75
//FuncTimer (se.rocketxl.util.FuncTimer) package se.rocketxl.util { import flash.utils.*; import flash.events.*; public class FuncTimer { private var _timerFuncStack:Dictionary; public function FuncTimer(){ this._timerFuncStack = new Dictionary(); } public function removeByCallback(_arg1:Function, _arg2:Function=null):Boolean{ var _local3:Boolean; var _local4:*; _local3 = false; for (_local4 in this._timerFuncStack) { if ((this._timerFuncStack[_local4] as Array) != null){ if ((((this._timerFuncStack[_local4]["func"] == _arg1)) && ((this._timerFuncStack[_local4]["donefunc"] == _arg2)))){ this.stopTimer(_local4); _local3 = true; }; }; }; return (_local3); } private function call(_arg1:Function, _arg2:Array){ var _local3:int; var _local4:*; if (_arg1 == null){ return (null); }; if (_arg2 == null){ return (_arg1.call()); }; _local3 = 0; for (_local4 in _arg2) { _local3++; }; switch (_local3){ case 0: return (_arg1.call()); case 1: return (_arg1.call(this, _arg2[0])); case 2: return (_arg1.call(this, _arg2[0], _arg2[1])); case 3: return (_arg1.call(this, _arg2[0], _arg2[1], _arg2[2])); case 4: return (_arg1.call(this, _arg2[0], _arg2[1], _arg2[2], _arg2[3])); case 5: return (_arg1.call(this, _arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4])); case 6: return (_arg1.call(this, _arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5])); case 7: return (_arg1.call(this, _arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6])); case 8: return (_arg1.call(this, _arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6], _arg2[7])); case 9: return (_arg1.call(this, _arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6], _arg2[7], _arg2[8])); }; } private function doTimerCompleteEvent(_arg1:TimerEvent){ if ((this._timerFuncStack[_arg1.target] as Array) != null){ this.call((this._timerFuncStack[_arg1.target]["donefunc"] as Function), this._timerFuncStack[_arg1.target]["donefuncargs"]); }; } private function doTimerEvent(_arg1:TimerEvent){ if ((this._timerFuncStack[_arg1.target] as Array) != null){ this.call((this._timerFuncStack[_arg1.target]["func"] as Function), this._timerFuncStack[_arg1.target]["funcargs"]); }; } private function stopTimer(_arg1:Timer){ _arg1.stop(); _arg1.removeEventListener(TimerEvent.TIMER, this.doTimerEvent); _arg1.removeEventListener(TimerEvent.TIMER_COMPLETE, this.doTimerCompleteEvent); } public function loopFunction(_arg1:Number, _arg2:int, _arg3:Function, _arg4:Function=null, _arg5:Array=null, _arg6:Array=null):void{ var _local7:*; _local7 = new Timer(_arg1, _arg2); _local7.addEventListener(TimerEvent.TIMER, this.doTimerEvent); _local7.addEventListener(TimerEvent.TIMER_COMPLETE, this.doTimerCompleteEvent); this._timerFuncStack[_local7] = new Array(4); this._timerFuncStack[_local7]["func"] = _arg3; this._timerFuncStack[_local7]["donefunc"] = _arg4; this._timerFuncStack[_local7]["funcargs"] = _arg5; this._timerFuncStack[_local7]["donefuncargs"] = _arg6; _local7.start(); } } }//package se.rocketxl.util
Section 76
//LeafLoader (se.rocketxl.util.LeafLoader) package se.rocketxl.util { import flash.utils.*; import flash.events.*; import flash.display.*; import flash.filters.*; public class LeafLoader extends Sprite { var visibleLeafCounter:int; var grayLeafsObject:Sprite; var grayLeafArray:Array; var whiteLeafArray:Array; var whiteLeafsObject:Sprite; var loaderTimer:Timer; public function LeafLoader(){ createandRotateLeafs(); loaderTimer = new Timer(200); loaderTimer.addEventListener(TimerEvent.TIMER, onUppdateLoaderIcon); visibleLeafCounter = 0; this.visible = false; } public function startLoaderIcon(){ this.visible = true; loaderTimer.start(); } public function stopLoaderIcon(){ this.visible = false; loaderTimer.stop(); } public function onUppdateLoaderIcon(_arg1:TimerEvent){ whiteLeafArray[visibleLeafCounter].fadeOut(); visibleLeafCounter++; if (visibleLeafCounter >= whiteLeafArray.length){ visibleLeafCounter = 0; }; } private function createandRotateLeafs(){ var _local1:Number; grayLeafArray = new Array(); grayLeafsObject = new Sprite(); whiteLeafArray = new Array(); whiteLeafsObject = new Sprite(); _local1 = 0; while (_local1 < 8) { grayLeafArray[_local1] = new LoaderLeafGray(); grayLeafArray[_local1].rotation = ((360 / 8) * _local1); grayLeafsObject.addChild(grayLeafArray[_local1]); whiteLeafArray[_local1] = new LoaderLeafWhite(); whiteLeafArray[_local1].rotation = ((360 / 8) * _local1); whiteLeafArray[_local1].alpha = 0; whiteLeafsObject.addChild(whiteLeafArray[_local1]); _local1++; }; addChild(grayLeafsObject); addChild(whiteLeafsObject); grayLeafsObject.filters = [new DropShadowFilter(0, 0, 0, 0)]; whiteLeafsObject.filters = [new DropShadowFilter(0, 0, 0, 0)]; } } }//package se.rocketxl.util
Section 77
//LoaderLeafGray (se.rocketxl.util.LoaderLeafGray) package se.rocketxl.util { import flash.display.*; import mx.effects.*; public class LoaderLeafGray extends Sprite { public function fadeOut(){ var _local1:Tween; _local1 = new Tween(this, 2, 0, 2000); _local1.setTweenHandlers(onTweenFade, onTweenFade); } public function onTweenFade(_arg1:Number){ alpha = _arg1; } } }//package se.rocketxl.util
Section 78
//LoaderLeafWhite (se.rocketxl.util.LoaderLeafWhite) package se.rocketxl.util { import flash.display.*; import mx.effects.*; public class LoaderLeafWhite extends Sprite { public function fadeOut(){ var _local1:Tween; _local1 = new Tween(this, 2, 0, 2000); _local1.setTweenHandlers(onTweenFade, onTweenFade); } public function onTweenFade(_arg1:Number){ alpha = _arg1; } } }//package se.rocketxl.util
Section 79
//Mailer (se.rocketxl.util.Mailer) package se.rocketxl.util { import flash.events.*; import flash.net.*; public class Mailer extends EventDispatcher { protected var _mailerUrl:String; var statusMessage:XML; var mailLoader:URLLoader; public function Mailer(){ mailLoader = new URLLoader(); } public function setMailerUrl(_arg1:String){ _mailerUrl = _arg1; } public function onMailSent(_arg1:Event){ statusMessage = new XML(mailLoader.data); if (statusMessage.output.@type == "sent"){ dispatchEvent(new MailerEvents(MailerEvents.MAIL_SENT)); } else { dispatchEvent(new MailerEvents(MailerEvents.MAIL_ERROR)); }; } public function sendMail(_arg1:String, _arg2:String, _arg3:String, _arg4:String){ var _local5:URLRequest; var _local6:URLVariables; _local5 = new URLRequest(_mailerUrl); _local6 = new URLVariables(); if (_arg1 != ""){ _local6.sName = _arg1; }; if (_arg2 != ""){ _local6.sEmail = _arg2; }; if (_arg3 != ""){ _local6.rEmail = _arg3; }; if (_arg4 != ""){ _local6.sMessage = _arg4; }; _local5.data = _local6; _local5.method = URLRequestMethod.POST; mailLoader.load(_local5); mailLoader.addEventListener(Event.COMPLETE, onMailSent); } } }//package se.rocketxl.util
Section 80
//MailerEvents (se.rocketxl.util.MailerEvents) package se.rocketxl.util { import flash.events.*; public class MailerEvents extends Event { public static var MAIL_SENT:String = "mailSent"; public static var MAIL_ERROR:String = "mailError"; public function MailerEvents(_arg1:String){ super(_arg1); } } }//package se.rocketxl.util
Section 81
//Debug (se.rocketxl.Debug) package se.rocketxl { public class Debug { public static var type:DebugType = DebugType.TRACE; private static function buildTextLog(_arg1:String, _arg2:String, _arg3:String, _arg4:DebugLevel){ return (((((((_arg4.toString() + ", ") + _arg3) + "; ") + _arg2) + ": ") + _arg1)); } public static function Log(_arg1:String, _arg2:String, _arg3:String, _arg4:DebugLevel){ switch (Debug.type){ case DebugType.TRACE: trace(buildTextLog(_arg1, _arg2, _arg3, _arg4)); break; case DebugType.DATABASE: break; case DebugType.FILESYSTEM: break; }; } } }//package se.rocketxl
Section 82
//DebugLevel (se.rocketxl.DebugLevel) package se.rocketxl { public class DebugLevel implements IEnum { private var value:String; public static const DEBUG:DebugLevel = new DebugLevel("DEBUG"); ; public static const ERROR:DebugLevel = new DebugLevel("ERROR"); ; public static const INFORMATION:DebugLevel = new DebugLevel("INFORMATION"); ; public static const WARNING:DebugLevel = new DebugLevel("WARNING"); ; public function DebugLevel(_arg1:String){ this.value = _arg1; } public function equals(_arg1:Object):Boolean{ return (((((!(_arg1) is DebugLevel)) || ((_arg1 == null)))) ? false : (_arg1.value == this.value)); } public function toString():String{ return (this.value); } public static function getType(_arg1:String):DebugLevel{ switch (_arg1){ case DEBUG.value: return (DEBUG); case ERROR.value: return (ERROR); case WARNING.value: return (WARNING); case INFORMATION.value: return (INFORMATION); }; return (null); } } }//package se.rocketxl
Section 83
//DebugType (se.rocketxl.DebugType) package se.rocketxl { public class DebugType implements IEnum { private var value:String; public static const DATABASE:DebugType = new DebugType("2"); ; public static const TRACE:DebugType = new DebugType("1"); ; public static const FILESYSTEM:DebugType = new DebugType("3"); ; public function DebugType(_arg1:String){ this.value = _arg1; } public function equals(_arg1:Object):Boolean{ return (((((!(_arg1) is DebugType)) || ((_arg1 == null)))) ? false : (_arg1.value == this.value)); } public function toString():String{ return (this.value); } public static function getType(_arg1:String):DebugType{ switch (_arg1){ case TRACE.value: return (TRACE); case DATABASE.value: return (DATABASE); case FILESYSTEM.value: return (FILESYSTEM); }; return (null); } } }//package se.rocketxl
Section 84
//IEnum (se.rocketxl.IEnum) package se.rocketxl { public interface IEnum { function toString():String; function equals(_arg1:Object):Boolean; } }//package se.rocketxl
Section 85
//StringUtils (se.rocketxl.StringUtils) package se.rocketxl { public class StringUtils { private static const RTrimExp:RegExp = /(\s|\n|\r|\t|\v)*$/; private static const LTrimExp:RegExp = /^(\s|\n|\r|\t|\v)*/m; public static var ALPHA_CHARS:Array = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "A", "B", "C", "D", "E", "F"); public static function trim(_arg1:String){ return (ltrim(rtrim(_arg1))); } public static function ltrim(_arg1:String){ return (_arg1.replace(RTrimExp, "")); } public static function isHexString(_arg1:String):Boolean{ var _local2:int; while (_local2 < _arg1.length) { if (ALPHA_CHARS.indexOf(_arg1.charAt(_local2)) == -1){ return (false); }; _local2++; }; return (true); } public static function rtrim(_arg1:String){ return (_arg1.replace(LTrimExp, "")); } public static function format(_arg1:String, ... _args):String{ var re:RegExp; var getParam:Function; var format = _arg1; var params = _args; if (params.length == 0){ return (format); }; re = /\{(\d+)\}/g; getParam = function (_arg1:String, _arg2:String, _arg3:int, _arg4:String):String{ if (params[_arg2] == null){ throw (new ArgumentError("Could not parse format")); }; return (params[_arg2]); }; return (format.replace(re, getParam)); } public static function isHexNumber(_arg1:Number):Boolean{ return (!((ALPHA_CHARS.indexOf(String.fromCharCode(_arg1)) == -1))); } public static function specificTrim(_arg1:String, _arg2:String, _arg3:String=null):String{ var _local4:int; if (_arg2 == null){ _arg2 = " "; }; if (_arg3 == null){ _arg3 = _arg2; }; if (_arg1.substr(0, _arg2.length) == _arg2){ _arg1 = _arg1.substr(_arg2.length); }; _local4 = (_arg1.length - _arg3.length); if (_arg1.substr(_local4) == _arg3){ _arg1 = _arg1.substr(0, _local4); }; return (_arg1); } } }//package se.rocketxl
Section 86
//BackButton (BackButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class BackButton extends EventAlphaButton { } }//package
Section 87
//BackToMainMenuButton (BackToMainMenuButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class BackToMainMenuButton extends EventAlphaButton { } }//package
Section 88
//Buzz_Girl (Buzz_Girl) package { import flash.media.*; public dynamic class Buzz_Girl extends Sound { } }//package
Section 89
//Buzz_Goose (Buzz_Goose) package { import flash.media.*; public dynamic class Buzz_Goose extends Sound { } }//package
Section 90
//Buzz_Horse (Buzz_Horse) package { import flash.media.*; public dynamic class Buzz_Horse extends Sound { } }//package
Section 91
//Buzz_Monkey (Buzz_Monkey) package { import flash.media.*; public dynamic class Buzz_Monkey extends Sound { } }//package
Section 92
//Buzz_Scream (Buzz_Scream) package { import flash.media.*; public dynamic class Buzz_Scream extends Sound { } }//package
Section 93
//Buzz_Sheep (Buzz_Sheep) package { import flash.media.*; public dynamic class Buzz_Sheep extends Sound { } }//package
Section 94
//Buzz_Stadium (Buzz_Stadium) package { import flash.media.*; public dynamic class Buzz_Stadium extends Sound { } }//package
Section 95
//Buzz_ThemeMusic (Buzz_ThemeMusic) package { import flash.media.*; public dynamic class Buzz_ThemeMusic extends Sound { } }//package
Section 96
//Buzz_Train (Buzz_Train) package { import flash.media.*; public dynamic class Buzz_Train extends Sound { } }//package
Section 97
//Buzz_Turkey (Buzz_Turkey) package { import flash.media.*; public dynamic class Buzz_Turkey extends Sound { } }//package
Section 98
//Character1 (Character1) package { import flash.display.*; public dynamic class Character1 extends MovieClip { public var clip:MovieClip; } }//package
Section 99
//Character2 (Character2) package { import flash.display.*; public dynamic class Character2 extends MovieClip { public var clip:MovieClip; } }//package
Section 100
//Character3 (Character3) package { import flash.display.*; public dynamic class Character3 extends MovieClip { public var clip:MovieClip; } }//package
Section 101
//Character4 (Character4) package { import flash.display.*; public dynamic class Character4 extends MovieClip { public var clip:MovieClip; } }//package
Section 102
//Character5 (Character5) package { import flash.display.*; public dynamic class Character5 extends MovieClip { public var clip:MovieClip; } }//package
Section 103
//Character6 (Character6) package { import flash.display.*; public dynamic class Character6 extends MovieClip { public var clip:MovieClip; } }//package
Section 104
//CharacterSelectControl (CharacterSelectControl) package { import controls.*; public dynamic class CharacterSelectControl extends CharacterSelectControl { } }//package
Section 105
//ClipperHotArea (ClipperHotArea) package { import se.rocketxl.ui.widget.gui.*; public dynamic class ClipperHotArea extends Element { } }//package
Section 106
//ClockTick (ClockTick) package { import flash.media.*; public dynamic class ClockTick extends Sound { } }//package
Section 107
//ContinueToGameButton (ContinueToGameButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class ContinueToGameButton extends EventAlphaButton { } }//package
Section 108
//CopyToClipboardButton (CopyToClipboardButton) package { import se.rocketxl.display.*; public dynamic class CopyToClipboardButton extends AlphaButton { } }//package
Section 109
//CurtainElement (CurtainElement) package { import controls.*; public dynamic class CurtainElement extends CurtainElement { } }//package
Section 110
//GamePlayInfoElement (GamePlayInfoElement) package { import controls.*; public dynamic class GamePlayInfoElement extends GameControlsInfoElement { } }//package
Section 111
//GotoControlsInfoButton (GotoControlsInfoButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoControlsInfoButton extends EventAlphaButton { } }//package
Section 112
//GotoGrabCodeButton (GotoGrabCodeButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoGrabCodeButton extends EventAlphaButton { } }//package
Section 113
//GotoHighScoresButton (GotoHighScoresButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoHighScoresButton extends EventAlphaButton { } }//package
Section 114
//GotoInstructionsButton (GotoInstructionsButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoInstructionsButton extends EventAlphaButton { } }//package
Section 115
//GotoOfficialTrailerButton (GotoOfficialTrailerButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoOfficialTrailerButton extends EventAlphaButton { } }//package
Section 116
//GotoRulesButton (GotoRulesButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoRulesButton extends EventAlphaButton { } }//package
Section 117
//GotoSendToFriendButton (GotoSendToFriendButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoSendToFriendButton extends EventAlphaButton { } }//package
Section 118
//GotoSinglePlayButton (GotoSinglePlayButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoSinglePlayButton extends EventAlphaButton { } }//package
Section 119
//GotoThisMonthTopButton (GotoThisMonthTopButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoThisMonthTopButton extends EventAlphaButton { } }//package
Section 120
//GotoThisWeekTopButton (GotoThisWeekTopButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoThisWeekTopButton extends EventAlphaButton { } }//package
Section 121
//GotoTodayTopButton (GotoTodayTopButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoTodayTopButton extends EventAlphaButton { } }//package
Section 122
//GotoVsModeButton (GotoVsModeButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class GotoVsModeButton extends EventAlphaButton { } }//package
Section 123
//GrabCodeElement (GrabCodeElement) package { import se.rocketxl.ui.widget.gui.share.*; public dynamic class GrabCodeElement extends GrabCodeSection { } }//package
Section 124
//GuiObject (GuiObject) package { import se.rocketxl.ui.widget.container.*; public dynamic class GuiObject extends WidgetContent { } }//package
Section 125
//HighScoreSelectionElement (HighScoreSelectionElement) package { import se.rocketxl.ui.widget.gui.specialized.*; public dynamic class HighScoreSelectionElement extends DropDownTweenInElement { } }//package
Section 126
//hostEnterLeave (hostEnterLeave) package { import se.rocketxl.ui.widget.gui.*; public dynamic class hostEnterLeave extends Element { public function hostEnterLeave(){ addFrameScript(1, frame2, 14, frame15); } function frame2(){ stop(); } function frame15(){ stop(); } } }//package
Section 127
//hostessEnterLeave (hostessEnterLeave) package { import se.rocketxl.ui.widget.gui.*; public dynamic class hostessEnterLeave extends Element { public function hostessEnterLeave(){ addFrameScript(0, frame1, 15, frame16); } function frame16(){ stop(); } function frame1(){ stop(); } } }//package
Section 128
//InGameAnswerBox1 (InGameAnswerBox1) package { import controls.*; public dynamic class InGameAnswerBox1 extends InGameAnswer { } }//package
Section 129
//InGameAnswerBox2 (InGameAnswerBox2) package { import controls.*; public dynamic class InGameAnswerBox2 extends InGameAnswer { } }//package
Section 130
//InGameAnswerBox3 (InGameAnswerBox3) package { import controls.*; public dynamic class InGameAnswerBox3 extends InGameAnswer { } }//package
Section 131
//InGameAnswerBox4 (InGameAnswerBox4) package { import controls.*; public dynamic class InGameAnswerBox4 extends InGameAnswer { } }//package
Section 132
//InGamePlayer1Panel (InGamePlayer1Panel) package { import controls.*; public dynamic class InGamePlayer1Panel extends InGamePlayerPanel { } }//package
Section 133
//InGamePlayer2Panel (InGamePlayer2Panel) package { import controls.*; public dynamic class InGamePlayer2Panel extends InGamePlayerPanel { } }//package
Section 134
//InGamePot (InGamePot) package { import controls.*; public dynamic class InGamePot extends InGamePlayerPanel { } }//package
Section 135
//InGameQuestion (InGameQuestion) package { import controls.*; public dynamic class InGameQuestion extends InGameQuestion { } }//package
Section 136
//InstructionsElement (InstructionsElement) package { import se.rocketxl.ui.widget.gui.specialized.*; public dynamic class InstructionsElement extends DropDownTweenInElement { } }//package
Section 137
//MusicToggleButton (MusicToggleButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class MusicToggleButton extends EventAlphaButton { } }//package
Section 138
//OkContinueButton (OkContinueButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class OkContinueButton extends EventAlphaButton { } }//package
Section 139
//PlayAgainButton (PlayAgainButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class PlayAgainButton extends EventAlphaButton { } }//package
Section 140
//PlayerAvatar (PlayerAvatar) package { import controls.*; public dynamic class PlayerAvatar extends PlayerAvatar { } }//package
Section 141
//QuizNumberElement (QuizNumberElement) package { import se.rocketxl.ui.widget.gui.*; public dynamic class QuizNumberElement extends Element { } }//package
Section 142
//SendToFriendElement (SendToFriendElement) package { import se.rocketxl.ui.widget.gui.share.*; public dynamic class SendToFriendElement extends ShareWithFriendElement { } }//package
Section 143
//SendToFriendSendButton (SendToFriendSendButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class SendToFriendSendButton extends EventAlphaButton { } }//package
Section 144
//StartGameButton (StartGameButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class StartGameButton extends EventAlphaButton { } }//package
Section 145
//StartSplashElement (StartSplashElement) package { import se.rocketxl.ui.widget.gui.specialized.*; public dynamic class StartSplashElement extends DropDownTweenInElement { } }//package
Section 146
//SubmitScoreButton (SubmitScoreButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class SubmitScoreButton extends EventAlphaButton { } }//package
Section 147
//SubmitSubmitButton (SubmitSubmitButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class SubmitSubmitButton extends EventAlphaButton { } }//package
Section 148
//TopOverlayElement (TopOverlayElement) package { import se.rocketxl.ui.widget.gui.*; public dynamic class TopOverlayElement extends Element { } }//package
Section 149
//TrackerElement (TrackerElement) package { import se.rocketxl.ui.widget.gui.*; public dynamic class TrackerElement extends TrackerElement { } }//package
Section 150
//TriggerGameModeFinishedEventButton (TriggerGameModeFinishedEventButton) package { import se.rocketxl.ui.widget.gui.*; public dynamic class TriggerGameModeFinishedEventButton extends EventAlphaButton { } }//package
Section 151
//WrongAnswerSound (WrongAnswerSound) package { import flash.media.*; public dynamic class WrongAnswerSound extends Sound { } }//package

Library Items

Symbol 1 Sound {WrongAnswerSound}
Symbol 2 Sound {ClockTick}
Symbol 3 Sound {Buzz_Turkey}
Symbol 4 Sound {Buzz_Train}
Symbol 5 Sound {Buzz_ThemeMusic}
Symbol 6 Sound {Buzz_Stadium}
Symbol 7 Sound {Buzz_Sheep}
Symbol 8 Sound {Buzz_Scream}
Symbol 9 Sound {Buzz_Monkey}
Symbol 10 Sound {Buzz_Horse}
Symbol 11 Sound {Buzz_Goose}
Symbol 12 Sound {Buzz_Girl}
Symbol 13 GraphicUsed by:18
Symbol 14 FontUsed by:15 85 86 87 99 100 118 120 128 130 132 134 136 138 140 143 145 147 149 151 153 154 156 158 159 160 161 163 164 165 166 168 170 172 175 178 191 194 195 196 199 218 220 221 222 223 224 225 226 227 228 229 230 231 233 235 237 238 239 241 243 245 246 247 248
Symbol 15 EditableTextUses:14 188Used by:18
Symbol 16 FontUsed by:17
Symbol 17 EditableTextUses:16Used by:18
Symbol 18 MovieClip {controls.HighScoreEntry}Uses:13 15 17
Symbol 19 MovieClip {TopOverlayElement}
Symbol 20 FontUsed by:21
Symbol 21 TextUses:20Used by:22
Symbol 22 MovieClip {TriggerGameModeFinishedEventButton}Uses:21
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:25
Symbol 25 MovieClipUses:24Used by:26
Symbol 26 MovieClip {Character1}Uses:25
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:29
Symbol 29 MovieClipUses:28Used by:30
Symbol 30 MovieClip {Character2}Uses:29
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:33
Symbol 33 MovieClipUses:32Used by:34
Symbol 34 MovieClip {Character3}Uses:33
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:37
Symbol 37 MovieClipUses:36Used by:38
Symbol 38 MovieClip {Character4}Uses:37
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:41
Symbol 41 MovieClipUses:40Used by:42
Symbol 42 MovieClip {Character5}Uses:41
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:45
Symbol 45 MovieClipUses:44Used by:46
Symbol 46 MovieClip {Character6}Uses:45
Symbol 47 FontUsed by:48
Symbol 48 TextUses:47Used by:49
Symbol 49 MovieClip {BackButton}Uses:48
Symbol 50 MovieClip {TrackerElement}
Symbol 51 BitmapUsed by:54 55 56
Symbol 52 BitmapUsed by:54 55 56
Symbol 53 BitmapUsed by:54 55 56
Symbol 54 GraphicUses:51 52 53Used by:57
Symbol 55 GraphicUses:53 51 52Used by:57
Symbol 56 GraphicUses:52 51 53Used by:57
Symbol 57 MovieClipUses:54 55 56Used by:58 59 63
Symbol 58 MovieClip {controls.LightBulb3}Uses:57
Symbol 59 MovieClip {controls.LightBulb1}Uses:57
Symbol 60 FontUsed by:61
Symbol 61 TextUses:60Used by:62
Symbol 62 MovieClip {MusicToggleButton}Uses:61Used by:304
Symbol 63 MovieClip {controls.LightBulb2}Uses:57Used by:304
Symbol 64 GraphicUsed by:65
Symbol 65 MovieClip {GotoOfficialTrailerButton}Uses:64Used by:304
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClip {BackToMainMenuButton}Uses:66Used by:304
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:70
Symbol 70 MovieClip {controls.InGameClock}Uses:69Used by:304
Symbol 71 FontUsed by:72 90 95 267
Symbol 72 EditableTextUses:71Used by:73
Symbol 73 MovieClip {QuizNumberElement}Uses:72Used by:304
Symbol 74 GraphicUsed by:98 101
Symbol 75 GraphicUsed by:76 142 155 174 179 232 240
Symbol 76 MovieClip {PlayerAvatar}Uses:75Used by:98 101
Symbol 77 BitmapUsed by:78
Symbol 78 GraphicUses:77Used by:79
Symbol 79 MovieClipUses:78Used by:80
Symbol 80 MovieClipUses:79Used by:98 101
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:81Used by:83
Symbol 83 MovieClipUses:82Used by:84
Symbol 84 MovieClipUses:83Used by:98 101
Symbol 85 EditableTextUses:14Used by:98
Symbol 86 TextUses:14Used by:98 101
Symbol 87 EditableTextUses:14Used by:98
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:91
Symbol 90 EditableTextUses:71Used by:91
Symbol 91 MovieClip {bhWidget_fla.PlayerLoseScoreAnimationMaterial_10}Uses:89 90Used by:92
Symbol 92 MovieClip {bhWidget_fla.PlayerLoseScoreAnimation_9}Uses:91Used by:98 101 268
Symbol 93 BitmapUsed by:94
Symbol 94 GraphicUses:93Used by:96
Symbol 95 EditableTextUses:71Used by:96
Symbol 96 MovieClip {bhWidget_fla.PlayerGainScoreAnimationMaterial_12}Uses:94 95Used by:97
Symbol 97 MovieClip {bhWidget_fla.PlayerGainScoreAnimation_11}Uses:96Used by:98 101 268
Symbol 98 MovieClip {InGamePlayer2Panel}Uses:74 76 80 84 85 86 87 92 97Used by:304
Symbol 99 EditableTextUses:14Used by:101
Symbol 100 EditableTextUses:14Used by:101
Symbol 101 MovieClip {InGamePlayer1Panel}Uses:74 76 99 92 97 86 84 80 100Used by:304
Symbol 102 BitmapUsed by:103 104 105 106 107
Symbol 103 GraphicUses:102Used by:108
Symbol 104 GraphicUses:102Used by:108
Symbol 105 GraphicUses:102Used by:108
Symbol 106 GraphicUses:102Used by:108
Symbol 107 GraphicUses:102Used by:108
Symbol 108 MovieClip {controls.ClapperTop}Uses:103 104 105 106 107Used by:304
Symbol 109 GraphicUsed by:110 121 150
Symbol 110 MovieClip {ClipperHotArea}Uses:109Used by:304
Symbol 111 GraphicUsed by:113
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClipUses:111 112Used by:119 142 150 155 174 179 198 217 232 240 250
Symbol 114 BitmapUsed by:115
Symbol 115 GraphicUses:114Used by:119
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClipUses:116Used by:119
Symbol 118 TextUses:14Used by:119
Symbol 119 MovieClip {StartSplashElement}Uses:113 115 117 118Used by:304
Symbol 120 EditableTextUses:14 188Used by:121
Symbol 121 MovieClip {controls.HighScoreElement}Uses:109 120Used by:304
Symbol 122 BitmapUsed by:123
Symbol 123 GraphicUses:122Used by:124
Symbol 124 MovieClip {hostessEnterLeave}Uses:123Used by:304
Symbol 125 BitmapUsed by:126
Symbol 126 GraphicUses:125Used by:127
Symbol 127 MovieClip {hostEnterLeave}Uses:126Used by:304
Symbol 128 TextUses:14Used by:129
Symbol 129 MovieClip {GotoRulesButton}Uses:128Used by:142
Symbol 130 TextUses:14Used by:131
Symbol 131 MovieClip {GotoInstructionsButton}Uses:130Used by:142
Symbol 132 TextUses:14Used by:133
Symbol 133 MovieClip {GotoGrabCodeButton}Uses:132Used by:142
Symbol 134 TextUses:14Used by:135
Symbol 135 MovieClip {GotoSendToFriendButton}Uses:134Used by:142
Symbol 136 TextUses:14Used by:137
Symbol 137 MovieClip {GotoHighScoresButton}Uses:136Used by:142
Symbol 138 TextUses:14Used by:139
Symbol 139 MovieClip {GotoSinglePlayButton}Uses:138Used by:142
Symbol 140 TextUses:14Used by:141
Symbol 141 MovieClip {GotoVsModeButton}Uses:140Used by:142
Symbol 142 MovieClip {controls.MainMenuElement}Uses:75 113 141 139 137 135 133 131 129Used by:304
Symbol 143 TextUses:14Used by:144
Symbol 144 MovieClip {GotoTodayTopButton}Uses:143Used by:150
Symbol 145 TextUses:14Used by:146
Symbol 146 MovieClip {GotoThisWeekTopButton}Uses:145Used by:150
Symbol 147 TextUses:14Used by:148
Symbol 148 MovieClip {GotoThisMonthTopButton}Uses:147Used by:150
Symbol 149 TextUses:14Used by:150
Symbol 150 MovieClip {HighScoreSelectionElement}Uses:109 113 148 146 144 149Used by:304
Symbol 151 TextUses:14Used by:152
Symbol 152 MovieClip {GotoControlsInfoButton}Uses:151Used by:155
Symbol 153 TextUses:14Used by:155
Symbol 154 TextUses:14Used by:155
Symbol 155 MovieClip {InstructionsElement}Uses:75 113 153 154 152Used by:304
Symbol 156 TextUses:14Used by:157
Symbol 157 MovieClip {SendToFriendSendButton}Uses:156Used by:174
Symbol 158 TextUses:14Used by:174
Symbol 159 TextUses:14Used by:174
Symbol 160 TextUses:14Used by:174
Symbol 161 TextUses:14Used by:174
Symbol 162 GraphicUsed by:174
Symbol 163 EditableTextUses:14Used by:174
Symbol 164 EditableTextUses:14Used by:174
Symbol 165 EditableTextUses:14Used by:174
Symbol 166 EditableTextUses:14Used by:174
Symbol 167 GraphicUsed by:169 171 173
Symbol 168 TextUses:14Used by:169
Symbol 169 MovieClipUses:167 168Used by:174
Symbol 170 EditableTextUses:14 188Used by:171
Symbol 171 MovieClip {bhWidget_fla.SendToFriendErrorMessage_41}Uses:167 170Used by:174
Symbol 172 TextUses:14Used by:173
Symbol 173 MovieClipUses:167 172Used by:174
Symbol 174 MovieClip {SendToFriendElement}Uses:75 113 157 158 159 160 161 162 163 164 165 166 169 171 173Used by:304
Symbol 175 TextUses:14Used by:176
Symbol 176 MovieClip {CopyToClipboardButton}Uses:175Used by:179
Symbol 177 GraphicUsed by:179
Symbol 178 EditableTextUses:14 188Used by:179
Symbol 179 MovieClip {GrabCodeElement}Uses:75 113 176 177 178Used by:304
Symbol 180 BitmapUsed by:181
Symbol 181 GraphicUses:180Used by:187
Symbol 182 GraphicUsed by:187
Symbol 183 GraphicUsed by:184 217
Symbol 184 MovieClipUses:183Used by:187
Symbol 185 GraphicUsed by:186
Symbol 186 MovieClipUses:185Used by:187
Symbol 187 MovieClip {CharacterSelectControl}Uses:181 182 184 186Used by:192 197
Symbol 188 FontUsed by:15 120 170 178 189 194 195 204 206 212 216 238 247 249 287 288 289 290 291 292
Symbol 189 TextUses:188Used by:190
Symbol 190 MovieClip {StartGameButton}Uses:189Used by:198
Symbol 191 TextUses:14Used by:192
Symbol 192 MovieClip {bhWidget_fla.SingleContainer_31}Uses:187 191Used by:198
Symbol 193 GraphicUsed by:197
Symbol 194 EditableTextUses:14 188Used by:197
Symbol 195 EditableTextUses:14 188Used by:197
Symbol 196 TextUses:14Used by:197
Symbol 197 MovieClip {bhWidget_fla.VersusContainer_35}Uses:193 194 195 196 187Used by:198
Symbol 198 MovieClip {controls.GameSettingsElement}Uses:190 113 192 197Used by:304
Symbol 199 TextUses:14Used by:200
Symbol 200 MovieClip {OkContinueButton}Uses:199Used by:217
Symbol 201 BitmapUsed by:202
Symbol 202 GraphicUses:201Used by:217
Symbol 203 GraphicUsed by:217
Symbol 204 TextUses:188Used by:217
Symbol 205 GraphicUsed by:217
Symbol 206 TextUses:188Used by:217
Symbol 207 BitmapUsed by:208
Symbol 208 GraphicUses:207Used by:217
Symbol 209 BitmapUsed by:210
Symbol 210 GraphicUses:209Used by:217
Symbol 211 GraphicUsed by:217
Symbol 212 TextUses:188Used by:217
Symbol 213 BitmapUsed by:214
Symbol 214 GraphicUses:213Used by:217
Symbol 215 GraphicUsed by:217
Symbol 216 TextUses:188Used by:217
Symbol 217 MovieClip {GamePlayInfoElement}Uses:183 113 202 200 203 204 205 206 208 210 211 212 214 215 216Used by:304
Symbol 218 TextUses:14Used by:219
Symbol 219 MovieClip {ContinueToGameButton}Uses:218Used by:232
Symbol 220 TextUses:14Used by:232
Symbol 221 TextUses:14Used by:232
Symbol 222 TextUses:14Used by:232
Symbol 223 TextUses:14Used by:232
Symbol 224 TextUses:14Used by:232
Symbol 225 TextUses:14Used by:232
Symbol 226 TextUses:14Used by:232
Symbol 227 TextUses:14Used by:232
Symbol 228 TextUses:14Used by:232
Symbol 229 TextUses:14Used by:232
Symbol 230 TextUses:14Used by:232
Symbol 231 TextUses:14Used by:232
Symbol 232 MovieClip {controls.GameModePreloaderElement}Uses:75 113 220 221 219 222 223 224 225 226 227 228 229 230 231Used by:304
Symbol 233 TextUses:14Used by:234
Symbol 234 MovieClip {SubmitScoreButton}Uses:233Used by:240
Symbol 235 TextUses:14Used by:236
Symbol 236 MovieClip {PlayAgainButton}Uses:235Used by:240
Symbol 237 TextUses:14Used by:240
Symbol 238 EditableTextUses:14 188Used by:240
Symbol 239 TextUses:14Used by:240
Symbol 240 MovieClip {controls.GameResultsElement}Uses:75 113 237 236 238 234 239Used by:304
Symbol 241 TextUses:14Used by:242
Symbol 242 MovieClip {SubmitSubmitButton}Uses:241Used by:250
Symbol 243 TextUses:14Used by:250
Symbol 244 GraphicUsed by:250
Symbol 245 TextUses:14Used by:250
Symbol 246 TextUses:14Used by:250
Symbol 247 EditableTextUses:14 188Used by:250
Symbol 248 EditableTextUses:14Used by:250
Symbol 249 EditableTextUses:188Used by:250
Symbol 250 MovieClip {controls.SubmitScoreElement}Uses:113 243 244 245 246 247 242 248 249Used by:304
Symbol 251 BitmapUsed by:252
Symbol 252 GraphicUses:251Used by:253
Symbol 253 MovieClipUses:252Used by:257 258
Symbol 254 BitmapUsed by:255
Symbol 255 GraphicUses:254Used by:256
Symbol 256 MovieClipUses:255Used by:257 258
Symbol 257 MovieClip {bhWidget_fla.mcCurtainAnim_15}Uses:253 256Used by:259
Symbol 258 MovieClip {bhWidget_fla.mcCurtainAnimOpen_18}Uses:253 256Used by:259
Symbol 259 MovieClip {CurtainElement}Uses:257 258Used by:304
Symbol 260 GraphicUsed by:265
Symbol 261 GraphicUsed by:265
Symbol 262 GraphicUsed by:265
Symbol 263 FontUsed by:264 277 280 283 285
Symbol 264 EditableTextUses:263 297Used by:265
Symbol 265 MovieClip {InGameQuestion}Uses:260 261 262 264Used by:293
Symbol 266 GraphicUsed by:268 286
Symbol 267 EditableTextUses:71Used by:268
Symbol 268 MovieClip {InGamePot}Uses:266 267 92 97Used by:293
Symbol 269 GraphicUsed by:278
Symbol 270 GraphicUsed by:278 281 284 286
Symbol 271 GraphicUsed by:278 281 284 286
Symbol 272 BitmapUsed by:273
Symbol 273 GraphicUses:272Used by:276
Symbol 274 FontUsed by:275
Symbol 275 EditableTextUses:274Used by:276
Symbol 276 MovieClip {bhWidget_fla.InGameAnswerKey_4}Uses:273 275Used by:278 281 284 286
Symbol 277 EditableTextUses:263 297Used by:278
Symbol 278 MovieClip {InGameAnswerBox4}Uses:269 270 271 276 277Used by:293
Symbol 279 GraphicUsed by:281
Symbol 280 EditableTextUses:263 297Used by:281
Symbol 281 MovieClip {InGameAnswerBox3}Uses:279 270 271 276 280Used by:293
Symbol 282 GraphicUsed by:284
Symbol 283 EditableTextUses:263 297Used by:284
Symbol 284 MovieClip {InGameAnswerBox2}Uses:282 270 271 276 283Used by:293
Symbol 285 EditableTextUses:263 297Used by:286
Symbol 286 MovieClip {InGameAnswerBox1}Uses:266 270 271 276 285Used by:293
Symbol 287 TextUses:188Used by:293
Symbol 288 TextUses:188Used by:293
Symbol 289 TextUses:188Used by:293
Symbol 290 TextUses:188Used by:293
Symbol 291 TextUses:188Used by:293
Symbol 292 TextUses:188Used by:293
Symbol 293 MovieClip {controls.GameModeElement}Uses:286 284 281 278 268 265 287 288 289 290 291 292Used by:304
Symbol 294 BitmapUsed by:296
Symbol 295 BitmapUsed by:296
Symbol 296 GraphicUses:294 295Used by:304
Symbol 297 FontUsed by:264 277 280 283 285 298
Symbol 298 TextUses:297Used by:304
Symbol 299 GraphicUsed by:304
Symbol 300 BitmapUsed by:301
Symbol 301 GraphicUses:300Used by:304
Symbol 302 BitmapUsed by:303
Symbol 303 GraphicUses:302Used by:304
Symbol 304 MovieClip {GuiObject}Uses:296 298 299 293 259 250 240 232 217 198 179 174 155 150 142 127 124 121 119 301 110 108 101 98 73 70 67 65 63 303 62Used by:Timeline

Instance Names

"txtUsername"Symbol 18 MovieClip {controls.HighScoreEntry} Frame 1Symbol 15 EditableText
"txtScore"Symbol 18 MovieClip {controls.HighScoreEntry} Frame 1Symbol 17 EditableText
"clip"Symbol 26 MovieClip {Character1} Frame 1Symbol 25 MovieClip
"clip"Symbol 30 MovieClip {Character2} Frame 1Symbol 29 MovieClip
"clip"Symbol 34 MovieClip {Character3} Frame 1Symbol 33 MovieClip
"clip"Symbol 38 MovieClip {Character4} Frame 1Symbol 37 MovieClip
"clip"Symbol 42 MovieClip {Character5} Frame 1Symbol 41 MovieClip
"clip"Symbol 46 MovieClip {Character6} Frame 1Symbol 45 MovieClip
"stars"Symbol 58 MovieClip {controls.LightBulb3} Frame 1Symbol 57 MovieClip
"stars"Symbol 59 MovieClip {controls.LightBulb1} Frame 1Symbol 57 MovieClip
"stars"Symbol 63 MovieClip {controls.LightBulb2} Frame 1Symbol 57 MovieClip
"clpFill"Symbol 70 MovieClip {controls.InGameClock} Frame 1Symbol 69 MovieClip
"textField"Symbol 73 MovieClip {QuizNumberElement} Frame 1Symbol 72 EditableText
"scoreText"Symbol 91 MovieClip {bhWidget_fla.PlayerLoseScoreAnimationMaterial_10} Frame 1Symbol 90 EditableText
"scoreClip"Symbol 92 MovieClip {bhWidget_fla.PlayerLoseScoreAnimation_9} Frame 1Symbol 91 MovieClip {bhWidget_fla.PlayerLoseScoreAnimationMaterial_10}
"scoreText"Symbol 96 MovieClip {bhWidget_fla.PlayerGainScoreAnimationMaterial_12} Frame 1Symbol 95 EditableText
"scoreClip"Symbol 97 MovieClip {bhWidget_fla.PlayerGainScoreAnimation_11} Frame 1Symbol 96 MovieClip {bhWidget_fla.PlayerGainScoreAnimationMaterial_12}
"ctlAvatar"Symbol 98 MovieClip {InGamePlayer2Panel} Frame 1Symbol 76 MovieClip {PlayerAvatar}
"clpWrongAnswer"Symbol 98 MovieClip {InGamePlayer2Panel} Frame 1Symbol 80 MovieClip
"clpRightAnswer"Symbol 98 MovieClip {InGamePlayer2Panel} Frame 1Symbol 84 MovieClip
"txtPlayerName"Symbol 98 MovieClip {InGamePlayer2Panel} Frame 1Symbol 85 EditableText
"txtScore"Symbol 98 MovieClip {InGamePlayer2Panel} Frame 1Symbol 87 EditableText
"clpLoseScore"Symbol 98 MovieClip {InGamePlayer2Panel} Frame 1Symbol 92 MovieClip {bhWidget_fla.PlayerLoseScoreAnimation_9}
"clpGainScore"Symbol 98 MovieClip {InGamePlayer2Panel} Frame 1Symbol 97 MovieClip {bhWidget_fla.PlayerGainScoreAnimation_11}
"ctlAvatar"Symbol 101 MovieClip {InGamePlayer1Panel} Frame 1Symbol 76 MovieClip {PlayerAvatar}
"txtPlayerName"Symbol 101 MovieClip {InGamePlayer1Panel} Frame 1Symbol 99 EditableText
"clpLoseScore"Symbol 101 MovieClip {InGamePlayer1Panel} Frame 1Symbol 92 MovieClip {bhWidget_fla.PlayerLoseScoreAnimation_9}
"clpGainScore"Symbol 101 MovieClip {InGamePlayer1Panel} Frame 1Symbol 97 MovieClip {bhWidget_fla.PlayerGainScoreAnimation_11}
"clpRightAnswer"Symbol 101 MovieClip {InGamePlayer1Panel} Frame 1Symbol 84 MovieClip
"clpWrongAnswer"Symbol 101 MovieClip {InGamePlayer1Panel} Frame 1Symbol 80 MovieClip
"txtScore"Symbol 101 MovieClip {InGamePlayer1Panel} Frame 1Symbol 100 EditableText
"txtCaption"Symbol 121 MovieClip {controls.HighScoreElement} Frame 1Symbol 120 EditableText
"btnGotoVsMode"Symbol 142 MovieClip {controls.MainMenuElement} Frame 1Symbol 141 MovieClip {GotoVsModeButton}
"btnGotoSinglePlay"Symbol 142 MovieClip {controls.MainMenuElement} Frame 1Symbol 139 MovieClip {GotoSinglePlayButton}
"btnGotoHighScores"Symbol 142 MovieClip {controls.MainMenuElement} Frame 1Symbol 137 MovieClip {GotoHighScoresButton}
"btnGotoSendToFriend"Symbol 142 MovieClip {controls.MainMenuElement} Frame 1Symbol 135 MovieClip {GotoSendToFriendButton}
"btnGotoGrabCode"Symbol 142 MovieClip {controls.MainMenuElement} Frame 1Symbol 133 MovieClip {GotoGrabCodeButton}
"btnGotoInstructions"Symbol 142 MovieClip {controls.MainMenuElement} Frame 1Symbol 131 MovieClip {GotoInstructionsButton}
"btnGotoRules"Symbol 142 MovieClip {controls.MainMenuElement} Frame 1Symbol 129 MovieClip {GotoRulesButton}
"btnGotoThisMonth"Symbol 150 MovieClip {HighScoreSelectionElement} Frame 1Symbol 148 MovieClip {GotoThisMonthTopButton}
"btnGotoThisWeek"Symbol 150 MovieClip {HighScoreSelectionElement} Frame 1Symbol 146 MovieClip {GotoThisWeekTopButton}
"btnGotoToday"Symbol 150 MovieClip {HighScoreSelectionElement} Frame 1Symbol 144 MovieClip {GotoTodayTopButton}
"btnGotoGameControls"Symbol 155 MovieClip {InstructionsElement} Frame 1Symbol 152 MovieClip {GotoControlsInfoButton}
"textField"Symbol 171 MovieClip {bhWidget_fla.SendToFriendErrorMessage_41} Frame 1Symbol 170 EditableText
"sendMailButton"Symbol 174 MovieClip {SendToFriendElement} Frame 1Symbol 157 MovieClip {SendToFriendSendButton}
"sName"Symbol 174 MovieClip {SendToFriendElement} Frame 1Symbol 163 EditableText
"sEmail"Symbol 174 MovieClip {SendToFriendElement} Frame 1Symbol 164 EditableText
"message"Symbol 174 MovieClip {SendToFriendElement} Frame 1Symbol 165 EditableText
"rEmail"Symbol 174 MovieClip {SendToFriendElement} Frame 1Symbol 166 EditableText
"processingMessage"Symbol 174 MovieClip {SendToFriendElement} Frame 1Symbol 169 MovieClip
"inputError"Symbol 174 MovieClip {SendToFriendElement} Frame 1Symbol 171 MovieClip {bhWidget_fla.SendToFriendErrorMessage_41}
"errorMessage"Symbol 174 MovieClip {SendToFriendElement} Frame 1Symbol 171 MovieClip {bhWidget_fla.SendToFriendErrorMessage_41}
"sentMessage"Symbol 174 MovieClip {SendToFriendElement} Frame 1Symbol 173 MovieClip
"copyButton"Symbol 179 MovieClip {GrabCodeElement} Frame 1Symbol 176 MovieClip {CopyToClipboardButton}
"grabCodeText"Symbol 179 MovieClip {GrabCodeElement} Frame 1Symbol 178 EditableText
"clpAvatarContainer"Symbol 187 MovieClip {CharacterSelectControl} Frame 1Symbol 184 MovieClip
"btnNextCharacter"Symbol 187 MovieClip {CharacterSelectControl} Frame 1Symbol 186 MovieClip
"btnPreviousCharacter"Symbol 187 MovieClip {CharacterSelectControl} Frame 1Symbol 186 MovieClip
"ctlSinglePlayerCharacter"Symbol 192 MovieClip {bhWidget_fla.SingleContainer_31} Frame 1Symbol 187 MovieClip {CharacterSelectControl}
"txtPlayer1Name"Symbol 197 MovieClip {bhWidget_fla.VersusContainer_35} Frame 1Symbol 194 EditableText
"txtPlayer2Name"Symbol 197 MovieClip {bhWidget_fla.VersusContainer_35} Frame 1Symbol 195 EditableText
"ctlPlayer1Character"Symbol 197 MovieClip {bhWidget_fla.VersusContainer_35} Frame 1Symbol 187 MovieClip {CharacterSelectControl}
"ctlPlayer2Character"Symbol 197 MovieClip {bhWidget_fla.VersusContainer_35} Frame 1Symbol 187 MovieClip {CharacterSelectControl}
"btnStartGame"Symbol 198 MovieClip {controls.GameSettingsElement} Frame 1Symbol 190 MovieClip {StartGameButton}
"versusContainer"Symbol 198 MovieClip {controls.GameSettingsElement} Frame 1Symbol 113 MovieClip
"btnStartGame"Symbol 198 MovieClip {controls.GameSettingsElement} Frame 1Symbol 190 MovieClip {StartGameButton}
"singleContainer"Symbol 198 MovieClip {controls.GameSettingsElement} Frame 1Symbol 192 MovieClip {bhWidget_fla.SingleContainer_31}
"versusContainer"Symbol 198 MovieClip {controls.GameSettingsElement} Frame 1Symbol 197 MovieClip {bhWidget_fla.VersusContainer_35}
"btnOkContinue"Symbol 217 MovieClip {GamePlayInfoElement} Frame 1Symbol 200 MovieClip {OkContinueButton}
"btnContinueToGamePlayInfo"Symbol 232 MovieClip {controls.GameModePreloaderElement} Frame 1Symbol 219 MovieClip {ContinueToGameButton}
"btnPlayAgain"Symbol 240 MovieClip {controls.GameResultsElement} Frame 1Symbol 236 MovieClip {PlayAgainButton}
"txtFeedback"Symbol 240 MovieClip {controls.GameResultsElement} Frame 1Symbol 238 EditableText
"btnGotoSubmitScore"Symbol 240 MovieClip {controls.GameResultsElement} Frame 1Symbol 234 MovieClip {SubmitScoreButton}
"txtInputErrorText"Symbol 250 MovieClip {controls.SubmitScoreElement} Frame 1Symbol 247 EditableText
"btnSubmitScore"Symbol 250 MovieClip {controls.SubmitScoreElement} Frame 1Symbol 242 MovieClip {SubmitSubmitButton}
"txtNickName"Symbol 250 MovieClip {controls.SubmitScoreElement} Frame 1Symbol 248 EditableText
"txtEmail"Symbol 250 MovieClip {controls.SubmitScoreElement} Frame 1Symbol 249 EditableText
"clpCloseRight"Symbol 259 MovieClip {CurtainElement} Frame 1Symbol 257 MovieClip {bhWidget_fla.mcCurtainAnim_15}
"clpCloseLeft"Symbol 259 MovieClip {CurtainElement} Frame 1Symbol 257 MovieClip {bhWidget_fla.mcCurtainAnim_15}
"clpOpenRight"Symbol 259 MovieClip {CurtainElement} Frame 1Symbol 258 MovieClip {bhWidget_fla.mcCurtainAnimOpen_18}
"clpOpenLeft"Symbol 259 MovieClip {CurtainElement} Frame 1Symbol 258 MovieClip {bhWidget_fla.mcCurtainAnimOpen_18}
"txtQuestion"Symbol 265 MovieClip {InGameQuestion} Frame 1Symbol 264 EditableText
"txtScore"Symbol 268 MovieClip {InGamePot} Frame 1Symbol 267 EditableText
"clpLoseScore"Symbol 268 MovieClip {InGamePot} Frame 1Symbol 92 MovieClip {bhWidget_fla.PlayerLoseScoreAnimation_9}
"clpGainScore"Symbol 268 MovieClip {InGamePot} Frame 1Symbol 97 MovieClip {bhWidget_fla.PlayerGainScoreAnimation_11}
"textField"Symbol 276 MovieClip {bhWidget_fla.InGameAnswerKey_4} Frame 1Symbol 275 EditableText
"clpP1Key"Symbol 278 MovieClip {InGameAnswerBox4} Frame 1Symbol 276 MovieClip {bhWidget_fla.InGameAnswerKey_4}
"clpP2Key"Symbol 278 MovieClip {InGameAnswerBox4} Frame 1Symbol 276 MovieClip {bhWidget_fla.InGameAnswerKey_4}
"txtAnswer"Symbol 278 MovieClip {InGameAnswerBox4} Frame 1Symbol 277 EditableText
"clpP2Key"Symbol 281 MovieClip {InGameAnswerBox3} Frame 1Symbol 276 MovieClip {bhWidget_fla.InGameAnswerKey_4}
"txtAnswer"Symbol 281 MovieClip {InGameAnswerBox3} Frame 1Symbol 280 EditableText
"clpP1Key"Symbol 281 MovieClip {InGameAnswerBox3} Frame 1Symbol 276 MovieClip {bhWidget_fla.InGameAnswerKey_4}
"clpP2Key"Symbol 284 MovieClip {InGameAnswerBox2} Frame 1Symbol 276 MovieClip {bhWidget_fla.InGameAnswerKey_4}
"txtAnswer"Symbol 284 MovieClip {InGameAnswerBox2} Frame 1Symbol 283 EditableText
"clpP1Key"Symbol 284 MovieClip {InGameAnswerBox2} Frame 1Symbol 276 MovieClip {bhWidget_fla.InGameAnswerKey_4}
"clpP2Key"Symbol 286 MovieClip {InGameAnswerBox1} Frame 1Symbol 276 MovieClip {bhWidget_fla.InGameAnswerKey_4}
"txtAnswer"Symbol 286 MovieClip {InGameAnswerBox1} Frame 1Symbol 285 EditableText
"clpP1Key"Symbol 286 MovieClip {InGameAnswerBox1} Frame 1Symbol 276 MovieClip {bhWidget_fla.InGameAnswerKey_4}
"ctlAnswer1"Symbol 293 MovieClip {controls.GameModeElement} Frame 1Symbol 286 MovieClip {InGameAnswerBox1}
"ctlAnswer2"Symbol 293 MovieClip {controls.GameModeElement} Frame 1Symbol 284 MovieClip {InGameAnswerBox2}
"ctlAnswer3"Symbol 293 MovieClip {controls.GameModeElement} Frame 1Symbol 281 MovieClip {InGameAnswerBox3}
"ctlAnswer4"Symbol 293 MovieClip {controls.GameModeElement} Frame 1Symbol 278 MovieClip {InGameAnswerBox4}
"ctlPot"Symbol 293 MovieClip {controls.GameModeElement} Frame 1Symbol 268 MovieClip {InGamePot}
"ctlQuestion"Symbol 293 MovieClip {controls.GameModeElement} Frame 1Symbol 265 MovieClip {InGameQuestion}
"gameMode"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 293 MovieClip {controls.GameModeElement}
"curtain"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 259 MovieClip {CurtainElement}
"submitScore"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 250 MovieClip {controls.SubmitScoreElement}
"gameResults"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 240 MovieClip {controls.GameResultsElement}
"gameModePreloader"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 232 MovieClip {controls.GameModePreloaderElement}
"gamePlayInfo"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 217 MovieClip {GamePlayInfoElement}
"gamePlayInfoMenu"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 217 MovieClip {GamePlayInfoElement}
"gameSettings"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 198 MovieClip {controls.GameSettingsElement}
"grabCode"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 179 MovieClip {GrabCodeElement}
"sendToFriend"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 174 MovieClip {SendToFriendElement}
"instructions"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 155 MovieClip {InstructionsElement}
"highScoreSelection"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 150 MovieClip {HighScoreSelectionElement}
"mainMenu"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 142 MovieClip {controls.MainMenuElement}
"host"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 127 MovieClip {hostEnterLeave}
"hostess"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 124 MovieClip {hostessEnterLeave}
"highScores"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 121 MovieClip {controls.HighScoreElement}
"startSplash"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 119 MovieClip {StartSplashElement}
"clapperHotArea"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 110 MovieClip {ClipperHotArea}
"clapperTop"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 108 MovieClip {controls.ClapperTop}
"player1Panel"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 101 MovieClip {InGamePlayer1Panel}
"player2Panel"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 98 MovieClip {InGamePlayer2Panel}
"quizNumber"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 73 MovieClip {QuizNumberElement}
"clock"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 70 MovieClip {controls.InGameClock}
"btnBackToMainMenu"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 67 MovieClip {BackToMainMenuButton}
"btnGotoOfficialTrailer"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 65 MovieClip {GotoOfficialTrailerButton}
"btnGotoOfficialSite"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 65 MovieClip {GotoOfficialTrailerButton}
"musicToggleButton"Symbol 304 MovieClip {GuiObject} Frame 1Symbol 62 MovieClip {MusicToggleButton}

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.

Labels

"mouseover"Symbol 108 MovieClip {controls.ClapperTop} Frame 2
"mouseout"Symbol 108 MovieClip {controls.ClapperTop} Frame 5
"click"Symbol 108 MovieClip {controls.ClapperTop} Frame 9
"SINGLE"Symbol 198 MovieClip {controls.GameSettingsElement} Frame 1
"COLLECT"Symbol 217 MovieClip {GamePlayInfoElement} Frame 1
"SINGLE"Symbol 217 MovieClip {GamePlayInfoElement} Frame 2
"VERSUS"Symbol 217 MovieClip {GamePlayInfoElement} Frame 3
"NORMAL"Symbol 217 MovieClip {GamePlayInfoElement} Frame 4
"regular"Symbol 232 MovieClip {controls.GameModePreloaderElement} Frame 1
"timeattack"Symbol 232 MovieClip {controls.GameModePreloaderElement} Frame 2
"potplay"Symbol 232 MovieClip {controls.GameModePreloaderElement} Frame 3
"thief"Symbol 232 MovieClip {controls.GameModePreloaderElement} Frame 4
"collecttime"Symbol 232 MovieClip {controls.GameModePreloaderElement} Frame 5
"savepoints"Symbol 232 MovieClip {controls.GameModePreloaderElement} Frame 6
"VERSUS"Symbol 240 MovieClip {controls.GameResultsElement} Frame 1
"SINGLE"Symbol 240 MovieClip {controls.GameResultsElement} Frame 2
"regular"Symbol 293 MovieClip {controls.GameModeElement} Frame 1
"timeattack"Symbol 293 MovieClip {controls.GameModeElement} Frame 2
"potplay"Symbol 293 MovieClip {controls.GameModeElement} Frame 3
"thief"Symbol 293 MovieClip {controls.GameModeElement} Frame 4
"collecttime"Symbol 293 MovieClip {controls.GameModeElement} Frame 5
"savepoints"Symbol 293 MovieClip {controls.GameModeElement} Frame 6




http://swfchan.com/10/47986/info.shtml
Created: 30/4 -2019 19:30:28 Last modified: 30/4 -2019 19:30:28 Server time: 18/05 -2024 10:04:53