STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #120892 |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Morph into</b></font></p> |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Untappable</b></font></p> |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Unblockable</b></font></p> |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Remove:</b></font></p> |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Instant Equip</b></font></p> |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Instant Effect</b></font></p> |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Fast Strike</b></font></p> |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Double Spell</b></font></p> |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Double Ability</b></font></p> |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Attack Effect:</b></font></p> |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Attack Counts:</b></font></p> |
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Ranged</b></font></p> |
<p align="left"></p> |
Loading... |
Loading Image |
<p align="left"></p> |
OK |
<p align="center"></p> |
Loading... |
Congratulations! You got bonus cards! |
Choose 2 cards to add to your collection: |
Save |
Save |
/ |
Attack Phase |
Defense Response |
Response to Action |
+ |
- |
<p align="left"></p> |
Select a Deck |
Saving Deck... |
Save as: |
CANCEL |
<p align="center"></p> |
<Equip Phase> |
Ederon.com |
Ederon.com |
<p align="left"><font face="Knights Quest" size="10" color="#ffffff" letterSpacing="3.000000" kerning="0"><a href="http://maestrorage.newgrounds.com/audio/" target = "_blank">Sound track by Selcuk Bor</a></font></p> |
<p align="left"><font face="Arial" size="10" color="#000000" letterSpacing="0.000000" kerning="0">Loading news...</font></p> |
<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading news...</font></p> |
Username |
Username |
Password |
Password |
Login |
Login |
New Account |
New Account |
Forgot Username or Password? |
Forgot Username or Password? |
Forgot Username or Password? |
Card List |
Card List |
Trade Cards |
Trade Cards |
Guide Book |
Guide Book |
Card Manager |
Card Manager |
Lobby |
Lobby |
Logout |
Logout |
<p align="left"></p> |
Profile |
<p align="left"></p> |
Username: |
Password: |
Starter Deck |
Starter Deck |
Choose one of the pre-defined decks below to start with your account. You can upgrade your account and start making your own deck at anytime from your account page. |
Create your account |
Create your account |
Registration to Ederon is free! We do insist that you abide by the rules and policies detailed below. * Users with pre-defined beginner decks are automatically removed if inactive for more then 20 days. * Users with pre-defined beginner decks are limited to go as high as level 5 in the game. * Users caught trying any kind of cheat in this game can end by having their account removed by the administrators. * Bad behavior or swearing is not acceptable and can cause your account to be suspended or removed. |
Submit |
Submit |
Back |
Back |
<p align="left"></p> |
<p align="left"></p> |
Ederon is a card game that you can play against other people world wide. In the game, you represent one warrior from one or more fight style determined by your class, and fight against other opponents with similar variations onilne. During the battle, you will be able to use several equipments, abilities and spells that are available in your deck. The game is divided by turns, and wins who takes the opponent's life points down to zero. During the game, you will realize that each turn is divided by 5 different phases, and knowing how to manage these phases may be the key to your victory. You can see to your left how a basic battle screen looks like: |
Basics: Page 1 |
Click to enlarge |
Complicated? Don't worry. It is easier than it looks. Now, as I said before, the game basically works with turns. Each turn you will be able to play an item from your hand (such as weapons, armors or shields), attack your opponent using a weapon in your playfield and/or by use a spell or ability from your hand. During your opponent's turn, you will be able to block attacks with defensive items in your playfield (armors, shields or even weapons) and/or use defense abilities/spells. As the game flows, you will learn that each class has its potencial strengh. You might find that the best tactic is to simply try everything. |
Basics: Page 2 |
As you probably already realized, Ederon is a card game (really?). And as any card game, the entire strategy lies on how you build your deck and how well you manage to build combos. Ederon has a vast collection of cards and it's constantly releasing new expansions. |
There are basically 5 types of cards in Ederon. Each type has a certain way and phase to be used during the game: Classes - There are 8 class cards in the game. They are the ones that control the game. Regular cards can only be played if you're using one of the classes that the card requires. Artifacts - With the exception of amulets, every artifact requires at least one free hand to be played. You can see how many hands an artifact uses by checking the bottom right icon. Different then other items, you cannot have more then one weapon or one shield in the playfield. Armor - Armors are the defensive part of mostly every type of deck. No matter what kind of attack you are receiving, the damage always hits the armor first unless it is otherwise specified. |
Abilities and Spells - Different than armor and artifacts, abilities and spells are used directly from your hand and discarded afterwards. There are 3 subtypes of abilities/spells. You will find more information about it later in this book. |
Card Types: Page 3 |
Class |
Artifact |
Armor |
Usage Ability |
Attack Ability |
Defense Ability |
Usage Spell |
Attack Spell |
Defense Spell |
Besides types, each card on Ederon also consist of a subtype. Ederon has a huge variaty of subtypes. A subtype, in most cases, will determine if the card can or cannot be played during a certain phase (such as spells or abilities). On artifacts, a subtype will determine if it is a weapon (mace, sword, axe, bow, crossbow), a shield or a random usage item (such as flasks, books and orbs). On armors, subtypes will determine the material that armor is made off. In most cases, learning these subtypes will come naturaly, so my best advice is to not worry about that right now. |
Card Types: Page 4 |
1 |
2 |
3 |
4 |
6 |
5 |
7 |
Card Name |
Class Requirement |
3 |
4 |
Type and Subtype |
Power/Resistance |
5 |
Card Descr. |
6 |
Rarity |
7 |
Hands to hold |
Your turn is separeted by 5 different Phases. On each phase you are able to play a card or perform an action. This is your Phase Indicator: Draw phase Every turn you automatically draw one card from your deck. This action happens automatically and you cannot avoid it. Be aware that once you have no more cards in your deck, the game is over and you lose the match. Equip Phase In this phase you are able to remove any item that you currently have in your playfield, play other items from your hand, swap classes or play an usage ability. If you don't have any item to play or just don't want to play anything, you may click on the icon highlighted in the Phase Indicator. |
Attack Phase If you have any weapon on the playfield you will be asked if you want to attack your opponent in this phase. If you choose to, your opponent may choose how they would like to block your attack. Read more about attack phase on page 8. Spell Phase In this phase you can play an attack or usage spell/ability from your hand if you're able to. Be aware that any time you play an ability or spell in your turn your opponent can respond to using a defense ability/spell. Discard Phase If you have 7 or more cards in your hand at the end of your turn, You will be asked to choose and discard them until you have 6. To discard, drag them from your hand to the graveyard. |
Phases: Page 5 |
Class cards are basically controls the game. Most of the cards have class limitations and they can only be |
played if you have the currently class the card ask for on the playfield. There are 8 different classes: |
Classes: Page 6 |
Each class has different combination of cards or styles. They are symbolized acording to their initials and colors: Hunter Assassin Knight Gladiator Paladin Monk Sorcerer Wizard Every Class |
For instance, sorcerers are better generally on countering, so they have much more ways to cancel an action done by the opponent then a knight, that basically has their specialty on weapons, shields and armors. You can only play a class card on your Equip Phase, and once you do it you lose the entire turn, so be careful when changing classes. Besides the 8 classes you can choose, there is also the Average Class ( ), also called blank class. If you have no classes on the playfield, you are currently on the Average class. Every player starts the game on average class. You don't lose any turn by switching back from any class to Average. You can have up to 3 class cards in your deck plus the blank class, and there are many ways you can combine them to defeat your enemy. The best way to learn it is simply trying out each one. |
Classes: Page 7 |
To know more about each class, visit the Classes Page at www.ederon.com. |
Defense Response on Attack Phase During this action, you can choose between block using a shield (if you have one), using your weapon (if you have one), using a defense ability from your hand (if you have one) or by just not blocking. If you don't block the attack, the damage will be stopped by your armor (if you have one). Neither the armor, or the shield, can absorb the damage completely, so if your defense can't reduce the entire attack, you will receive the rest of the damage points. |
Attack solving The attack solving system is actually pretty simple. Every item has a certain number of power points and resistance points. Once the item has no more resistance points, it is automatically removed from the game. Items can lose defense points either by defense retaliation or by an ability/spell effect. |
During an attack, the item that block the attack loses the amount of resistance from the weapon's power points, and if the blocking item has power points, the attacking weapon will also loses that amount of points on it's resistance. If the weapon states that it does not receive defense retaliation, no matter what the defender does, the weapon does not lose any resistance points. |
Power Points |
Resistance Points |
Attack Phase: Page 8 |
Options to block a weapon attack |
Shield block: The attack is reduced, but not completely absorbed. If the shield doesn't reduce all the attack, the remind goes to the armor or life points if they are not wearing one. The defender can only use this option if they have a shield on the playfield. Weapon block: The attack is completely absorbed by the blocking weapon. The defender can only use this option if they have a weapon on the playfield. |
Spell/Ability: This response effect can can vary according to the spell/ability effect. If after the effect there is still damage to be taken, the damage goes to the armor. The weapon or and shield from the defender do not get in the way of this action. Armor/Not Block: If defender is wearing an armor, any damage that they would receive goes to the armor instead. The damage dealt to the armor is also not completely absorbed. Defense abilities/spells against usage or attack abilities/spells Defense abilities/spells can also be used to interrupt usage or attack abilities/spells. There are many variations, from simply reducing damage to completely counter the effect. To use it all you have to do is drag it to the playfield when prompted. Make sure you have the right class on the playfield, |
Attack Phase: Page 9 |
During the game you might see and even get in your collection some cards with special effects. These effects are marked as bold and in order to understand them, you can mouse over the effect for a quick Tool Tip. These are the most common effects you will find: Attack Counts Ranged Remove Item Double Ability Instant Effect Fast Strike Untappable Attack Effect |
Special Effects: Page 10 |
Mouse over the bold statements in the card below to read more details about the effect: |
Lets see what we've learned so far. On the screen above you can see where the cards and menus you read about are located. Remember that to zoom in on any card, just click on it and it will open on the card viewer. To play a card just drag it to the screen. If you are able to use the card, the screen will highlight it leting you drag it to the screen. Ederon has a very intuitive Tool-Tip system that will guide you though most of the scenarios you encounter so you will never get stuck. You can turn it on/off by clicking on this icon during the game: Be sure to ask players around and visit our forum at www.ederon.com |
Recap: Page 11 |
Have fun! |
Sumary: - Basics, page 1 - Basics, page 2 - Card Types, page 3 - Card Types, page 4 - Phases, page 5 - Classes, page 6 - Classes, page 7 - Attack Phase, page 8 - Attack Phase, page 9 - Special Effects, page 10 - Recap, page 11 |
How to Play |
How to Play |
<p align="center"></p> |
<p align="left"></p> |
<p align="left"></p> |
<p align="left"></p> |
<p align="center"></p> |
<p align="right"></p> |
<p align="left"></p> |
<p align="left"></p> |
<p align="center"></p> |
<p align="center"></p> |
<p align="left"></p> |
Lv |
Life points Cards on hand Left on deck Discard pile |
Life points Cards on hand Left on deck Discard pile |
Time |
<p align="left"></p> |
Page 1 |
<p align="left"></p> |
ActionScript [AS1/AS2]
Frame 1function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } System.useCodepage = true; fscommand ("showmenu", false); fscommand ("allowscale", false); fscommand ("fullscreen", false); MENU = new ContextMenu(); MENU.hideBuiltInItems(); _root.menu = MENU; stop(); __com_mochibot__("b2e2ad15", this, 10301, true);Frame 2function handleConnection(success) { if (success) { smartfox.login(_root.zone, _root.myName, ""); } else { _root.loginMsg = "Connection failed. Please check your internet settings."; cover._visible = false; nameBox.selectable = true; passBox.selectable = true; newaccBtn.enabled = true; enterBtn.enabled = true; enterBtn.useHandCursor = true; conError = false; } } function pingServer() { smartfox.roundTripBench(); } function sendChatMsg(msgBoxObj) { if ((smartfox.amIModerator && (msgBoxObj.text.substring(0, 18) == "/kickSelectedUser ")) && (_root.activeViewPlayerID)) { msg = msgBoxObj.text.substring(msgBoxObj.text.indexOf(" ") + 1); var dataObj = {}; dataObj.id = _root.activeViewPlayerID; dataObj.msg = msg; smartfox.sendXtMessage("$dmn", "kick", dataObj); msgBoxObj.text = ""; msg = ""; } else if ((smartfox.amIModerator && (msgBoxObj.text.substring(0, 17) == "/banSelectedUser ")) && (_root.activeViewPlayerID)) { msg = msgBoxObj.text.substring(msgBoxObj.text.indexOf(" ") + 1); var dataObj = {}; dataObj.id = _root.activeViewPlayerID; dataObj.msg = msg; smartfox.sendXtMessage("$dmn", "ban", dataObj); msgBoxObj.text = ""; msg = ""; } else if (smartfox.amIModerator && (msgBoxObj.text.substring(0, 9) == "/roomMsg ")) { msg = msgBoxObj.text.substring(msgBoxObj.text.indexOf(" ") + 1); smartfox.sendModeratorMessage(msg, it.gotoandplay.smartfoxserver.SmartFoxClient.MODMSG_TO_ROOM, smartfox.activeRoomId); msgBoxObj.text = ""; msg = ""; } else if (smartfox.amIModerator && (msgBoxObj.text.substring(0, 9) == "/zoneMsg ")) { msg = msgBoxObj.text.substring(msgBoxObj.text.indexOf(" ") + 1); smartfox.sendModeratorMessage(msg, it.gotoandplay.smartfoxserver.SmartFoxClient.MODMSG_TO_ZONE); msgBoxObj.text = ""; msg = ""; } else if (msgBoxObj.text.substring(0, 5) == "/help") { autoMsg(helpText, true); msgBoxObj.text = ""; } else if (msgBoxObj.text.substring(0, 5) == "/ping") { if (_root.myPing < 250) { pingMsg = "(Great)"; } else if (_root.myPing < 350) { pingMsg = "(Good)"; } else if (_root.myPing < 650) { pingMsg = "(Ok)"; } else { pingMsg = "(Poor)"; } autoMsg((("Latency: " + _root.myPing) + " milliseconds ") + pingMsg); msgBoxObj.text = ""; } else if (msgBoxObj.text.substring(0, 8) == "/soundfx") { if (playSounds) { playSounds = false; autoMsg("Sound Effects Off."); localSaves.data.soundsOff = true; localSaves.flush(); } else { playSounds = true; autoMsg("Sounds Effects On."); localSaves.data.soundsOff = false; localSaves.flush(); } msgBoxObj.text = ""; } else if (msgBoxObj.text.substring(0, 6) == "/music") { if (playMusic) { soundButton.gotoAndStop(2); playMusic = false; loadedSong.stop(); if (intervalVal) { clearInterval(intervalVal); } autoMsg("Music Off."); localSaves.data.musicOff = true; localSaves.flush(); } else { soundButton.gotoAndStop(1); playMusic = true; loadedSong.start(); intervalVal = setInterval(loopSong, 1); autoMsg("Music On."); localSaves.data.musicOff = false; localSaves.flush(); } msgBoxObj.text = ""; } else if (msgBoxObj.text.substring(0, 9) == "/autohelp") { if (!autoHelp) { autoHelp = true; autoMsg("Auto-Help On."); localSaves.data.autoHelpOff = false; localSaves.flush(); } else { autoHelp = false; autoMsg("Auto-Help Off."); localSaves.data.autoHelpOff = true; localSaves.flush(); } msgBoxObj.text = ""; } else if (msgBoxObj.text.substring(0, 1) == "/") { autoMsg("Unknown Command."); msgBoxObj.text = ""; } else if ((((((((((msgBoxObj.text != "") && (msgBoxObj.text != " ")) && (msgBoxObj.text != " ")) && (msgBoxObj.text.toLowerCase() != "fuck you")) && (msgBoxObj.text.toLowerCase() != "fuck")) && (msgBoxObj.text.toLowerCase() != "fucker")) && (msgBoxObj.text.toLowerCase() != "shit")) && (msgBoxObj.text.toLowerCase() != "ass")) && (msgBoxObj.text.toLowerCase() != "nigga")) && (msgBoxObj.text.toLowerCase() != "niga")) { _root.lastRoomSent = _root.selectedRoom; if ((_root.selectedRoom == 0) && _root.clan) { smartfox.sendPublicMessage(msgBoxObj.text, _root.clanRoomID); } else if ((_root.selectedRoom >= 0) && (_root.selectedRoom <= 8)) { if (_root.inLobby && (lobbyList.indexOf((">" + eval ("privateChatTab" + _root.selectedRoom).playerName) + "<") == -1)) { autoMsg("This player is offline or unavailable.", true); } else { smartfox.sendPrivateMessage(msgBoxObj.text, eval ("privateChatTab" + _root.selectedRoom).playerID, mainRoomID); msg = findAndReplace(msgBoxObj.text, "&", "&"); msg = findAndReplace(msg, "<", "<"); msg = findAndReplace(msg, ">", ">"); privateChat[_root.selectedRoom] = privateChat[_root.selectedRoom] + (((("<font color='#BBBBFF'><b>[ " + _root.myName) + " ]:</b> ") + msg) + "</font><br>"); eval ("privateChatTab" + _root.selectedRoom).lineNumber++; lineCount = privateChat[eval ("privateChatTab" + _root.selectedRoom).roomID].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } privateChat[eval ("privateChatTab" + _root.selectedRoom).roomID] = lineCount.join("<br>"); delete lineCount; gameChat.htmlText = privateChat[_root.selectedRoom]; gameChat.scroll = gameChat.maxscroll; } } else { smartfox.sendPublicMessage(msgBoxObj.text, _root.selectedRoom); } msgBoxObj.text = ""; } else { msgBoxObj.text = ""; } } System.security.loadPolicyFile("xmlsocket://216.55.137.18:9339"); var ip = "216.55.137.18"; var port = 9339; var zone = "Ederon Server 1"; System.security.allowDomain("*"); var smartfox = (new it.gotoandplay.smartfoxserver.SmartFoxClient()); smartfox.debug = false; smartfox.onConnection = handleConnection; smartfox.onLogin = function (resObj) { if (resObj.success) { _root.myId = smartfox.myUserId; } else { _root.loginMsg = resObj.error; cover._visible = false; nameBox.selectable = true; passBox.selectable = true; enterBtn.enabled = true; newaccBtn.enabled = true; enterBtn.useHandCursor = true; conError = false; smartfox.disconnect(); } }; smartfox.onRoomListUpdate = function (roomList) { smartfox.joinRoom(mainRoomID); _root.joiningRoom = "main"; }; smartfox.onRoomAdded = function (roomObj) { roomName = roomObj.getName(); if ((_root.creatingRoom == "clan") && (roomName == _root.clan)) { smartfox.joinRoom(roomObj.getId(), "", false, true); _root.joiningRoom = "clan"; } else if ((((roomName == ("random_" + smartfox.myUserId)) && (!_root.searchingGame)) && (_root.inLobby)) && (_root.gameType == "random")) { smartfox.joinRoom(roomObj.getId(), "", false, true); _root.joiningRoom = "game"; } else if (((roomName == ("challenge_" + smartfox.myUserId)) && (_root.inLobby)) && (_root.gameType == "challenge")) { smartfox.joinRoom(roomObj.getId(), "", false, true); _root.joiningRoom = "game"; } delete roomName; }; smartfox.onJoinRoomError = function (errorMsg) { if ((_root.joiningRoom == "clan") && (errorMsg != "User is already in this room!")) { _root.creatingRoom = "clan"; var _local2 = new Object(); _local2.name = _root.clan; _local2.password = ""; _local2.exitCurrentRoom = false; _local2.maxUsers = 10000; smartfox.createRoom(_local2); _root.joiningRoom = ""; } else if ((_root.joiningRoom == "game") && (_root.gameType == "random")) { _root.searchingGame = true; _root.timesSearched = 0; _root.timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } searchGameInterval = setInterval(searchGame, 1500); _root.joiningRoom = ""; } else if ((_root.joiningRoom == "game") && (_root.gameType == "challenge")) { waitingBattle.displayText.htmlText = "<font color='#FF6666'>No Response!</font>"; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.waitingBattleAnimation.stop(); } else if (_root.joiningRoom == "trade") { publicChat[tradeRoomID] = "<font color='#33CCFF'>You are now on trade chat.</font><br>"; tradeChatTab.tabName.htmlText = "<font color='#66FF99'>Trade</font>"; tradeChatTab._alpha = 100; tradeChatTab.enabled = true; tradeChatTab.lineNumber = 1; if (!_root.inManager) { if (_root.clan) { _root.creatingRoom = "clan"; var _local2 = new Object(); _local2.name = _root.clan; _local2.password = ""; _local2.exitCurrentRoom = false; _local2.maxUsers = 10000; smartfox.createRoom(_local2); } else { randomMatch._alpha = 100; randomMatch.enabled = true; uncolorize(cardManager); cardManager.enabled = true; } } else { tradeChatTab.gameChat.htmlText = publicChat[tradeRoomID]; tradeChatTab.gameChat.scroll = gameChat.maxscroll; } _root.joiningRoom = ""; } else { _root.joiningRoom = ""; } }; smartfox.onCreateRoomError = function (errorMsg) { if (_root.creatingRoom == "clan") { _root.joiningRoom = "clan"; var _local2 = smartfox.getRoom(_root.clan); smartfox.joinRoom(_local2.getId(), "", false, true); _root.creatingRoom = ""; } else if ((_root.creatingRoom == "game") && (_root.gameType == "random")) { _root.searchingGame = true; _root.timesSearched = 0; _root.timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } searchGameInterval = setInterval(searchGame, 1500); _root.creatingRoom = ""; } else if ((_root.creatingRoom == "game") && (_root.gameType == "challenge")) { waitingBattle.displayText.htmlText = "<font color='#FF6666'>No Response!</font>"; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.waitingBattleAnimation.stop(); } else { _root.creatingRoom = ""; } }; smartfox.onRoundTripResponse = function (elapsed) { totalPingTime = totalPingTime + (elapsed / 2); pingCount++; _root.myPing = Math.round(totalPingTime / pingCount); }; smartfox.onJoinRoom = function (roomObj) { if (roomObj.getId() == mainRoomID) { totalPingTime = 0; pingCount = 0; var _local9 = new Object(); _local9.$picture = _root.myPicture; _local9.$clan = _root.clan; _local9.$level = Number(_root.myLevel); _local9.$ranking = _root.ranking; _local9.$accType = _root.accType; _local9.chatRoom = 0; _local9.inGame = 0; if (smartfox.amIModerator) { _local9.$mod = 1; } smartfox.setBuddyVariables(_local9); var _local8 = new Object(); _local8.picture = _root.myPicture; _local8.clan = _root.clan; _local8.level = Number(_root.myLevel); _local8.ranking = _root.ranking; _local8.accType = _root.accType; _local8.chatRoom = 0; _local8.inGame = 0; _local8.searching = 0; smartfox.setUserVariables(_local8); smartfox.roundTripBench(); if (pingInterval != null) { clearInterval(pingInterval); } pingInterval = setInterval(pingServer, 30000); delete horse_eye.onEnterFrame; _root.joiningRoom = ""; if (!lobbyLogin) { gotoAndStop ("profile"); } } else if (roomObj.getId() == lobbyRoomID) { var _local8 = new Object(); _local8.chatRoom = 1; _local8.inGame = 0; smartfox.setUserVariables(_local8); var _local9 = new Object(); _local9.chatRoom = 1; _local9.inGame = 0; smartfox.setBuddyVariables(_local9); if (_root.clearVarsLobby) { publicChat[lobbyRoomID] = "<b><font color='#33CCFF'>>> Welcome back!</font></b><br>"; randomMatch._alpha = 100; randomMatch.enabled = true; uncolorize(cardManager); cardManager.enabled = true; delete _root.clearVarsLobby; } else { publicChat[lobbyRoomID] = "<font color='#33CCFF'>Welcome to Ederon Trading Card Game!</font><br>"; } lobbyChatTab.lineNumber = 1; if (_root.accType == "beginner") { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (("<b><font color='#FFCC00'>>> <font color='#FF6600'><a href='" + webpage) + "/shopping/upgradeSetup.asp' target='_blank'>Click here</a></font> and see the advantages of having an advanced account!</font></b><br>"); lobbyChatTab.lineNumber++; } if (smartfox.amIModerator) { helpText = commandsList + "<br>/zoneMsg [msg]: Send a message to everyone online.<br>/roomMsg [msg]: Send a message to everyone in the room.<br>/kickSelectedUser [msg]: Kick selected user and send him a message.<br>/banSelectedUser [msg]: Ban selected user and send him a message."; } else { helpText = commandsList; } autoMsg(helpText); if (_root.lobbyAnnounce) { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (("<b><font color='#FF6666'>" + _root.lobbyAnnounce) + "</font></b><br>"); } gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; var _local11 = smartfox.getRoom(mainRoomID); var _local5 = _local11.getUserList(); _local5.sort(); modList = ""; advList = ""; begList = ""; clanList = ""; playersList.htmlText = ""; for (var _local10 in _local5) { var _local2 = _local5[_local10]; var _local4 = _local2.isModerator(); var _local3 = _local2.getVariables(); if ((_local3.chatRoom == 1) || (_local2.getId() == smartfox.myUserId)) { if (_local3.inGame == 1) { displayIcon = "<img src='battleIcon' width='12' height='11'>"; } else { displayIcon = "<img src='chatIcon' width='12' height='11'>"; } if (_local4) { modList = modList + (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + _local2.getId()) + "'><font color='#00FFFF'>") + _local2.getName()) + "</font></a><br>"); } else if (_local3.accType == "advanced") { advList = advList + (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + _local2.getId()) + "'><font color='#FFCC66'>") + _local2.getName()) + "</font></a><br>"); } else { begList = begList + (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + _local2.getId()) + "'>") + _local2.getName()) + "</a><br>"); } if (_local3.clan == _root.clan) { clanList = clanList + (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + _local2.getId()) + "'><font color='#66FF99'>") + _local2.getName()) + "</font></a><br>"); } } } clanList.htmlText = clanList; lobbyList = (modList + advList) + begList; selectedList = "Lobby"; playersList.htmlText = lobbyList; if (friendsList == "") { smartfox.loadBuddyList(); } smartfox.joinRoom(tradeRoomID, "", false, true); _root.joiningRoom = "trade"; } else if (roomObj.getId() == tradeRoomID) { _root.joiningRoom = ""; publicChat[tradeRoomID] = "<font color='#33CCFF'>You are now on trade chat.</font><br>"; tradeChatTab.tabName.htmlText = "<font color='#66FF99'>Trade</font>"; tradeChatTab._alpha = 100; tradeChatTab.enabled = true; tradeChatTab.lineNumber = 1; if (!_root.inManager) { if (_root.clan) { _root.creatingRoom = "clan"; var _local6 = new Object(); _local6.name = _root.clan; _local6.password = ""; _local6.exitCurrentRoom = false; _local6.maxUsers = 10000; smartfox.createRoom(_local6); } else { randomMatch._alpha = 100; randomMatch.enabled = true; uncolorize(cardManager); cardManager.enabled = true; } } else { tradeChatTab.gameChat.htmlText = publicChat[tradeRoomID]; tradeChatTab.gameChat.scroll = gameChat.maxscroll; } } else if (roomObj.getName() == _root.clan) { _root.creatingRoom = ""; _root.joiningRoom = ""; randomMatch._alpha = 100; randomMatch.enabled = true; uncolorize(cardManager); cardManager.enabled = true; privateChatTab0.privChatName = ((_root.clan.length > 5) ? (_root.clan.substr(0, 5) + "...") : (_root.clan)); privateChatTab0.playerName = _root.clan; privateChat[0] = ("<font color='#33CCFF'>You are now on " + _root.clan) + "'s chat.</font><br>"; privateChat[0] = privateChat[0] + (("<font color='#66FF99'>" + _root.clanWelcomeMsg) + "</font><br>"); privateChatTab0.tabName.htmlText = ("<font color='#66FF99'>" + privateChatTab0.privChatName) + "</font>"; privateChatTab0._alpha = 100; privateChatTab0.enabled = true; _root.clanRoomID = roomObj.getId(); } else if (roomObj.isGame()) { _root.gameRoomID = roomObj.getId(); if (_root.creatingRoom == "game") { _root.waitingPlayer = true; _root.timesWaited = 0; if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } waitingGameResponseInterval = setInterval(waitingGameResponse, 10000); } else { smartfox.leaveRoom(lobbyRoomID); if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } _root.myGameId = 1; gotoGame(); } _root.creatingRoom = ""; _root.joiningRoom = ""; } }; smartfox.onBuddyList = function (list) { offlineFriends = ""; onlineFriends = ""; blockedFriends = ""; friendsModList = ""; friendsAdvList = ""; friendsBegList = ""; displayIcon = ""; for (var _local3 in list) { if ((((_local3 != "search") && (_local3 != "copy")) && (_local3 != "indexOf")) && (_local3 != "lastIndexOf")) { if (blockUser == list[_local3].name) { smartfox.setBuddyBlockStatus(blockUser, true); if (list[_local3].id == _root.activeViewPlayerID) { uncolorize(playerViewer.block); playerViewer.block.gotoAndStop(2); playerViewer.block.enabled = true; } } if (list[_local3].isBlocked) { blockedFriends = (((("<img src='blockIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + list[_local3].name) + "'><font color='#FF3333'>") + list[_local3].name) + "</font></a><br>") + blockedFriends; } else if ((!list[_local3].isOnline) && (!list[_local3].isBlocked)) { offlineFriends = (((("<img src='offlineIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + list[_local3].name) + "'><font color='#AAAAAA'>") + list[_local3].name) + "</font></a><br>") + offlineFriends; } else if (list[_local3].isOnline && (!list[_local3].isBlocked)) { if (list[_local3].variables.inGame == 1) { displayIcon = "<img src='battleIcon' width='12' height='11'>"; } else if (list[_local3].variables.chatRoom == 1) { displayIcon = "<img src='chatIcon' width='12' height='11'>"; } else { displayIcon = "<img src='managerIcon' width='12' height='11'>"; } if (list[_local3].variables.$mod == 1) { friendsModList = (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + list[_local3].id) + "'><font color='#00FFFF'>") + list[_local3].name) + "</font></a><br>") + friendsModList; } else if (list[_local3].variables.$accType == "advanced") { friendsAdvList = (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + list[_local3].id) + "'><font color='#FFCC66'>") + list[_local3].name) + "</font></a><br>") + friendsAdvList; } else if (list[_local3].variables.$accType == "beginner") { friendsBegList = (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + list[_local3].id) + "'>") + list[_local3].name) + "</a><br>") + friendsBegList; } onlineFriends = (friendsModList + friendsAdvList) + friendsBegList; } } } blockUser = ""; friendsList = (onlineFriends + blockedFriends) + offlineFriends; if (selectedList == "Friends") { playersList.htmlText = friendsList; } }; smartfox.onBuddyListUpdate = function (buddy) { if (buddy.isOnline && (!buddy.isBlocked)) { if (offlineFriends.indexOf((">" + buddy.name) + "<") != -1) { lineLocation = offlineFriends.indexOf((">" + buddy.name) + "<"); prevBR = offlineFriends.lastIndexOf("<img ", lineLocation); nextBR = offlineFriends.indexOf("<br>", lineLocation) + 4; offlineFriends = offlineFriends.substring(0, prevBR) + offlineFriends.substring(nextBR); } if (onlineFriends.indexOf((">" + buddy.name) + "<") == -1) { if (buddy.variables.$mod == 1) { friendsModList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + buddy.id) + "'><font color='#00FFFF'>") + buddy.name) + "</font></a><br>") + friendsModList; } else if (buddy.variables.$accType == "advanced") { friendsAdvList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + buddy.id) + "'><font color='#FFCC66'>") + buddy.name) + "</font></a><br>") + friendsAdvList; } else if (buddy.variables.$accType == "beginner") { friendsBegList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + buddy.id) + "'>") + buddy.name) + "</a><br>") + friendsBegList; } onlineFriends = (friendsModList + friendsAdvList) + friendsBegList; friendsList = (onlineFriends + blockedFriends) + offlineFriends; if (unblockUser != buddy.name) { autoMsg(buddy.name + " has logged in."); } else { smartfox.removeBuddy(unblockUser); unblockUser = ""; } } else { if (buddy.variables.inGame == 1) { displayIcon = "<img src='battleIcon' width='12' height='11'>"; } else if (buddy.variables.chatRoom == 1) { displayIcon = "<img src='chatIcon' width='12' height='11'>"; } else { displayIcon = "<img src='managerIcon' width='12' height='11'>"; } if (friendsModList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsModList; } if (friendsAdvList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsAdvList; } if (friendsBegList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsBegList; } lineLocation = modifyList.indexOf((">" + buddy.name) + "<"); imgStart = modifyList.lastIndexOf("<img ", lineLocation); imgEnd = modifyList.lastIndexOf("'11'>", lineLocation) + 5; modifyList = (modifyList.substring(0, imgStart) + displayIcon) + modifyList.substring(imgEnd); if (friendsModList.indexOf((">" + buddy.name) + "<") > -1) { friendsModList = modifyList; } if (friendsAdvList.indexOf((">" + buddy.name) + "<") > -1) { friendsAdvList = modifyList; } if (friendsBegList.indexOf((">" + buddy.name) + "<") > -1) { friendsBegList = modifyList; } onlineFriends = (friendsModList + friendsAdvList) + friendsBegList; friendsList = (onlineFriends + blockedFriends) + offlineFriends; } } else if (!buddy.isBlocked) { if (onlineFriends.indexOf((">" + buddy.name) + "<") != -1) { if (friendsModList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsModList; } if (friendsAdvList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsAdvList; } if (friendsBegList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsBegList; } lineLocation = modifyList.indexOf((">" + buddy.name) + "<"); prevBR = modifyList.lastIndexOf("<img ", lineLocation); nextBR = modifyList.indexOf("<br>", lineLocation) + 4; modifyList = modifyList.substring(0, prevBR) + modifyList.substring(nextBR); if (friendsModList.indexOf((">" + buddy.name) + "<") > -1) { friendsModList = modifyList; } if (friendsAdvList.indexOf((">" + buddy.name) + "<") > -1) { friendsAdvList = modifyList; } if (friendsBegList.indexOf((">" + buddy.name) + "<") > -1) { friendsBegList = modifyList; } onlineFriends = (friendsModList + friendsAdvList) + friendsBegList; offlineFriends = (((("<img src='offlineIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + buddy.name) + "'><font color='#AAAAAA'>") + buddy.name) + "</font></a><br>") + offlineFriends; friendsList = (onlineFriends + blockedFriends) + offlineFriends; autoMsg(buddy.name + " has logged out."); } } if (selectedList == "Friends") { playersList.htmlText = friendsList; } }; smartfox.onBuddyListError = function (error) { autoMsg(error); }; smartfox.onConnectionLost = function () { if (numCardsLoaded) { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } z = 1; while (z <= totalPages) { eval ("pageTab" + z).removeMovieClip(); z++; } delete myManagerCards; } clearGameVariables(); smartfox.onObjectReceived = function () { }; n = 0; while (n <= 8) { privateChat[n] = ""; n++; } if (pingInterval != null) { clearInterval(pingInterval); } delete inLobby; delete inManager; delete inGame; delete gameRoomID; gotoAndStop ("login"); }; smartfox.onUserVariablesUpdate = function (user, changedVars) { if (changedVars.inGame) { if (user.getVariable("inGame") == 1) { if (modList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = modList; } if (advList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = advList; } if (begList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = begList; } lineLocation = modifyList.indexOf((">" + user.getName()) + "<"); imgStart = modifyList.lastIndexOf("<img ", lineLocation); imgEnd = modifyList.lastIndexOf("'11'>", lineLocation) + 5; modifyList = (modifyList.substring(0, imgStart) + "<img src='battleIcon' width='12' height='11'>") + modifyList.substring(imgEnd); if (modList.indexOf((">" + user.getName()) + "<") > -1) { modList = modifyList; } if (advList.indexOf((">" + user.getName()) + "<") > -1) { advList = modifyList; } if (begList.indexOf((">" + user.getName()) + "<") > -1) { begList = modifyList; } lobbyList = (modList + advList) + begList; } else if (user.getVariable("inGame") == 0) { if (modList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = modList; } if (advList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = advList; } if (begList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = begList; } lineLocation = modifyList.indexOf((">" + user.getName()) + "<"); imgStart = modifyList.lastIndexOf("<img ", lineLocation); imgEnd = modifyList.lastIndexOf("'11'>", lineLocation) + 5; modifyList = (modifyList.substring(0, imgStart) + "<img src='chatIcon' width='12' height='11'>") + modifyList.substring(imgEnd); if (modList.indexOf((">" + user.getName()) + "<") > -1) { modList = modifyList; } if (advList.indexOf((">" + user.getName()) + "<") > -1) { advList = modifyList; } if (begList.indexOf((">" + user.getName()) + "<") > -1) { begList = modifyList; } lobbyList = (modList + advList) + begList; } } if (changedVars.chatRoom) { if ((user.getVariable("chatRoom") == 0) && (lobbyList.indexOf((">" + user.getName()) + "<") != 1)) { if (modList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = modList; } if (advList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = advList; } if (begList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = begList; } lineLocation = modifyList.indexOf((">" + user.getName()) + "<"); prevBR = modifyList.lastIndexOf("<img ", lineLocation); nextBR = modifyList.indexOf("<br>", lineLocation) + 4; modifyList = modifyList.substring(0, prevBR) + modifyList.substring(nextBR); if (modList.indexOf((">" + user.getName()) + "<") > -1) { modList = modifyList; } if (advList.indexOf((">" + user.getName()) + "<") > -1) { advList = modifyList; } if (begList.indexOf((">" + user.getName()) + "<") > -1) { begList = modifyList; } lobbyList = (modList + advList) + begList; if (clanList.indexOf((">" + user.getName()) + "<") != -1) { lineLocation = clanList.indexOf((">" + user.getName()) + "<"); prevBR = clanList.lastIndexOf("<img ", lineLocation); nextBR = clanList.indexOf("<br>", lineLocation) + 4; clanList = clanList.substring(0, prevBR) + clanList.substring(nextBR); } } } if (selectedList == "Lobby") { playersList.htmlText = lobbyList; } }; smartfox.onUserLeaveRoom = function (fromRoom, userId, userName) { if (_root.activeViewPlayerID == userId) { playerViewer._alpha = 0; playerViewer.chat.enabled = false; playerViewer.addToFriends.enabled = false; playerViewer.block.enabled = false; playerViewer.challengePlayer.enabled = false; delete _root.activeViewPlayerID; } if (fromRoom == _root.mainRoomID) { if (lobbyList.indexOf((">" + userName) + "<") != -1) { if (modList.indexOf((">" + userName) + "<") > -1) { modifyList = modList; } if (advList.indexOf((">" + userName) + "<") > -1) { modifyList = advList; } if (begList.indexOf((">" + userName) + "<") > -1) { modifyList = begList; } lineLocation = modifyList.indexOf((">" + userName) + "<"); prevBR = modifyList.lastIndexOf("<img ", lineLocation); nextBR = modifyList.indexOf("<br>", lineLocation) + 4; modifyList = modifyList.substring(0, prevBR) + modifyList.substring(nextBR); if (modList.indexOf((">" + userName) + "<") > -1) { modList = modifyList; } if (advList.indexOf((">" + userName) + "<") > -1) { advList = modifyList; } if (begList.indexOf((">" + userName) + "<") > -1) { begList = modifyList; } lobbyList = (modList + advList) + begList; if (clanList.indexOf((">" + userName) + "<") != -1) { lineLocation = clanList.indexOf((">" + userName) + "<"); prevBR = clanList.lastIndexOf("<img ", lineLocation); nextBR = clanList.indexOf("<br>", lineLocation) + 4; clanList = clanList.substring(0, prevBR) + clanList.substring(nextBR); } } } else if (fromRoom == _root.gameRoomID) { if (timer) { resetAndStopTimer(); } if (opName && (loadedBackground)) { autoMsg(opName + " has left the game."); } if (((!gameisOver) && (opName)) && (loadedBackground)) { gameisOver = true; gameOver("win"); } else if (!loadedBackground) { delete opName; toTimer = 8; gameisOver = true; connectionTimeOut(); } } if (selectedList == "Lobby") { playersList.htmlText = lobbyList; } else if (selectedList == "Clan") { playersList.htmlText = clanList; } }; smartfox.onUserEnterRoom = function (fromRoom, user) { roomObj = smartfox.getRoom(fromRoom); if (fromRoom == _root.lobbyRoomID) { if (lobbyList.indexOf((">" + user.getName()) + "<") == -1) { var _local4 = user.isModerator(); var _local3 = user.getVariables(); if (_local4) { modList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + user.getId()) + "'><font color='#00FFFF'>") + user.getName()) + "</font></a><br>") + modList; } else if (_local3.accType == "advanced") { advList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + user.getId()) + "'><font color='#FFCC66'>") + user.getName()) + "</font></a><br>") + advList; } else { begList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + user.getId()) + "'>") + user.getName()) + "</a><br>") + begList; } if (_local3.clan == _root.clan) { clanList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + user.getId()) + "'><font color='#66FF99'>") + user.getName()) + "</font></a><br>") + clanList; } lobbyList = (modList + advList) + begList; } } else if (_root.gameRoomName == roomObj.getName()) { smartfox.leaveRoom(lobbyRoomID); if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } _root.myGameId = 2; gotoGame(); } if (selectedList == "Lobby") { playersList.htmlText = lobbyList; } else if (selectedList == "Clan") { playersList.htmlText = clanList; } }; smartfox.onPublicMessage = function (msg, user, roomId) { msg = findAndReplace(msg, "&", "&"); msg = findAndReplace(msg, "<", "<"); msg = findAndReplace(msg, ">", ">"); var _local6 = user.isModerator(); var _local7 = user.getVariables(); var _local2 = Array(); if (roomId == clanRoomID) { privateChat[0] = privateChat[0] + (((("<font color='#66FF99'><b>[ " + user.getName()) + " ]:</b> ") + msg) + "</font><br>"); privateChatTab0.lineNumber++; _local2 = privateChat[0].split("<br>"); while (_local2.length > 40) { _local2.shift(); } privateChat[0] = _local2.join("<br>"); if (_root.selectedRoom == 0) { gameChat.htmlText = privateChat[0]; gameChat.scroll = gameChat.maxscroll; } else { privateChatTab0.tabName.htmlText = ("<font color='#66FF99'>" + privateChatTab0.privChatName) + "</font>"; } } else { if (_local6) { publicChat[roomId] = publicChat[roomId] + (((((("<font color='#00FFFF'><b><a href='asfunction:viewPlayerDetails," + user.getId()) + "'>[ ") + user.getName()) + " ]</a>:</b> ") + msg) + "</font><br>"); } else if (_local7.accType == "advanced") { publicChat[roomId] = publicChat[roomId] + (((((("<font color='#FFFFCC'><b><a href='asfunction:viewPlayerDetails," + user.getId()) + "'>[ ") + user.getName()) + " ]</a>:</b> ") + msg) + "</font><br>"); } else { publicChat[roomId] = publicChat[roomId] + (((((("<b><a href='asfunction:viewPlayerDetails," + user.getId()) + "'>[ ") + user.getName()) + " ]</a>:</b> ") + msg) + "<br>"); } if (roomId == lobbyRoomID) { lobbyChatTab.lineNumber++; } else { tradeChatTab.lineNumber++; } _local2 = publicChat[roomId].split("<br>"); while (_local2.length > 40) { _local2.shift(); } publicChat[roomId] = _local2.join("<br>"); if (_root.selectedRoom == roomId) { if (_root.inManager) { tradeChatTab.gameChat.htmlText = publicChat[roomId]; tradeChatTab.gameChat.scroll = tradeChatTab.gameChat.maxscroll; } else { gameChat.htmlText = publicChat[roomId]; gameChat.scroll = gameChat.maxscroll; } } else if (roomId == lobbyRoomID) { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Lobby</font>"; } else if (roomId == tradeRoomID) { tradeChatTab.tabName.htmlText = "<font color='#66FF99'>Trade</font>"; } } }; smartfox.onPrivateMessage = function (msg, sender) { if (sender.getId() != smartfox.myUserId) { msg = findAndReplace(msg, "&", "&"); msg = findAndReplace(msg, "<", "<"); msg = findAndReplace(msg, ">", ">"); var lineCount = Array(); if (msg == "/gameRequest") { if (_root.searchingGame) { _root.searchingGame = false; _root.timesSearched = 0; _root.timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } _root.creatingRoom = "game"; var room = new Object(); room.name = "random_" + sender.getId(); room.password = ""; room.isGame = true; room.exitCurrentRoom = false; room.maxUsers = 2; smartfox.createRoom(room); _root.gameRoomName = "random_" + sender.getId(); } else { smartfox.sendPrivateMessage("/denyRequest", sender.getId(), lobbyRoomID); } } else if (msg == "/denyRequest") { _root.searchingGame = true; _root.timesSearched = 0; _root.timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } searchGameInterval = setInterval(searchGame, 1500); } else if (msg == "/challengeRequest") { if ((_root.gameType != "") || (!_root.inLobby)) { smartfox.sendPrivateMessage("/unavailable", sender.getId(), lobbyRoomID); } else { if (playSounds) { challengeRequest.start(); } autoMsg(((((("<font color='#00FF99'>" + sender.getName()) + " has challenged you to a friendly match!</font> <font color='#00CCFF'><a href='asfunction:acceptChallenge,") + sender.getId()) + "'><Accept></a></font> <font color='#FF6666'><a href='asfunction:declineChallenge,") + sender.getId()) + "'><Decline></a></font>"); } } else if (msg == "/declineChallenge") { if (waitingBattle._alpha == 100) { if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } waitingBattle.displayText.htmlText = "<font color='#FF6666'>Challenge declined!</font>"; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.waitingBattleAnimation.stop(); } } else if (msg == "/cancelChallenge") { if (_root.inLobby) { var lineCount = Array(); lineCount = publicChat[lobbyRoomID].split("<br>"); challengeLine = lineCount.lastIndexOf(("<a href='asfunction:acceptChallenge," + sender.getId()) + "'>"); lineCount[challengeLine] = lineCount[challengeLine].substr(0, lineCount[challengeLine].lastIndexOf("<font color='#00CCFF'>")) + "Challenge Canceled.</font></font>"; publicChat[lobbyRoomID] = lineCount.join("<br>"); if (_root.selectedRoom == lobbyRoomID) { gameChat.htmlText = publicChat[lobbyRoomID]; } } } else if (msg == "/unavailable") { if (waitingBattle._alpha == 100) { waitingBattle.displayText.htmlText = "<font color='#FF6666'>Player unavailable.</font>"; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.waitingBattleAnimation.stop(); } } else { n = tabCheck; while (n <= 8) { if (eval ("privateChatTab" + n).playerName == sender.getName()) { privateChat[eval ("privateChatTab" + n).roomID] = privateChat[eval ("privateChatTab" + n).roomID] + (((("<font color='#BBBBFF'><b>[ " + sender.getName()) + " ]:</b> ") + msg) + "</font><br>"); eval ("privateChatTab" + n).lineNumber++; lineCount = privateChat[eval ("privateChatTab" + n).roomID].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } privateChat[eval ("privateChatTab" + n).roomID] = lineCount.join("<br>"); if ((eval ("privateChatTab" + _root.selectedRoom).playerName == sender.getName()) || ((sender.getId() == smartfox.myUserId) && (_root.lastRoomSent == _root.selectedRoom))) { gameChat.htmlText = privateChat[eval ("privateChatTab" + n).roomID]; gameChat.scroll = gameChat.maxscroll; } else { if (playSounds) { privateMessage.start(); } eval ("privateChatTab" + n).tabName.htmlText = ("<font color='#66FF99'>" + eval ("privateChatTab" + n).privChatName) + "</font>"; } break; } if (!eval ("privateChatTab" + n).enabled) { if (playSounds) { privateMessage.start(); } eval ("privateChatTab" + n).lineNumber = 2; eval ("privateChatTab" + n)._alpha = 100; eval ("privateChatTab" + n).enabled = true; eval ("privateChatTab" + n).playerID = sender.getId(); eval ("privateChatTab" + n).playerName = sender.getName(); eval ("privateChatTab" + n).privChatName = ((sender.getName().length > 5) ? (sender.getName().substr(0, 5) + "...") : sender.getName()); eval ("privateChatTab" + n).tabName.htmlText = ("<font color='#66FF99'>" + eval ("privateChatTab" + n).privChatName) + "</font>"; privateChat[eval ("privateChatTab" + n).roomID] = ("<font color='#33CCFF'>Now talking to " + sender.getName()) + "</font><br>"; privateChat[eval ("privateChatTab" + n).roomID] = privateChat[eval ("privateChatTab" + n).roomID] + (((("<font color='#BBBBFF'><b>[ " + sender.getName()) + " ]:</b> ") + msg) + "</font><br>"); break; } if (n == 8) { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (((((("<font color='#BBBBFF'><b><a href='asfunction:viewPlayerDetails," + sender.getId()) + "'>[ ") + sender.getName()) + " ]</a>:</b> ") + msg) + "</font><br>"); if (_root.selectedRoom == lobbyRoomID) { gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Lobby</font>"; } } n++; } } delete lineCount; } }; smartfox.onAdminMessage = function (msg) { if (inLobby) { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (("<font color='#FF6666'>" + msg) + "</font><br>"); if (selectedRoom == lobbyRoomID) { gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Lobby</font>"; } } else if (inGame) { publicChat[gameRoomID] = publicChat[gameRoomID] + (("<font color='#FF6666'>" + msg) + "</font><br>"); if (selectedRoom == gameRoomID) { gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Game</font>"; } } }; smartfox.onModeratorMessage = function (msg) { if (inLobby) { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (("<font color='#FF6666'>" + msg) + "</font><br>"); if (selectedRoom == lobbyRoomID) { gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Lobby</font>"; } } else if (inGame) { publicChat[gameRoomID] = publicChat[gameRoomID] + (("<font color='#FF6666'>" + msg) + "</font><br>"); if (selectedRoom == gameRoomID) { gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Game</font>"; } } }; function findAndReplace(x, find, replace) { if ((x == null) || (find == null)) { return(x); } if (x.indexOf(find) < 0) { return(x); } var _local6 = find.length; var _local2 = 0; var _local1 = x.indexOf(find, _local2); var _local4 = ""; while (_local1 > -1) { _local4 = _local4 + x.substring(_local2, _local1); _local4 = _local4 + replace; _local2 = _local1 + _local6; _local1 = x.indexOf(find, _local2); } _local4 = _local4 + x.substring(_local2); return(_local4); } function colorize(obj, color) { colorBg = new Color(obj); colorBg.setTransform(color); } function uncolorize(obj) { colorBg = new Color(obj); colorBg.setTransform(uncolor); } function validateString(str) { validation = true; if (((((((((((((((((((((((((((((((((((((((((((((((((str.length < 1) || (str == "indexOf")) || (str == "search")) || (str == "copy")) || (str.indexOf("fuck") > -1)) || (str.indexOf("whore") > -1)) || (str.indexOf("shit") > -1)) || (str.indexOf("function") > -1)) || (str.indexOf("view") > -1)) || (str.indexOf("font") > -1)) || (str.indexOf("challenge") > -1)) || (str.indexOf("accept") > -1)) || (str.indexOf("deny") > -1)) || (str.indexOf("href") > -1)) || (str.indexOf(" ") == (str.length - 1))) || (str.indexOf(" ") == 0)) || (str.indexOf("#") > -1)) || (str.indexOf("(") > -1)) || (str.indexOf(")") > -1)) || (str.indexOf("<") > -1)) || (str.indexOf(">") > -1)) || (str.indexOf("@") > -1)) || (str.indexOf("<") > -1)) || (str.indexOf(">") > -1)) || (str.indexOf("'") > -1)) || (str.indexOf("\"") > -1)) || (str.indexOf("$") > -1)) || (str.indexOf("%") > -1)) || (str.indexOf("&") > -1)) || (str.indexOf("/") > -1)) || (str.indexOf("\\") > -1)) || (str.indexOf("^") > -1)) || (str.indexOf(",") > -1)) || (str.indexOf(";") > -1)) || (str.indexOf("!") > -1)) || (str.indexOf("+") > -1)) || (str.indexOf("=") > -1)) || (str.indexOf("\u00E1") > -1)) || (str.indexOf("\u00E0") > -1)) || (str.indexOf("\u00E9") > -1)) || (str.indexOf("\u00E8") > -1)) || (str.indexOf("\u00ED") > -1)) || (str.indexOf("\u00EC") > -1)) || (str.indexOf("\u00F3") > -1)) || (str.indexOf("\u00F2") > -1)) || (str.indexOf("\u00FA") > -1)) || (str.indexOf("\u00F9") > -1)) || (str.indexOf("?") > -1)) || (str.indexOf("!") > -1)) { validation = false; } return(validation); } function openPage(page) { getURL ("http://www.ederon.com/" + page, "_blank"); } function activateDragBox(obj) { obj.dragBox.onPress = function () { startDrag (obj); }; obj.dragBox.onRelease = function () { stopDrag(); _root.confirmBoxXpos = obj._x; _root.confirmBoxYpos = obj._y; }; } function okResponseBox2(msg) { _root.attachMovie("okResponse", "okResponse2", _root.confirmBoxDepth); okResponse2.windowText = msg; okResponse2._x = _root.confirmBoxXpos; okResponse2._y = _root.confirmBoxYpos; okResponse2.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.cancel.textBox.text = "Ok"; this.cancel.onRelease = function () { _root.okResponse2.removeMovieClip(); }; } }; } function okCancelResponseBox(from) { _root.attachMovie("okCancelResponse", "okCancelResponse", _root.confirmBoxDepth + 100); windowText = ""; okCancelResponse.windowText = windowText; okCancelResponse._x = _root.confirmBoxXpos; okCancelResponse._y = _root.confirmBoxYpos; okCancelResponse.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.ok.textBox.text = "Yes"; this.ok.onRelease = function () { if (from == "") { } _root.okCancelResponse.removeMovieClip(); }; this.cancel.textBox.text = "No"; this.cancel.onRelease = function () { _root.okCancelResponse.removeMovieClip(); }; } }; } function okCancelResponseBlackBox(from) { _root.attachMovie("okCancelResponseBlack", "okCancelResponseBlack", _root.confirmBoxDepth + 100); if (from == "surrenderFromGame") { windowText = "Are you sure you want to surrender?"; } else if (from == "newFromManager") { windowText = "Unsaved information will be lost. Are you sure you want to start a new deck?"; } else if (from == "loadFromManager") { windowText = "Unsaved information will be lost. Are you sure you want to load a new deck?"; } else if (from == "deleteFromManager") { windowText = "The current deck will be deleted and the cards retrived. Are you sure?"; } else if (from == "menuFromManager") { windowText = "Unsaved information will be lost. Are you sure you want to go back to the menu?"; } else if (from == "lobbyFromManager") { windowText = "Unsaved information will be lost. Are you sure you want to go back to the lobby?"; } else if (from == "menuFromLobby") { windowText = "Are you sure you want to leave the lobby?"; } else if (from == "logoutFromManager") { windowText = "Unsaved information will be lost. Are you sure you want to logout?"; } else if (from == "logoutFromLobby") { windowText = "Are you sure you want to leave the game?"; } else if (from == "logoutFromGame") { windowText = "Are you sure you want to leave the game?"; } okCancelResponseBlack.windowText.text = windowText; okCancelResponseBlack._x = 320; okCancelResponseBlack._y = 240; okCancelResponseBlack.ok.onRelease = function () { if (from == "surrenderFromGame") { gameisOver = true; gameOver("lose"); sendGameOver("lose"); } else if (from == "newFromManager") { reloadCardManager("new"); } else if (from == "loadFromManager") { reloadCardManager("load"); } else if (from == "deleteFromManager") { deleteDeckLoaded(); } else if ((from == "menuFromManager") || (from == "lobbyFromManager")) { if (numCardsLoaded) { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } z = 1; while (z <= totalPages) { eval ("pageTab" + z).removeMovieClip(); z++; } delete myManagerCards; } if (from == "menuFromManager") { gotoAndStop ("profile"); } else { gotoAndStop ("lobby"); } } else if (from == "menuFromLobby") { smartFox.joinRoom(mainRoomID); gotoAndStop ("profile"); } else if (from == "logoutFromManager") { smartfox.disconnect(); } else if (from == "logoutFromLobby") { smartfox.disconnect(); } else if (from == "logoutFromGame") { smartfox.disconnect(); } _root.okCancelResponseBlack.removeMovieClip(); }; okCancelResponseBlack.cancel.onRelease = function () { _root.okCancelResponseBlack.removeMovieClip(); }; } function loopSong() { if ((loadedSong.position > (loadedSong.duration - 60)) && (loadedSong.getVolume() == 100)) { loadedSong.stop(); if (loadedSong == game_music) { loadedSong = game_music2; } else if (loadedSong == game_music2) { loadedSong = game_music; } loadedSong.start(0.05); } } function autoMsg(msg, displayInBox) { if (gameChat) { var lineCount = Array(); var msgLineArray = Array(); msgLineArray = msg.split("<br>"); msgLineCount = 0; i = 0; while (i < msgLineArray.length) { msgLineCount++; msgLineArray[i] = ("<font color='#FFCC66'>" + msgLineArray[i]) + "</font>"; i++; } msg = msgLineArray.join("<br>"); if (displayInBox) { if (((selectedRoom == gameRoomID) || (selectedRoom == lobbyRoomID)) || (selectedRoom == tradeRoomID)) { publicChat[selectedRoom] = publicChat[selectedRoom] + (msg + "<br>"); if (selectedRoom == lobbyRoomID) { lobbyChatTab.lineNumber = lobbyChatTab.lineNumber + msgLineCount; } else { tradeChatTab.lineNumber = tradeChatTab.lineNumber + msgLineCount; } lineCount = publicChat[selectedRoom].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } publicChat[selectedRoom] = lineCount.join("<br>"); gameChat.htmlText = publicChat[selectedRoom]; gameChat.scroll = gameChat.maxscroll; } else { privateChat[selectedRoom] = privateChat[selectedRoom] + (msg + "<br>"); eval ("privateChatTab" + selectedRoom).lineNumber = eval ("privateChatTab" + selectedRoom).lineNumber + msgLineCount; lineCount = privateChat[selectedRoom].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } privateChat[selectedRoom] = lineCount.join("<br>"); gameChat.htmlText = privateChat[selectedRoom]; gameChat.scroll = gameChat.maxscroll; } } else if (_root.inGame) { publicChat[gameRoomID] = publicChat[gameRoomID] + (msg + "<br>"); gameChatTab.lineNumber = gameChatTab.lineNumber + msgLineCount; lineCount = publicChat[gameRoomID].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } publicChat[gameRoomID] = lineCount.join("<br>"); if (selectedRoom == gameRoomID) { gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else { gameChatTab.tabName.htmlText = "<font color='#66FF99'>Game</font>"; } } else { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (msg + "<br>"); lobbyChatTab.lineNumber = lobbyChatTab.lineNumber + msgLineCount; lineCount = publicChat[lobbyRoomID].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } publicChat[lobbyRoomID] = lineCount.join("<br>"); if (selectedRoom == lobbyRoomID) { gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Lobby</font>"; } } delete lineCount; delete msgLineArray; } } overCardColor = new Object(); overCardColor.rb = 50; overCardColor.gb = 50; overCardColor.bb = 50; overTargetColor = new Object(); overTargetColor.rb = 155; selectedColor = new Object(); selectedColor.rb = 100; selectedColor.gb = 100; selectedColor.bb = 100; uncolor = new Object(); uncolor.rb = 0; uncolor.bb = 0; uncolor.gb = 0; disabledColor = new Object(); disabledColor.rb = -80; disabledColor.gb = -80; disabledColor.bb = -80; webpage = "http://www.ederon.com"; mainRoomID = 94; lobbyRoomID = 95; tradeRoomID = 96; confirmBoxXpos = 250; confirmBoxYpos = 250; confirmBoxDepth = 5000; creatingRoom = ""; joiningRoom = ""; offlineFriends = ""; onlineFriends = ""; blockedFriends = ""; friendsModList = ""; friendsAdvList = ""; friendsBegList = ""; lobbyList = "Loading Players..."; friendsList = ""; clanList = ""; waitingPlayer = false; searchingGame = false; version = 3080; versionDisplay = "v 3.0"; var privateChat = Array(); var publicChat = Array(); commandsList = "Available commands:<br>/soundfx: toggles sound effects on|off<br>/music: toggles music on|off<br>/autohelp: toggles Tool Tips on|off<br>/ping: Display your latency<br>/help: display this message"; localSaves = SharedObject.getLocal("ederonSaves"); if (!localSaves.data.autoHelpOff) { autoHelp = true; } if (!localSaves.data.soundsOff) { playSounds = true; } if (!localSaves.data.musicOff) { playMusic = true; } var movieLoader = new MovieClipLoader(); Array.prototype.indexOf = function (searchElement, startIndex) { if (startIndex == undefined) { startIndex = 0; } var _local2 = startIndex; while (_local2 < this.length) { if (this[_local2] == searchElement) { return(_local2); } _local2++; } return(-1); }; Array.prototype.lastIndexOf = function (val) { var _local2 = this.length; while (_local2--) { if (this[_local2].indexOf(val) != -1) { return(_local2); } } return(-1); }; Array.prototype.copy = function () { newArray = new Array(); count = 0; while (count < this.length) { newArray[count] = this[count]; count++; } return(newArray); }; Array.prototype.search = function (searchElement) { var _local2 = new Array(); var _local3 = false; for (var _local4 in this) { if (this[_local4] == searchElement) { _local3 = true; _local2.push(_local4); } } if (_local3) { _local2.reverse(); return(_local2); } return(null); }; var keyListener = new Object(); keyListener.onKeyDown = function () { if (msgBox) { if ((Selection.getFocus() != "_level0.msgBox") && (!okCancelResponseBlack)) { Selection.setFocus(msgBox); } if ((((Selection.getFocus() == "_level0.msgBox") && (Key.isDown(13))) && (!antiSpam)) && (!_root.inGame)) { sendChatMsg(msgBox); antiSpam = true; antiSpamTimer = getTimer() / 1000; if (viewMyPicture) { viewMyPicture.onEnterFrame = function () { delay = getTimer() / 1000; if (antiSpamTimer <= (delay - 4)) { antiSpam = false; delete this.onEnterFrame; } }; } else { antiSpam = false; } } else if (Key.isDown(13) && (_root.inGame)) { sendChatMsg(msgBox); } } else if (tradeChatTab.msgBox) { if (Selection.getFocus() == "_level0.tradeChatTab.gameChat") { Selection.setFocus(tradeChatTab.msgBox); } if (((Selection.getFocus() == "_level0.tradeChatTab.msgBox") && (Key.isDown(13))) && (!antiSpam)) { sendChatMsg(tradeChatTab.msgBox); antiSpam = true; antiSpamTimer = getTimer() / 1000; _root.tradeChatTab.onEnterFrame = function () { delay = getTimer() / 1000; if (antiSpamTimer <= (delay - 4)) { antiSpam = false; delete this.onEnterFrame; } }; } } else if (Key.isDown(13) && (enterBtn.enabled)) { sendLogin(); } }; Key.addListener(keyListener); var lobby_music = new Sound(); lobby_music.attachSound("lobby.mp3"); var game_music = new Sound(); game_music.attachSound("battle.mp3"); var game_music2 = new Sound(); game_music2.attachSound("battle2.mp3"); var manager_music = new Sound(); manager_music.attachSound("manager.mp3"); var login_music = new Sound(); login_music.attachSound("login.mp3"); var mouseover = new Sound(); mouseover.attachSound("mouseover.au"); var cardflip = new Sound(); cardflip.attachSound("cardflip.wav"); var battlestart = new Sound(); battlestart.attachSound("battlestart.au"); var challengeRequest = new Sound(); challengeRequest.attachSound("challenge.wav"); var levelup = new Sound(); levelup.attachSound("levelup.wav"); var phasemove = new Sound(); phasemove.attachSound("phase.au"); var myturn = new Sound(); myturn.attachSound("myturn.au"); var opaction = new Sound(); opaction.attachSound("opaction.au"); var win = new Sound(); win.attachSound("win.au"); var lose = new Sound(); lose.attachSound("lose.au"); var privateMessage = new Sound(); privateMessage.attachSound("privateMessage.mp3"); gotoAndStop ("login");Frame 3function sendLogin() { mouseover.start(); cover._visible = true; loginData.load((((((((_root.webpage + "/game/loadInfo.asp?ver=") + version) + "&username=") + myName) + "&password=") + password) + "&rn=") + random(10000)); enterBtn.enabled = false; newaccBtn.enabled = false; nameBox.selectable = false; passBox.selectable = false; enterBtn.useHandCursor = false; _root.loginMsg = "Validating..."; } stop(); if (!fromTAG) { fromTAG = "ederon"; } if (loadNews) { delete loadNews; } _focusrect = false; cover._visible = false; _root.password = ""; myName = ""; loginMsg = ""; if (admin) { delete admin; } if (idUser) { delete idUser; } if (myLevel) { delete myLevel; } if (experience) { delete experience; } if (myPicture) { delete myPicture; } if (boosters) { delete boosters; } if (noDeck) { delete noDeck; } if (accType) { delete accType; } if (managerName) { delete managerName; } if (clan) { delete clan; } newsData = "Loading News..."; antiSpam = false; enterBtn.enabled = true; enterBtn.useHandCursor = true; enterBtn.onRelease = sendLogin; newaccBtn.onRelease = function () { mouseover.start(); gotoAndStop ("signin"); }; forgotpass.onRelease = function () { mouseover.start(); openPage("account/passRecover.asp"); }; Selection.setFocus(nameBox); var loadNews = new LoadVars(); loadNews.onLoad = function (success) { if (success) { newsData = this.news; } else { newsData = "Server Unavailable."; } }; loadNews.load((_root.webpage + "/news.txt?rn=") + random(10000)); var loginData = new LoadVars(); loginData.onLoad = function (success) { if (success) { if (this.dbLogin == "failed") { loginMsg = "Username or password incorrect."; conError = true; } else if (this.dbLogin == "lockdown") { loginMsg = "Your account has been locked down."; conError = true; } else if (this.dbLogin == "badversion") { loginMsg = "You are trying to load an old version of the game. Please go to www.ederon.com."; conError = true; } else if (this.dbLogin == "custom") { loginMsg = this.customMsg; conError = true; } else { _root.myDecksLoaded = false; _root.myName = this.username; if (this.boosters) { _root.boosters = true; } _root.defaultDeck = this.defaultDeck; _root.idUser = this.idUser; _root.myLevel = this.level; _root.ranking = ((this.ranking > 999) ? "999+" : (this.ranking)); _root.myPicture = this.picture; _root.experience = this.experience; _root.clanWelcomeMsg = this.clanWelcomeMsg; _root.clan = ((this.clan == "") ? undefined : (this.clan)); _root.clanRankName = this.clanRankName; _root.accType = this.accType; if (this.lobbyAnnounce) { _root.lobbyAnnounce = this.lobbyAnnounce; } _root.loginMsg = "Connecting to server..."; smartfox.connect(_root.ip, _root.port); } } else { loginMsg = "Connection failed. Please check your internet settings."; conError = true; } if (conError) { cover._visible = false; nameBox.selectable = true; passBox.selectable = true; enterBtn.enabled = true; newaccBtn.enabled = true; enterBtn.useHandCursor = true; conError = false; } }; fadeSpeed = 1; floatUpSpeed = 4; d = 6000; horse_eye.onEnterFrame = function () { d++; flames = attachMovie("flames", "flames" + d, d); flames._xscale = (flames._yscale = 10); flames._x = Math.floor(Math.random() * 600); flames._y = 480; flames.gotoAndPlay(Math.round(Math.random() * 20)); flames.onEnterFrame = function () { if (!_root.horse_eye) { this.removeMovieClip(); } this._xscale = (this._yscale = this._yscale + fadeSpeed); this._alpha = this._alpha - fadeSpeed; this._y = this._y - floatUpSpeed; if (this._xscale >= 120) { this.removeMovieClip(); } }; }; onEnterFrame = function () { if (loadedSong.getVolume() > 0) { loadedSong.setVolume(loadedSong.getVolume() - 5); } else { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = login_music; if (playMusic) { loadedSong.start(0, 9999); } delete this.onEnterFrame; } };Frame 4antiSpam = false; if (_root.myLevel == 1) { _root.xpNeeded = 100; } else if (_root.myLevel == 2) { _root.xpNeeded = 250; } else if (_root.myLevel == 3) { _root.xpNeeded = 450; } else if (_root.myLevel == 4) { _root.xpNeeded = 600; } else if (_root.myLevel >= 5) { _root.xpNeeded = 900; } _root.totalXp = (_root.experience + "/") + _root.xpNeeded; profileStr = ""; profileStr = profileStr + (("Username: <b>" + _root.myName) + "</b><br>"); profileStr = profileStr + (("Level: <b>" + _root.myLevel) + "</b><br>"); profileStr = profileStr + (("Experience: <b>" + _root.totalXp) + "</b><br>"); profileStr = profileStr + (("General Rank: <b>" + _root.ranking) + "</b><br>"); if (_root.accType == "beginner") { profileStr = profileStr + "Account Type: <b>Beginner</b><br>"; } else if (_root.accType == "advanced") { profileStr = profileStr + "Account Type: <b><font color='#FFCC33'>Advanced</font></b><br>"; } if (_root.clan) { profileStr = profileStr + (("<br>Clan: <font color='#66FF99'>" + _root.clan) + "</font><br>"); profileStr = profileStr + (("Clan Rank: <font color='#66FF99'>" + _root.clanRankName) + "</font><br>"); } if (defaultDeck == "") { profileStr = profileStr + "Default Deck: No default deck<br>"; } else { profileStr = profileStr + (("Default Deck: <font color='#FFCC33'>" + defaultDeck) + "</font><br><br>"); } if (_root.boosters) { profileStr = profileStr + (("<a href='" + webpage) + "/account/editAccount.asp' target='_blank'><font color='#FFCC33'>You received new booster packs! Click here to go to your account page and open them!</font></a><br>"); } else { profileStr = profileStr + (("<a href='" + webpage) + "/account/editAccount.asp' target='_blank'><font color='#FFFFFF'>Click here to manage your account.</font></a><br>"); } profile.htmlText = profileStr; viewMyPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _root.myPicture, viewMyPicture.pictureClip); viewMyPicture.pictureClip._x = 0; viewMyPicture.pictureClip._y = 0; menuBox.onEnterFrame = function () { if (this._currentframe == 20) { this.stop(); delete this.onEnterFrame; } }; menuBox.menuBoxAnimation.lobbyLogin.onRelease = function () { if (defaultDeck == "") { errorMsg.htmlText = "You don't have a default deck yet! Go to the card manager to make a deck."; } else { gotoAndStop ("lobby"); } }; menuBox.menuBoxAnimation.managerLogin.onRelease = function () { gotoAndStop ("manager"); }; menuBox.menuBoxAnimation.guideBook.onRelease = function () { gotoAndStop ("guidebook"); }; menuBox.menuBoxAnimation.tradeLogin.onRelease = function () { openPage("trade/tradeMarket.asp"); }; menuBox.menuBoxAnimation.cardList.onRelease = function () { openPage("cards.asp"); }; menuBox.menuBoxAnimation.logoutLogin.onRelease = function () { smartfox.disconnect(); }; var uVars = new Object(); uVars.chatRoom = 0; uVars.inGame = 0; smartfox.setUserVariables(uVars); delete uVars; var bVars = new Object(); bVars.chatRoom = 0; smartfox.setBuddyVariables(bVars); delete bVars; if (clanRoomID) { smartfox.leaveRoom(clanRoomID); delete clanRoomID; } if (gameRoomID) { smartfox.leaveRoom(gameRoomID); delete gameRoomID; } smartfox.leaveRoom(lobbyRoomID); smartfox.leaveRoom(tradeRoomID); publicChat[lobbyRoomID] = ""; publicChat[tradeRoomID] = ""; publicChat[gameRoomID] = ""; privateChat[0] = ""; privateChat[1] = ""; privateChat[2] = ""; privateChat[3] = ""; privateChat[4] = ""; privateChat[5] = ""; privateChat[6] = ""; privateChat[7] = ""; privateChat[8] = ""; onEnterFrame = function () { if ((loadedSong.getVolume() > 0) && (loadedSong != login_music)) { loadedSong.stop(); if (playMusic) { if (intervalVal) { clearInterval(intervalVal); } loadedSong = login_music; loadedSong.setVolume(100); loadedSong.start(); intervalVal = setInterval(loopSong, 1); delete this.onEnterFrame; } else { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = login_music; delete this.onEnterFrame; } } else { delete this.onEnterFrame; } };Frame 5function begDeckSelection(deckID) { if (sendSubmit.deck != deckID) { begDeckListTemp = begDeckList.split("<br>"); selectedLine = begDeckListTemp.lastIndexOf(("," + deckID) + "'"); begDeckListTemp[selectedLine] = ((("<a href='asfunction:begDeckSelection," + deckID) + "'><font color='#66FF99'>") + begDeckNames[deckID]) + "</font></a>"; descriptionTextField.htmlText = decksDescription[deckID]; deckPicture.gotoAndStop(deckID); oldSelection = begDeckListTemp.lastIndexOf(("," + sendSubmit.deck) + "'"); begDeckListTemp[oldSelection] = ((("<a href='asfunction:begDeckSelection," + sendSubmit.deck) + "'><font color='#FFFFFF'>") + begDeckNames[sendSubmit.deck]) + "</font></a>"; begDeckList = begDeckListTemp.join("<br>"); sendSubmit.deck = deckID; deckListTextField.htmlText = begDeckList; } } website = "http://www.ederon.com"; var sendSubmit = new LoadVars(); var submitedData = new LoadVars(); var CPMStarURL = new LoadVars(); var begDeckNames = new Array(); var decksDescription = new Array(); begDeckNames[0] = ""; begDeckNames[1] = "Fury of Nature"; begDeckNames[2] = "Allied Killers"; begDeckNames[3] = "Maligned Giant"; begDeckNames[4] = "Withered Prayers"; begDeckNames[5] = "Pacifist War"; begDeckNames[6] = "Praying Mantis"; begDeckNames[7] = "Heretic Growth"; begDeckNames[8] = "Prophetic Rage"; decksDescription[0] = ""; decksDescription[1] = "<b>Fury of Nature<br>Classes:</b> Sorcerer and Hunter<br>Control the battlefield! Using ranged weaponry and summoning creatures, destroy the competition as the opponent struggles to bypass your effect-stopping defense!"; decksDescription[2] = "<b>Allied Killers<br>Classes:</b> Knight and Assassin<br>Win with Speed and Agility! Dodge attacks while pummeling your opponent with a melee of quick weaponry, powerful abilities, and defense retaliation! They'll never see it coming..."; decksDescription[3] = "<b>Maligned Giant<br>Classes:</b> Monk and Gladiator<br>Combine brutal weaponry with a sanctuary defense to demolish the opponent! Using axes, abilities, and weapon-destroying tactics, leave a trail of opponents in your path!"; decksDescription[4] = "<b>Withered Prayers<br>Classes:</b> Paladin and Wizard<br>Mix pure and evil forces to create a relentless assault on the opponent! Deal huge damage with your spells and weaponry while reviving yourself. Your opponent won't see what hit him!"; decksDescription[5] = "<b>Pacifist War<br>Classes:</b> Monk and Knight<br>Start a crusade! Mixing a melee of fast weaponry and fast abilities, plow through the opposition before the get the chance to attack! Don\u2019t blink when facing these warriors!"; decksDescription[6] = "<b>Praying Mantis<br>Classes:</b> Paladin and Assassin<br>Take a beating and keep battling! Deflect damage back at the opponent while reviving yourself in a battle of stamina and endurance! Only true warriors can win a war of strategy!"; decksDescription[7] = "<b>Heretic Growth<br>Classes:</b> Hunter and Wizard<br>Burn and pillage through the opposition! Using ranged weapons and discard tactics, control the battlefield and turn your opponent into dust and ashes!"; decksDescription[8] = "<b>Prophetic Rage<br>Classes:</b> Sorcerer and Gladiator<br>Full-fledged warfare! Using large equippables and creatures, destroy the opponent into submission and become an Ederon Champion!"; begDeckList = ("<a href='asfunction:begDeckSelection,1'><font color='#66FF99'>" + begDeckNames[1]) + "</font></a><br>"; begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,2'>" + begDeckNames[2]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,3'>" + begDeckNames[3]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,4'>" + begDeckNames[4]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,5'>" + begDeckNames[5]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,6'>" + begDeckNames[6]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,7'>" + begDeckNames[7]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,8'>" + begDeckNames[8]) + "</a>"); deckListTextField.htmlText = begDeckList; sendSubmit.deck = 1; descriptionTextField.htmlText = decksDescription[1]; deckPicture.gotoAndStop(1); submitedData.onLoad = function (success) { warningBox.warningOk._alpha = 100; warningBox.warningOk.enabled = true; savingErrorMsg = ""; if (!success) { savingError = true; savingErrorMsg = savingErrorMsg + "- Connection failed. Please check your internet settings.\n"; } if (this.usernameTaken) { savingError = true; savingErrorMsg = savingErrorMsg + "- Username Taken.\n"; delete this.usernameTaken; } if (this.accountCreated) { savingError = true; savingErrorMsg = savingErrorMsg + "- Please wait a couple hours before you can create a new account.\n"; delete this.usernameTaken; } if (savingError) { warningBox.warningTxt.text = savingErrorMsg; warningBox.warningOk.onRelease = function () { warningBox.removeMovieClip(); }; } else { warningBox.warningTxt.text = "Account created!"; CPMStarURL.load("http://server.cpmstar.com/action.aspx?advertiserid=112"); warningBox.warningOk.onRelease = function () { warningBox.removeMovieClip(); gotoAndStop ("login"); }; } delete savingError; }; submit.onRelease = function () { warningMsg = ""; if ((username.text.length < 5) || (!validateString(username.text))) { warningError = true; warningMsg = warningMsg + "- Invalid username.\n"; } if (pass.text == "") { warningError = true; warningMsg = warningMsg + "- You must enter a valid password.\n"; } if (sendSubmit.deck == 0) { warningError = true; warningMsg = warningMsg + "- You must choose a deck.\n"; } if (warningError) { _root.attachMovie("warningBox", "warningBox", 100); warningBox._x = 320; warningBox._y = 240; warningBox.warningTxt.text = warningMsg; warningBox.warningOk.onRelease = function () { warningBox.removeMovieClip(); }; } else { _root.attachMovie("warningBox", "warningBox", 100); warningBox._x = 320; warningBox._y = 240; warningBox.warningTxt.text = "Validating..."; warningBox.warningOk._alpha = 0; warningBox.warningOk.enabled = false; sendSubmit.username = username.text; sendSubmit.pass = pass.text; sendSubmit.fromTAG = _root.fromTAG; sendSubmit.deckName = _root.begDeckNames[sendSubmit.deck]; sendSubmit.sendAndLoad((website + "/account/createAccount.asp?rn=") + random(10000), submitedData, "POST"); } delete warningError; }; back.onRelease = function () { gotoAndStop ("login"); };Frame 6howToPlay.gotoAndStop(1); howToPlay.prevBook.onRelease = function () { if (this._parent._currentframe > 1) { if (playSounds) { cardflip.start(); } this._parent.gotoAndStop(this._parent._currentframe - 1); } }; howToPlay.nextBook.onRelease = function () { if (this._parent._currentframe < 11) { if (playSounds) { cardflip.start(); } this._parent.gotoAndStop(this._parent._currentframe + 1); } }; howToPlay.onEnterFrame = function () { if ((this._currentframe == 10) and (!this.doOnce)) { this.doOnce = true; _root.cardViewNumber = 435; this.createEmptyMovieClip("viewCard", _root.viewCardDepth); howToPlay.loadingCardText.text = "Loading..."; howToPlay.viewCard._x = 370; howToPlay.viewCard._y = 130; mclListener.onLoadComplete = function (target_mc) { howToPlay.loadingCardText.text = ""; _root.movieLoader.removeListener(mclListener); }; _root.movieLoader.addListener(mclListener); _root.movieLoader.loadClip("viewCard.swf", "howToPlay.viewCard"); } else if (this._currentframe != 10) { if (this.viewCard) { delete this.doOnce; this.viewCard.removeMovieClip(); } } }; howToPlay.backGuideBook.onRelease = function () { _root.gotoAndStop("profile"); }; onEnterFrame = function () { if (loadedSong.getVolume() > 0) { loadedSong.setVolume(loadedSong.getVolume() - 5); } else if (playMusic) { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = lobby_music; loadedSong.start(); intervalVal = setInterval(loopSong, 1); delete this.onEnterFrame; } };Frame 7accountSetup.onRelease = function () { openPage("account/editAccount.asp"); }; tournaments.onRelease = function () { openPage("tournaments/tournaments.asp"); }; clanList.onRelease = function () { openPage("clans/clans.asp"); }; tradeCards.onRelease = function () { openPage("trade/tradeMarket.asp"); }; mainMenuLobby.onRelease = function () { if (waitingBattle._alpha == 100) { autoMsg("You are currently waiting for a game. Please cancel this request before exiting to the main menu."); } else { okCancelResponseBlackBox("menuFromLobby"); } }; logout.onRelease = function () { if (waitingBattle._alpha == 100) { autoMsg("You are currently waiting for a game. Please cancel this request before exiting the game."); } else { okCancelResponseBlackBox("logoutFromLobby"); } }; if (playMusic) { soundButton.gotoAndStop(1); } else { soundButton.gotoAndStop(2); } soundButton.onRelease = function () { if (!playMusic) { this.gotoAndStop(1); playMusic = true; loadedSong.start(); intervalVal = setInterval(loopSong, 1); autoMsg("Music On."); localSaves.data.musicOff = false; localSaves.flush(); } else { this.gotoAndStop(2); playMusic = false; loadedSong.stop(); if (intervalVal) { clearInterval(intervalVal); } autoMsg("Music Off."); localSaves.data.musicOff = true; localSaves.flush(); } }; function viewClickedCard(cardObj) { if (viewCard) { viewCard.removeMovieClip(); } if (playSounds) { cardflip.start(); } if (cardObj.model) { _root.attachMovie("viewCard", "viewCard", _root.viewCardDepth); _root.viewCard._x = 452; _root.viewCard._y = 110; if ((cardObj.type == "Armor") || (cardObj.type == "Artifact")) { viewCard.powerAndResist = (cardObj.power + "/") + cardObj.resistence; } if (cardObj.handleType == 2) { viewCard.gotoAndStop(cardObj.model + "2"); } else { viewCard.gotoAndStop(cardObj.model); } if ((cardObj.type != "Class") && (cardObj.type != "Subclass")) { viewCard.typeAndSub = (cardObj.type + " - ") + cardObj.subtype; viewCard.createEmptyMovieClip("pictureClip", viewCard.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/large_pictures/") + cardObj.picture, viewCard.pictureClip); viewCard.pictureClip._x = 18; viewCard.pictureClip._y = 22; if ((cardObj.type == "Armor") || (cardObj.type == "Artifact")) { viewCard.attachMovie("boxClip", "boxClip", viewCard.getNextHighestDepth()); if (cardObj.type == "Armor") { viewCard.boxClip.gotoAndStop(1); } else { viewCard.boxClip.gotoAndStop(2); } viewCard.boxClip._x = 130; viewCard.boxClip._y = 110; } if (viewCard.rarityClip) { delete viewCard.rarityClip; } viewCard.attachMovie("rarityClip", "rarityClip", viewCard.getNextHighestDepth()); if (cardObj.collection == "Alpha") { if (cardObj.rarity < 2) { viewCard.rarityClip.gotoAndStop(1); } else if (cardObj.rarity < 4) { viewCard.rarityClip.gotoAndStop(2); } else { viewCard.rarityClip.gotoAndStop(3); } } else if (cardObj.collection == "Dragon Realm") { if (cardObj.rarity < 2) { viewCard.rarityClip.gotoAndStop(4); } else if (cardObj.rarity < 4) { viewCard.rarityClip.gotoAndStop(5); } else { viewCard.rarityClip.gotoAndStop(6); } } else if (cardObj.rarity < 2) { viewCard.rarityClip.gotoAndStop(7); } else if (cardObj.rarity < 4) { viewCard.rarityClip.gotoAndStop(8); } else { viewCard.rarityClip.gotoAndStop(9); } viewCard.rarityClip._x = 148; viewCard.rarityClip._y = 135; viewCard.textAndStory = cardObj.textFunc; viewCard.artist = "Art by " + cardObj.artist; viewCard.attachMovie("textFields", "textFields", viewCard.getNextHighestDepth()); viewCard.textFields._x = 10; viewCard.textFields._y = 2; viewCard.textFields.name.text = cardObj.name; viewCard.textFields.nameShad.text = cardObj.name; viewCard.textFields.typeAndSub.text = viewCard.typeAndSub; viewCard.textFields.artist.text = viewCard.artist; if ((cardObj.type == "Armor") || (cardObj.type == "Artifact")) { viewCard.textFields.powerAndResist.text = viewCard.powerAndResist; } var _local3 = new TextFormat(); if (viewCard.textFields.name.length >= 15) { _local3.size = 10; if (viewCard.textFields.name.length >= 16) { _local3.size = 9; } viewCard.textFields.name.setTextFormat(_local3); viewCard.textFields.nameShad.setTextFormat(_local3); } viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Attack Counts:", "<img src='attackCountsToolTip' id='attackCountsToolTip' height='16' width='89' hspace='-3' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Attack Effect:", "<img src='attackEffectToolTip' id='attackEffectToolTip' height='16' width='82' hspace='-3' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Double Ability", "<img src='doubleAbilityToolTip' id='doubleAbilityToolTip' height='16' width='83' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Double Spell", "<img src='doubleSpellToolTip' id='doubleSpellToolTip' height='16' width='76' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Fast Strike", "<img src='fastStrikeToolTip' id='fastStrikeToolTip' height='16' width='65' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Instant Effect", "<img src='instantEffectToolTip' id='instantEffectToolTip' height='16' width='84' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Instant Equip", "<img src='instantEquipToolTip' id='instantEquipToolTip' height='16' width='82' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Morph into", "<img src='morphIntoToolTip' id='morphIntoToolTip' height='16' width='65' hspace='-3' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Ranged", "<img src='rangedToolTip' id='rangedToolTip' height='16' width='48' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Remove:", "<img src='removeToolTip' id='removeToolTip' height='16' width='54' hspace='-3' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Unblockable", "<img src='unblockableToolTip' id='unblockableToolTip' height='16' width='73' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Untappable", "<img src='untappableToolTip' id='untappableToolTip' height='16' width='69' hspace='-2' vspace='-2'>"); if (viewCard.textAndStory.substring(0, 3) == "[9]") { viewCard.textAndStory = viewCard.textAndStory.substr(3); _local3.size = 9; } else { _local3.size = 10; } viewCard.textFields.textAndStory.htmlText = viewCard.textAndStory; viewCard.textFields.textAndStory.setTextFormat(_local3); if (viewCard.textFields.textAndStory.attackCountsToolTip) { ToolTip.install(viewCard.textFields.textAndStory.attackCountsToolTip, "When there is no more attack counts, this weapon will be destroyed.", 150); } if (viewCard.textFields.textAndStory.attackEffectToolTip) { ToolTip.install(viewCard.textFields.textAndStory.attackEffectToolTip, "When you attack with this weapon, the following effect occurs.", 150); } if (viewCard.textFields.textAndStory.doubleAbilityToolTip) { ToolTip.install(viewCard.textFields.textAndStory.doubleAbilityToolTip, "If not countered, this card can be followed up with another card in the same phase. Effect can only happens once per phase.", 150); } if (viewCard.textFields.textAndStory.doubleSpellToolTip) { ToolTip.install(viewCard.textFields.textAndStory.doubleSpellToolTip, "If not countered, this card can be followed up with another card in the same phase. Effect can only happens once per phase.", 150); } if (viewCard.textFields.textAndStory.fastStrikeToolTip) { ToolTip.install(viewCard.textFields.textAndStory.fastStrikeToolTip, "This weapon can attack the same turn it was played.", 150); } if (viewCard.textFields.textAndStory.instantEffectToolTip) { ToolTip.install(viewCard.textFields.textAndStory.instantEffectToolTip, "This card does not end your phase when played. Unlike with Double, this effect can be used multiple times in one phase.", 150); } if (viewCard.textFields.textAndStory.instantEquipToolTip) { ToolTip.install(viewCard.textFields.textAndStory.instantEquipToolTip, "This item does not end your equip phase when played. Unlike with Double, this effect can be used multiple times in one phase.", 150); } if (viewCard.textFields.textAndStory.morphIntoToolTip) { ToolTip.install(viewCard.textFields.textAndStory.morphIntoToolTip, "You must have the class described in your class dock. Instantly swap your current class for this class.", 150); } if (viewCard.textFields.textAndStory.rangedToolTip) { ToolTip.install(viewCard.textFields.textAndStory.rangedToolTip, "This weapon is not affected by defense retaliation during your attack phase.", 150); } if (viewCard.textFields.textAndStory.removeToolTip) { ToolTip.install(viewCard.textFields.textAndStory.removeToolTip, "When this card is put into the graveyard from play by the owner during equip phase, the following effect occurs.", 150); } if (viewCard.textFields.textAndStory.unblockableToolTip) { ToolTip.install(viewCard.textFields.textAndStory.unblockableToolTip, "This weapon cannot be blocked by the opponent's shield or weapon.", 150); } if (viewCard.textFields.textAndStory.untappableToolTip) { ToolTip.install(viewCard.textFields.textAndStory.untappableToolTip, "This weapon does not tap when you attack.", 150); } } viewCard.actualLoc = 1; viewCard.location_x = 174; viewCard.location_y = 12; if (viewCard.everyone) { delete viewCard.everyone; } if (viewCard.classAverage) { delete viewCard.classAverage; } if (viewCard.classHunter) { delete viewCard.classHunter; } if (viewCard.subClassAssassin) { delete viewCard.subClassAssassin; } if (viewCard.classSorcerer) { delete viewCard.classSorcerer; } if (viewCard.subClassWizard) { delete viewCard.subClassWizard; } if (viewCard.classPaladin) { delete viewCard.classPaladin; } if (viewCard.subClassMonk) { delete viewCard.subClassMonk; } if (viewCard.classKnight) { delete viewCard.classKnight; } if (viewCard.subClassGladiator) { delete viewCard.subClassGladiator; } if (cardObj.e) { viewCard.attachMovie("e", "everyone", viewCard.getNextHighestDepth()); viewCard.everyone._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.everyone._y = viewCard.location_y; } else if ((cardObj.type != "Class") && (cardObj.type != "Subclass")) { if (cardObj.av) { viewCard.attachMovie("av", "classAverage", viewCard.getNextHighestDepth()); viewCard.classAverage._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.classAverage._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.h) { viewCard.attachMovie("h", "classHunter", viewCard.getNextHighestDepth()); viewCard.classHunter._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.classHunter._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.a) { viewCard.attachMovie("a", "subClassAssassin", viewCard.getNextHighestDepth()); viewCard.subClassAssassin._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.subClassAssassin._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.s) { viewCard.attachMovie("s", "classSorcerer", viewCard.getNextHighestDepth()); viewCard.classSorcerer._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.classSorcerer._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.w) { viewCard.attachMovie("w", "subClassWizard", viewCard.getNextHighestDepth()); viewCard.subClassWizard._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.subClassWizard._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.p) { viewCard.attachMovie("p", "classPaladin", viewCard.getNextHighestDepth()); viewCard.classPaladin._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.classPaladin._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.m) { viewCard.attachMovie("m", "subClassMonk", viewCard.getNextHighestDepth()); viewCard.subClassMonk._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.subClassMonk._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.k) { viewCard.attachMovie("k", "classKnight", viewCard.getNextHighestDepth()); viewCard.classKnight._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.classKnight._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.g) { viewCard.attachMovie("g", "subClassGladiator", viewCard.getNextHighestDepth()); viewCard.subClassGladiator._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.subClassGladiator._y = viewCard.location_y; viewCard.actualLoc++; } } } else { createEmptyMovieClip("viewCard", _root.viewCardDepth); loadingCardText.swapDepths(_root.viewCardDepth + 11); loadingCardText.text = "Loading..."; _root.viewCard._x = 452; _root.viewCard._y = 110; mclListener.onLoadComplete = function (target_mc) { loadingCardText.text = ""; movieLoader.removeListener(mclListener); }; movieLoader.addListener(mclListener); movieLoader.loadClip("viewCard.swf", "viewCard"); } } function openChatFunction() { n = tabCheck; while (n <= 8) { if (eval ("privateChatTab" + n).playerName == viewUser.getName()) { changeTabFocus(eval ("privateChatTab" + n).roomID); return; } if (!eval ("privateChatTab" + n).enabled) { eval ("privateChatTab" + n).lineNumber = 1; eval ("privateChatTab" + n)._alpha = 100; eval ("privateChatTab" + n).enabled = true; eval ("privateChatTab" + n).playerID = viewUser.getId(); eval ("privateChatTab" + n).playerName = viewUser.getName(); eval ("privateChatTab" + n).privChatName = ((viewUser.getName().length > 5) ? (viewUser.getName().substr(0, 5) + "...") : (viewUser.getName())); privateChat[eval ("privateChatTab" + n).roomID] = ("<font color='#33CCFF'>Now talking to " + viewUser.getName()) + "</font><br>"; changeTabFocus(eval ("privateChatTab" + n).roomID); return; } if (n == 8) { autoMsg("You have too many private chats opened. In order to open a new one, first close one of them."); } n++; } } function viewPlayerDetails(passedID) { roomObj = smartfox.getRoom(_root.mainRoomID); viewUser = roomObj.getUser(Number(passedID)); var _local3 = viewUser.getVariables(); if (_root.inGame) { openChatFunction(); } else if ((_root.activeViewPlayerID == passedID) || (passedID == smartfox.myUserId)) { playerViewer._alpha = 0; playerViewer.chat.enabled = false; playerViewer.addToFriends.enabled = false; playerViewer.block.enabled = false; playerViewer.challengePlayer.enabled = false; delete _root.activeViewPlayerID; } else if (isNaN(passedID * 1)) { var _local2 = smartfox.getBuddyByName(passedID); if (_local2.id) { _root.activeViewPlayerID = passedID; playerViewer._alpha = 100; playerViewer.viewPlayerID = _local2.id; playerViewer.viewPlayerName.text = _local2.name; playerViewer.viewPlayerLevel.text = "Level: " + _local2.variables.$level; playerViewer.viewPlayerRanking.text = "Ranking: " + _local2.variables.$ranking; if (!_local2.variables.clan) { playerViewer.viewPlayerClan.text = ""; } else { playerViewer.viewPlayerClan.text = ("<" + _local2.variables.$clan) + ">"; } if (_local2.variables.$mod == 1) { playerViewer.viewPlayerAcc.htmlText = "<font color='#00FFFF'>Moderator</font>"; } else if (_local2.variables.$accType == "beginner") { playerViewer.viewPlayerAcc.htmlText = "<font color='#DDDDDD'>Beginner</font>"; } else if (_local2.variables.$accType == "advanced") { playerViewer.viewPlayerAcc.htmlText = "<font color='#FFFFCC'>Advanced</font>"; } playerViewer.viewPlayerPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _local2.variables.$picture, playerViewer.viewPlayerPicture.pictureClip); playerViewer.viewPlayerPicture.pictureClip._x = 0; playerViewer.viewPlayerPicture.pictureClip._y = 0; colorize(playerViewer.challengePlayer, disabledColor); playerViewer.challengePlayer.enabled = false; colorize(playerViewer.chat, disabledColor); playerViewer.chat.enabled = false; if (blockedFriends.indexOf((">" + playerViewer.viewPlayerName.text) + "<") != -1) { colorize(playerViewer.addToFriends, disabledColor); playerViewer.addToFriends.enabled = false; uncolorize(playerViewer.block); playerViewer.block.enabled = true; playerViewer.block.gotoAndStop(2); playerViewer.block.toolTipText = "Unblock this player."; } else { colorize(playerViewer.block, disabledColor); playerViewer.block.enabled = false; uncolorize(playerViewer.addToFriends); playerViewer.addToFriends.enabled = true; playerViewer.addToFriends.gotoAndStop(2); } } } else { _root.activeViewPlayerID = passedID; playerViewer._alpha = 100; playerViewer.viewPlayerID = passedID; playerViewer.viewPlayerName.text = viewUser.getName(); playerViewer.viewPlayerLevel.text = "Level: " + _local3.level; playerViewer.viewPlayerRanking.text = "Ranking: " + _local3.ranking; if (!_local3.clan) { playerViewer.viewPlayerClan.text = ""; } else { playerViewer.viewPlayerClan.text = ("<" + _local3.clan) + ">"; } if (blockUser == viewUser.getName()) { colorize(playerViewer.block, disabledColor); playerViewer.block.enabled = false; colorize(playerViewer.challenge, disabledColor); playerViewer.challenge.enabled = false; colorize(playerViewer.chat, disabledColor); playerViewer.chat.enabled = false; } if (friendsList.indexOf((">" + viewUser.getName()) + "<") == -1) { playerViewer.addToFriends.gotoAndStop(1); playerViewer.addToFriends.enabled = true; playerViewer.block.gotoAndStop(1); uncolorize(playerViewer.block); playerViewer.block.enabled = true; } else if (blockedFriends.indexOf((">" + viewUser.getName()) + "<") == -1) { playerViewer.addToFriends.gotoAndStop(2); playerViewer.addToFriends.enabled = true; playerViewer.block.gotoAndStop(1); colorize(playerViewer.block, disabledColor); playerViewer.block.enabled = false; } else { playerViewer.addToFriends.gotoAndStop(1); colorize(playerViewer.addToFriends, disabledColor); playerViewer.addToFriends.enabled = false; playerViewer.block.gotoAndStop(2); uncolorize(playerViewer.block); playerViewer.block.enabled = true; } if ((((_local3.inGame == 1) || (_root.gameType != "")) || (blockedFriends.indexOf((">" + viewUser.getName()) + "<") != -1)) || (lobbyList.indexOf((">" + viewUser.getName()) + "<") == -1)) { colorize(playerViewer.challengePlayer, disabledColor); playerViewer.challengePlayer.enabled = false; } else { uncolorize(playerViewer.challengePlayer); playerViewer.challengePlayer.enabled = true; } if ((lobbyList.indexOf((">" + viewUser.getName()) + "<") == -1) || (blockedFriends.indexOf((">" + viewUser.getName()) + "<") != -1)) { colorize(playerViewer.chat, disabledColor); playerViewer.chat.enabled = false; } else { uncolorize(playerViewer.chat); playerViewer.chat.enabled = true; } var _local5 = viewUser.isModerator(); if (_local5) { playerViewer.viewPlayerAcc.htmlText = "<font color='#00FFFF'>Moderator</font>"; } else if (_local3.accType == "beginner") { playerViewer.viewPlayerAcc.htmlText = "<font color='#DDDDDD'>Beginner</font>"; } else if (_local3.accType == "advanced") { playerViewer.viewPlayerAcc.htmlText = "<font color='#FFFFCC'>Advanced</font>"; } playerViewer.viewPlayerPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _local3.picture, playerViewer.viewPlayerPicture.pictureClip); playerViewer.viewPlayerPicture.pictureClip._x = 0; playerViewer.viewPlayerPicture.pictureClip._y = 0; } } function changeTabFocus(to) { if (_root.clan && (to == 0)) { closeTab._alpha = 0; closeTab.enabled = false; } else { closeTab._alpha = 70; closeTab.enabled = true; } if (_root.selectedRoom != to) { if (_root.selectedRoom == lobbyRoomID) { lobbyChatTab.tabName.htmlText = "<font color='#FFFFFF'>Lobby</font>"; eval ("privateChatTab" + to).tabName.htmlText = ("<font color='#FFFF66'>" + eval ("privateChatTab" + to).privChatName) + "</font>"; _root.selectedRoom = to; gameChat.htmlText = privateChat[to]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom == tradeRoomID) { tradeChatTab.tabName.htmlText = "<font color='#FFFFFF'>Trade</font>"; eval ("privateChatTab" + to).tabName.htmlText = ("<font color='#FFFF66'>" + eval ("privateChatTab" + to).privChatName) + "</font>"; _root.selectedRoom = to; gameChat.htmlText = privateChat[to]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom == gameRoomID) { gameChatTab.tabName.htmlText = "<font color='#FFFFFF'>Game</font>"; eval ("privateChatTab" + to).tabName.htmlText = ("<font color='#FFFF66'>" + eval ("privateChatTab" + to).privChatName) + "</font>"; _root.selectedRoom = to; gameChat.htmlText = privateChat[to]; gameChat.scroll = gameChat.maxscroll; } else { eval ("privateChatTab" + _root.selectedRoom).tabName.htmlText = ("<font color='#FFFFFF'>" + eval ("privateChatTab" + _root.selectedRoom).privChatName) + "</font>"; eval ("privateChatTab" + to).tabName.htmlText = ("<font color='#FFFF66'>" + eval ("privateChatTab" + to).privChatName) + "</font>"; _root.selectedRoom = to; gameChat.htmlText = privateChat[to]; gameChat.scroll = gameChat.maxscroll; } } } function challengeCoolDown() { if (_root.cdTimer > 0) { _root.cdTimer--; } else if (challengeCoolDownInterval != null) { clearInterval(challengeCoolDownInterval); } } function acceptChallenge(param) { if (waitingBattle._alpha == 100) { autoMsg("You can't accept challenges while waiting for another game."); } else { _root.gameType = "challenge"; challengerID = Number(param); var _local2 = Array(); _local2 = publicChat[lobbyRoomID].split("<br>"); challengeLine = _local2.lastIndexOf(("<a href='asfunction:acceptChallenge," + challengerID) + "'>"); _local2[challengeLine] = _local2[challengeLine].substr(0, _local2[challengeLine].lastIndexOf("<font color='#00CCFF'>")) + "<font color='#00CCFF'>Challenge Accepted!</font></font>"; publicChat[lobbyRoomID] = _local2.join("<br>"); gameChat.htmlText = publicChat[lobbyRoomID]; randomMatch._alpha = 0; randomMatch.enabled = false; randomMatch.swapDepths(waitingBattle); waitingBattle._alpha = 100; waitingBattle.displayText.htmlText = "Awaiting Response..."; waitingBattle.cancelBtn._alpha = 0; waitingBattle.cancelBtn.enabled = false; waitingBattle.waitingBattleAnimation.gotoAndPlay(1); waitingBattle.waitingBattleAnimation.play(); if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } waitingGameResponseInterval = setInterval(waitingGameResponse, 10000); _root.creatingRoom = "game"; var _local3 = new Object(); _local3.name = "challenge_" + challengerID; _local3.password = ""; _local3.isGame = true; _local3.exitCurrentRoom = false; _local3.maxUsers = 2; smartfox.createRoom(_local3); _root.gameRoomName = "challenge_" + challengerID; delete argumentArray; } } function declineChallenge(param) { challengerID = Number(param); var _local1 = Array(); _local1 = publicChat[lobbyRoomID].split("<br>"); challengeLine = _local1.lastIndexOf(("<a href='asfunction:acceptChallenge," + challengerID) + "'>"); _local1[challengeLine] = _local1[challengeLine].substr(0, _local1[challengeLine].lastIndexOf("<font color='#00CCFF'>")) + "<font color='#FF6666'>Challenge Declined!</font></font>"; publicChat[lobbyRoomID] = _local1.join("<br>"); gameChat.htmlText = publicChat[lobbyRoomID]; smartfox.sendPrivateMessage("/declineChallenge", challengerID, lobbyRoomID); delete argumentArray; } function searchGame() { lobbyRoomObj = smartfox.getRoom(lobbyRoomID); var _local3 = lobbyRoomObj.getUserList(); _root.timesSearched++; for (var _local4 in _local3) { user = _local3[_local4]; var _local2 = user.getVariables(); if ((((smartfox.myUserId < user.getId()) && (_local2.searching == 1)) && (_root.timesSearched <= 20)) && (((_root.myLevel - _local2.level) <= _root.timesSearched) && ((_root.myLevel - _local2.level) >= (-_root.timesSearched)))) { smartfox.sendPrivateMessage("/gameRequest", user.getId(), lobbyRoomID); _root.searchingGame = false; _root.timesSearched = 0; _root.timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } waitingGameResponseInterval = setInterval(waitingGameResponse, 10000); break; } } if (_root.timesSearched > 20) { _root.timesSearched = 0; } } function waitingGameResponse() { _root.timesWaited++; if (timesWaited >= 3) { if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } _root.timesWaited = 0; if (_root.waitingPlayer) { _root.waitingPlayer = false; smartfox.leaveRoom(gameRoomID); delete _root.gameRoomID; } if (_root.gameType == "random") { _root.searchingGame = true; _root.timesSearched = 0; _root.timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } searchGameInterval = setInterval(searchGame, 1500); } else if (_root.gameType == "challenge") { if (_root.challengerRequestID) { smartfox.sendPrivateMessage("/cancelChallenge", challengerRequestID, lobbyRoomID); delete _root.challengerRequestID; } waitingBattle.displayText.htmlText = "<font color='#FF6666'>No Response!</font>"; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.waitingBattleAnimation.stop(); } } } function gotoGame() { var _local3 = new Object(); _local3.searching = 0; _local3.inGame = 1; smartfox.setUserVariables(_local3); var _local4 = new Object(); _local4.inGame = 1; smartfox.setBuddyVariables(_local4); delete _root.inLobby; _root.inGame = true; waitingBattle.displayText.htmlText = "<font color='#00FF99'>Starting game...</font>"; waitingBattle.cancelBtn._alpha = 0; waitingBattle.cancelBtn.enabled = false; waitingBattle.waitingBattleAnimation.stop(); if (playSounds) { battlestart.start(); } startTime = getTimer() / 1000; waitingBattle.onEnterFrame = function () { if (lobby_music.getVolume() > 0) { lobby_music.setVolume(lobby_music.getVolume() - 5); } delay = getTimer() / 1000; if (startTime <= (delay - 3)) { if (intervalVal) { clearInterval(intervalVal); } lobby_music.stop(); lobby_music.setVolume(100); delete loadedSong; delete this.onEnterFrame; gotoAndStop ("game"); } }; } function viewDeck(deckID) { if ((defaultDeck != deckID) && (savingDefault == "")) { uncolorize(setAsDefault); setAsDefault.enabled = true; } else { colorize(setAsDefault, disabledColor); setAsDefault.enabled = false; } deckNameList = deckListString.split("<br>"); selectedLine = deckNameList.lastIndexOf((">" + deckID) + "<"); deckNameList[selectedLine] = ((("<a href='asfunction:viewDeck," + deckID) + "'><font color='#66FF99'>") + deckID) + "</font></a>"; if ((selectedDeck != "") && (selectedDeck != deckID)) { oldSelection = deckNameList.lastIndexOf((">" + selectedDeck) + "<"); if (selectedDeck == defaultDeck) { deckNameList[oldSelection] = ((("<a href='asfunction:viewDeck," + selectedDeck) + "'><font color='#FFCC66'>") + selectedDeck) + "</font></a>"; } else { deckNameList[oldSelection] = ((("<a href='asfunction:viewDeck," + selectedDeck) + "'><font color='#FFFFFF'>") + selectedDeck) + "</font></a>"; } } deckListString = deckNameList.join("<br>"); selectedDeck = deckID; cardsList.htmlText = deckListString; deckCardsListTab._alpha = 100; deckCardsListTab.enabled = true; deckCardsListTab.tabDisplay = ((_root.selectedDeck.length > 5) ? (_root.selectedDeck.substr(0, 5) + "...") : (_root.selectedDeck)); deckCardsListTab.tabName.htmlText = ("<font color='#FFFFFF'>" + deckCardsListTab.tabDisplay) + "</font>"; } function viewSelectedCard(cardID) { var _local1 = ((("window.open('" + webpage) + "/cardPopup.html?idCard=") + cardID) + "','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"; getURL (("javascript:" + _local1) + " void(0);"); } antiSpam = false; if (activeViewPlayerID) { delete activeViewPlayerID; } if (gameRoomID) { smartfox.leaveRoom(gameRoomID); delete gameRoomID; } colorize(setAsDefault, disabledColor); setAsDefault.enabled = false; colorize(cardManager, disabledColor); cardManager.enabled = false; savingDefault = ""; selectedDeck = ""; delete inGame; delete inManager; inLobby = true; cdTimer = 0; gameType = ""; playerViewer._alpha = 0; playerViewer.chat.enabled = false; playerViewer.challengePlayer.enabled = false; playerViewer.addToFriends.enabled = false; playerViewer.addToFriends.gotoAndStop(1); playerViewer.block.enabled = false; playerViewer.block.gotoAndStop(1); randomMatch._alpha = 0; randomMatch.enabled = false; waitingBattle._alpha = 0; waitingBattle.enabled = false; waitingBattle.cancelBtn.enabled = false; waitingBattle.displayText.htmlText = ""; selectedRoom = lobbyRoomID; publicChat[lobbyRoomID] = ""; gameChat.htmlText = ""; lobbyChatTab._x = 21; lobbyChatTab._y = 308; tradeChatTab._x = 71; tradeChatTab._y = 308; privateChatTab0._x = 125; privateChatTab0._y = 308; privateChatTab1._x = 179; privateChatTab1._y = 308; privateChatTab2._x = 233; privateChatTab2._y = 308; privateChatTab3._x = 287; privateChatTab3._y = 308; privateChatTab4._x = 341; privateChatTab4._y = 308; privateChatTab5._x = 395; privateChatTab5._y = 308; privateChatTab6._x = 449; privateChatTab6._y = 308; privateChatTab7._x = 503; privateChatTab7._y = 308; privateChatTab8._x = 557; privateChatTab8._y = 308; closeTab._x = 582; closeTab._y = 333; closeTab._alpha = 0; closeTab.enabled = false; clanListTab._alpha = 0; clanListTab.enabled = false; deckCardsListTab._alpha = 0; deckCardsListTab.enabled = false; if (publicChat[tradeRoomID] == "") { tradeChatTab._alpha = 0; tradeChatTab.enabled = false; } else { tradeChatTab._alpha = 100; tradeChatTab.enabled = true; } privateChatTab0.roomID = 0; if (privateChat[0] == "") { privateChatTab0._alpha = 0; privateChatTab0.enabled = false; } else { privateChatTab0._alpha = 100; privateChatTab0.enabled = true; } privateChatTab1.roomID = 1; if (privateChat[1] == "") { privateChatTab1._alpha = 0; privateChatTab1.enabled = false; } else { privateChatTab1._alpha = 100; privateChatTab1.enabled = true; } privateChatTab2.roomID = 2; if (privateChat[2] == "") { privateChatTab2._alpha = 0; privateChatTab2.enabled = false; } else { privateChatTab2._alpha = 100; privateChatTab2.enabled = true; } privateChatTab3.roomID = 3; if (privateChat[3] == "") { privateChatTab3._alpha = 0; privateChatTab3.enabled = false; } else { privateChatTab3._alpha = 100; privateChatTab3.enabled = true; } privateChatTab4.roomID = 4; if (privateChat[4] == "") { privateChatTab4._alpha = 0; privateChatTab4.enabled = false; } else { privateChatTab4._alpha = 100; privateChatTab4.enabled = true; } privateChatTab5.roomID = 5; if (privateChat[5] == "") { privateChatTab5._alpha = 0; privateChatTab5.enabled = false; } else { privateChatTab5._alpha = 100; privateChatTab5.enabled = true; } privateChatTab6.roomID = 6; if (privateChat[6] == "") { privateChatTab6._alpha = 0; privateChatTab6.enabled = false; } else { privateChatTab6._alpha = 100; privateChatTab6.enabled = true; } privateChatTab7.roomID = 7; if (privateChat[7] == "") { privateChatTab7._alpha = 0; privateChatTab7.enabled = false; } else { privateChatTab7._alpha = 100; privateChatTab7.enabled = true; } privateChatTab8.roomID = 8; if (privateChat[8] == "") { privateChatTab8._alpha = 0; privateChatTab8.enabled = false; } else { privateChatTab8._alpha = 100; privateChatTab8.enabled = true; } lobbyChatTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; tradeChatTab.tabName.htmlText = "<font color='#FFFFFF'>Trade</font>"; lobbyListTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; friendsListTab.tabName.htmlText = "<font color='#FFFFFF'>Friends</font>"; if (_root.clan) { displayClan.text = ("<" + _root.clan) + ">"; clanListTab._alpha = 100; clanListTab.enabled = true; clanListTab.tabDisplay = ((_root.clan.length > 5) ? (_root.clan.substr(0, 5) + "...") : (_root.clan)); clanListTab.tabName.htmlText = ("<font color='#FFFFFF'>" + clanListTab.tabDisplay) + "</font>"; tabCheck = 1; } else { displayClan.text = ""; clanListTab._alpha = 0; clanListTab.tabDisplay = ""; clanListTab.tabName.htmlText = ""; clanListTab.enabled = false; tabCheck = 0; } decksListTab.tabName.htmlText = "<font color='#FFFF66'>Decks</font>"; cardsListTab.tabName.htmlText = "Cards"; viewMyPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _root.myPicture, viewMyPicture.pictureClip); viewMyPicture.pictureClip._x = 0; viewMyPicture.pictureClip._y = 0; if (smartfox.amIModerator) { displayAccType.htmlText = "<font color='#00FFFF'>Moderator</font>"; } else if (_root.accType == "beginner") { displayAccType.htmlText = "<font color='#DDDDDD'>Beginner</font>"; } else if (_root.accType == "advanced") { displayAccType.htmlText = "<font color='#FFFFCC'>Advanced</font>"; } xpBarPos = Math.round((100 * experience) / xpNeeded); xpBarPos = ((xpBarPos == 0) ? 1 : (xpBarPos)); experienceBar.onEnterFrame = function () { if (this._currentframe >= xpBarPos) { this.gotoAndStop(xpBarPos); delete this.onEnterFrame; } }; playerViewer.addToFriends.onRelease = function () { if (friendsList.indexOf((">" + playerViewer.viewPlayerName.text) + "<") == -1) { smartfox.addBuddy(viewUser.getName()); colorize(playerViewer.block, disabledColor); playerViewer.block.enabled = false; this.gotoAndStop(2); } else { smartfox.removeBuddy(playerViewer.viewPlayerName.text); uncolorize(playerViewer.block); playerViewer.block.enabled = true; this.gotoAndStop(1); if (lobbyList.indexOf((">" + playerViewer.viewPlayerName.text) + "<") == -1) { playerViewer._alpha = 0; playerViewer.chat.enabled = false; playerViewer.addToFriends.enabled = false; playerViewer.block.enabled = false; playerViewer.challengePlayer.enabled = false; delete _root.activeViewPlayerID; } } }; ToolTip.install(_root.playerViewer.addToFriends, "Add/Remove this player to/from your friend's list.", 250); playerViewer.block.onRelease = function () { if (blockedFriends.indexOf((">" + playerViewer.viewPlayerName.text) + "<") == -1) { colorize(playerViewer.block, disabledColor); playerViewer.block.enabled = false; colorize(playerViewer.challengePlayer, disabledColor); playerViewer.challengePlayer.enabled = false; colorize(playerViewer.chat, disabledColor); playerViewer.chat.enabled = false; colorize(playerViewer.addToFriends, disabledColor); playerViewer.addToFriends.enabled = false; blockUser = playerViewer.viewPlayerName.text; smartfox.addBuddy(playerViewer.viewPlayerName.text); } else { uncolorize(playerViewer.block); playerViewer.block.enabled = true; uncolorize(playerViewer.challengePlayer); playerViewer.challengePlayer.enabled = true; uncolorize(playerViewer.chat); playerViewer.chat.enabled = true; uncolorize(playerViewer.addToFriends); playerViewer.addToFriends.enabled = true; unblockUser = playerViewer.viewPlayerName.text; smartfox.setBuddyBlockStatus(playerViewer.viewPlayerName.text, false); this.gotoAndStop(1); if (lobbyList.indexOf((">" + playerViewer.viewPlayerName.text) + "<") == -1) { playerViewer._alpha = 0; playerViewer.chat.enabled = false; playerViewer.addToFriends.enabled = false; playerViewer.block.enabled = false; playerViewer.challengePlayer.enabled = false; delete _root.activeViewPlayerID; } } }; ToolTip.install(_root.playerViewer.block, "Block this player this player from sending you private messages.", 250); playerViewer.chat.onRelease = function () { openChatFunction(); }; ToolTip.install(_root.playerViewer.chat, "Open a private chat with this player.", 250); lobbyChatTab.onRelease = function () { closeTab._alpha = 0; closeTab.enabled = false; if (_root.selectedRoom == tradeRoomID) { tradeChatTab.tabName.htmlText = "<font color='#FFFFFF'>Trade</font>"; lobbyChatTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; _root.selectedRoom = lobbyRoomID; gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom == gameRoomID) { gameChatTab.tabName.htmlText = "<font color='#FFFFFF'>Game</font>"; lobbyChatTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; _root.selectedRoom = lobbyRoomID; gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom != lobbyRoomID) { eval ("privateChatTab" + _root.selectedRoom).tabName.htmlText = ("<font color='#FFFFFF'>" + eval ("privateChatTab" + _root.selectedRoom).privChatName) + "</font>"; lobbyChatTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; _root.selectedRoom = lobbyRoomID; gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } }; tradeChatTab.onRelease = function () { closeTab._alpha = 0; closeTab.enabled = false; if (_root.selectedRoom == lobbyRoomID) { lobbyChatTab.tabName.htmlText = "<font color='#FFFFFF'>Lobby</font>"; tradeChatTab.tabName.htmlText = "<font color='#FFFF66'>Trade</font>"; _root.selectedRoom = tradeRoomID; gameChat.htmlText = publicChat[tradeRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom == gameRoomID) { gameChatTab.tabName.htmlText = "<font color='#FFFFFF'>Game</font>"; tradeChatTab.tabName.htmlText = "<font color='#FFFF66'>Trade</font>"; _root.selectedRoom = tradeRoomID; gameChat.htmlText = publicChat[tradeRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom != tradeRoomID) { eval ("privateChatTab" + _root.selectedRoom).tabName.htmlText = ("<font color='#FFFFFF'>" + eval ("privateChatTab" + _root.selectedRoom).privChatName) + "</font>"; tradeChatTab.tabName.htmlText = "<font color='#FFFF66'>Trade</font>"; _root.selectedRoom = tradeRoomID; gameChat.htmlText = publicChat[tradeRoomID]; gameChat.scroll = gameChat.maxscroll; } }; n = 0; while (n <= 8) { eval ("privateChatTab" + n).onRelease = function () { changeTabFocus(this.roomID); }; n++; } closeTab.onRollOver = function () { closeTab._alpha = 100; }; closeTab.onRollOut = function () { closeTab._alpha = 70; }; closeTab.onRelease = function () { closeTab._alpha = 0; closeTab.enabled = false; eval ("privateChatTab" + _root.selectedRoom)._alpha = 0; eval ("privateChatTab" + _root.selectedRoom).enabled = false; eval ("privateChatTab" + _root.selectedRoom).lineNumber = 0; delete eval ("privateChatTab" + _root.selectedRoom).playerID; delete eval ("privateChatTab" + _root.selectedRoom).playerName; delete eval ("privateChatTab" + _root.selectedRoom).privChatName; privateChat[_root.selectedRoom] = ""; n = _root.selectedRoom + 1; while (n <= 8) { thisChatTab = eval ("privateChatTab" + n); prevChatTab = eval ("privateChatTab" + Number(n - 1)); if (thisChatTab.enabled) { prevChatTab._alpha = 100; prevChatTab.enabled = true; prevChatTab.lineNumber = thisChatTab.lineNumber; prevChatTab.playerID = thisChatTab.playerID; prevChatTab.playerName = thisChatTab.playerName; prevChatTab.privChatName = thisChatTab.privChatName; prevChatTab.tabName.htmlText = thisChatTab.tabName.htmlText; privateChat[n - 1] = privateChat[n]; } else { prevChatTab._alpha = 0; prevChatTab.enabled = false; prevChatTab.lineNumber = 0; prevChatTab.tabName.htmlText = ""; delete prevChatTab.playerID; delete prevChatTab.playerName; delete prevChatTab.privChatName; privateChat[n - 1] = ""; break; } n++; } if (_root.inGame) { gameChatTab.tabName.htmlText = "<font color='#FFFF66'>Game</font>"; _root.selectedRoom = gameRoomID; gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; _root.selectedRoom = lobbyRoomID; gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } }; lobbyListTab.onRelease = function () { lobbyListTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; friendsListTab.tabName.htmlText = "<font color='#FFFFFF'>Friends</font>"; if (_root.clan) { clanListTab.tabName.htmlText = ("<font color='#FFFFFF'>" + clanListTab.tabDisplay) + "</font>"; } selectedList = "Lobby"; playersList.htmlText = lobbyList; }; friendsListTab.onRelease = function () { lobbyListTab.tabName.htmlText = "<font color='#FFFFFF'>Lobby</font>"; friendsListTab.tabName.htmlText = "<font color='#FFFF66'>Friends</font>"; if (_root.clan) { clanListTab.tabName.htmlText = ("<font color='#FFFFFF'>" + clanListTab.tabDisplay) + "</font>"; } selectedList = "Friends"; playersList.htmlText = friendsList; }; clanListTab.onRelease = function () { lobbyListTab.tabName.htmlText = "<font color='#FFFFFF'>Lobby</font>"; friendsListTab.tabName.htmlText = "<font color='#FFFFFF'>Friends</font>"; if (_root.clan) { clanListTab.tabName.htmlText = ("<font color='#FFFF66'>" + clanListTab.tabDisplay) + "</font>"; } selectedList = "Clan"; playersList.htmlText = clanList; }; randomMatch.onRelease = function () { var _local3 = new Object(); _local3.searching = 1; smartfox.setUserVariables(_local3); _root.gameType = "random"; _root.searchingGame = true; _root.timesSearched = 0; _root.timesWaited = 0; this._alpha = 0; this.enabled = false; this.swapDepths(waitingBattle); waitingBattle._alpha = 100; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.displayText.htmlText = "Searching for game..."; waitingBattle.waitingBattleAnimation.gotoAndPlay(1); waitingBattle.waitingBattleAnimation.play(); if (searchGameInterval != null) { clearInterval(searchGameInterval); } searchGameInterval = setInterval(searchGame, 1500); }; ToolTip.install(_root.randomMatch, "Play a game against a random player online. This match counts for experience points.", 250); playerViewer.challengePlayer.onRelease = function () { roomObj = smartfox.getRoom(_root.mainRoomID); viewUser = roomObj.getUser(Number(_root.activeViewPlayerID)); var _local3 = viewUser.getVariables(); if (_root.cdTimer > 0) { autoMsg(("You have just challenged someone. Please wait " + _root.cdTimer) + " seconds before challenging again."); } else if ((((_local3.searching == 0) || (_local3.searching == undefined)) && (_local3.chatRoom == 1)) && (_local3.inGame == 0)) { _root.gameType = "challenge"; _root.challengerRequestID = viewUser.getId(); colorize(this, disabledColor); this.enabled = false; randomMatch._alpha = 0; randomMatch.enabled = false; randomMatch.swapDepths(waitingBattle); waitingBattle._alpha = 100; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.displayText.htmlText = "Challenging Player..."; waitingBattle.waitingBattleAnimation.gotoAndPlay(1); waitingBattle.waitingBattleAnimation.play(); _root.cdTimer = 10; if (challengeCoolDownInterval != null) { clearInterval(challengeCoolDownInterval); } challengeCoolDownInterval = setInterval(challengeCoolDown, 2000); if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } waitingGameResponseInterval = setInterval(waitingGameResponse, 20000); smartfox.sendPrivateMessage("/challengeRequest", challengerRequestID, lobbyRoomID); } else { autoMsg("This player is currently unavailable for challenges."); } }; ToolTip.install(_root.playerViewer.challengePlayer, "Challenge this player to a friendly match. Challenges do not give you any experience points.", 250); waitingBattle.cancelBtn.onRelease = function () { var _local3 = new Object(); _local3.searching = 0; smartfox.setUserVariables(_local3); if (_root.challengerRequestID) { smartfox.sendPrivateMessage("/cancelChallenge", challengerRequestID, lobbyRoomID); delete _root.challengerRequestID; } _root.gameType = ""; _root.searchingGame = false; _root.timesSearched = 0; _root.timesWaited = 0; if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } if (searchGameInterval != null) { clearInterval(searchGameInterval); } waitingBattle._alpha = 0; waitingBattle.displayText.htmlText = ""; waitingBattle.waitingBattleAnimation.stop(); waitingBattle.swapDepths(randomMatch); this.enabled = false; randomMatch._alpha = 100; randomMatch.enabled = true; if (_root.activeViewPlayerID) { uncolorize(playerViewer.challengePlayer); playerViewer.challengePlayer.enabled = true; } }; decksListTab.onRelease = function () { if (_root.selectedDeck != _root.defaultDeck) { uncolorize(setAsDefault); setAsDefault.enabled = true; } decksListTab.tabName.htmlText = "<font color='#FFFF66'>Decks</font>"; deckCardsListTab.tabName.htmlText = ("<font color='#FFFFFF'>" + deckCardsListTab.tabDisplay) + "</font>"; cardsList.htmlText = deckListString; }; deckCardsListTab.onRelease = function () { colorize(setAsDefault, disabledColor); setAsDefault.enabled = false; decksListTab.tabName.htmlText = "<font color='#FFFFFF'>Decks</font>"; deckCardsListTab.tabName.htmlText = ("<font color='#FFFF66'>" + deckCardsListTab.tabDisplay) + "</font>"; cardsList.htmlText = "Loading cards..."; loadCardsFromDeck.load((((((webpage + "/managerFiles/loadCardsFromDeck.asp?idUser=") + idUser) + "&loadedDeck=") + _root.selectedDeck) + "&rn=") + random(10000)); }; setAsDefault.onRelease = function () { colorize(this, disabledColor); this.enabled = false; savingDefault = selectedDeck; deckNameList = deckListString.split("<br>"); selectedLine = deckNameList.lastIndexOf((">" + _root.selectedDeck) + "<"); oldDefaultLine = deckNameList.lastIndexOf((">" + _root.defaultDeck) + "<"); setDefaultURL.load((((((webpage + "/managerFiles/defaultDeck.asp?idUser=") + idUser) + "&deckName=") + _root.selectedDeck) + "&rn=") + random(10000)); }; ToolTip.install(_root.setAsDefault, "Set this deck as your default deck.", 250); sendButton.onRelease = function () { if (!antiSpam) { sendChatMsg(msgBox); antiSpam = true; antiSpamTimer = getTimer() / 1000; if (viewMyPicture) { viewMyPicture.onEnterFrame = function () { delay = getTimer() / 1000; if (antiSpamTimer <= (delay - 4)) { antiSpam = false; delete this.onEnterFrame; } }; } } }; var loadMyDecks = new LoadVars(); loadMyDecks.onLoad = function (success) { if (success) { myDecksLoaded = true; deckListString = ""; deckNameList = this.deckNameList.split(","); i = 0; while (i < deckNameList.length) { if (defaultDeck == deckNameList[i]) { deckListString = deckListString + (((("<a href='asfunction:viewDeck," + deckNameList[i]) + "'><font color='#FFCC66'>") + deckNameList[i]) + "</font></a><br>"); } else { deckListString = deckListString + (((("<a href='asfunction:viewDeck," + deckNameList[i]) + "'><font color='#FFFFFF'>") + deckNameList[i]) + "</font></a><br>"); } i++; } cardsList.htmlText = deckListString; delete deckNameList; } }; var loadCardsFromDeck = new LoadVars(); loadCardsFromDeck.onLoad = function (success) { if (success) { cardsList.htmlText = ""; i = 1; while (i <= this.totalCards) { cardsList.htmlText = cardsList.htmlText + (((((("<a href='asfunction:viewSelectedCard," + loadCardsFromDeck["idCard" + i]) + "'><font color='#FFFFFF'>") + loadCardsFromDeck["quantity" + i]) + " ") + loadCardsFromDeck["cardName" + i]) + "</font></a><br>"); i++; } } }; var setDefaultURL = new LoadVars(); setDefaultURL.onLoad = function (success) { if (success) { deckNameList[selectedLine] = ((("<a href='asfunction:viewDeck," + savingDefault) + "'><font color='#FFCC66'>") + savingDefault) + "</font></a>"; deckNameList[oldDefaultLine] = ((("<a href='asfunction:viewDeck," + defaultDeck) + "'><font color='#FFFFFF'>") + defaultDeck) + "</font></a>"; deckListString = deckNameList.join("<br>"); cardsList.htmlText = deckListString; defaultDeck = savingDefault; } else { autoMsg("Error saving deck. Please try again."); } savingDefault = ""; if (selectedDeck != defaultDeck) { uncolorize(setAsDefault); setAsDefault.enabled = true; } }; cardsList.htmlText = "Loading decks..."; loadMyDecks.load((((webpage + "/managerFiles/loadMyDecks.asp?idUser=") + idUser) + "&rn=") + random(10000)); cardManager.onRelease = function () { if (clanRoomID) { smartfox.leaveRoom(clanRoomID); delete clanRoomID; } n = 0; while (n <= 8) { privateChat[n] = ""; n++; } smartfox.leaveRoom(lobbyRoomID); smartfox.leaveRoom(tradeRoomID); gotoAndStop ("manager"); }; var styles = (new TextField.StyleSheet()); styles.onLoad = function (success) { if (success) { cardsList.styleSheet = styles; gameChat.styleSheet = styles; playersList.styleSheet = styles; } }; styles.load(webpage + "/game/gamestyles.css"); onEnterFrame = function () { if (loadedSong.getVolume() > 0) { loadedSong.setVolume(loadedSong.getVolume() - 5); } else if (playMusic) { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = lobby_music; loadedSong.start(); intervalVal = setInterval(loopSong, 1); delete this.onEnterFrame; } else { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = lobby_music; delete this.onEnterFrame; } }; smartfox.joinRoom(lobbyRoomID, "", false, true);Instance of Symbol 404 MovieClip [UIScrollBar] "chatboxSb" in Frame 7//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "chatboxSb2" in Frame 7//component parameters onClipEvent (construct) { _targetInstanceName = "playersList"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "chatboxSb3" in Frame 7//component parameters onClipEvent (construct) { _targetInstanceName = "cardsList"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Frame 8account_setup.onRelease = function () { openPage("account/editAccount.asp"); }; tradeCards.onRelease = function () { openPage("trade/tradeMarket.asp"); }; surrender.onRelease = function () { if (((((!_root.bonusCards) && (!_root.waitingResponse)) && (!_root.okResponse2)) && (!_root.okResponse)) && (!_root.okCancelResponse)) { okCancelResponseBlackBox("surrenderFromGame"); } }; logout.onRelease = function () { if (((((!_root.bonusCards) && (!_root.waitingResponse)) && (!_root.okResponse2)) && (!_root.okResponse)) && (!_root.okCancelResponse)) { okCancelResponseBlackBox("logoutFromGame"); } }; if (playMusic) { soundButton.gotoAndStop(1); } else { soundButton.gotoAndStop(2); } soundButton.onRelease = function () { if (!playMusic) { this.gotoAndStop(1); playMusic = true; loadedSong.start(); intervalVal = setInterval(loopSong, 1); autoMsg("Music On."); localSaves.data.musicOff = false; localSaves.flush(); } else { playMusic = false; loadedSong.stop(); this.gotoAndStop(2); if (intervalVal) { clearInterval(intervalVal); } autoMsg("Music Off."); localSaves.data.musicOff = true; localSaves.flush(); } }; function testCardUpdates(cardObj) { returnValue = false; if (cardObj.oldPower != cardObj.powerCount) { cardObj.oldPower = cardObj.powerCount; returnValue = true; } if (cardObj.oldResistence != cardObj.resistenceCount) { cardObj.oldResistence = cardObj.resistenceCount; returnValue = true; } if (cardObj.attackCounts && (cardObj.oldAttackCounts != cardObj.attackCounts)) { cardObj.oldAttackCounts = cardObj.attackCounts; returnValue = true; } if (cardObj.oldTapped != cardObj.tapped) { cardObj.oldTapped = cardObj.tapped; returnValue = true; } return(returnValue); } function testOpHand(newNumber) { opHandViewer.gotoAndStop(newNumber + 1); if (_root.opHand < newNumber) { _root.opHand; while (_root.opHand < newNumber) { solveOpDrawFunctionsFromMyCards(eval ("myCard" + tablePos[2].idCard)); solveOpDrawFunctionsFromMyCards(eval ("myCard" + tablePos[3].idCard)); solveOpDrawFunctionsFromMyCards(eval ("myCard" + tablePos[4].idCard)); solveOpDrawFunctionsFromMyCards(eval ("myCard" + tablePos[8].idCard)); solveOpDrawFunctionsFromOpCards(opCard2); solveOpDrawFunctionsFromOpCards(opCard3); solveOpDrawFunctionsFromOpCards(opCard4); solveOpDrawFunctionsFromOpCards(opCard8); sendStatsUpdate(); _root.opHand++; } } else { _root.opHand = newNumber; } } function testGeneralUpdates(obj) { if (noMoreCards) { obj.noMoreOpCards = true; } if (_root.oldMyDeck != _root.myDeck) { obj.opDeck = _root.myDeck; _root.oldMyDeck = _root.myDeck; } if (_root.oldMyHand != _root.myHand) { obj.opHand = _root.myHand; _root.oldMyHand = _root.myHand; } if (_root.oldMyLife != _root.myLife) { obj.opLife = _root.myLife; _root.oldMyLife = _root.myLife; } if (_root.oldMyDiscard != _root.myDiscard) { obj.opDiscard = _root.myDiscard; _root.oldMyDiscard = _root.myDiscard; } if (testCardUpdates(_root.weaponCardObj)) { if (_root.weaponCardObj.attackCounts) { obj.newWeaponAC = _root.weaponCardObj.attackCounts; } obj.newWeaponPow = _root.weaponCardObj.powerCount; obj.newWeaponRes = _root.weaponCardObj.resistenceCount; obj.weaponPos = _root.weaponCardObj.posNumber; } if (testCardUpdates(_root.shieldCardObj)) { obj.newShieldPow = _root.shieldCardObj.powerCount; obj.newShieldRes = _root.shieldCardObj.resistenceCount; obj.shieldPos = _root.shieldCardObj.posNumber; } if (testCardUpdates(_root.armorCardObj)) { obj.newArmorPow = _root.armorCardObj.powerCount; obj.newArmorRes = _root.armorCardObj.resistenceCount; obj.armorPos = _root.armorCardObj.posNumber; } } function sendPhase(phase, cardObj, action) { var _local1 = {}; _local1.type = "phase"; _local1.phase = phase; testGeneralUpdates(_local1); if (action == "playCard") { _local1.idCard = Number(cardObj.idCard); _local1.name = cardObj.name; _local1.model = cardObj.model; _local1.frame = cardObj._currentframe; _local1.picture = cardObj.picture; _local1.posNumber = cardObj.posNumber; _local1.power = cardObj.power; _local1.powerCount = cardObj.powerCount; _local1.resistence = cardObj.resistence; _local1.resistenceCount = cardObj.resistenceCount; _local1.tapped = cardObj.tapped; _local1.attackCounts = cardObj.attackCounts; _local1.cardType = cardObj.type; _local1.subtype = cardObj.subtype; _local1.textFunc = cardObj.textFunc; _local1.artist = cardObj.artist; _local1.collection = cardObj.collection; _local1.rarity = cardObj.rarity; _local1.playfunc1 = cardObj.playfunc1; _local1.playfunc2 = cardObj.playfunc2; _local1.playfunc3 = cardObj.playfunc3; _local1.playfunc4 = cardObj.playfunc4; _local1.playfunc5 = cardObj.playfunc5; _local1.playfunc6 = cardObj.playfunc6; _local1.attackedbyfunc1 = cardObj.attackedbyfunc1; _local1.attackedbyfunc2 = cardObj.attackedbyfunc2; _local1.attackfunc1 = cardObj.attackfunc1; _local1.attackfunc2 = cardObj.attackfunc2; _local1.attackblockfunc1 = cardObj.attackblockfunc1; _local1.attackblockfunc2 = cardObj.attackblockfunc2; _local1.itemblockfunc1 = cardObj.itemblockfunc1; _local1.itemblockfunc2 = cardObj.itemblockfunc2; _local1.drawfunc1 = cardObj.drawfunc1; _local1.drawfunc2 = cardObj.drawfunc2; _local1.opdrawfunc1 = cardObj.opdrawfunc1; _local1.opdrawfunc2 = cardObj.opdrawfunc2; _local1.discardfunc1 = cardObj.discardfunc1; _local1.discardfunc2 = cardObj.discardfunc2; _local1.opdiscardfunc1 = cardObj.opdiscardfunc1; _local1.opdiscardfunc2 = cardObj.opdiscardfunc2; if (cardObj.e) { _local1.e = true; } if (cardObj.av) { _local1.av = true; } if (cardObj.h) { _local1.h = true; } if (cardObj.a) { _local1.a = true; } if (cardObj.s) { _local1.s = true; } if (cardObj.w) { _local1.w = true; } if (cardObj.p) { _local1.p = true; } if (cardObj.m) { _local1.m = true; } if (cardObj.k) { _local1.k = true; } if (cardObj.g) { _local1.g = true; } } smartfox.sendObject(_local1); } function sendCreateModifierIcon(catchName, modType, catchToolTip, pos, picture) { var _local1 = {}; _local1.type = "createOpModifier"; _local1.catchName = catchName; _local1.modType = modType; _local1.catchToolTip = catchToolTip; _local1.pos = pos; _local1.picture = picture; smartfox.sendObject(_local1); } function sendUpdateModifierIcon(catchToolTip, pos) { var _local1 = {}; _local1.type = "updateOpModifier"; _local1.catchToolTip = catchToolTip; _local1.pos = pos; smartfox.sendObject(_local1); } function sendRemoveModifierIcon(pos) { var _local1 = {}; _local1.type = "removeOpModifier"; _local1.pos = pos; smartfox.sendObject(_local1); } function sendPlayCard(cardObj) { var _local1 = {}; testGeneralUpdates(_local1); _local1.type = "playCard"; _local1.idCard = Number(cardObj.idCard); _local1.name = cardObj.name; _local1.model = cardObj.model; _local1.frame = cardObj._currentframe; _local1.picture = cardObj.picture; _local1.posNumber = cardObj.posNumber; _local1.power = cardObj.power; _local1.powerCount = cardObj.powerCount; _local1.resistence = cardObj.resistence; _local1.resistenceCount = cardObj.resistenceCount; _local1.tapped = cardObj.tapped; _local1.attackCounts = cardObj.attackCounts; _local1.cardType = cardObj.type; _local1.subtype = cardObj.subtype; _local1.textFunc = cardObj.textFunc; _local1.artist = cardObj.artist; _local1.collection = cardObj.collection; _local1.rarity = cardObj.rarity; _local1.playfunc1 = cardObj.playfunc1; _local1.playfunc2 = cardObj.playfunc2; _local1.playfunc3 = cardObj.playfunc3; _local1.playfunc4 = cardObj.playfunc4; _local1.playfunc5 = cardObj.playfunc5; _local1.playfunc6 = cardObj.playfunc6; _local1.attackedbyfunc1 = cardObj.attackedbyfunc1; _local1.attackedbyfunc2 = cardObj.attackedbyfunc2; _local1.attackfunc1 = cardObj.attackfunc1; _local1.attackfunc2 = cardObj.attackfunc2; _local1.attackblockfunc1 = cardObj.attackblockfunc1; _local1.attackblockfunc2 = cardObj.attackblockfunc2; _local1.itemblockfunc1 = cardObj.itemblockfunc1; _local1.itemblockfunc2 = cardObj.itemblockfunc2; _local1.drawfunc1 = cardObj.drawfunc1; _local1.drawfunc2 = cardObj.drawfunc2; _local1.opdrawfunc1 = cardObj.opdrawfunc1; _local1.opdrawfunc2 = cardObj.opdrawfunc2; _local1.discardfunc1 = cardObj.discardfunc1; _local1.discardfunc2 = cardObj.discardfunc2; _local1.opdiscardfunc1 = cardObj.opdiscardfunc1; _local1.opdiscardfunc2 = cardObj.opdiscardfunc2; if (cardObj.e) { _local1.e = true; } if (cardObj.av) { _local1.av = true; } if (cardObj.h) { _local1.h = true; } if (cardObj.a) { _local1.a = true; } if (cardObj.s) { _local1.s = true; } if (cardObj.w) { _local1.w = true; } if (cardObj.p) { _local1.p = true; } if (cardObj.m) { _local1.m = true; } if (cardObj.k) { _local1.k = true; } if (cardObj.g) { _local1.g = true; } smartfox.sendObject(_local1); } function sendArtifactUpdate(cardObj) { var _local1 = {}; if (testCardUpdates(cardObj)) { _local1.type = "artifactUpdate"; _local1.posNumber = cardObj.posNumber; _local1.pCount = cardObj.powerCount; _local1.rCount = cardObj.resistenceCount; _local1.aCount = cardObj.attackCounts; _local1.tap = cardObj.tapped; smartfox.sendObject(_local1); } } function sendStatsUpdate() { var _local1 = {}; _local1.type = "statsUpdate"; testGeneralUpdates(_local1); smartfox.sendObject(_local1); } function sendRemoveCard(cardObj, funcTrigger, destroyedByOp) { var _local1 = {}; _local1.type = "removeCard"; testGeneralUpdates(_local1); _local1.posNumber = cardObj.posNumber; if (destroyedByOp) { _local1.destroyfunc1 = cardObj.destroyfunc1; _local1.destroyfunc2 = cardObj.destroyfunc2; } else { _local1.removefunc1 = cardObj.removefunc1; _local1.removefunc2 = cardObj.removefunc2; _local1.removefunc3 = cardObj.removefunc3; } if (funcTrigger) { _local1.noAnimation = true; } smartfox.sendObject(_local1); } function sendDiscardCard(cardObj) { var _local1 = {}; _local1.type = "discardCard"; testGeneralUpdates(_local1); smartfox.sendObject(_local1); } function sendAttack(cardObj) { var _local1 = {}; _local1.type = "attack"; testGeneralUpdates(_local1); _local1.posNumber = cardObj.posNumber; if (cardObj.attackCounts != undefined) { _local1.attackCounts = cardObj.attackCounts; } if (cardObj.tapped) { _local1.tapped = true; } if (cardObj.imuneToCounter) { _local1.imuneToCounter = true; } if (cardObj.ignoreTurnArmor) { _local1.ignoreTurnArmor = true; } if (cardObj.unblockable) { _local1.unblockable = true; } smartfox.sendObject(_local1); } function sendSolveAttack(damage, cardObj) { var _local2 = {}; _local2.type = "solveAttack"; testGeneralUpdates(_local2); if (_root.attackBlocked) { _local2.attackBlocked = true; } if (damage) { _local2.damage = damage; } resetAndStopTimer(); smartfox.sendObject(_local2); _root.opWeaponCardObj.imuneToCounter = false; delete _root.opWeaponCardObj; } function sendAbility(cardObj) { var _local3 = {}; _local3.type = "ability"; _local3.idCard = cardObj.idCard; _local3.name = cardObj.name; _local3.model = cardObj.model; _local3.frame = cardObj._currentframe; _local3.cardType = cardObj.type; _local3.subtype = cardObj.subtype; _local3.textFunc = cardObj.textFunc; _local3.artist = cardObj.artist; _local3.collection = cardObj.collection; _local3.rarity = cardObj.rarity; _local3.picture = cardObj.picture; _local3.opHand = _root.myHand; _root.oldMyHand = _root.myHand; if (cardObj.playfunc1) { _local3.func1 = cardObj.playfunc1; } if (cardObj.playfunc2) { _local3.func2 = cardObj.playfunc2; } if (cardObj.playfunc3) { _local3.func3 = cardObj.playfunc3; } if (cardObj.playfunc4) { _local3.func4 = cardObj.playfunc4; } if (cardObj.playfunc5) { _local3.func5 = cardObj.playfunc5; } if (cardObj.playfunc6) { _local3.func6 = cardObj.playfunc6; } if (cardObj.e) { _local3.e = true; } if (cardObj.av) { _local3.av = true; } if (cardObj.h) { _local3.h = true; } if (cardObj.a) { _local3.a = true; } if (cardObj.s) { _local3.s = true; } if (cardObj.w) { _local3.w = true; } if (cardObj.p) { _local3.p = true; } if (cardObj.m) { _local3.m = true; } if (cardObj.k) { _local3.k = true; } if (cardObj.g) { _local3.g = true; } smartfox.sendObject(_local3); } function sendSolveAbility() { var _local2 = {}; _local2.type = "solveAbility"; testGeneralUpdates(_local2); if (_root.armorCardObj) { _local2.armorRes = _root.armorCardObj.resistenceCount; } resetAndStopTimer(); smartfox.sendObject(_local2); } function sendSolveAbilityAb() { var _local2 = {}; _local2.type = "solveAbilityAb"; testGeneralUpdates(_local2); if (_root.armorCardObj) { _local2.armorRes = _root.armorCardObj.resistenceCount; } smartfox.sendObject(_local2); } function sendSolveAbilityDef() { var _local2 = {}; _local2.type = "solveAbilityDef"; testGeneralUpdates(_local2); if (_root.armorCardObj) { _local2.armorRes = _root.armorCardObj.resistenceCount; } smartfox.sendObject(_local2); } function sendCounterAbility(cardObj, from, armorRes) { var _local2 = {}; if (from == "attack") { _local2.type = "cAttackAbility"; } else { _local2.type = "cAbilityAbility"; } _local2.idCard = cardObj.idCard; _local2.name = cardObj.name; _local2.model = cardObj.model; _local2.frame = cardObj._currentframe; _local2.cardType = cardObj.type; _local2.subtype = cardObj.subtype; _local2.textFunc = cardObj.textFunc; _local2.artist = cardObj.artist; _local2.collection = cardObj.collection; _local2.rarity = cardObj.rarity; _local2.picture = cardObj.picture; _local2.opHand = _root.myHand; _root.oldMyHand = _root.myHand; if (cardObj.playfunc1) { _local2.func1 = cardObj.playfunc1; } if (cardObj.playfunc2) { _local2.func2 = cardObj.playfunc2; } if (cardObj.playfunc3) { _local2.func3 = cardObj.playfunc3; } if (cardObj.playfunc4) { _local2.func4 = cardObj.playfunc4; } if (cardObj.playfunc5) { _local2.func5 = cardObj.playfunc5; } if (cardObj.playfunc6) { _local2.func6 = cardObj.playfunc6; } if (cardObj.e) { _local2.e = true; } if (cardObj.av) { _local2.av = true; } if (cardObj.h) { _local2.h = true; } if (cardObj.a) { _local2.a = true; } if (cardObj.s) { _local2.s = true; } if (cardObj.w) { _local2.w = true; } if (cardObj.p) { _local2.p = true; } if (cardObj.m) { _local2.m = true; } if (cardObj.k) { _local2.k = true; } if (cardObj.g) { _local2.g = true; } resetAndStopTimer(); smartfox.sendObject(_local2); } function sendGameOver(res) { var _local1 = {}; _local1.type = "gameover"; _local1.res = res; testGeneralUpdates(_local1); smartfox.sendObject(_local1); } function sendDefeatedStatus(opLvl, opXp, opXpLost) { var _local1 = {}; _local1.type = "newDefeatedStatus"; _local1.newLvl = opLvl; _local1.newXp = opXp; _local1.xpLost = opXpLost; smartfox.sendObject(_local1); } function sendJoinGameTo(player) { var _local2 = {}; _local2.type = player; _local2.opName = _root.myName; _local2.opLevel = _root.myLevel; _local2.opPicture = _root.myPicture; _local2.opId = _root.idUser; _local2.opLife = _root.myLife; _local2.opHand = _root.myHand; _local2.opDeck = _root.myDeck; _local2.opClasses = _root.myClasses; _local2.opDiscard = _root.myDiscard; _local2.bg = _root.loadedBackground; smartfox.sendObject(_local2); } function startGame(who) { if (who == "player2") { autoMsg(myName + _root.whoStartsSentence); _root.currentPlayerTurn = "my"; phaseChange("equipPhase", "my"); var _local2 = {}; _local2.type = "p2Start"; smartfox.sendObject(_local2); } else { autoMsg(opName + _root.whoStartsSentence); var _local2 = {}; _local2.type = "p1Start"; smartfox.sendObject(_local2); } } function saveStats() { var _local2 = {}; _local2.idUser = _root.idUser; _local2.idLoser = _root.opId; smartfox.sendXtMessage("saveGame", "getData", _local2, "xml"); } function saveBonus(card1, card2) { var _local2 = {}; _local2.idUser = _root.idUser; _local2.card1 = card1; _local2.card2 = card2; smartfox.sendXtMessage("saveGame", "getBonus", _local2, "xml"); } smartfox.onExtensionResponse = function (resObj, type) { if (resObj._cmd == "getData") { _root.waitingResponse.removeMovieClip(); sendDefeatedStatus(resObj.db[0].opLvl, resObj.db[0].opXp, resObj.db[0].opXpLost); _root.experience = resObj.db[0].xp; autoMsg(("You gained " + resObj.db[0].xpGained) + " experience points"); if (resObj.db[0].lvl > _root.myLevel) { autoMsg((("You advanced from level " + _root.myLevel) + " to level ") + resObj.db[0].lvl); var _local4 = new Object(); _local4.$level = Number(resObj.db[0].lvl); smartfox.setBuddyVariables(_local4); var _local3 = new Object(); _local3.level = Number(resObj.db[0].lvl); smartfox.setUserVariables(_local3); } if (resObj.db[0].bonus) { openBonus(resObj.db[0].idCard1, resObj.db[0].picture1, resObj.db[0].model1, resObj.db[0].idCard2, resObj.db[0].picture2, resObj.db[0].model2, resObj.db[0].idCard3, resObj.db[0].picture3, resObj.db[0].model3, resObj.db[0].idCard4, resObj.db[0].picture4, resObj.db[0].model4, resObj.db[0].idCard5, resObj.db[0].picture5, resObj.db[0].model5); } _root.myLevel = resObj.db[0].lvl; if (_root.myLevel == 1) { _root.xpNeeded = 100; } else if (_root.myLevel == 2) { _root.xpNeeded = 250; } else if (_root.myLevel == 3) { _root.xpNeeded = 450; } else if (_root.myLevel == 4) { _root.xpNeeded = 600; } else if (_root.myLevel >= 5) { _root.xpNeeded = 900; } _root.totalXp = (_root.experience + "/") + _root.xpNeeded; saveStatsOver("win"); } else if (resObj._cmd == "getBonus") { _root.waitingResponse.removeMovieClip(); saveStatsOver("win"); } }; smartfox.onObjectReceived = function (objRes) { if (objRes.noMoreOpCards != undefined) { _root.noMoreOpCards = true; } if (objRes.opDeck != undefined) { _root.opDeck = objRes.opDeck; } if (objRes.opHand != undefined) { testOpHand(objRes.opHand); } if (objRes.opLife != undefined) { setOpLife(objRes.opLife); } if (objRes.opDiscard != undefined) { _root.opDiscard = objRes.opDiscard; } if (objRes.newWeaponPow != undefined) { if (objRes.newWeaponAC != undefined) { eval ("opCard" + objRes.weaponPos).attackCounts = objRes.newWeaponAC; } eval ("opCard" + objRes.weaponPos).powerCount = objRes.newWeaponPow; if (eval ("opCard" + objRes.weaponPos).resistenceCount != objRes.newWeaponRes) { updateOpCard(eval ("opCard" + objRes.weaponPos), objRes.newWeaponRes); } } if (objRes.newShieldPow != undefined) { eval ("opCard" + objRes.shieldPos).powerCount = objRes.newShieldPow; if (eval ("opCard" + objRes.shieldPos).resistenceCount != objRes.newShieldRes) { updateOpCard(eval ("opCard" + objRes.shieldPos), objRes.newShieldRes); } } if (objRes.newArmorPow != undefined) { eval ("opCard" + objRes.armorPos).powerCount = objRes.newArmorPow; if (eval ("opCard" + objRes.armorPos).resistenceCount != objRes.newArmorRes) { updateOpCard(eval ("opCard" + objRes.armorPos), objRes.newArmorRes); } } switch (objRes.type) { case "phase" : if (objRes.untap != undefined) { untap(eval ("opCard" + objRes.untap)); } if (objRes.idCard != undefined) { createOpCardObj(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.picture, objRes.posNumber, objRes.power, objRes.powerCount, objRes.resistence, objRes.resistenceCount, objRes.attackCounts, objRes.tapped, objRes.cardType, objRes.subtype, objRes.textFunc, objRes.artist, objRes.collection, objRes.rarity, objRes.playfunc1, objRes.playfunc2, objRes.playfunc3, objRes.playfunc4, objRes.playfunc5, objRes.playfunc6, objRes.attackedbyfunc1, objRes.attackedbyfunc2, objRes.attackfunc1, objRes.attackfunc2, objRes.attackblockfunc1, objRes.attackblockfunc2, objRes.itemblockfunc1, objRes.itemblockfunc2, objRes.drawfunc1, objRes.drawfunc2, objRes.opdrawfunc1, objRes.opdrawfunc2, objRes.discardfunc1, objRes.discardfunc2, objRes.opdiscardfunc1, objRes.opdiscardfunc2, objRes.e, objRes.av, objRes.h, objRes.a, objRes.s, objRes.w, objRes.p, objRes.m, objRes.k, objRes.g); } if (objRes.phase == "opTurn") { if (opTimerStarted) { opTimerStarted = false; stopOpTimer(); } phaseChange("drawPhase", "my"); } else { if (!opTimerStarted) { opTimerStarted = true; startOpTimer(); } phaseChange(objRes.phase, "op"); } break; case "createOpModifier" : newModIcon = _root.attachMovie(objRes.modType + "ModIcon", "opModIcon" + objRes.pos, (_root.modifierDepth + 100) + Number(objRes.pos)); opModifierPos[objRes.pos].used = true; opModifierPos[objRes.pos].name = objRes.catchName; newModIcon.fixedToolTip = true; newModIcon._x = opModifierPos[objRes.pos].xPos; newModIcon._y = opModifierPos[objRes.pos].yPos; newModIcon.createEmptyMovieClip("pictureClip", newModIcon.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + objRes.picture, newModIcon.pictureClip); newModIcon.pictureClip._x = 1; newModIcon.pictureClip._y = 1; newModIcon.pictureClip._xscale = 46; newModIcon.pictureClip._yscale = 47; ToolTip.install(newModIcon, objRes.catchToolTip, 1); break; case "updateOpModifier" : if (objRes.catchToolTip != eval ("opModIcon" + objRes.pos).toolTipText) { sparkle = eval ("opModIcon" + objRes.pos).attachMovie("sparkle_mc", "sparkle_mc", eval ("opModIcon" + objRes.pos).getNextHighestDepth()); sparkle.i = 0; sparkle.onEnterFrame = function () { this.i++; if (this.i >= 25) { this.removeMovieClip(); } }; eval ("opModIcon" + objRes.pos).toolTipText = objRes.catchToolTip; } break; case "removeOpModifier" : eval ("opModIcon" + objRes.pos).removeMovieClip(); opModifierPos[objRes.pos].used = false; opModifierPos[objRes.pos].name = ""; i = Number(objRes.pos) + 1; while (i <= 13) { if (opModifierPos[i].used) { opModifierPos[i - 1].used = true; opModifierPos[i - 1].name = opModifierPos[i].name; eval ("opModIcon" + i)._x = opModifierPos[i - 1].xPos; eval ("opModIcon" + i)._y = opModifierPos[i - 1].yPos; eval ("opModIcon" + i).swapDepths((_root.modifierDepth + 100) + Number(i - 1)); eval ("opModIcon" + i)._name = "opModIcon" + Number(i - 1); } else { opModifierPos[i - 1].used = false; opModifierPos[i - 1].name = ""; eval ("opModIcon" + Number(i - 1)).removeMovieClip(); break; } i++; } break; case "playCard" : if (objRes.idCard != undefined) { createOpCardObj(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.picture, objRes.posNumber, objRes.power, objRes.powerCount, objRes.resistence, objRes.resistenceCount, objRes.attackCounts, objRes.tapped, objRes.cardType, objRes.subtype, objRes.textFunc, objRes.artist, objRes.collection, objRes.rarity, objRes.playfunc1, objRes.playfunc2, objRes.playfunc3, objRes.playfunc4, objRes.playfunc5, objRes.playfunc6, objRes.attackedbyfunc1, objRes.attackedbyfunc2, objRes.attackfunc1, objRes.attackfunc2, objRes.attackblockfunc1, objRes.attackblockfunc2, objRes.itemblockfunc1, objRes.itemblockfunc2, objRes.drawfunc1, objRes.drawfunc2, objRes.opdrawfunc1, objRes.opdrawfunc2, objRes.discardfunc1, objRes.discardfunc2, objRes.opdiscardfunc1, objRes.opdiscardfunc2, objRes.e, objRes.av, objRes.h, objRes.a, objRes.s, objRes.w, objRes.p, objRes.m, objRes.k, objRes.g); } break; case "attack" : _root.opWeaponCardObj = eval ("opCard" + objRes.posNumber); if (objRes.imuneToCounter != undefined) { _root.opWeaponCardObj.imuneToCounter = true; } else { _root.opWeaponCardObj.imuneToCounter = false; } if (objRes.ignoreTurnArmor != undefined) { _root.opWeaponCardObj.ignoreTurnArmor = true; } else { _root.opWeaponCardObj.ignoreTurnArmor = false; } if (objRes.unblockable != undefined) { _root.opWeaponCardObj.unblockable = true; } else { _root.opWeaponCardObj.unblockable = false; } if (objRes.tapped != undefined) { tap(_root.opWeaponCardObj); } if (objRes.attackCounts != undefined) { _root.opWeaponCardObj.attackCounts = objRes.attackCounts; } startTimer("fast"); defenseResponseBox(); break; case "solveAttack" : if (objRes.attackBlocked != undefined) { solveBlockedFunctions(eval ("myCard" + tablePos[2].idCard)); solveBlockedFunctions(eval ("myCard" + tablePos[3].idCard)); solveBlockedFunctions(eval ("myCard" + tablePos[4].idCard)); solveBlockedFunctions(eval ("myCard" + tablePos[8].idCard)); } else { solveUnblockedFunctions(eval ("myCard" + tablePos[2].idCard)); solveUnblockedFunctions(eval ("myCard" + tablePos[3].idCard)); solveUnblockedFunctions(eval ("myCard" + tablePos[4].idCard)); solveUnblockedFunctions(eval ("myCard" + tablePos[8].idCard)); } solveOpAttackedbyFunctions(opCard2); solveOpAttackedbyFunctions(opCard3); solveOpAttackedbyFunctions(opCard4); solveOpAttackedbyFunctions(opCard8); if ((_root.weaponCardObj && (objRes.damage != undefined)) && (!_root.weaponCardObj.imuneToCounter)) { artifactBlock(_root.weaponCardObj, objRes.damage); } if (objRes.rCount != undefined) { updateOpCard(eval ("opCard" + objRes.pNum), objRes.rCount); } if ((_root.weaponCardObj.attackCounts <= 0) && (_root.weaponCardObj.attackCounts != undefined)) { removeCard(_root.weaponCardObj); } _root.waitingResponse.removeMovieClip(); testGameOver(); if (!_root.gameisOver) { _root.weaponCardObj.attacking = false; startTimer(); phaseChange("spellPhase", "my"); } break; case "ability" : createOpAbility(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.textFunc, objRes.artist, objRes.collection, objRes.rarity, objRes.picture, objRes.func1, objRes.func2, objRes.func3, objRes.func4, objRes.func5, objRes.func6, objRes.cardType, objRes.subtype, objRes.e, objRes.av, objRes.h, objRes.a, objRes.s, objRes.w, objRes.p, objRes.m, objRes.k, objRes.g); startTimer("fast"); abilityResponseBox("ability"); break; case "solveAbility" : if (objRes.armorRes != undefined) { updateOpCard(opCard3, objRes.armorRes); } solveMyFunctions(eval ("myCard" + tablePos[6].idCard)); _root.waitingResponse.removeMovieClip(); testGameOver(); sendStatsUpdate(); if (!_root.gameisOver) { startTimer(); if (!eval ("myCard" + tablePos[6].idCard).instantEffect) { if (((_root.currentPhase == "equipPhase") && (_root.weaponCardObj)) && (!_root.skipAttackPhase)) { phaseChange("attackPhase", "my"); } else if (_root.currentPhase == "equipPhase") { phaseChange("spellPhase", "my"); } else if (_root.doubleAction) { _root.doubleAction = false; myPhases.spellPhase.enabled = true; } else if (!_root.doubleAction) { phaseChange("endPhase", "my"); } } else if (_root.currentPhase == "equipPhase") { myPhases.equipPhase.enabled = true; } else { myPhases.spellPhase.enabled = true; } } removeCard(eval ("myCard" + tablePos[6].idCard)); break; case "cAbilityAbility" : createOpAbility(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.textFunc, objRes.artist, objRes.collection, objRes.rarity, objRes.picture, objRes.func1, objRes.func2, objRes.func3, objRes.func4, objRes.func5, objRes.func6, objRes.cardType, objRes.subtype, objRes.e, objRes.av, objRes.h, objRes.a, objRes.s, objRes.w, objRes.p, objRes.m, objRes.k, objRes.g); startTimer(); okResponseBox("counter"); break; case "cAttackAbility" : createOpAbility(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.textFunc, objRes.artist, objRes.collection, objRes.rarity, objRes.picture, objRes.func1, objRes.func2, objRes.func3, objRes.func4, objRes.func5, objRes.func6, objRes.cardType, objRes.subtype, objRes.e, objRes.av, objRes.h, objRes.a, objRes.s, objRes.w, objRes.p, objRes.m, objRes.k, objRes.g); startTimer(); okResponseBox("attack"); break; case "solveAbilityDef" : _root.opWeaponPower = _root.opWeaponCardObj.powerCount; solveMyFunctions(eval ("myCard" + tablePos[6].idCard)); solveOpAttackUnblockedFunctions(opCard2); solveOpAttackUnblockedFunctions(opCard3); solveOpAttackUnblockedFunctions(opCard4); solveOpAttackUnblockedFunctions(opCard8); solveItemBlockFunctions(_root.armorCardObj); solveAttackedbyFunctions(eval ("myCard" + tablePos[2].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[3].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[4].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[8].idCard)); bodyBlock(_root.opWeaponPower, true, true); delete _root.opWeaponPower; removeCard(eval ("myCard" + tablePos[6].idCard)); sendStatsUpdate(); testGameOver(); delete _root.opWeaponCardObj; _root.waitingResponse.removeMovieClip(); break; case "solveAbilityAb" : if (_root.opWeaponCardObj) { delete _root.opWeaponCardObj; } solveMyFunctions(eval ("myCard" + tablePos[6].idCard)); solveOpFunctions(opCard7); removeCard(eval ("myCard" + tablePos[6].idCard)); removeOpCard(7); sendStatsUpdate(); testGameOver(); _root.waitingResponse.removeMovieClip(); break; case "removeCard" : removeOpCard(objRes.posNumber, objRes.removefunc1, objRes.removefunc2, objRes.removefunc3, objRes.destroyfunc1, objRes.destroyfunc2, objRes.noAnimation); sendStatsUpdate(); if (Number(objRes.posNumber) != 1) { testGameOver(); } break; case "discardCard" : solveOpDiscardFunctionsFromMyCards(eval ("myCard" + tablePos[2].idCard)); solveOpDiscardFunctionsFromMyCards(eval ("myCard" + tablePos[3].idCard)); solveOpDiscardFunctionsFromMyCards(eval ("myCard" + tablePos[4].idCard)); solveOpDiscardFunctionsFromMyCards(eval ("myCard" + tablePos[8].idCard)); solveOpDiscardFunctionsFromOpCards(opCard2); solveOpDiscardFunctionsFromOpCards(opCard3); solveOpDiscardFunctionsFromOpCards(opCard4); solveOpDiscardFunctionsFromOpCards(opCard8); sendStatsUpdate(); testGameOver(); break; case "artifactUpdate" : if (objRes.pCount != undefined) { eval ("opCard" + objRes.posNumber).powerCount = objRes.pCount; } if (objRes.aCount != undefined) { eval ("opCard" + objRes.posNumber).attackCounts = objRes.aCount; } if (eval ("opCard" + objRes.posNumber).resistenceCount != objRes.rCount) { updateOpCard(eval ("opCard" + objRes.posNumber), objRes.rCount); } if ((!eval ("opCard" + objRes.posNumber).tapped) && (objRes.tap == 1)) { tap(eval ("opCard" + objRes.posNumber)); } else if (eval ("opCard" + objRes.posNumber).tapped && (objRes.tap == 0)) { untap(eval ("opCard" + objRes.posNumber)); } break; case "statsUpdate" : testGameOver(); if ((!_root.gameisOver) && (_root.waitingOpRes == "counter")) { startTimer(); if (!eval ("myCard" + tablePos[6].idCard).instantEffect) { if (((_root.currentPhase == "equipPhase") && (_root.weaponCardObj)) && (!_root.skipAttackPhase)) { phaseChange("attackPhase", "my"); } else if (_root.currentPhase == "equipPhase") { phaseChange("spellPhase", "my"); } else if (!_root.doubleAction) { phaseChange("endPhase", "my"); } if (_root.doubleAction) { _root.doubleAction = false; myPhases.spellPhase.enabled = true; } } else if (_root.currentPhase == "equipPhase") { myPhases.equipPhase.enabled = true; } else { myPhases.spellPhase.enabled = true; } removeCard(eval ("myCard" + tablePos[6].idCard)); removeOpCard(7); _root.waitingOpRes = ""; } else if (_root.waitingOpRes == "counter") { removeCard(eval ("myCard" + tablePos[6].idCard)); removeOpCard(7); _root.waitingOpRes = ""; } break; case "gameover" : if (!gameisOver) { if (objRes.res == "lose") { gameisOver = true; gameOver("win"); sendGameOver("win"); } else if (objRes.res == "draw") { gameisOver = true; gameOver("draw"); sendGameOver("draw"); } else if (objRes.res == "win") { gameisOver = true; gameOver("lose"); sendGameOver("lose"); } } break; case "newDefeatedStatus" : if (Number(objRes.newXp) > 0) { _root.experience = objRes.newXp; autoMsg(("You lost " + objRes.xpLost) + " experience points"); if (objRes.newLvl < _root.myLevel) { autoMsg((("You downgraded from level " + _root.myLevel) + " to level ") + objRes.newLvl); var bVars = new Object(); bVars.$level = Number(objRes.newLvl); smartfox.setBuddyVariables(bVars); var uVars = new Object(); uVars.level = Number(objRes.newLvl); smartfox.setUserVariables(uVars); delete bVars; delete uVars; } _root.myLevel = objRes.newLvl; if (_root.myLevel == 1) { _root.xpNeeded = 100; } else if (_root.myLevel == 2) { _root.xpNeeded = 250; } else if (_root.myLevel == 3) { _root.xpNeeded = 450; } else if (_root.myLevel == 4) { _root.xpNeeded = 600; } else if (_root.myLevel >= 5) { _root.xpNeeded = 900; } _root.totalXp = (_root.experience + "/") + _root.xpNeeded; saveStatsOver("lose"); } else { saveStatsOver("lose"); } break; case "player2" : startingSong = new Array(game_music, game_music2); shuffle(startingSong); loadedSong = startingSong[0]; if (playMusic) { loadedSong.start(); intervalVal = setInterval(loopSong, 1); } opClasses = objRes.opClasses; opClassDock.gotoAndStop(objRes.opClasses + 1); _root.opName = objRes.opName; _root.opLevel = objRes.opLevel; _root.opPicture = objRes.opPicture; _root.opId = objRes.opId; setOpLife(objRes.opLife); _root.opHand = objRes.opHand; opHandViewer.gotoAndStop(_root.opHand + 1); _root.opDeck = objRes.opDeck; _root.opDiscard = objRes.opDiscard; loadOpPicture(); opBackground.createEmptyMovieClip("pictureClip", opBackground.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/backgrounds/") + objRes.bg, opBackground.pictureClip); players = new Array(1, 2); shuffle(players); if (players[0] == _root.myGameId) { startGame("player2"); } else { startGame("player1"); } break; case "player1" : loadedSong = game_music; if (playMusic) { loadedSong.start(); intervalVal = setInterval(loopSong, 1); } opClasses = objRes.opClasses; opClassDock.gotoAndStop(objRes.opClasses + 1); _root.opName = objRes.opName; _root.opLevel = objRes.opLevel; _root.opPicture = objRes.opPicture; _root.opId = objRes.opId; setOpLife(objRes.opLife); _root.opHand = objRes.opHand; opHandViewer.gotoAndStop(_root.opHand + 1); _root.opDeck = objRes.opDeck; _root.opDiscard = objRes.opDiscard; loadOpPicture(); opBackground.createEmptyMovieClip("pictureClip", opBackground.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/backgrounds/") + objRes.bg, opBackground.pictureClip); if (myDeck > 0) { sendJoinGameTo("player2"); } else { _root.sendJoinWhenLoaded = true; } break; case "p1Start" : _root.currentPlayerTurn = "my"; phaseChange("equipPhase", "my"); autoMsg(myName + _root.whoStartsSentence); break; case "p2Start" : autoMsg(opName + _root.whoStartsSentence); } delete objRes; }; function clearGameVariables() { if (myCards.totalCards) { i = 1; while (i <= myCards.totalCards) { if (eval ("myCard" + i)) { eval ("myCard" + i).removeMovieClip(); } i++; } i = 1; while (i <= 10) { if (eval ("opCard" + i)) { eval ("opCard" + i).removeMovieClip(); } i++; } } w = 0; while (w <= 13) { if (eval ("modIcon" + w)) { eval ("modIcon" + w).removeMovieClip(); } w++; } w = 0; while (w <= 13) { if (eval ("opModIcon" + w)) { eval ("opModIcon" + w).removeMovieClip(); } w++; } if (_root.phaseAnnounce) { _root.phaseAnnounce.removeMovieClip(); } if (_root.helpArrow) { _root.helpArrow.removeMovieClip(); } if (_root.bonusCards) { _root.bonusCards.removeMovieClip(); } if (_root.viewCard) { _root.viewCard.removeMovieClip(); } if (_root.waitingResponse) { waitingResponse.removeMovieClip(); } if (_root.okResponse2) { okResponse2.removeMovieClip(); } if (_root.okResponse) { okResponse.removeMovieClip(); } if (_root.okCancelResponse) { okCancelResponse.removeMovieClip(); } if (_root.okCancelResponseBlack) { okCancelResponseBlack.removeMovieClip(); } myLastDamage = 0; opWeaponPower = 0; attackBlocked = false; doubleActionUsed = false; doubleAction = false; antiSpam = false; desperationSong = false; if (cardViewNumber) { delete cardViewNumber; } if (gameisOver) { delete gameisOver; } if (iLost) { delete iLost; } if (opLost) { delete opLost; } if (noMoreCards) { delete noMoreCards; } if (noMoreOpCards) { delete noMoreOpCards; } if (cardViewNumber) { delete cardViewNumber; } if (connectionTimeOutInterval != null) { clearInterval(connectionTimeOutInterval); } if (opCountdown != null) { clearInterval(opCountdown); } if (countdown != null) { clearInterval(countdown); } if (dragging) { delete dragging; } if (currentBelow) { delete currentBelow; } if (currentOver) { delete currentOver; } if (originalPos) { delete originalPos; } if (myCards) { delete myCards.onLoad; delete myCards; } if (classCardObj) { delete classCardObj; } if (itemCardObj1) { delete itemCardObj1; } if (itemCardObj2) { delete itemCardObj2; } if (weaponCardObj) { delete weaponCardObj; } if (armorCardObj) { delete armorCardObj; } if (shieldCardObj) { delete shieldCardObj; } if (deckOrder) { delete deckOrder; } if (players) { delete players; } if (discardPileArray) { delete discardPileArray; } if (handPos) { delete handPos; } if (tablePos) { delete tablePos; } if (opTablePos) { delete opTablePos; } if (classPos) { delete classPos; } if (modifierPos) { delete modifierPos; } if (opModifierPos) { delete opModifierPos; } if (loadedBackground) { delete loadedBackground; } if (opId) { delete opId; } if (opName) { delete opName; } if (opLife) { delete opLife; } if (opHand) { delete opHand; } if (opDeck) { delete opDeck; } if (opLevel) { delete opLevel; } if (opPicture) { delete opPicture; } if (opDiscard) { delete opDiscard; } if (idDraw) { delete idDraw; } if (lifepoints) { delete lifepoints; } if (newLife) { delete newLife; } if (newPos) { delete newPos; } if (oldPos) { delete oldPos; } if (hitBack) { delete hitBack; } if (pos) { delete pos; } if (newFunc) { delete newFunc; } if (waitingOpRes) { delete waitingOpRes; } if (windowText) { delete windowText; } if (msg) { delete msg; } if (cardUsable) { delete cardUsable; } if (cannotUseCard) { delete cannotUseCard; } if (oldPosNumber) { delete oldPosNumber; } if (model) { delete model; } if (returnValue) { delete returnValue; } if (startTime) { delete startTime; } if (delay) { delete delay; } if (opTimerStarted) { delete opTimerStarted; } if (currentClass) { delete currentClass; } if (currentPhase) { delete currentPhase; } if (currentPlayerTurn) { delete currentPlayerTurn; } if (currentCardXpos) { delete currentCardXpos; } if (currentCardYpos) { delete currentCardYpos; } if (opWeaponCardObj) { delete opWeaponCardObj; } if (viewOpPicture.pictureClip) { viewOpPicture.pictureClip.removeMovieClip(); } } function loadLobby() { clearGameVariables(); smartfox.onObjectReceived = function () { }; _root.clearVarsLobby = true; gotoAndStop ("lobby"); } function multiDim(idCard, model, subtype, used, depth, xPos, yPos) { this.idCard = idCard; this.model = model; this.subtype = subtype; this.used = used; this.depth = depth; this.xPos = xPos; this.yPos = yPos; } function modMultiDim(used, name, xPos, yPos) { this.used = used; this.name = name; this.xPos = xPos; this.yPos = yPos; } function setMyLife(num, gameStarts) { if (num > _root.myLife) { lifepoints = num - _root.myLife; if (lifepoints > 1) { plural = "s"; } else { plural = ""; } if (!gameStarts) { autoMsg(((("You recovered " + lifepoints) + " life point") + plural) + "."); } } else if (num < _root.myLife) { lifepoints = _root.myLife - num; if (lifepoints > 1) { plural = "s"; } else { plural = ""; } autoMsg(((("You lost " + lifepoints) + " life point") + plural) + "."); if (_root.currentPlayerTurn == "op") { _root.myLastDamage = lifepoints; } } if (num < 0) { num = 0; } _root.myLife = num; myLifeObj.gotoAndStop(num + 1); } function setOpLife(num) { if (num > _root.opLife) { lifepoints = num - _root.opLife; if (lifepoints > 1) { plural = "s"; } else { plural = ""; } if (lifepoints < opMaxLife) { autoMsg(((((_root.opName + " recovered ") + lifepoints) + " life point") + plural) + "."); } } else if (num < _root.opLife) { lifepoints = _root.opLife - num; if (lifepoints > 1) { plural = "s"; } else { plural = ""; } autoMsg(((((_root.opName + " lost ") + lifepoints) + " life point") + plural) + "."); } if (num < 0) { num = 0; } _root.opLife = num; opLifeObj.gotoAndStop(num + 1); } function testGameOver() { if (!gameisOver) { if (noMoreCards) { iLost = true; } if (noMoreOpCards) { autoMsg("Your opponent has no more cards in their deck."); opLost = true; } if (myLife <= 0) { iLost = true; } if (opLife <= 0) { opLost = true; } if (iLost && (opLost)) { gameisOver = true; gameOver("draw"); sendGameOver("draw"); } else if (iLost) { gameisOver = true; gameOver("lose"); sendGameOver("lose"); } else if (opLost) { gameisOver = true; gameOver("win"); sendGameOver("win"); } } } function loadOpPicture() { viewOpPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _root.opPicture, viewOpPicture.pictureClip); viewOpPicture.pictureClip._xscale = 87; viewOpPicture.pictureClip._yscale = 87; viewOpPicture.pictureClip._x = 0; viewOpPicture.pictureClip._y = 0; } function openBonus(idCard1, picture1, model1, idCard2, picture2, model2, idCard3, picture3, model3, idCard4, picture4, model4, idCard5, picture5, model5) { _root.attachMovie("bonusCards", "bonusCards", _root.confirmBoxDepth - 1); bonusCards._x = 230; bonusCards._y = 240; bonusCards.totalSelected = 0; createCardBonus(idCard1, picture1, model1, "pickCard1"); createCardBonus(idCard2, picture2, model2, "pickCard2"); createCardBonus(idCard3, picture3, model3, "pickCard3"); createCardBonus(idCard4, picture4, model4, "pickCard4"); createCardBonus(idCard5, picture5, model5, "pickCard5"); bonusCards.onEnterFrame = function () { if ((this._currentframe == 10) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.saveBonus.onPress = function () { if (_root.bonusCards.totalSelected < 2) { okResponseBox2("You have to choose 2 cards"); } else { pickedCards = new Array(); if (_root.bonusCards.pickCard1.picked) { pickedCards.push(_root.bonusCards.pickCard1.idCard); } if (_root.bonusCards.pickCard2.picked) { pickedCards.push(_root.bonusCards.pickCard2.idCard); } if (_root.bonusCards.pickCard3.picked) { pickedCards.push(_root.bonusCards.pickCard3.idCard); } if (_root.bonusCards.pickCard4.picked) { pickedCards.push(_root.bonusCards.pickCard4.idCard); } if (_root.bonusCards.pickCard5.picked) { pickedCards.push(_root.bonusCards.pickCard5.idCard); } saveBonus(pickedCards[0], pickedCards[1]); waitingResponseBox("Saving data. Please wait..."); _root.bonusCards.removeMovieClip(); } }; } }; } function createCardBonus(idCard, picture, model, cardPos) { eval ("bonusCards." + cardPos).idCard = idCard; eval ("bonusCards." + cardPos).gotoAndStop(model.substring(0, model.length - 4)); eval ("bonusCards." + cardPos).onPress = function () { if (!this.picked) { if (_root.bonusCards.totalSelected < 2) { _root.bonusCards.totalSelected++; this.cardSelected._alpha = 100; this.picked = true; } } else { _root.bonusCards.totalSelected--; this.cardSelected._alpha = 0; this.picked = false; } }; eval ("bonusCards." + cardPos).onRelease = releaseCard; eval ("bonusCards." + cardPos).onReleaseOutside = releaseCard; eval ("bonusCards." + cardPos).onDragOut = function () { uncolorize(this); }; eval ("bonusCards." + cardPos).onDragOver = function () { colorize(this, overCardColor); }; eval ("bonusCards." + cardPos).onRollOver = function () { colorize(this, overCardColor); }; eval ("bonusCards." + cardPos).onRollOut = function () { uncolorize(this); }; eval ("bonusCards." + cardPos).createEmptyMovieClip("pictureClip", eval ("bonusCards." + cardPos).getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + picture, eval ("bonusCards." + cardPos).pictureClip); eval ("bonusCards." + cardPos).pictureClip._x = 6; eval ("bonusCards." + cardPos).pictureClip._y = 8; } function gameOver(res) { if ((res == "win") && (_root.inGame)) { if (((_root.gameType == "random") && (_root.accType == "beginner")) && (_root.myLevel >= 5)) { autoMsg(("You have reached the level cap for beginner accounts. If you wish to keep getting experience points and rare cards from level bonuses, <a href='" + webpage) + "/shopping/upgradeSetup.asp' target='_blank'>click here</a>!"); sendDefeatedStatus(_root.opLevel, 0, 0); saveStatsOver("win"); } else if (_root.gameType == "challenge") { saveStatsOver("win"); } else { saveStats(); waitingResponseBox("Saving data. Please wait..."); } } else if ((res == "lose") && (_root.inGame)) { if (_root.gameType == "challenge") { saveStatsOver("lose"); } else { waitingResponseBox("Loading data. Please wait..."); } } else if ((res == "draw") && (_root.inGame)) { saveStatsOver("draw"); } } function saveStatsOver(res) { onEnterFrame = function () { if (game_music.getVolume() > 0) { game_music.setVolume(game_music.getVolume() - 4); } else { if (intervalVal) { clearInterval(intervalVal); } game_music.stop(); game_music.setVolume(100); delete loadedSong; delete this.onEnterFrame; } }; if (res == "win") { msg = "Game Over. You win!"; if (playSounds && (!_root.bonusCards)) { win.start(); } } else if (res == "lose") { msg = "Game Over. You lose."; if (playSounds) { lose.start(); } } else if (res == "draw") { msg = "Game Over. It is a draw!"; if (playSounds) { lose.start(); } } if (_root.currentPlayerTurn == "my") { eval ("myPhases." + _root.currentPhase).enabled = false; } if (!_root.bonusCards) { _root.attachMovie("okResponse", "okResponse", _root.confirmBoxDepth); okResponse.windowText = msg; okResponse._x = _root.confirmBoxXpos; okResponse._y = _root.confirmBoxYpos; startTime = getTimer() / 1000; okResponse.onEnterFrame = function () { delay = getTimer() / 1000; if ((startTime <= (delay - 3)) && (!this.doOnce)) { this.doOnce = true; autoMsg("Returning to lobby in 10 seconds."); } if (startTime <= (delay - 13)) { loadLobby(); _root.okResponse.removeMovieClip(); } if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.cancel.textBox.text = "Back to lobby"; this.cancel.onRelease = function () { loadLobby(); _root.okResponse.removeMovieClip(); }; } }; } else if (playSounds) { levelup.start(); } } function randomize() { return(Math.floor(Math.random() * 3) - 1); } function shuffle(targetArray) { targetArray.sort(randomize); } function waitingResponseBox(msg) { if (timer) { pauseTimer(); } if (_root.helpArrow) { _root.helpArrow.removeMovieClip(); } enableHand("opTurn"); _root.attachMovie("waitingResponse", "waitingResponse", _root.confirmBoxDepth); if (msg) { waitingResponse.windowText = msg; } else { waitingResponse.windowText = "Waiting opponent's response..."; pauseTimer(); } waitingResponse._x = _root.confirmBoxXpos; waitingResponse._y = _root.confirmBoxYpos; waitingResponse.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); } }; } function testLimitation(cardObj) { cannotUseCard = false; if (cardObj.playfunc1) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc1)) { cannotUseCard = true; } } if (cardObj.playfunc2) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc2)) { cannotUseCard = true; } } if (cardObj.playfunc3) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc3)) { cannotUseCard = true; } } if (cardObj.playfunc4) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc4)) { cannotUseCard = true; } } if (cardObj.playfunc5) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc5)) { cannotUseCard = true; } } if (cardObj.playfunc6) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc6)) { cannotUseCard = true; } } return(cannotUseCard); } function testAttackLimitation(cardObj) { cannotUseCard = false; if (cardObj.attackfunc1) { if (readTestLimitationFunctions(cardObj, cardObj.attackfunc1)) { cannotUseCard = true; } } if (cardObj.attackfunc2) { if (readTestLimitationFunctions(cardObj, cardObj.attackfunc2)) { cannotUseCard = true; } } if (cardObj.attackblockfunc1) { if (readTestLimitationFunctions(cardObj, cardObj.attackblockfunc1)) { cannotUseCard = true; } } if (cardObj.attackblockfunc2) { if (readTestLimitationFunctions(cardObj, cardObj.attackblockfunc2)) { cannotUseCard = true; } } return(cannotUseCard); } function readTestLimitationFunctions(cardObj, func) { cannotUse = false; nameLimitationFunc = func.substring(0, func.indexOf("(")); if (func.indexOf(",") != -1) { paramLimitation1 = func.substring(func.indexOf("(") + 1, func.indexOf(",")); paramLimitation2 = func.substring(func.indexOf(",") + 1, func.indexOf(")")); } else { paramLimitation1 = func.substring(func.indexOf("(") + 1, func.indexOf(")")); } if (nameLimitationFunc == "limitation") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((paramLimitation1 == "knight") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Knight") && (classPos[1].subtype != "Knight")) && (classPos[2].subtype != "Knight")))) { cannotUse = true; } if ((paramLimitation1 == "gladiator") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Gladiator") && (classPos[1].subtype != "Gladiator")) && (classPos[2].subtype != "Gladiator")))) { cannotUse = true; } if ((paramLimitation1 == "sorcerer") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Sorcerer") && (classPos[1].subtype != "Sorcerer")) && (classPos[2].subtype != "Sorcerer")))) { cannotUse = true; } if ((paramLimitation1 == "wizard") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Wizard") && (classPos[1].subtype != "Wizard")) && (classPos[2].subtype != "Wizard")))) { cannotUse = true; } if ((paramLimitation1 == "hunter") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Hunter") && (classPos[1].subtype != "Hunter")) && (classPos[2].subtype != "Hunter")))) { cannotUse = true; } if ((paramLimitation1 == "assassin") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Assassin") && (classPos[1].subtype != "Assassin")) && (classPos[2].subtype != "Assassin")))) { cannotUse = true; } if ((paramLimitation1 == "paladin") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Paladin") && (classPos[1].subtype != "Paladin")) && (classPos[2].subtype != "Paladin")))) { cannotUse = true; } if ((paramLimitation1 == "monk") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Monk") && (classPos[1].subtype != "Monk")) && (classPos[2].subtype != "Monk")))) { cannotUse = true; } if ((paramLimitation1 == "no weapon") && (_root.weaponCardObj)) { cannotUse = true; } if ((paramLimitation1 == "weapon") && (!_root.weaponCardObj)) { cannotUse = true; } if ((paramLimitation1 == "no shield") && (_root.shieldCardObj)) { cannotUse = true; } if ((paramLimitation1 == "shield") && (!_root.shieldCardObj)) { cannotUse = true; } if ((paramLimitation1 == "no armor") && (_root.armorCardObj)) { cannotUse = true; } if ((paramLimitation1 == "armor") && (!_root.armorCardObj)) { cannotUse = true; } if ((paramLimitation1 == "no items") && (((tablePos[2].used || (tablePos[3].used)) || (tablePos[4].used)) || (tablePos[8].used))) { cannotUse = true; } if ((paramLimitation1 == "-deck") && (_root.myDeck > Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "+deck") && (_root.myDeck < Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "-hand") && (_root.myHand > Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "+hand") && (_root.myHand < Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "hand>op") && (_root.myHand <= _root.opHand)) { cannotUse = true; } if ((paramLimitation1 == "hand<op") && (_root.myHand >= _root.opHand)) { cannotUse = true; } if ((paramLimitation1 == "-life") && (_root.myLife > Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "+life") && (_root.myLife < Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "life>op") && (_root.myLife <= _root.opLife)) { cannotUse = true; } if ((paramLimitation1 == "life<op") && (_root.myLife >= _root.opLife)) { cannotUse = true; } if ((paramLimitation1 == "life=op") && (_root.myLife != _root.opLife)) { cannotUse = true; } if ((paramLimitation1 == "op weapon") && ((opCard2._currentframe != 15) && (opCard4._currentframe != 15))) { cannotUse = true; } if ((paramLimitation1 == "no op weapon") && ((opCard2._currentframe == 15) || (opCard4._currentframe == 15))) { cannotUse = true; } if ((paramLimitation1 == "op tapped weapon") && ((((opCard2._currentframe != 15) && (opCard4._currentframe != 15)) || ((opCard2._currentframe == 15) && (!opCard2.tapped))) || ((opCard4._currentframe == 15) && (!opCard4.tapped)))) { cannotUse = true; } if ((paramLimitation1 == "op untapped weapon") && ((((opCard2._currentframe != 15) && (opCard4._currentframe != 15)) || ((opCard2._currentframe == 15) && (opCard2.tapped))) || ((opCard4._currentframe == 15) && (opCard4.tapped)))) { cannotUse = true; } if ((paramLimitation1 == "untapped weapon") && ((!_root.weaponCardObj) || (_root.weaponCardObj.tapped))) { cannotUse = true; } if (((paramLimitation1 == "book") && (_root.itemCardObj1.subtype != "Book")) && (_root.itemCardObj2.subtype != "Book")) { cannotUse = true; } if ((paramLimitation1 == "weapon attack") && (!_root.opWeaponCardObj)) { cannotUse = true; } if ((paramLimitation1 == "spell attack") && ((!((_root.opCard7.type.indexOf("Spell") != -1) && (_root.opCard7.subtype == "Attack"))) || (!_root.opCard7))) { cannotUse = true; } if ((paramLimitation1 == "spell usage") && ((!((_root.opCard7.type.indexOf("Spell") != -1) && (_root.opCard7.subtype == "Usage"))) || (!_root.opCard7))) { cannotUse = true; } if ((paramLimitation1 == "spell") && ((_root.opCard7.type.indexOf("Spell") == -1) || (!_root.opCard7))) { cannotUse = true; } if ((paramLimitation1 == "ability attack") && ((!((_root.opCard7.type == "Ability") && (_root.opCard7.subtype == "Attack"))) || (!_root.opCard7))) { cannotUse = true; } if ((paramLimitation1 == "ability usage") && ((!((_root.opCard7.type == "Ability") && (_root.opCard7.subtype == "Usage"))) || (!_root.opCard7))) { cannotUse = true; } if ((paramLimitation1 == "ability") && ((_root.opCard7.type != "Ability") || (!_root.opCard7))) { cannotUse = true; } if (((paramLimitation1 == "orb") && (_root.itemCardObj1.subtype != "Orb")) && (_root.itemCardObj2.subtype != "Orb")) { cannotUse = true; } if (((paramLimitation1 == "flask") && (_root.itemCardObj1.subtype != "Flask")) && (_root.itemCardObj2.subtype != "Flask")) { cannotUse = true; } if ((((((((paramLimitation1 == "wand") || (paramLimitation1 == "dark wand")) || (paramLimitation1 == "light wand")) || (paramLimitation1 == "bow")) || (paramLimitation1 == "crossbow")) || (paramLimitation1 == "sword")) || (paramLimitation1 == "axe")) || (paramLimitation1 == "mace")) { if (!_root.weaponCardObj) { cannotUse = true; } else if (paramLimitation1 == "wand") { if (subtype.indexOf("wand") == -1) { cannotUse = true; } } else if (paramLimitation1 != subtype) { cannotUse = true; } } } return(cannotUse); } function removeTurnModifier(cardObj) { if (cardObj.ignoreTurnArmor) { delete cardObj.ignoreTurnArmor; } if (cardObj.untapable && (cardObj.untapTurnLimit)) { delete cardObj.untapable; delete cardObj.untapTurnLimit; } if (cardObj.powerAdded > 0) { cardObj.powerCount = cardObj.powerCount - cardObj.powerAdded; cardObj.powerAdded = 0; } if (cardObj.resistenceAdded > 0) { cardObj.resistenceCount = cardObj.resistenceCount - cardObj.resistenceAdded; cardObj.resistenceAdded = 0; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } } function defenseResponseBox(from) { if ((from != "abilityResponseBox") && (playSounds)) { opaction.start(); } _root.attachMovie("defenseResponse", "defenseResponse", _root.confirmBoxDepth); defenseResponse._x = _root.confirmBoxXpos; defenseResponse._y = _root.confirmBoxYpos; defenseResponse.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.blockAttack.textBox.text = "Shield block"; this.counterAttack.textBox.text = "Weapon block"; this.ability.textBox.text = "Spell/Ability"; this.cancel.textBox.text = "Armor/Not block"; if (((_root.shieldCardObj && (_root.cannotBlock == 0)) && (_root.disableBlock == 0)) && (!_root.opWeaponCardObj.unblockable)) { canBlock = true; this.blockAttack.onRelease = function () { hitBack = 0; _root.attackBlocked = true; _root.blockCardObj = _root.shieldCardObj; solveOpAttackBlockedFunctions(opCard2); solveOpAttackBlockedFunctions(opCard3); solveOpAttackBlockedFunctions(opCard4); solveOpAttackBlockedFunctions(opCard8); _root.opWeaponPower = _root.opWeaponCardObj.powerCount; solveItemBlockFunctions(_root.shieldCardObj); solveAttackedbyFunctions(eval ("myCard" + tablePos[2].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[3].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[4].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[8].idCard)); if (_root.shieldCardObj.powerCount > 0) { hitBack = _root.shieldCardObj.powerCount; } artifactBlock(_root.shieldCardObj, _root.opWeaponPower, "attackPhase"); delete _root.blockCardObj; _root.defenseResponse.removeMovieClip(); }; } else { colorize(this.blockAttack, disabledColor); } if (((((_root.weaponCardObj && (!_root.weaponCardObj.tapped)) && (!_root.weaponCardObj.cannotBlock)) && (_root.cannotBlock == 0)) && (_root.disableBlock == 0)) && (!_root.opWeaponCardObj.unblockable)) { canBlock = true; this.counterAttack.onRelease = function () { hitBack = 0; _root.attackBlocked = true; _root.blockCardObj = _root.weaponCardObj; solveOpAttackBlockedFunctions(opCard2); solveOpAttackBlockedFunctions(opCard3); solveOpAttackBlockedFunctions(opCard4); solveOpAttackBlockedFunctions(opCard8); _root.opWeaponPower = _root.opWeaponCardObj.powerCount; solveItemBlockFunctions(_root.weaponCardObj); solveAttackedbyFunctions(eval ("myCard" + tablePos[2].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[3].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[4].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[8].idCard)); if (_root.weaponCardObj.powerCount > 0) { hitBack = _root.weaponCardObj.powerCount; } artifactBlock(_root.weaponCardObj, _root.opWeaponPower, "attackPhase"); if (_root.weaponCardObj.resistenceCount > 0) { sendSolveAttack(hitBack, _root.weaponCardObj); } else { sendSolveAttack(hitBack); } delete _root.blockCardObj; _root.defenseResponse.removeMovieClip(); }; } else { colorize(this.counterAttack, disabledColor); } i = 0; while (i < maxHandCards) { if (checkClasses(eval ("myCard" + handPos[i].idCard)) && ((((eval ("myCard" + handPos[i].idCard).model == "ability_defense") && (_root.cannotUseDefenseAbilities == 0)) && (_root.disableDefenseAbilities == 0)) || (((eval ("myCard" + handPos[i].idCard).model == "spell_defense") && (_root.cannotUseDefenseSpells == 0)) && (_root.disableDefenseSpells == 0)))) { activate = true; break; } i++; } if (canBlock && (_root.mustBlock > 0)) { delete activate; } if (activate) { this.ability.onRelease = function () { abilityResponseBox("defense"); _root.defenseResponse.removeMovieClip(); }; delete activate; } else { colorize(this.ability, disabledColor); } if (canBlock && (_root.mustBlock > 0)) { colorize(this.cancel, disabledColor); } else { this.cancel.onRelease = function () { solveOpAttackUnblockedFunctions(opCard2); solveOpAttackUnblockedFunctions(opCard3); solveOpAttackUnblockedFunctions(opCard4); solveOpAttackUnblockedFunctions(opCard8); _root.opWeaponPower = _root.opWeaponCardObj.powerCount; solveItemBlockFunctions(_root.armorCardObj); solveAttackedbyFunctions(eval ("myCard" + tablePos[2].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[3].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[4].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[8].idCard)); bodyBlock(_root.opWeaponPower, true, true); _root.defenseResponse.removeMovieClip(); }; } delete canBlock; } }; } function attackResponseBox() { _root.attachMovie("attackResponse", "attackResponse", _root.confirmBoxDepth); attackResponse._x = _root.confirmBoxXpos; attackResponse._y = _root.confirmBoxYpos; attackResponse.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.attack.textBox.text = "Attack"; this.cancel.textBox.text = "Cancel"; if (((testAttackLimitation(_root.weaponCardObj) || (_root.cannotAttack > 0)) || (_root.weaponCardObj.tapped)) || (_root.disableAttack > 0)) { colorize(this.attack, disabledColor); this.cancel.onRelease = function () { phaseChange("spellPhase", "my"); _root.attackResponse.removeMovieClip(); }; } else if (_root.mustAttack > 0) { this.attack.onRelease = function () { if (!_root.weaponCardObj.untapable) { tap(_root.weaponCardObj); } if (_root.weaponCardObj.attackCounts) { _root.weaponCardObj.attackCounts--; } sendAttack(_root.weaponCardObj); _root.weaponCardObj.attacking = true; waitingResponseBox(); _root.attackResponse.removeMovieClip(); }; colorize(this.cancel, disabledColor); } else { this.attack.onRelease = function () { if (!_root.weaponCardObj.untapable) { tap(_root.weaponCardObj); } if (_root.weaponCardObj.attackCounts) { _root.weaponCardObj.attackCounts--; } sendAttack(_root.weaponCardObj); _root.weaponCardObj.attacking = true; waitingResponseBox(); _root.attackResponse.removeMovieClip(); }; this.cancel.onRelease = function () { phaseChange("spellPhase", "my"); _root.attackResponse.removeMovieClip(); }; } } }; } function waitingDiscardBox(num) { _root.attachMovie("waitingResponse", "waitingDiscard", _root.confirmBoxDepth); if (num > 1) { plural = "s"; } else { plural = ""; } waitingDiscard.windowText = ((("Discard " + num) + " card") + plural) + " to continue."; waitingDiscard._x = _root.confirmBoxXpos; waitingDiscard._y = _root.confirmBoxYpos; waitingDiscard.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); } }; } function abilityResponseBox(from) { if ((from != "defense") && (playSounds)) { opaction.start(); } _root.attachMovie("okResponse", "abilityResponse", _root.confirmBoxDepth); abilityResponse.windowText = "Drag a defense spell/ability to opponent's playfield or cancel"; abilityResponse._x = _root.confirmBoxXpos; abilityResponse._y = _root.confirmBoxYpos; enableHand("defenseResponse"); abilityResponse.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.cancel.textBox.text = "Cancel"; this.cancel.onRelease = function () { enableHand("opTurn"); if (from == "defense") { defenseResponseBox("abilityResponseBox"); _root.abilityResponse.removeMovieClip(); } else { solveOpFunctions(opCard7); removeOpCard(7); sendSolveAbility(); _root.abilityResponse.removeMovieClip(); } }; } }; } function okResponseBox(from) { _root.attachMovie("okResponse", "okResponse", _root.confirmBoxDepth); okResponse.windowText = "Press OK to continue"; okResponse._x = _root.confirmBoxXpos; okResponse._y = _root.confirmBoxYpos; okResponse.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.cancel.textBox.text = "Ok"; this.cancel.onRelease = function () { if (from == "counter") { solveOpFunctions(opCard7); solveMyFunctions(eval ("myCard" + tablePos[6].idCard)); _root.waitingOpRes = "counter"; sendSolveAbilityAb(); pauseTimer(); _root.okResponse.removeMovieClip(); } else if (from == "attack") { sendSolveAbilityDef(); solveOpFunctions(opCard7); removeOpCard(7); _root.weaponCardObj.attacking = false; _root.waitingOpRes = "attack"; pauseTimer(); _root.okResponse.removeMovieClip(); } }; } }; } function createCardObj(idCard, posObj, currentPos, posNumber) { _root.attachMovie("card", "myCard" + idCard, posObj.depth); model = eval ("myCards.model" + idCard); model = model.substring(0, model.length - 4); eval ("myCard" + idCard).idDraw = idCard; eval ("myCard" + idCard).name = eval ("myCards.name" + idCard); eval ("myCard" + idCard).attackfunc1 = eval ("myCards.attackfunc1" + idCard); eval ("myCard" + idCard).attackfunc2 = eval ("myCards.attackfunc2" + idCard); eval ("myCard" + idCard).attackblockfunc1 = eval ("myCards.attackblockfunc1" + idCard); eval ("myCard" + idCard).attackblockfunc2 = eval ("myCards.attackblockfunc2" + idCard); eval ("myCard" + idCard).destroyfunc1 = eval ("myCards.destroyfunc1" + idCard); eval ("myCard" + idCard).destroyfunc2 = eval ("myCards.destroyfunc2" + idCard); eval ("myCard" + idCard).attackedbyfunc1 = eval ("myCards.attackedbyfunc1" + idCard); eval ("myCard" + idCard).attackedbyfunc2 = eval ("myCards.attackedbyfunc2" + idCard); eval ("myCard" + idCard).itemblockfunc1 = eval ("myCards.itemblockfunc1" + idCard); eval ("myCard" + idCard).itemblockfunc2 = eval ("myCards.itemblockfunc2" + idCard); eval ("myCard" + idCard).playfunc1 = eval ("myCards.playfunc1" + idCard); eval ("myCard" + idCard).playfunc2 = eval ("myCards.playfunc2" + idCard); eval ("myCard" + idCard).playfunc3 = eval ("myCards.playfunc3" + idCard); eval ("myCard" + idCard).playfunc4 = eval ("myCards.playfunc4" + idCard); eval ("myCard" + idCard).playfunc5 = eval ("myCards.playfunc5" + idCard); eval ("myCard" + idCard).playfunc6 = eval ("myCards.playfunc6" + idCard); eval ("myCard" + idCard).removefunc1 = eval ("myCards.removefunc1" + idCard); eval ("myCard" + idCard).removefunc2 = eval ("myCards.removefunc2" + idCard); eval ("myCard" + idCard).removefunc3 = eval ("myCards.removefunc3" + idCard); eval ("myCard" + idCard).drawfunc1 = eval ("myCards.drawfunc1" + idCard); eval ("myCard" + idCard).drawfunc2 = eval ("myCards.drawfunc2" + idCard); eval ("myCard" + idCard).discardfunc1 = eval ("myCards.discardfunc1" + idCard); eval ("myCard" + idCard).discardfunc2 = eval ("myCards.discardfunc2" + idCard); eval ("myCard" + idCard).opdrawfunc1 = eval ("myCards.opdrawfunc1" + idCard); eval ("myCard" + idCard).opdrawfunc2 = eval ("myCards.opdrawfunc2" + idCard); eval ("myCard" + idCard).opdiscardfunc1 = eval ("myCards.opdiscardfunc1" + idCard); eval ("myCard" + idCard).opdiscardfunc2 = eval ("myCards.opdiscardfunc2" + idCard); eval ("myCard" + idCard).type = eval ("myCards.type" + idCard); eval ("myCard" + idCard).subtype = eval ("myCards.subtype" + idCard); eval ("myCard" + idCard).model = model; eval ("myCard" + idCard).artist = eval ("myCards.artist" + idCard); eval ("myCard" + idCard).textFunc = eval ("myCards.textFunc" + idCard); eval ("myCard" + idCard).collection = eval ("myCards.collection" + idCard); eval ("myCard" + idCard).rarity = eval ("myCards.rarity" + idCard); eval ("myCard" + idCard).picture = eval ("myCards.picture" + idCard); eval ("myCard" + idCard).idCard = eval ("myCards.idCard" + idCard); eval ("myCard" + idCard).handleType = Number(eval ("myCards.handleType" + idCard)); if (isNaN(eval ("myCard" + idCard).handleType)) { eval ("myCard" + idCard).handleType = 0; } eval ("myCard" + idCard).power = Number(eval ("myCards.power" + idCard)); if (isNaN(eval ("myCard" + idCard).power)) { eval ("myCard" + idCard).power = 0; } eval ("myCard" + idCard).resistence = Number(eval ("myCards.resistence" + idCard)); if (isNaN(eval ("myCard" + idCard).resistence)) { eval ("myCard" + idCard).resistence = 0; } eval ("myCard" + idCard).idDeck = idCard; eval ("myCard" + idCard).gotoAndStop(model); eval ("myCard" + idCard).onPress = clickCard; eval ("myCard" + idCard).onRelease = releaseCard; eval ("myCard" + idCard).onReleaseOutside = releaseCard; eval ("myCard" + idCard).onDragOut = function () { ToolTip.hide(); uncolorize(this); }; eval ("myCard" + idCard).onDragOver = function () { ToolTip.hide(); colorize(this, overCardColor); }; eval ("myCard" + idCard).onRollOver = function () { if (playSounds) { mouseover.start(); } if ((this.model == "armor") && (this.currentPos == "tablePos")) { this.oldDepth_mo = this.getDepth(); this.swapDepths(250); } if (_root.autoHelp && (this.sparklesEffect)) { ToolTip.show(this.toolTipText, 250); } colorize(this, overCardColor); }; eval ("myCard" + idCard).onRollOut = function () { if ((this.model == "armor") && (this.currentPos == "tablePos")) { this.swapDepths(this.oldDepth_mo); } ToolTip.hide(); uncolorize(this); }; eval ("myCard" + idCard)._x = posObj.xPos; eval ("myCard" + idCard)._y = posObj.yPos; if ((eval ("myCard" + idCard).type != "Class") && (eval ("myCard" + idCard).type != "Subclass")) { eval ("myCard" + idCard).createEmptyMovieClip("pictureClip", eval ("myCard" + idCard).getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + eval ("myCards.picture" + idCard), eval ("myCard" + idCard).pictureClip); eval ("myCard" + idCard).pictureClip._x = 6; eval ("myCard" + idCard).pictureClip._y = 8; } eval ("myCard" + idCard).currentPos = currentPos; eval ("myCard" + idCard).posNumber = posNumber; if ((eval ("myCards.type" + idCard) == "Ability") || (eval ("myCards.type" + idCard).indexOf("Spell") != -1)) { if (eval ("myCards.subtype" + idCard) != "Defense") { eval ("myCard" + idCard).phaseUsage = "spellPhase"; eval ("myCard" + idCard).toolTipText = "This is an attack card. You may play this card at your <b>Spell/Ability Phase</b>."; if (eval ("myCards.subtype" + idCard) == "Usage") { eval ("myCard" + idCard).phaseUsage2 = "equipPhase"; eval ("myCard" + idCard).toolTipText = "This is a usage card. You may play this card at your <b>Equip Phase</b> or <b>Spell/Ability Phase</b>."; } } else { eval ("myCard" + idCard).phaseUsage = "opAction"; eval ("myCard" + idCard).toolTipText = "This is a defense card. You may play this card in response to an opponent's action."; } } else { eval ("myCard" + idCard).phaseUsage = "equipPhase"; if ((eval ("myCard" + idCard).type == "Class") || (eval ("myCard" + idCard).type == "Subclass")) { eval ("myCard" + idCard).toolTipText = "This is a class card. You may play it during your equip phase. You can only have one class in your playfield at the time."; } else if (eval ("myCard" + idCard).type == "Armor") { eval ("myCard" + idCard).toolTipText = "This is an armor card. You may play this card at your <b>Equip Phase</b>. You can only have one armor in your playfield at the time."; } else if (eval ("myCard" + idCard).model == "artifact_weapon") { eval ("myCard" + idCard).toolTipText = "This is a weapon card. You may play this card at your <b>Equip Phase</b>. You can only have one weapon in your playfield at the time."; } else if (eval ("myCard" + idCard).model == "artifact_shield") { eval ("myCard" + idCard).toolTipText = "This is a shield card. You may play this card at your <b>Equip Phase</b>. You can only have one shield in your playfield at the time."; } else { eval ("myCard" + idCard).toolTipText = "This is a special artifact card. You may play this card at your <b>Equip Phase</b>."; } } if (eval ("myCards.av" + idCard)) { eval ("myCard" + idCard).av = true; } if (eval ("myCards.h" + idCard)) { eval ("myCard" + idCard).h = true; } if (eval ("myCards.k" + idCard)) { eval ("myCard" + idCard).k = true; } if (eval ("myCards.p" + idCard)) { eval ("myCard" + idCard).p = true; } if (eval ("myCards.s" + idCard)) { eval ("myCard" + idCard).s = true; } if (eval ("myCards.a" + idCard)) { eval ("myCard" + idCard).a = true; } if (eval ("myCards.g" + idCard)) { eval ("myCard" + idCard).g = true; } if (eval ("myCards.m" + idCard)) { eval ("myCard" + idCard).m = true; } if (eval ("myCards.w" + idCard)) { eval ("myCard" + idCard).w = true; } if (eval ("myCards.e" + idCard)) { eval ("myCard" + idCard).e = true; } } function createOpAbility(idCard, cardName, model, frame, textFunc, artist, collection, rarity, picture, func1, func2, func3, func4, func5, func6, type, subtype, e, av, h, a, s, w, p, m, k, g) { _root.attachMovie("card", "opCard7", tablePos[7].depth); tablePos[7].used = true; opCard7.gotoAndStop(frame); opCard7.createEmptyMovieClip("pictureClip", opCard7.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + picture, opCard7.pictureClip); opCard7.idCard = idCard; opCard7.name = cardName; opCard7.model = model; opCard7.picture = picture; opCard7.pictureClip._x = 6; opCard7.pictureClip._y = 8; opCard7.playfunc1 = func1; opCard7.playfunc2 = func2; opCard7.playfunc3 = func3; opCard7.playfunc4 = func4; opCard7.playfunc5 = func5; opCard7.playfunc6 = func6; opCard7.textFunc = textFunc; opCard7.artist = artist; opCard7.collection = collection; opCard7.rarity = rarity; if (e) { opCard7.e = true; } if (av) { opCard7.av = true; } if (h) { opCard7.h = true; } if (a) { opCard7.a = true; } if (s) { opCard7.s = true; } if (w) { opCard7.w = true; } if (p) { opCard7.p = true; } if (m) { opCard7.m = true; } if (k) { opCard7.k = true; } if (g) { opCard7.g = true; } if ((((((opCard7.playfunc1 == "uncounterable()") || (opCard7.playfunc2 == "uncounterable()")) || (opCard7.playfunc3 == "uncounterable()")) || (opCard7.playfunc4 == "uncounterable()")) || (opCard7.playfunc5 == "uncounterable()")) || (opCard7.playfunc6 == "uncounterable()")) { opCard7.uncounterable = true; } opCard7.type = type; opCard7.subtype = subtype; opCard7.onPress = clickCard; opCard7.onRelease = releaseCard; opCard7.onReleaseOutside = releaseCard; opCard7.onDragOut = function () { ToolTip.hide(); uncolorize(this); }; opCard7.onDragOver = function () { ToolTip.hide(); colorize(this, overCardColor); }; opCard7.onRollOver = function () { if (_root.autoHelp) { ToolTip.show(this.toolTipText, 250); } colorize(this, overCardColor); }; opCard7.onRollOut = function () { ToolTip.hide(); uncolorize(this); }; opCard7._x = tablePos[7].xPos; opCard7._y = tablePos[7].yPos; opCard7.toolTipText = ("Your opponent played a <b>" + type) + "</b>! To read more details, click here."; } function createOpCardObj(idCard, cardName, model, frame, picture, posNumber, power, powerCount, resistence, resistenceCount, attackCounts, tapped, type, subtype, textFunc, artist, collection, rarity, playfunc1, playfunc2, playfunc3, playfunc4, playfunc5, playfunc6, attackedbyfunc1, attackedbyfunc2, attackfunc1, attackfunc2, attackblockfunc1, attackblockfunc2, itemblockfunc1, itemblockfunc2, drawfunc1, drawfunc2, opdrawfunc1, opdrawfunc2, discardfunc1, discardfunc2, opdiscardfunc1, opdiscardfunc2, e, av, h, a, s, w, p, m, k, g) { _root.attachMovie("card", "opCard" + posNumber, opTablePos[posNumber].depth); eval ("opCard" + posNumber).gotoAndStop(frame); if ((posNumber != 1) && (posNumber != 5)) { eval ("opCard" + posNumber).createEmptyMovieClip("pictureClip", eval ("opCard" + posNumber).getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + picture, eval ("opCard" + posNumber).pictureClip); eval ("opCard" + posNumber).pictureClip._x = 6; eval ("opCard" + posNumber).pictureClip._y = 8; } else { opClasses--; opClassDock.gotoAndStop(opClasses + 1); } eval ("opCard" + posNumber).idCard = idCard; eval ("opCard" + posNumber).name = cardName; eval ("opCard" + posNumber).model = model; eval ("opCard" + posNumber).posNumber = posNumber; eval ("opCard" + posNumber).type = type; eval ("opCard" + posNumber).subtype = subtype; eval ("opCard" + posNumber).textFunc = textFunc; eval ("opCard" + posNumber).artist = artist; eval ("opCard" + posNumber).collection = collection; eval ("opCard" + posNumber).rarity = rarity; eval ("opCard" + posNumber).picture = picture; eval ("opCard" + posNumber).playfunc1 = playfunc1; eval ("opCard" + posNumber).playfunc2 = playfunc2; eval ("opCard" + posNumber).playfunc3 = playfunc3; eval ("opCard" + posNumber).playfunc4 = playfunc4; eval ("opCard" + posNumber).playfunc5 = playfunc5; eval ("opCard" + posNumber).playfunc6 = playfunc6; eval ("opCard" + posNumber).attackedbyfunc1 = attackedbyfunc1; eval ("opCard" + posNumber).attackedbyfunc2 = attackedbyfunc2; eval ("opCard" + posNumber).attackfunc1 = attackfunc1; eval ("opCard" + posNumber).attackfunc2 = attackfunc2; eval ("opCard" + posNumber).attackblockfunc1 = attackblockfunc1; eval ("opCard" + posNumber).attackblockfunc2 = attackblockfunc2; eval ("opCard" + posNumber).itemblockfunc1 = itemblockfunc1; eval ("opCard" + posNumber).itemblockfunc2 = itemblockfunc2; eval ("opCard" + posNumber).drawfunc1 = drawfunc1; eval ("opCard" + posNumber).drawfunc2 = drawfunc2; eval ("opCard" + posNumber).opdrawfunc1 = opdrawfunc1; eval ("opCard" + posNumber).opdrawfunc2 = opdrawfunc2; eval ("opCard" + posNumber).discardfunc1 = discardfunc1; eval ("opCard" + posNumber).discardfunc2 = discardfunc2; eval ("opCard" + posNumber).opdiscardfunc1 = opdiscardfunc1; eval ("opCard" + posNumber).opdiscardfunc2 = opdiscardfunc2; if (e) { eval ("opCard" + posNumber).e = true; } if (av) { eval ("opCard" + posNumber).av = true; } if (h) { eval ("opCard" + posNumber).h = true; } if (a) { eval ("opCard" + posNumber).a = true; } if (s) { eval ("opCard" + posNumber).s = true; } if (w) { eval ("opCard" + posNumber).w = true; } if (p) { eval ("opCard" + posNumber).p = true; } if (m) { eval ("opCard" + posNumber).m = true; } if (k) { eval ("opCard" + posNumber).k = true; } if (g) { eval ("opCard" + posNumber).g = true; } solveOpFunctions(eval ("opCard" + posNumber)); eval ("opCard" + posNumber).onPress = clickCard; eval ("opCard" + posNumber).onRelease = releaseCard; eval ("opCard" + posNumber).onReleaseOutside = releaseCard; eval ("opCard" + posNumber).onDragOut = function () { ToolTip.hide(); uncolorize(this); }; eval ("opCard" + posNumber).onDragOver = function () { ToolTip.hide(); colorize(this, overCardColor); }; eval ("opCard" + posNumber).onRollOver = function () { if (playSounds) { mouseover.start(); } if (this.posNumber == 3) { this.oldDepth_mo = this.getDepth(); this.swapDepths(250); } if (_root.autoHelp) { ToolTip.show(this.toolTipText, 250); } colorize(this, overCardColor); }; eval ("opCard" + posNumber).onRollOut = function () { if (this.posNumber == 3) { this.swapDepths(this.oldDepth_mo); } ToolTip.hide(); uncolorize(this); }; eval ("opCard" + posNumber)._x = opTablePos[posNumber].xPos; eval ("opCard" + posNumber)._y = opTablePos[posNumber].yPos; if (eval ("opCard" + posNumber)._currentframe > 8) { eval ("opCard" + posNumber).toolTipText = "This is an item played by your opponent. To read more details, click here."; eval ("opCard" + posNumber).attachMovie("infoBox", "infoBox", eval ("opCard" + posNumber).getNextHighestDepth()); eval ("opCard" + posNumber).infoBox._x = 6; eval ("opCard" + posNumber).infoBox._y = 50; eval ("opCard" + posNumber).power = power; eval ("opCard" + posNumber).resistence = resistence; eval ("opCard" + posNumber).powerCount = powerCount; eval ("opCard" + posNumber).resistenceCount = resistenceCount; } else { eval ("opCard" + posNumber).toolTipText = ("Your opponent played the <b>" + subtype) + " Class</b>."; } if (attackCounts) { eval ("opCard" + posNumber).attachMovie("countsBox", "countsBox", eval ("opCard" + posNumber).getNextHighestDepth()); eval ("opCard" + posNumber).countsBox._x = 3; eval ("opCard" + posNumber).countsBox._y = 3; eval ("opCard" + posNumber).attackCounts = attackCounts; } if (tapped) { tap(eval ("opCard" + posNumber)); } } function startOpTimer() { function updateOpTimer() { timer.opTimer++; if (timer.opTimer >= 700) { stopOpTimer(); gameisOver = true; gameOver("win"); sendGameOver("win"); } } timer.opTimer = 0; if (opCountdown != null) { clearInterval(opCountdown); } opCountdown = setInterval(updateOpTimer, 350); } function stopOpTimer() { timer.opTimer = 0; if (opCountdown != null) { clearInterval(opCountdown); } } function startTimer(speed) { function updateTimer() { timer.gotoAndStop(timer._currentframe + 1); if (timer._currentframe >= 240) { pauseTimer(); sendGameOver("lose"); } } if (countdown != null) { clearInterval(countdown); } if (speed == "fast") { countdown = setInterval(updateTimer, 220); } else { countdown = setInterval(updateTimer, 350); } } function pauseTimer() { if (countdown != null) { clearInterval(countdown); } } function resetAndStopTimer() { timer.gotoAndStop(1); if (countdown != null) { clearInterval(countdown); } } function drawClassCard(idCard, subtype) { if (!classPos[0].used) { createCardObj(idCard, classPos[0], "classPos", 0); classPos[0].used = true; classPos[0].idCard = idCard; classPos[0].subtype = subtype; } else if (!classPos[1].used) { createCardObj(idCard, classPos[1], "classPos", 1); classPos[1].used = true; classPos[1].idCard = idCard; classPos[1].subtype = subtype; } else { createCardObj(idCard, classPos[2], "classPos", 2); classPos[2].used = true; classPos[2].idCard = idCard; classPos[2].subtype = subtype; } } function returnClassCard(cardObj) { if (!classPos[0].used) { returnClassFunction(classPos[0], cardObj); cardObj.currentPos = "classPos"; cardObj.posNumber = 0; } else if (!classPos[1].used) { returnClassFunction(classPos[1], cardObj); cardObj.currentPos = "classPos"; cardObj.posNumber = 1; } else { returnClassFunction(classPos[2], cardObj); cardObj.currentPos = "classPos"; cardObj.posNumber = 2; } delete _root.classCardObj; } function returnClassFunction(classPosObj, cardObj) { _root.currentClass = "Average"; tablePos[1].used = false; cardObj._x = classPosObj.xPos; cardObj._y = classPosObj.yPos; cardObj.swapDepths(classPosObj.depth); classPosObj.used = true; classPosObj.idCard = cardObj.idDeck; classPosObj.subtype = cardObj.subtype; } function phaseChange(phase, player, cardObj) { if (_root.helpArrow) { _root.helpArrow.removeMovieClip(); } if ((((player == "my") && (phase != "drawPhase")) && (phase != "equipPhase")) && (playSounds)) { phasemove.start(); } eval ((_root.currentPlayerTurn + "Phases.") + _root.currentPhase).enabled = false; eval ((_root.currentPlayerTurn + "Phases.") + _root.currentPhase).play(); eval ((_root.currentPlayerTurn + "Phases.") + _root.currentPhase).go = true; eval ((_root.currentPlayerTurn + "Phases.") + _root.currentPhase).onEnterFrame = function () { if ((this._currentframe == 1) && (this.go)) { this.go = false; this.stop(); } }; if (((phase == "drawPhase") && (player == "my")) && (_root.autoHelp)) { _root.attachMovie("phaseAnnounce", "phaseAnnounce", _root.confirmBoxDepth - 1); phaseAnnounce._x = 98; phaseAnnounce._y = 197; phaseAnnounce.phaseText.text = "<Draw Phase>"; phaseAnnounce.onEnterFrame = function () { if (this._currentframe == 25) { delete this.onEnterFrame; this.removeMovieClip(); } }; } eval ((player + "Phases.") + phase).play(); eval ((player + "Phases.") + phase).go = true; eval ((player + "Phases.") + phase).onEnterFrame = function () { if ((this._currentframe == 10) && (this.go)) { this.enabled = true; this.go = false; this.stop(); if (player == "my") { if (phase == "drawPhase") { enableHand("drawPhase"); if (_root.myLife > 0) { if (_root.skipDrawPhase == 0) { drawCards(1); } if (_root.skipDrawPhase > 0) { _root.skipDrawPhase--; } if (_root.cannotBlock > 0) { _root.cannotBlock--; } if (_root.mustBlock > 0) { _root.mustBlock--; } if (_root.cannotUseDefenseAbilities > 0) { _root.cannotUseDefenseAbilities--; } if (_root.cannotUseDefenseSpells > 0) { _root.cannotUseDefenseSpells--; } if (!_root.weaponCardObj.doesNotUntap) { untap(_root.weaponCardObj); } checkModifiers(); testGameOver(); if (!_root.gameisOver) { if (playSounds) { myturn.start(); } phaseChange("equipPhase", "my"); autoMsg("Your turn."); sendPhase(phase, _root.weaponCardObj); } } } else if (phase == "endPhase") { enableHand("endPhase"); ajustTurnModifiers(); checkModifiers(); testGameOver(); _root.myLastDamage = 0; _root.attackBlocked = false; if (!_root.gameisOver) { if (_root.myHand > _root.myMaxHand) { _root.phaseText = "<Discard Phase>"; _root.phaseValue = 5; _root.cardsToDiscard = _root.myHand - _root.myMaxHand; waitingDiscardBox(_root.cardsToDiscard); if (cardObj) { sendPhase(phase, cardObj, "playCard"); } else { sendPhase(phase); } } else { _root.phaseText = "<End Turn>"; _root.phaseValue = 5; resetAndStopTimer(); enableHand("opTurn"); phaseChange("drawPhase", "op"); autoMsg(opName + "'s turn."); if (cardObj) { sendPhase("opTurn", cardObj, "playCard"); } else { sendPhase("opTurn"); } } } } else if (phase == "attackPhase") { testGameOver(); if (!_root.gameisOver) { _root.phaseText = "<Attack Phase>"; _root.phaseValue = 3; enableHand("attackPhase"); attackResponseBox(); if (cardObj) { sendPhase(phase, cardObj, "playCard"); } else { sendPhase(phase); } } } else if (!_root.gameisOver) { testGameOver(); if ((phase == "equipPhase") && (!_root.gameisOver)) { if (_root.autoHelp) { autoMsg("<font color='#FFFF33'>You are now in your Equip Phase.</font>"); } _root.phaseText = "<Equip Phase>"; _root.phaseValue = 2; enableHand("equipPhase"); startTimer(); } else if ((phase == "spellPhase") && (!_root.gameisOver)) { checkModifiers(); if (_root.autoHelp) { autoMsg("<font color='#FFFF33'>You are now in your Spell/Ability Phase.</font>"); } _root.phaseText = "<Spell/Ability Phase>"; _root.phaseValue = 4; enableHand("spellPhase"); } if (cardObj) { sendPhase(phase, cardObj, "playCard"); } else { sendPhase(phase); } eval ("myPhases." + phase).timeHelper = 0; eval ("myPhases." + phase).onEnterFrame = function () { this.timeHelper++; if ((this.timeHelper >= 300) && (!waitingResponse)) { _root.attachMovie("helpArrow", "helpArrow", _root.viewCardDepth + 5); var _local3 = {x:-15, y:-35}; this.localToGlobal(_local3); _root.helpArrow._x = _local3.x; _root.helpArrow._y = _local3.y; delete this.onEnterFrame; } }; eval ("myPhases." + phase).useHandCursor = true; eval ("myPhases." + phase).onRelease = function () { if (_root.helpArrow) { _root.helpArrow.removeMovieClip(); } switch (this._name) { case "equipPhase" : if ((_root.weaponCardObj && (!_root.weaponCardObj.tapped)) && (!_root.skipAttackPhase)) { phaseChange("attackPhase", "my"); } else { phaseChange("spellPhase", "my"); } break; case "spellPhase" : phaseChange("endPhase", "my"); } }; } if ((phase != "drawPhase") && (_root.autoHelp)) { _root.attachMovie("phaseAnnounce", "phaseAnnounce", _root.confirmBoxDepth - _root.phaseValue); phaseAnnounce._x = 98; phaseAnnounce._y = 197; phaseAnnounce.phaseText.text = phaseText; phaseAnnounce.onEnterFrame = function () { if (this._currentframe == 25) { delete this.onEnterFrame; this.removeMovieClip(); } }; } } } }; if ((_root.currentPlayerTurn == "my") && (phase != "endPhase")) { eval ("myPhases." + _root.currentPhase).useHandCursor = false; } _root.currentPhase = phase; _root.currentPlayerTurn = player; } function testModifierIcon(catchName, type, catchToolTip) { w = 0; while (w <= 13) { if (modifierPos[w].name == catchName) { if (eval (catchName) == 0) { eval ("modIcon" + w).removeMovieClip(); modifierPos[w].used = false; modifierPos[w].name = ""; i = w + 1; while (i <= 13) { if (modifierPos[i].used) { modifierPos[i - 1].used = true; modifierPos[i - 1].name = modifierPos[i].name; eval ("modIcon" + i)._x = modifierPos[i - 1].xPos; eval ("modIcon" + i)._y = modifierPos[i - 1].yPos; eval ("modIcon" + i).swapDepths(_root.modifierDepth + Number(i - 1)); eval ("modIcon" + i)._name = "modIcon" + Number(i - 1); } else { modifierPos[i - 1].used = false; modifierPos[i - 1].name = ""; eval ("modIcon" + Number(i - 1)).removeMovieClip(); break; } i++; } sendRemoveModifierIcon(w); } else if (catchToolTip != eval ("modIcon" + w).toolTipText) { sparkle = eval ("modIcon" + w).attachMovie("sparkle_mc", "sparkle_mc", eval ("modIcon" + w).getNextHighestDepth()); sparkle.i = 0; sparkle.onEnterFrame = function () { this.i++; if (this.i >= 25) { this.removeMovieClip(); } }; eval ("modIcon" + w).toolTipText = catchToolTip; sendUpdateModifierIcon(catchToolTip, w); } return; } if ((!modifierPos[w].used) && (eval (catchName) > 0)) { createModifierIcon(catchName, type, catchToolTip, w); sendCreateModifierIcon(catchName, type, catchToolTip, w, modPicDisplay); return; } w++; } } function createModifierIcon(catchName, type, catchToolTip, pos) { newModIcon = _root.attachMovie(type + "ModIcon", "modIcon" + pos, _root.modifierDepth + pos); modifierPos[pos].used = true; modifierPos[pos].name = catchName; newModIcon.fixedToolTip = true; newModIcon._x = modifierPos[pos].xPos; newModIcon._y = modifierPos[pos].yPos; newModIcon.createEmptyMovieClip("pictureClip", newModIcon.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + modPicDisplay, newModIcon.pictureClip); newModIcon.pictureClip._x = 1; newModIcon.pictureClip._y = 1; newModIcon.pictureClip._xscale = 46; newModIcon.pictureClip._yscale = 47; ToolTip.install(newModIcon, catchToolTip, 1); } function checkModifiers() { plural = ((_root.skipDrawPhase > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.skipDrawPhase) + " turn") + plural) + "</b>"; testModifierIcon("skipDrawPhase", "neg", "Skip your draw phase." + turnsLeft); plural = ((_root.cannotChangeClass > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotChangeClass) + " turn") + plural) + "</b>"; testModifierIcon("cannotChangeClass", "neg", "Cannot change classes." + turnsLeft); plural = ((_root.mustAttack > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.mustAttack) + " turn") + plural) + "</b>"; testModifierIcon("mustAttack", "neg", "You must attack during your attack phase." + turnsLeft); plural = ((_root.mustBlock > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.mustBlock) + " turn") + plural) + "</b>"; testModifierIcon("mustBlock", "neg", "You must block with a weapon or shield in your opponent's attack phase." + turnsLeft); plural = ((_root.cannotEquipWeapon > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotEquipWeapon) + " turn") + plural) + "</b>"; testModifierIcon("cannotEquipWeapon", "neg", "You cannot equip weapons." + turnsLeft); plural = ((_root.cannotEquipArmor > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotEquipArmor) + " turn") + plural) + "</b>"; testModifierIcon("cannotEquipArmor", "neg", "You cannot equip armors." + turnsLeft); plural = ((_root.cannotEquipShield > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotEquipShield) + " turn") + plural) + "</b>"; testModifierIcon("cannotEquipShield", "neg", "You cannot equip shields." + turnsLeft); plural = ((_root.cannotEquipAmulet > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotEquipAmulet) + " turn") + plural) + "</b>"; testModifierIcon("cannotEquipAmulet", "neg", "You cannot equip amulets." + turnsLeft); plural = ((_root.cannotEquipItem > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotEquipItem) + " turn") + plural) + "</b>"; testModifierIcon("cannotEquipItem", "neg", "You cannot equip items." + turnsLeft); plural = ((_root.cannotAttack > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotAttack) + " turn") + plural) + "</b>"; testModifierIcon("cannotAttack", "neg", "You cannot attack during your attack phase." + turnsLeft); testModifierIcon("disableAttack", "neg", "You cannot attack during your attack phase."); plural = ((_root.cannotBlock > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotBlock) + " turn") + plural) + "</b>"; testModifierIcon("cannotBlock", "neg", "You cannot block with a weapon or shield." + turnsLeft); testModifierIcon("disableBlock", "neg", "You cannot block with a weapon or shield."); plural = ((_root.cannotUseUsageAbilities > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseUsageAbilities) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseUsageAbilities", "neg", "You cannot play usage abilities." + turnsLeft); testModifierIcon("disableUsageAbilities", "neg", "You cannot play usage abilities."); plural = ((_root.cannotUseUsageSpells > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseUsageSpells) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseUsageSpells", "neg", "You cannot play usage spells." + turnsLeft); testModifierIcon("disableUsageSpells", "neg", "You cannot play usage spells."); plural = ((_root.cannotUseAttackAbilities > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseAttackAbilities) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseAttackAbilities", "neg", "You cannot play attack abilities." + turnsLeft); testModifierIcon("disableAttackAbilities", "neg", "You cannot play attack abilities."); plural = ((_root.cannotUseAttackSpells > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseAttackSpells) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseAttackSpells", "neg", "You cannot play attack spells." + turnsLeft); testModifierIcon("disableAttackSpells", "neg", "You cannot play attack spells."); plural = ((_root.cannotUseDefenseAbilities > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseDefenseAbilities) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseDefenseAbilities", "neg", "You cannot play defense abilities." + turnsLeft); testModifierIcon("disableDefenseAbilities", "neg", "You cannot play defense abilities."); plural = ((_root.cannotUseDefenseSpells > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseDefenseSpells) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseDefenseSpells", "neg", "You cannot play defense spells." + turnsLeft); testModifierIcon("disableDefenseSpells", "neg", "You cannot play defense spells."); plural = ((_root.instantClassChangeHunter > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeHunter > 999) ? "" : (((("\n<b>" + _root.instantClassChangeHunter) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeHunter", "pos", "You may play the Hunter Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeAssassin > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeAssassin > 999) ? "" : (((("\n<b>" + _root.instantClassChangeAssassin) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeAssassin", "pos", "You may play the Assassin Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeKnight > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeKnight > 999) ? "" : (((("\n<b>" + _root.instantClassChangeKnight) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeKnight", "pos", "You may play the Knight Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeGladiator > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeGladiator > 999) ? "" : (((("\n<b>" + _root.instantClassChangeGladiator) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeGladiator", "pos", "You may play the Gladiator Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeSorcerer > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeSorcerer > 999) ? "" : (((("\n<b>" + _root.instantClassChangeSorcerer) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeSorcerer", "pos", "You may play the Sorcerer Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeWizard > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeWizard > 999) ? "" : (((("\n<b>" + _root.instantClassChangeWizard) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeWizard", "pos", "You may play the Wizard Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangePaladin > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangePaladin > 999) ? "" : (((("\n<b>" + _root.instantClassChangePaladin) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangePaladin", "pos", "You may play the Paladin Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeMonk > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeMonk > 999) ? "" : (((("\n<b>" + _root.instantClassChangeMonk) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeMonk", "pos", "You may play the Monk Class without losing this turn." + turnsLeft); plural = ((_root.ignoreArmorAbility > 1) ? "s" : ""); turnsLeft = ((_root.ignoreArmorAbility > 999) ? "" : (((("\n<b>" + _root.ignoreArmorAbility) + " turn") + plural) + "</b>")); testModifierIcon("ignoreArmorAbility", "pos", "Your abilities bypass armors." + turnsLeft); plural = ((_root.ignoreArmorDarkSpell > 1) ? "s" : ""); turnsLeft = ((_root.ignoreArmorDarkSpell > 999) ? "" : (((("\n<b>" + _root.ignoreArmorDarkSpell) + " turn") + plural) + "</b>")); testModifierIcon("ignoreArmorDarkSpell", "pos", "Your dark spells bypass armors." + turnsLeft); plural = ((_root.ignoreArmorLightSpell > 1) ? "s" : ""); turnsLeft = ((_root.ignoreArmorLightSpell > 999) ? "" : (((("\n<b>" + _root.ignoreArmorLightSpell) + " turn") + plural) + "</b>")); testModifierIcon("ignoreArmorLightSpell", "pos", "Your light spells bypass armors." + turnsLeft); plural = ((_root.ignoreArmorNatureSpell > 1) ? "s" : ""); turnsLeft = ((_root.ignoreArmorNatureSpell > 999) ? "" : (((("\n<b>" + _root.ignoreArmorNatureSpell) + " turn") + plural) + "</b>")); testModifierIcon("ignoreArmorNatureSpell", "pos", "Your nature spells bypass armors." + turnsLeft); testModifierIcon("abilityTurnPower", "pos", ("+" + abilityTurnPower) + " damage to all your abilities.\n<b>1 turn</b>"); testModifierIcon("darkSpellTurnPower", "pos", ("+" + darkSpellTurnPower) + " damage to all your dark spells.\n<b>1 turn</b>"); testModifierIcon("lightSpellTurnPower", "pos", ("+" + lightSpellTurnPower) + " damage to all your light spells.\n<b>1 turn</b>"); testModifierIcon("natureSpellTurnPower", "pos", ("+" + natureSpellTurnPower) + " damage to all your nature spells.\n<b>1 turn</b>"); } function ajustTurnModifiers() { if (_root.weaponCardObj) { removeTurnModifier(_root.weaponCardObj); } if (_root.shieldCardObj) { removeTurnModifier(_root.shieldCardObj); } if (_root.armorCardObj) { removeTurnModifier(_root.armorCardObj); } if (_root.instantClassChangeHunter > 0) { _root.instantClassChangeHunter--; } if (_root.instantClassChangeAssassin > 0) { _root.instantClassChangeAssassin--; } if (_root.instantClassChangeKnight > 0) { _root.instantClassChangeKnight--; } if (_root.instantClassChangeGladiator > 0) { _root.instantClassChangeGladiator--; } if (_root.instantClassChangeSorcerer > 0) { _root.instantClassChangeSorcerer--; } if (_root.instantClassChangeWizard > 0) { _root.instantClassChangeWizard--; } if (_root.instantClassChangePaladin > 0) { _root.instantClassChangePaladin--; } if (_root.instantClassChangeMonk > 0) { _root.instantClassChangeMonk--; } if (_root.cannotChangeClass > 0) { _root.cannotChangeClass--; } if (_root.mustAttack > 0) { _root.mustAttack--; } if (_root.cannotAttack > 0) { _root.cannotAttack--; } if (_root.cannotEquipWeapon > 0) { _root.cannotEquipWeapon--; } if (_root.cannotEquipArmor > 0) { _root.cannotEquipArmor--; } if (_root.cannotEquipShield > 0) { _root.cannotEquipShield--; } if (_root.cannotEquipAmulet > 0) { _root.cannotEquipAmulet--; } if (_root.cannotEquipItem > 0) { _root.cannotEquipItem--; } if (_root.cannotUseUsageAbilities > 0) { _root.cannotUseUsageAbilities--; } if (_root.cannotUseUsageSpells > 0) { _root.cannotUseUsageSpells--; } if (_root.cannotUseAttackAbilities > 0) { _root.cannotUseAttackAbilities--; } if (_root.cannotUseAttackSpells > 0) { _root.cannotUseAttackSpells--; } if (_root.ignoreArmorAbility > 0) { _root.ignoreArmorAbility--; } if (_root.ignoreArmorDarkSpell > 0) { _root.ignoreArmorDarkSpell--; } if (_root.ignoreArmorLightSpell > 0) { _root.ignoreArmorLightSpell--; } if (_root.ignoreArmorNatureSpell > 0) { _root.ignoreArmorNatureSpell--; } if (_root.abilityTurnPower > 0) { _root.abilityTurnPower = 0; } if (_root.darkSpellTurnPower > 0) { _root.darkSpellTurnPower = 0; } if (_root.lightSpellTurnPower > 0) { _root.lightSpellTurnPower = 0; } if (_root.natureSpellTurnPower > 0) { _root.natureSpellTurnPower = 0; } if (_root.weaponCardObj.imuneToCounterTurnLimit > 0) { _root.weaponCardObj.imuneToCounterTurnLimit--; } if (_root.weaponCardObj.imuneToCounterTurnLimit == 0) { _root.weaponCardObj.imuneToCounter = false; } if (_root.skipAttackPhase) { delete _root.skipAttackPhase; } if (_root.doubleActionUsed) { _root.doubleActionUsed = false; } } function discardCard(cardObj) { arrangeHand(cardObj); _root.myDiscard++; _root.discardPileArray.push(cardObj.idDraw); solveDiscardFunctions(eval ("myCard" + tablePos[2].idCard)); solveDiscardFunctions(eval ("myCard" + tablePos[3].idCard)); solveDiscardFunctions(eval ("myCard" + tablePos[4].idCard)); solveDiscardFunctions(eval ("myCard" + tablePos[8].idCard)); solveOpDiscardFunctions(opCard2); solveOpDiscardFunctions(opCard3); solveOpDiscardFunctions(opCard4); solveOpDiscardFunctions(opCard8); sendDiscardCard(cardObj); if (_root.currentPhase == "endPhase") { _root.cardsToDiscard--; if (_root.cardsToDiscard == 0) { resetAndStopTimer(); enableHand("opTurn"); phaseChange("drawPhase", "op"); sendPhase("opTurn"); _root.waitingDiscard.removeMovieClip(); autoMsg(opName + "'s turn."); } } removeMovieClip("temp_" + cardObj._name); cardObj.removeMovieClip(); } function updateOpCard(opCardObj, newRes) { opDmg = opCardObj.resistenceCount - newRes; if (opDmg > 0) { damageAnimation(opCardObj, opDmg); } opCardObj.resistenceCount = newRes; } function damageAnimation(cardObj, damage) { cardObj.attachMovie("lose_animation", "lose_animation", 999); cardObj.attachMovie("damageColorEffect", "damageColorEffect", 998); cardObj.lose_animation._x = 13; cardObj.lose_animation._y = 6; if (cardObj.tapped) { cardObj.lose_animation._rotation = -90; cardObj.lose_animation._x = 10; cardObj.lose_animation._y = 45; } cardObj.lose_animation.points = "-" + damage; cardObj.lose_animation.onEnterFrame = function () { if (this._currentframe == 20) { this.stop(); this.removeMovieClip(); } }; cardObj.damageColorEffect.onEnterFrame = function () { if (this._currentframe == 20) { this.stop(); this.removeMovieClip(); } }; } function gainAnimation(cardObj, gain) { cardObj.attachMovie("gain_animation", "gain_animation", 999); cardObj.gain_animation._x = 13; cardObj.gain_animation._y = 6; cardObj.gain_animation.points = "+" + gain; cardObj.gain_animation.onEnterFrame = function () { if (this._currentframe == 20) { this.stop(); this.removeMovieClip(); } }; } function removeCard(cardObj, funcTrigger, destroyedByOp) { addModifiers(_root.weaponCardObj); pos = cardObj.posNumber; if (pos != 6) { sendRemoveCard(cardObj, funcTrigger, destroyedByOp); } if (cardObj.handleType == 2) { tablePos[2].idCard = 0; tablePos[2].used = false; tablePos[2].model = ""; tablePos[4].idCard = 0; tablePos[4].used = false; tablePos[4].model = ""; } else { tablePos[pos].idCard = 0; tablePos[pos].used = false; tablePos[pos].model = ""; } if (cardObj.model == "artifact_weapon") { delete _root.weaponCardObj; } if (cardObj.model == "artifact_shield") { delete _root.shieldCardObj; } if (cardObj.model == "armor") { delete _root.armorCardObj; } if (cardObj.model == "artifact_item") { if (pos == 2) { delete _root.itemCardObj1; } else { delete _root.itemCardObj2; } } _root.myDiscard++; _root.discardPileArray.push(cardObj.idDraw); if (!funcTrigger) { colorize(cardObj, overCardColor); cardObj.fadeStart = Math.round(getTimer() / 10); cardObj.onEnterFrame = function () { fadeEnd = Math.round(getTimer() / 10) - this.fadeStart; this._alpha = 100 - fadeEnd; if (fadeEnd >= 100) { uncolorize(this); delete this.fadeStart; delete fadeEnd; delete this.onEnterFrame; removeMovieClip("temp_" + this._name); this.removeMovieClip(); } }; } else { solveRemoveFunctions(cardObj); removeMovieClip("temp_" + cardObj._name); cardObj.removeMovieClip(); } } function removeOpCard(posNumber, removefunc1, removefunc2, removefunc3, destroyfunc1, destroyfunc2, noAnimation) { if (posNumber == 1) { opClasses++; opClassDock.gotoAndStop(opClasses + 1); } readOpFunctions(removefunc1, eval ("opCard" + posNumber)); readOpFunctions(removefunc2, eval ("opCard" + posNumber)); readOpFunctions(removefunc3, eval ("opCard" + posNumber)); readOpFunctions(destroyfunc1, eval ("opCard" + posNumber)); readOpFunctions(destroyfunc2, eval ("opCard" + posNumber)); eval ("opCard" + posNumber).idCard = 0; if (!noAnimation) { if (eval ("opCard" + posNumber).resistenceCount > 0) { damageAnimation(eval ("opCard" + posNumber), eval ("opCard" + posNumber).resistenceCount); } colorize(eval ("opCard" + posNumber), overCardColor); eval ("opCard" + posNumber).fadeStart = Math.round(getTimer() / 10); eval ("opCard" + posNumber).onEnterFrame = function () { fadeEnd = Math.round(getTimer() / 10) - this.fadeStart; eval ("opCard" + posNumber)._alpha = 100 - fadeEnd; if (fadeEnd >= 100) { uncolorize(this); delete this.onEnterFrame; opFadeOutCard(posNumber); } }; } else { opFadeOutCard(posNumber); } } function opFadeOutCard(posNumber) { removeMovieClip("opCard" + posNumber); if (posNumber == 7) { tablePos[7].used = false; } } function arrangeHand(cardObj) { if (cardObj.currentPos == "handPos") { _root.myHand--; } oldPosNumber = cardObj.posNumber; posObj = eval (cardObj.currentPos); posObj[oldPosNumber].used = false; posObj[oldPosNumber].idCard = 0; posObj[oldPosNumber].subtype = ""; newPos = oldPosNumber; while (newPos < _root.maxHandCards) { oldPos = newPos + 1; if (!posObj[oldPos].used) { return; } eval ("myCard" + posObj[oldPos].idCard)._x = posObj[newPos].xPos; eval ("myCard" + posObj[oldPos].idCard)._y = posObj[newPos].yPos; eval ("myCard" + posObj[oldPos].idCard).swapDepths(posObj[newPos].depth); eval ("myCard" + posObj[oldPos].idCard).posNumber = newPos; posObj[newPos].used = true; posObj[newPos].idCard = eval ("myCard" + posObj[oldPos].idCard).idDeck; posObj[newPos].subtype = eval ("myCard" + posObj[oldPos].idCard).subtype; posObj[oldPos].used = false; posObj[oldPos].idCard = 0; posObj[oldPos].subtype = ""; newPos++; } } function checkClasses(cardObj) { cardUsable = false; switch (_root.currentClass) { case "Average" : if (cardObj.av) { cardUsable = true; } break; case "Hunter" : if (cardObj.h) { cardUsable = true; } break; case "Knight" : if (cardObj.k) { cardUsable = true; } break; case "Paladin" : if (cardObj.p) { cardUsable = true; } break; case "Sorcerer" : if (cardObj.s) { cardUsable = true; } break; case "Assassin" : if (cardObj.a) { cardUsable = true; } break; case "Gladiator" : if (cardObj.g) { cardUsable = true; } break; case "Wizard" : if (cardObj.w) { cardUsable = true; } break; case "Monk" : if (!cardObj.m) { break; } cardUsable = true; } if (((cardObj.type == "Class") || (cardObj.type == "Subclass")) && (cardObj.currentPos == "tablePos")) { cardUsable = true; } if (cardObj.e) { cardUsable = true; } return(cardUsable); } function addModifiers(cardObj) { if (cardObj.type == "Ability") { if (cardObj.playfunc1.substr(0, 11) == "hitOpponent") { cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, modifier_Ability, ignoreArmorAbility); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, abilityTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_Ability, ignoreArmorAbility); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, abilityTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_Ability, ignoreArmorAbility); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, abilityTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_Ability, ignoreArmorAbility); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, abilityTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_Ability, ignoreArmorAbility); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, abilityTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_Ability, ignoreArmorAbility); cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, abilityTurnPower); } } else if (cardObj.type == "Dark Spell") { if (cardObj.playfunc1.substr(0, 11) == "hitOpponent") { cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, darkSpellTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, darkSpellTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, darkSpellTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, darkSpellTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, darkSpellTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, darkSpellTurnPower); } } else if (cardObj.type == "Light Spell") { if (cardObj.playfunc1.substr(0, 11) == "hitOpponent") { cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, lightSpellTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, lightSpellTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, lightSpellTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, lightSpellTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, lightSpellTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, lightSpellTurnPower); } } else if (cardObj.type == "Nature Spell") { if (cardObj.playfunc1.substr(0, 11) == "hitOpponent") { cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, natureSpellTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, natureSpellTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, natureSpellTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, natureSpellTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, natureSpellTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, natureSpellTurnPower); } } else if (cardObj.subtype == "Dark Wand") { cardObj.powerCount = ((cardObj.power + cardObj.powerAdded) + modifier_DarkSpell) + darkSpellTurnPower; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } } else if (cardObj.subtype == "Light Wand") { cardObj.powerCount = ((cardObj.power + cardObj.powerAdded) + modifier_LightSpell) + lightSpellTurnPower; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } } else if (cardObj.subtype == "Bow") { cardObj.powerCount = (cardObj.power + cardObj.powerAdded) + powModifier_Bow; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } cardObj.resistenceCount = (cardObj.resistence + cardObj.resistenceAdded) + resModifier_Bow; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } else if (cardObj.subtype == "Crossbow") { cardObj.powerCount = (cardObj.power + cardObj.powerAdded) + powModifier_Crossbow; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } cardObj.resistenceCount = (cardObj.resistence + cardObj.resistenceAdded) + resModifier_Crossbow; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } else if (cardObj.subtype == "Sword") { cardObj.powerCount = (cardObj.power + cardObj.powerAdded) + powModifier_Sword; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } cardObj.resistenceCount = (cardObj.resistence + cardObj.resistenceAdded) + resModifier_Sword; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } else if (cardObj.subtype == "Axe") { cardObj.powerCount = (cardObj.power + cardObj.powerAdded) + powModifier_Axe; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } cardObj.resistenceCount = (cardObj.resistence + cardObj.resistenceAdded) + resModifier_Axe; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } else if (cardObj.subtype == "Mace") { cardObj.powerCount = (cardObj.power + cardObj.powerAdded) + powModifier_Mace; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } cardObj.resistenceCount = (cardObj.resistence + cardObj.resistenceAdded) + resModifier_Mace; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } } function playCardTable(cardObj, newTable, posOnTable) { if (cardObj.model == "artifact_weapon") { _root.weaponCardObj = cardObj; } if (cardObj.model == "artifact_shield") { _root.shieldCardObj = cardObj; } if (cardObj.model == "armor") { _root.armorCardObj = cardObj; } if (cardObj.model == "artifact_item") { if (posOnTable == 2) { _root.itemCardObj1 = cardObj; } else { _root.itemCardObj2 = cardObj; } } removeSparkles(cardObj); arrangeHand(cardObj); newTable.used = true; newTable.idCard = cardObj.idDeck; newTable.model = cardObj.model; cardObj.currentPos = "tablePos"; cardObj.posNumber = posOnTable; cardObj._x = newTable.xPos; cardObj._y = newTable.yPos; cardObj.swapDepths(newTable.depth); if ((cardObj.type == "Class") || (cardObj.type == "Subclass")) { _root.classCardObj = cardObj; _root.currentClass = cardObj.subtype; cardObj.toolTipText = "During the equip phase, you may return this card to your class dock located in the left side of the screen."; if ((instantClassChangeHunter > 0) and (cardObj.subtype == "Hunter")) { _root.stayPut = true; } if ((instantClassChangeAssassin > 0) and (cardObj.subtype == "Assassin")) { _root.stayPut = true; } if ((instantClassChangeKnight > 0) and (cardObj.subtype == "Knight")) { _root.stayPut = true; } if ((instantClassChangeGladiator > 0) and (cardObj.subtype == "Gladiator")) { _root.stayPut = true; } if ((instantClassChangeSorcerer > 0) and (cardObj.subtype == "Sorcerer")) { _root.stayPut = true; } if ((instantClassChangeWizard > 0) and (cardObj.subtype == "Wizard")) { _root.stayPut = true; } if ((instantClassChangePaladin > 0) and (cardObj.subtype == "Paladin")) { _root.stayPut = true; } if ((instantClassChangeMonk > 0) and (cardObj.subtype == "Monk")) { _root.stayPut = true; } if (_root.stayPut) { sendPlayCard(cardObj); enableHand("equipPhase"); } else { phaseChange("endPhase", "my", cardObj); } delete stayPut; } else { cardObj.toolTipText = "During the equip phase, you may destroy this item by dragging it into your graveyard (the cross icon in the bottom right corner of your playfield)."; cardObj.attachMovie("infoBox", "infoBox", this.getNextHighestDepth()); cardObj.infoBox._x = 6; cardObj.infoBox._y = 50; cardObj.powerAdded = 0; cardObj.resistenceAdded = 0; cardObj.powerCount = cardObj.power; cardObj.originalPower = cardObj.power; cardObj.resistenceCount = cardObj.resistence; cardObj.originalResistence = cardObj.resistence; solveMyFunctions(cardObj); addModifiers(cardObj); if (!cardObj.instantEffect) { if ((cardObj == _root.weaponCardObj) && (cardObj.fastStrike)) { delete _root.skipAttackPhase; } if ((_root.weaponCardObj && (!_root.skipAttackPhase)) && ((cardObj != _root.weaponCardObj) || (cardObj.fastStrike))) { phaseChange("attackPhase", "my", cardObj); } else { phaseChange("spellPhase", "my", cardObj); } } else { if ((cardObj == _root.weaponCardObj) && (!cardObj.fastStrike)) { _root.skipAttackPhase = true; } else if ((cardObj == _root.weaponCardObj) && (cardObj.fastStrike)) { delete _root.skipAttackPhase; } sendPlayCard(cardObj); enableHand("equipPhase"); } } } function useAbility(cardObj, from) { arrangeHand(cardObj); cardObj.toolTipText = ""; cardObj.currentPos = "tablePos"; cardObj.posNumber = 6; cardObj._x = tablePos[6].xPos; cardObj._y = tablePos[6].yPos; cardObj.swapDepths(tablePos[6].depth); tablePos[6].used = true; tablePos[6].idCard = cardObj.idDeck; if (from == "opTurn") { enableHand("opTurn"); if (_root.currentPhase == "attackPhase") { sendCounterAbility(cardObj, "attack"); } else { sendCounterAbility(cardObj, "ability"); } } else { if (_root.helpArrow) { _root.helpArrow.removeMovieClip(); } addModifiers(cardObj); sendAbility(cardObj); } } function clickCard() { ToolTip.hide(); if ((this._name.substring(0, 2) != "op") && (!_root.gameisOver)) { if (((((this.currentPos == "tablePos") && (this.posNumber != 7)) && (this.posNumber != 6)) || (this.currentPos == "handPos")) || (this.currentPos == "classPos")) { if ((((!_root.waitingResponse) && (!_root.okResponse)) && (!_root.defenseResponse)) && (!_root.attackResponse)) { _root.dragging = this; _root.currentCardXpos = this._x; _root.currentCardYpos = this._y; Mouse.addListener(mouseListener); } } } } function draggingOver(obj) { if ((obj.hitTest(_root._xmouse, _root._ymouse, false) && (!obj.colored)) && (!_root.currentBelow)) { if ((obj._name == "myPlayfield") || (obj._name == "classDock")) { obj._alpha = 40; } colorize(obj, overTargetColor); obj.colored = true; if (obj.hitTest(_root.currentOver)) { uncolorize(_root.currentOver); delete _root.currentOver.colored; _root.currentBelow = true; } _root.currentOver = obj; } else if ((!obj.hitTest(_root._xmouse, _root._ymouse, false)) && (obj.colored)) { if ((obj._name == "myPlayfield") || (obj._name == "classDock")) { obj._alpha = 0; } uncolorize(obj); delete obj.colored; if (_root.currentOver == obj) { delete _root.currentOver; } if (_root.currentBelow) { delete _root.currentBelow; } } } function addSparkles(targetObj, noGlow) { if ((!targetObj.sparklesEffect) && (noGlow)) { targetObj.createEmptyMovieClip("sparklesEffect", targetObj.getNextHighestDepth()); targetObj.sparklesEffect.i = 0; targetObj.sparklesEffect.onEnterFrame = function () { this.i++; if ((this.i % (10 + Math.floor(Math.random() * 5))) == 0) { sparkle = this.attachMovie("sparkle_mc", "sparkle_mc" + this.i, this.i + 5); sparkle._x = Math.floor(Math.random() * 43); sparkle._y = 20 + Math.floor(Math.random() * 14); sparkle.i = 0; sparkle.onEnterFrame = function () { this._y--; this.i++; if (this.i >= 25) { this.removeMovieClip(); } }; } }; } else if (!targetObj.sparklesEffect) { targetObj.attachMovie("sparklesEffect", "sparklesEffect", targetObj.getNextHighestDepth()); targetObj.sparklesEffect.i = 0; targetObj.sparklesEffect.onEnterFrame = function () { this.i++; if ((this.i % (12 + Math.floor(Math.random() * 3))) == 0) { sparkle = this.attachMovie("sparkle_mc", "sparkle_mc" + this.i, this.i + 5); sparkle._x = Math.floor(Math.random() * 48); sparkle._y = 20 + Math.floor(Math.random() * 44); sparkle.i = 0; sparkle.onEnterFrame = function () { this._y--; this.i++; if (this.i >= 25) { this.removeMovieClip(); } }; } }; } } function removeSparkles(targetObj) { if (targetObj.sparklesEffect) { targetObj.sparklesEffect.removeMovieClip(); } } function enableHand(phase) { switch (phase) { case "drawPhase" : i = 0; while (i < myHand) { removeSparkles(eval ("myCard" + handPos[i].idCard)); i++; } return; case "equipPhase" : i = 0; while (i < myHand) { if (testHandToPlayfield(eval ("myCard" + handPos[i].idCard))) { addSparkles(eval ("myCard" + handPos[i].idCard)); } else { removeSparkles(eval ("myCard" + handPos[i].idCard)); } i++; } if (((_root.armorCardObj || (tablePos[8].used)) || (_root.weaponCardObj)) || (_root.shieldCardObj)) { addSparkles(graveyard, true); } else { removeSparkles(graveyard); } if (currentClass == "Average") { if (classPos[0].used) { addSparkles(eval ("myCard" + classPos[0].idCard)); } if (classPos[1].used) { addSparkles(eval ("myCard" + classPos[1].idCard)); } if (classPos[2].used) { addSparkles(eval ("myCard" + classPos[2].idCard)); } } return; case "attackPhase" : i = 0; while (i < myHand) { removeSparkles(eval ("myCard" + handPos[i].idCard)); i++; } removeSparkles(graveyard); removeSparkles(eval ("myCard" + classPos[0].idCard)); removeSparkles(eval ("myCard" + classPos[1].idCard)); removeSparkles(eval ("myCard" + classPos[2].idCard)); return; case "spellPhase" : i = 0; while (i < myHand) { if (testHandToPlayfield(eval ("myCard" + handPos[i].idCard))) { addSparkles(eval ("myCard" + handPos[i].idCard)); } else { removeSparkles(eval ("myCard" + handPos[i].idCard)); } i++; } removeSparkles(graveyard); removeSparkles(eval ("myCard" + classPos[0].idCard)); removeSparkles(eval ("myCard" + classPos[1].idCard)); removeSparkles(eval ("myCard" + classPos[2].idCard)); return; case "endPhase" : i = 0; while (i < myHand) { addSparkles(eval ("myCard" + handPos[i].idCard)); i++; } removeSparkles(graveyard); removeSparkles(eval ("myCard" + classPos[0].idCard)); removeSparkles(eval ("myCard" + classPos[1].idCard)); removeSparkles(eval ("myCard" + classPos[2].idCard)); return; case "opTurn" : i = 0; while (i < myHand) { removeSparkles(eval ("myCard" + handPos[i].idCard)); i++; } return; case "defenseResponse" : i = 0; for(;;){ if (i >= myHand) { break; } if (testHandToPlayfield(eval ("myCard" + handPos[i].idCard))) { addSparkles(eval ("myCard" + handPos[i].idCard)); } else { removeSparkles(eval ("myCard" + handPos[i].idCard)); } i++; }; } } function testHandToPlayfield(cardObj) { usable = false; if (((((((_root.currentPhase == cardObj.phaseUsage) || (_root.currentPhase == cardObj.phaseUsage2)) && (_root.currentPlayerTurn == "my")) && (_root.originalPos != "tablePos")) || ((cardObj.phaseUsage == "opAction") && (_root.currentPlayerTurn == "op"))) && (checkClasses(cardObj))) && (!testLimitation(cardObj))) { if ((((_root.waitingOpRes != "counter") && (!eval ("myCard" + tablePos[6].idCard))) && (myPhases.spellPhase.enabled || (myPhases.equipPhase.enabled))) && ((((cardObj.model == "ability_usage") && (cannotUseUsageAbilities == 0)) && (disableUsageAbilities == 0)) || (((cardObj.model == "spell_usage") && (cannotUseUsageSpells == 0)) && (disableUsageSpells == 0)))) { usable = true; } else if ((((_root.waitingOpRes != "counter") && (!eval ("myCard" + tablePos[6].idCard))) && (myPhases.spellPhase.enabled)) && ((((cardObj.model == "ability_attack") && (cannotUseAttackAbilities == 0)) && (disableAttackAbilities == 0)) || (((cardObj.model == "spell_attack") && (cannotUseAttackSpells == 0)) && (disableAttackSpells == 0)))) { usable = true; } else if ((_root.abilityResponse && (!opCard7.uncounterable)) && ((((cardObj.model == "ability_defense") && (cannotUseDefenseAbilities == 0)) && (disableDefenseAbilities == 0)) || (((cardObj.model == "spell_defense") && (cannotUseDefenseSpells == 0)) && (disableDefenseSpells == 0)))) { usable = true; } if (cardObj.type == "Artifact") { if (((cardObj.model == "artifact_amulet") && (!tablePos[8].used)) && (_root.cannotEquipAmulet == 0)) { usable = true; } else if (cardObj.handleType == 1) { if ((((cardObj.model == "artifact_weapon") && (!_root.weaponCardObj)) && (_root.cannotEquipWeapon == 0)) && ((!tablePos[2].used) || (!tablePos[4].used))) { usable = true; } else if ((((cardObj.model == "artifact_shield") && (!_root.shieldCardObj)) && (_root.cannotEquipShield == 0)) && ((!tablePos[2].used) || (!tablePos[4].used))) { usable = true; } else if (((cardObj.model == "artifact_item") && (_root.cannotEquipItem == 0)) && ((!tablePos[2].used) || (!tablePos[4].used))) { usable = true; } } else if (((cardObj.model == "artifact_weapon") && (_root.cannotEquipWeapon == 0)) && ((!tablePos[2].used) && (!tablePos[4].used))) { usable = true; } else if (((cardObj.model == "artifact_shield") && (_root.cannotEquipShield == 0)) && ((!tablePos[2].used) && (!tablePos[4].used))) { usable = true; } else if (((cardObj.model == "artifact_item") && (_root.cannotEquipItem == 0)) && ((!tablePos[2].used) && (!tablePos[4].used))) { usable = true; } } else if (((cardObj.type == "Armor") && (!tablePos[3].used)) && (_root.cannotEquipArmor == 0)) { usable = true; } else if ((cannotChangeClass == 0) && ((cardObj.type == "Class") || (cardObj.type == "Subclass"))) { usable = true; } } return(usable); } function releaseCard() { if (this._alpha == 100) { if ((_root.cardViewNumber != this.idCard) && (this.hitTest(_root._xmouse, _root._ymouse, false))) { _root.cardViewNumber = this.idCard; viewClickedCard(this); } } else { if (_root.currentOver) { if ((_root.currentOver._name == "myPlayfield") || (_root.currentOver._name == "classDock")) { _root.currentOver._alpha = 0; } if (((_root.currentOver._name == "myPlayfield") && ((this.type == "Class") || (this.type == "Subclass"))) && (_root.currentClass == "Average")) { playCardTable(this, tablePos[1], 1); } else if ((this.currentPos == "tablePos") && ((this.type == "Class") || (this.type == "Subclass"))) { sendRemoveCard(this, true); returnClassCard(this); enableHand("equipPhase"); } else if (_root.currentOver._name == "myPlayfield") { if (this.model == "artifact_weapon") { if (this.handleType == 1) { if ((!tablePos[2].used) && (tablePos[4].model != "artifact_weapon")) { playCardTable(this, tablePos[2], 2); } else if ((!tablePos[4].used) && (tablePos[2].model != "artifact_weapon")) { playCardTable(this, tablePos[4], 4); } } else if ((!tablePos[2].used) && (!tablePos[4].used)) { playCardTable(this, tablePos[2], 2); tablePos[4].used = true; } } else if (this.model == "armor") { playCardTable(this, tablePos[3], 3); } else if (this.model == "artifact_amulet") { playCardTable(this, tablePos[8], 8); } else if (this.model == "artifact_shield") { if ((!tablePos[2].used) && (tablePos[4].model != "artifact_shield")) { playCardTable(this, tablePos[2], 2); } else if ((!tablePos[4].used) && (tablePos[2].model != "artifact_shield")) { playCardTable(this, tablePos[4], 4); } } else if (this.model == "artifact_item") { if (this.handleType == 1) { if (!tablePos[2].used) { playCardTable(this, tablePos[2], 2); } else if (!tablePos[4].used) { playCardTable(this, tablePos[4], 4); } } else if ((!tablePos[2].used) && (!tablePos[4].used)) { playCardTable(this, tablePos[2], 2); tablePos[4].used = true; } } else if ((this.model == "ability_defense") || (this.model == "spell_defense")) { useAbility(this, "opTurn"); waitingResponseBox(); } else if ((((this.model == "ability_usage") || (this.model == "ability_attack")) || (this.model == "spell_usage")) || (this.model == "spell_attack")) { useAbility(this, "myTurn"); myPhases.equipPhase.enabled = false; myPhases.spellPhase.enabled = false; waitingResponseBox(); } } else if ((_root.currentOver._name == "graveyard") && (_root.originalPos == "handPos")) { discardCard(this); } else if ((_root.currentOver._name == "graveyard") && (_root.originalPos == "tablePos")) { removeCard(this, true); refreshHand = true; } } if (this.currentPos == _root.originalPos) { this._x = _root.currentCardXpos; this._y = _root.currentCardYpos; this.swapDepths(this.oldDepth); } delete _root.originalPos; if (refreshHand) { enableHand("equipPhase"); delete refreshHand; } } if (_root.dragging) { uncolorize(_root.currentOver); delete _root.currentOver.colored; delete _root.currentOver; removeMovieClip("temp_" + this._name); delete _root.dragging; this._alpha = 100; delete _root.currentBelow; Mouse.removeListener(mouseListener); stopDrag(); } if (this.oldDepth_mo) { this.swapDepths(this.oldDepth_mo); } } function connectionTimeOut() { toTimer++; if ((toTimer > 7) && (!_root.opName)) { toTimer = 0; autoMsg("Could not establish connection with your opponent!<br>Returning to lobby..."); if (connectionTimeOutInterval != null) { clearInterval(connectionTimeOutInterval); } if (lobbyAutoReturnInterval != null) { clearInterval(lobbyAutoReturnInterval); } lobbyAutoReturnInterval = setInterval(lobbyAutoReturn, 2000); } else if (_root.opName) { if (connectionTimeOutInterval != null) { clearInterval(connectionTimeOutInterval); } } } function lobbyAutoReturn() { toTimer++; if ((toTimer > 3) && (!_root.opName)) { if (lobbyAutoReturnInterval != null) { clearInterval(lobbyAutoReturnInterval); } loadLobby(); } else if (_root.opName) { autoMsg("Connection established!"); if (lobbyAutoReturnInterval != null) { clearInterval(lobbyAutoReturnInterval); } } } clearGameVariables(); publicChat[gameRoomID] = ""; gameChat.htmlText = ""; opHandViewer.gotoAndStop(1); opClassDock.gotoAndStop(1); myPlayfield._alpha = 0; classDock._alpha = 0; toTimer = 0; z = 0; w = 0; i = 0; xPos = 0; yPos = 0; loadedBackgrounds = 0; myMaxHand = 6; maxLife = 20; myLife = maxLife; myHand = 0; myDeck = 0; myDiscard = 0; opMaxLife = 20; opLife = opMaxLife; opHand = 0; opDeck = 0; opDiscard = 0; oldMyLife = myLife; oldMyHand = myHand; oldMyDeck = myDeck; oldMyDiscard = myDiscard; maxHandCards = 14; currentClass = "Average"; deckOrder = new Array(); discardPileArray = new Array(); whoStartsSentence = " has been randomly selected to start the game."; confirmBoxXpos = 250; confirmBoxYpos = 250; skipDrawPhase = 0; cannotChangeClass = 0; mustAttack = 0; mustBlock = 0; cannotEquipWeapon = 0; cannotEquipArmor = 0; cannotEquipShield = 0; cannotEquipAmulet = 0; cannotEquipItem = 0; cannotAttack = 0; disableAttack = 0; cannotBlock = 0; disableBlock = 0; cannotUseAbilities = 0; cannotUseUsageAbilities = 0; disableUsageAbilities = 0; cannotUseAttackAbilities = 0; disableAttackAbilities = 0; cannotUseDefenseAbilities = 0; disableDefenseAbilities = 0; cannotUseSpells = 0; cannotUseUsageSpells = 0; disableUsageSpells = 0; cannotUseAttackSpells = 0; disableAttackSpells = 0; cannotUseDefenseSpells = 0; disableDefenseSpells = 0; abilityTurnPower = 0; darkSpellTurnPower = 0; lightSpellTurnPower = 0; natureSpellTurnPower = 0; ignoreArmorAbility = 0; ignoreArmorDarkSpell = 0; ignoreArmorLightSpell = 0; ignoreArmorNatureSpell = 0; instantClassChangeHunter = 0; instantClassChangeAssassin = 0; instantClassChangeKnight = 0; instantClassChangeGladiator = 0; instantClassChangeSorcerer = 0; instantClassChangeWizard = 0; instantClassChangePaladin = 0; instantClassChangeMonk = 0; handDepth = 10; classDepth = 50; opPlayfieldDepth = 100; playfieldDepth = 200; discardDepth = 300; modifierDepth = 400; viewCardDepth = 1000; dragDepth = 5001; confirmBoxDepth = 5000; modifier_Ability = 0; modifier_DarkSpell = 0; modifier_LightSpell = 0; modifier_NatureSpell = 0; powModifier_Bow = 0; powModifier_Crossbow = 0; powModifier_Sword = 0; powModifier_Axe = 0; powModifier_Mace = 0; resModifier_Bow = 0; resModifier_Crossbow = 0; resModifier_Sword = 0; resModifier_Axe = 0; resModifier_Mace = 0; gameChatTab._x = 13; gameChatTab._y = 396; tradeChatTab._x = 44; tradeChatTab._y = 396; privateChatTab0._x = 80; privateChatTab0._y = 396; privateChatTab1._x = 116; privateChatTab1._y = 396; privateChatTab2._x = 152; privateChatTab2._y = 396; privateChatTab3._x = 188; privateChatTab3._y = 396; privateChatTab4._x = 224; privateChatTab4._y = 396; privateChatTab5._x = 260; privateChatTab5._y = 396; privateChatTab6._x = 296; privateChatTab6._y = 396; privateChatTab7._x = 332; privateChatTab7._y = 396; privateChatTab8._x = 368; privateChatTab8._y = 396; closeTab._x = 390; closeTab._y = 420; closeTab._alpha = 0; closeTab.enabled = false; if (_root.selectedRoom == tradeRoomID) { tradeChatTab.tabName.htmlText = "<font color='#FFFFFF'>Trade</font>"; gameChatTab.tabName.htmlText = "<font color='#FFFF66'>Game</font>"; _root.selectedRoom = gameRoomID; gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom != gameRoomID) { eval ("privateChatTab" + _root.selectedRoom).tabName.htmlText = ("<font color='#FFFFFF'>" + eval ("privateChatTab" + _root.selectedRoom).privChatName) + "</font>"; gameChatTab.tabName.htmlText = "<font color='#FFFF66'>Game</font>"; _root.selectedRoom = gameRoomID; gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } gameChatTab.onRelease = function () { closeTab._alpha = 0; closeTab.enabled = false; if (_root.selectedRoom == tradeRoomID) { tradeChatTab.tabName.htmlText = "<font color='#FFFFFF'>Trade</font>"; gameChatTab.tabName.htmlText = "<font color='#FFFF66'>Game</font>"; _root.selectedRoom = gameRoomID; gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom != gameRoomID) { eval ("privateChatTab" + _root.selectedRoom).tabName.htmlText = ("<font color='#FFFFFF'>" + eval ("privateChatTab" + _root.selectedRoom).privChatName) + "</font>"; gameChatTab.tabName.htmlText = "<font color='#FFFF66'>Game</font>"; _root.selectedRoom = gameRoomID; gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } }; handPos = new Array(); z = 0; while (z < _root.maxHandCards) { if ((z >= 0) && (z < 7)) { xPos = 68 + (52 * z); yPos = 307; } else { xPos = 78 + (52 * (z - 7)); yPos = 316; } handPos.push(new multiDim(0, "", "", false, _root.handDepth + z, xPos, yPos)); z++; } tablePos = new Array(); opTablePos = new Array(); z = 0; while (z <= 8) { switch (z) { case 1 : xPos = 108; yPos = 221; break; case 2 : xPos = 195; yPos = 221; break; case 3 : xPos = 257; yPos = 212; break; case 4 : xPos = 319; yPos = 221; break; case 5 : xPos = 130; yPos = 190; break; case 6 : xPos = 221; yPos = 174; break; case 7 : xPos = 291; yPos = 151; break; case 8 : xPos = 257; yPos = 227; } tablePos.push(new multiDim(0, "", "", false, _root.playfieldDepth + z, xPos, yPos)); opTablePos.push(new multiDim(0, "", "", false, _root.opPlayfieldDepth + z, xPos, yPos - 102)); z++; } classPos = new Array(); classPos.push(new multiDim(0, "", "", false, _root.classDepth + 1, 10, 211)); classPos.push(new multiDim(0, "", "", false, _root.classDepth + 2, 20, 221)); classPos.push(new multiDim(0, "", "", false, _root.classDepth + 3, 30, 231)); modifierPos = new Array(); modifierPos.push(new modMultiDim(false, "", 414, 200)); modifierPos.push(new modMultiDim(false, "", 393, 200)); modifierPos.push(new modMultiDim(false, "", 372, 200)); modifierPos.push(new modMultiDim(false, "", 351, 200)); modifierPos.push(new modMultiDim(false, "", 330, 200)); modifierPos.push(new modMultiDim(false, "", 309, 200)); modifierPos.push(new modMultiDim(false, "", 288, 200)); modifierPos.push(new modMultiDim(false, "", 267, 200)); modifierPos.push(new modMultiDim(false, "", 246, 200)); modifierPos.push(new modMultiDim(false, "", 235, 200)); modifierPos.push(new modMultiDim(false, "", 204, 200)); modifierPos.push(new modMultiDim(false, "", 183, 200)); modifierPos.push(new modMultiDim(false, "", 162, 200)); modifierPos.push(new modMultiDim(false, "", 141, 200)); opModifierPos = new Array(); opModifierPos.push(new modMultiDim(false, "", 414, 104)); opModifierPos.push(new modMultiDim(false, "", 393, 104)); opModifierPos.push(new modMultiDim(false, "", 372, 104)); opModifierPos.push(new modMultiDim(false, "", 351, 104)); opModifierPos.push(new modMultiDim(false, "", 330, 104)); opModifierPos.push(new modMultiDim(false, "", 309, 104)); opModifierPos.push(new modMultiDim(false, "", 288, 104)); opModifierPos.push(new modMultiDim(false, "", 267, 104)); opModifierPos.push(new modMultiDim(false, "", 246, 104)); opModifierPos.push(new modMultiDim(false, "", 235, 104)); opModifierPos.push(new modMultiDim(false, "", 204, 104)); opModifierPos.push(new modMultiDim(false, "", 183, 104)); opModifierPos.push(new modMultiDim(false, "", 162, 104)); opModifierPos.push(new modMultiDim(false, "", 141, 104)); viewMyPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _root.myPicture, viewMyPicture.pictureClip); viewMyPicture.pictureClip._xscale = 87; viewMyPicture.pictureClip._yscale = 87; viewMyPicture.pictureClip._x = 0; viewMyPicture.pictureClip._y = 0; helpButton.onRelease = function () { if (_root.autoHelp) { _root.autoHelp = false; this.gotoAndStop(2); localSaves.data.autoHelpOff = true; localSaves.flush(); } else { _root.autoHelp = true; this.gotoAndStop(1); localSaves.data.autoHelpOff = false; localSaves.flush(); } }; var mouseListener = new Object(); mouseListener.onMouseMove = function () { if (_root.dragging._alpha == 100) { startDrag (_root.dragging); _root.dragging._alpha = 40; _root.originalPos = _root.dragging.currentPos; _root.dragging.oldDepth = _root.dragging.getDepth(); _root.dragging.swapDepths(_root.dragDepth); _root.dragging.duplicateMovieClip("temp_" + _root.dragging._name, _root.dragging.oldDepth); eval ("temp_" + _root.dragging._name).gotoAndStop(_root.dragging._currentframe); } if (testHandToPlayfield(_root.dragging)) { draggingOver(myPlayfield); } else if ((_root.cardsToDiscard > 0) && (_root.originalPos == "handPos")) { draggingOver(graveyard); } else if ((((_root.currentPhase == "equipPhase") && (_root.currentPlayerTurn == "my")) && (_root.originalPos == "tablePos")) && ((_root.dragging.type == "Armor") || (_root.dragging.type == "Artifact"))) { draggingOver(graveyard); } else if ((cannotChangeClass == 0) && ((((_root.currentPhase == "equipPhase") && (_root.currentPlayerTurn == "my")) && (_root.originalPos == "tablePos")) && (((_root.dragging.type == "Class") && (!tablePos[5].used)) || (_root.dragging.type == "Subclass")))) { draggingOver(classDock); } }; var myCards = new LoadVars(); myCards.onLoad = function (success) { if (success) { setMyLife(maxLife, true); myDeck = 0; myClasses = 0; z = 1; while (z <= this.totalCards) { if ((this["type" + z] != "Class") && (this["type" + z] != "Subclass")) { _root.deckOrder.push(z); myDeck++; } else { drawClassCard(z, this["subtype" + z]); myClasses++; } z++; } myBackground.createEmptyMovieClip("pictureClip", myBackground.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/backgrounds/") + this.loadedBackground, myBackground.pictureClip); _root.loadedBackground = this.loadedBackground; shuffle(deckOrder); shuffle(deckOrder); shuffle(deckOrder); drawCards(5); if (_root.myGameId == 2) { sendJoinGameTo("player1"); } else { if (!_root.opHand) { autoMsg("Waiting for opponent..."); } if (_root.sendJoinWhenLoaded) { sendJoinGameTo("player2"); delete _root.sendJoinWhenLoaded; } } if (connectionTimeOutInterval != null) { clearInterval(connectionTimeOutInterval); } connectionTimeOutInterval = setInterval(connectionTimeOut, 2000); autoMsg("To turn tips off, click on the \"Help\" button located in the middle of the playfield."); } else { autoMsg("Error loading cards information. Contact support for details (No experience was been lost on this match)."); } }; function gainLife(num) { if (_root.myLife < _root.maxLife) { newLife = _root.myLife + num; if (newLife > _root.maxLife) { newLife = _root.maxLife; } setMyLife(newLife); } } function drawCards(num) { z = 0; while (z < num) { if (_root.myDeck > 0) { w = 0; while (w < _root.maxHandCards) { if (_root.myHand >= _root.maxHandCards) { autoMsg("You cannot have more then 14 cards in your hand."); break; } if (!handPos[w].used) { _root.myHand++; _root.myDeck--; idDraw = _root.deckOrder.pop(); createCardObj(idDraw, handPos[w], "handPos", w); handPos[w].used = true; handPos[w].idCard = idDraw; solveDrawFunctions(eval ("myCard" + tablePos[2].idCard)); solveDrawFunctions(eval ("myCard" + tablePos[3].idCard)); solveDrawFunctions(eval ("myCard" + tablePos[4].idCard)); solveDrawFunctions(eval ("myCard" + tablePos[8].idCard)); solveOpDrawFunctions(opCard2); solveOpDrawFunctions(opCard3); solveOpDrawFunctions(opCard4); solveOpDrawFunctions(opCard9); delete idDraw; break; } w++; } } else { autoMsg("You have no more cards in your deck."); noMoreCards = true; return; } z++; } } function tap(cardObj) { if (!cardObj.tapped) { cardObj.tapped = true; cardObj._rotation = 90; cardObj._x = cardObj._x + 50; cardObj.infoBox._rotation = -90; cardObj.infoBox._x = 29; cardObj.infoBox._y = 67; if (cardObj.attackCounts) { cardObj.countsBox._rotation = -90; cardObj.countsBox._y = 21; } if (cardObj.idDeck) { sendArtifactUpdate(cardObj); } } } function untap(cardObj) { if (cardObj.tapped) { cardObj.tapped = false; cardObj._rotation = 0; cardObj._x = cardObj._x - 50; cardObj.infoBox._rotation = 0; cardObj.infoBox._x = 6; cardObj.infoBox._y = 50; if (cardObj.attackCounts) { cardObj.countsBox._rotation = 0; cardObj.countsBox._y = 3; } if (cardObj.idDeck) { sendArtifactUpdate(cardObj); } } } function bodyBlock(damage, armorBlock, attackPhase, shieldPower) { if ((((!attackPhase) && (_root.armorCardObj)) && (armorBlock || (_root.armorCardObj.negArmorBypass))) || (((attackPhase && (_root.armorCardObj)) && (armorBlock || (_root.armorCardObj.negArmorBypass))) && ((!_root.opWeaponCardObj.ignoreTurnArmor) || (_root.armorCardObj.negArmorBypass)))) { if (damage > 0) { if (damage > _root.armorCardObj.resistenceCount) { damageAnimation(_root.armorCardObj, _root.armorCardObj.resistenceCount); } else { damageAnimation(_root.armorCardObj, damage); } } armorTemp = _root.armorCardObj.resistenceCount; _root.armorCardObj.resistenceCount = _root.armorCardObj.resistenceCount - damage; damage = damage - armorTemp; if (damage > 0) { newLife = _root.myLife - damage; setMyLife(newLife); } if (shieldPower) { defenseHitBack = _root.armorCardObj.powerCount + shieldPower; } else { defenseHitBack = _root.armorCardObj.powerCount; } if (_root.armorCardObj.resistenceCount <= 0) { solveDestroyFunctions(_root.armorCardObj); _root.armorCardObj.resistenceCount = 0; if (attackPhase) { sendSolveAttack(defenseHitBack); } removeCard(_root.armorCardObj); } else if (attackPhase) { sendSolveAttack(defenseHitBack, _root.armorCardObj); } } else { defenseHitBack = shieldPower; newLife = _root.myLife - damage; setMyLife(newLife); if (attackPhase) { sendSolveAttack(defenseHitBack); } } delete defenseHitBack; } function artifactBlock(cardObj, damage, condition) { if (damage > 0) { if (damage > cardObj.resistenceCount) { damageAnimation(cardObj, cardObj.resistenceCount); } else { damageAnimation(cardObj, damage); } } cardObj.resistenceCount = cardObj.resistenceCount - damage; dmgTemp = damage; damage = damage - cardObj.resistenceAdded; cardObj.resistenceAdded = cardObj.resistenceAdded - dmgTemp; if (damage < 0) { damage = 0; } if (cardObj.resistenceAdded <= 0) { cardObj.resistenceAdded = 0; } if (cardObj.subtype == "Shield") { dmgTemp = damage; damage = damage - Math.abs(cardObj.resistence); cardObj.resistence = cardObj.resistence - dmgTemp; if (damage < 0) { damage = 0; } if (condition == "attackPhase") { bodyBlock(damage, true, true, cardObj.powerCount); } else if (condition == "redirectToShield") { if (ignoreArmorRedirectedDamage) { bodyBlock(damage); } else { bodyBlock(damage, true); } } } else { cardObj.resistence = cardObj.resistence - damage; } if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 0; solveDestroyFunctions(cardObj); removeCard(cardObj, false, true); } else { sendArtifactUpdate(cardObj); } delete dmgTemp; } function solveMyFunctions(cardObj) { if (cardObj.playfunc1) { readMyFunctions(cardObj.playfunc1, cardObj); } if (cardObj.playfunc2) { readMyFunctions(cardObj.playfunc2, cardObj); } if (cardObj.playfunc3) { readMyFunctions(cardObj.playfunc3, cardObj); } if (cardObj.playfunc4) { readMyFunctions(cardObj.playfunc4, cardObj); } if (cardObj.playfunc5) { readMyFunctions(cardObj.playfunc5, cardObj); } if (cardObj.playfunc6) { readMyFunctions(cardObj.playfunc6, cardObj); } } function solveRemoveFunctions(cardObj) { if (cardObj.removefunc1) { readMyFunctions(cardObj.removefunc1, cardObj); } if (cardObj.removefunc2) { readMyFunctions(cardObj.removefunc2, cardObj); } if (cardObj.removefunc3) { readMyFunctions(cardObj.removefunc3, cardObj); } } function solveBlockedFunctions(cardObj) { if (cardObj.attackblockfunc1) { readMyFunctions(cardObj.attackblockfunc1, cardObj); } if (cardObj.attackblockfunc2) { readMyFunctions(cardObj.attackblockfunc2, cardObj); } } function solveUnblockedFunctions(cardObj) { if (cardObj.attackfunc1) { readMyFunctions(cardObj.attackfunc1, cardObj); } if (cardObj.attackfunc2) { readMyFunctions(cardObj.attackfunc2, cardObj); } } function solveDestroyFunctions(cardObj) { if (cardObj.destroyfunc1) { readMyFunctions(cardObj.destroyfunc1, cardObj); } if (cardObj.destroyfunc2) { readMyFunctions(cardObj.destroyfunc2, cardObj); } } function solveAttackedbyFunctions(cardObj) { if (cardObj.attackedbyfunc1) { readMyFunctions(cardObj.attackedbyfunc1, cardObj); } if (cardObj.attackedbyfunc2) { readMyFunctions(cardObj.attackedbyfunc2, cardObj); } } function solveItemBlockFunctions(cardObj) { if (cardObj.attackedbyfunc1) { readMyFunctions(cardObj.itemblockfunc1, cardObj); } if (cardObj.attackedbyfunc2) { readMyFunctions(cardObj.itemblockfunc2, cardObj); } } function solveDrawFunctions(cardObj) { if (cardObj.drawfunc1) { readMyFunctions(cardObj.drawfunc1, cardObj); } if (cardObj.drawfunc2) { readMyFunctions(cardObj.drawfunc2, cardObj); } } function solveOpDrawFunctionsFromMyCards(cardObj) { if (cardObj.opdrawfunc1) { readMyFunctions(cardObj.opdrawfunc1, cardObj); } if (cardObj.opdrawfunc2) { readMyFunctions(cardObj.opdrawfunc2, cardObj); } } function solveDiscardFunctions(cardObj) { if (cardObj.discardfunc1) { readMyFunctions(cardObj.discardfunc1, cardObj); } if (cardObj.discardfunc2) { readMyFunctions(cardObj.discardfunc2, cardObj); } } function solveOpDiscardFunctionsFromMyCards(cardObj) { if (cardObj.opdiscardfunc1) { readMyFunctions(cardObj.opdiscardfunc1, cardObj); } if (cardObj.opdiscardfunc2) { readMyFunctions(cardObj.opdiscardfunc2, cardObj); } } function solveOpAttackBlockedFunctions(cardObj) { if (cardObj.attackblockfunc1) { readOpFunctions(cardObj.attackblockfunc1, cardObj); } if (cardObj.attackblockfunc2) { readOpFunctions(cardObj.attackblockfunc2, cardObj); } } function solveOpAttackUnblockedFunctions(cardObj) { if (cardObj.attackfunc1) { readOpFunctions(cardObj.attackfunc1, cardObj); } if (cardObj.attackfunc2) { readOpFunctions(cardObj.attackfunc2, cardObj); } } function solveOpAttackedbyFunctions(cardObj) { if (cardObj.attackedbyfunc1) { readOpFunctions(cardObj.attackedbyfunc1, cardObj); } if (cardObj.attackedbyfunc2) { readOpFunctions(cardObj.attackedbyfunc2, cardObj); } } function solveOpDrawFunctions(cardObj) { if (cardObj.opdrawfunc1) { readOpFunctions(cardObj.opdrawfunc1, cardObj); } if (cardObj.opdrawfunc2) { readOpFunctions(cardObj.opdrawfunc2, cardObj); } } function solveOpDrawFunctionsFromOpCards(cardObj) { if (cardObj.drawfunc1) { readOpFunctions(cardObj.drawfunc1, cardObj); } if (cardObj.drawfunc2) { readOpFunctions(cardObj.drawfunc2, cardObj); } } function solveOpDiscardFunctions(cardObj) { if (cardObj.opdiscardfunc1) { readOpFunctions(cardObj.opdiscardfunc1, cardObj); } if (cardObj.opdiscardfunc2) { readOpFunctions(cardObj.opdiscardfunc2, cardObj); } } function solveOpDiscardFunctionsFromOpCards(cardObj) { if (cardObj.discardfunc1) { readOpFunctions(cardObj.discardfunc1, cardObj); } if (cardObj.discardfunc2) { readOpFunctions(cardObj.discardfunc2, cardObj); } } function readMyFunctions(func, cardObj) { nameOfFunc = func.substring(0, func.indexOf("(")); if (func.indexOf(",") != -1) { param1 = func.substring(func.indexOf("(") + 1, func.indexOf(",")); param2 = func.substring(func.indexOf(",") + 1, func.indexOf(")")); } else { param1 = func.substring(func.indexOf("(") + 1, func.indexOf(")")); param2 = false; } if (nameOfFunc == "imuneToCounter") { if (!cardObj) { if (!_root.weaponCardObj.imuneToCounter) { _root.weaponCardObj.imuneToCounter = true; _root.weaponCardObj.imuneToCounterTurnLimit = Number(param1); } } else { cardObj.imuneToCounter = true; } } if (nameOfFunc == "fastStrike") { cardObj.fastStrike = true; } if (nameOfFunc == "instant") { cardObj.instantEffect = true; } if (nameOfFunc == "negArmorBypass") { cardObj.negArmorBypass = true; } if (nameOfFunc == "doesNotUntap") { cardObj.doesNotUntap = true; } if (nameOfFunc == "unblockable") { cardObj.unblockable = true; } if (nameOfFunc == "skipDrawPhase") { if (_root.skipDrawPhase < Number(param1)) { _root.skipDrawPhase = Number(param1); } } if (nameOfFunc == "setAttackCounts") { cardObj.attachMovie("countsBox", "countsBox", cardObj.getNextHighestDepth()); cardObj.countsBox._x = 3; cardObj.countsBox._y = 3; cardObj.attackCounts = Number(param1); } if (nameOfFunc == "cannotBlock") { cardObj.cannotBlock = true; } if (nameOfFunc == "changeToClass") { if (_root.classCardObj) { sendRemoveCard(_root.classCardObj); returnClassCard(_root.classCardObj); } if (classPos[0].subtype == param1) { cardObjTemp = eval ("myCard" + classPos[0].idCard); } if (classPos[1].subtype == param1) { cardObjTemp = eval ("myCard" + classPos[1].idCard); } if (classPos[2].subtype == param1) { cardObjTemp = eval ("myCard" + classPos[2].idCard); } if (cardObjTemp) { _root.stayPut = true; playCardTable(cardObjTemp, tablePos[1], 1); } } if (nameOfFunc == "changeMaxLife") { _root.maxLife = _root.maxLife + Number(param1); if (_root.myLife > _root.maxLife) { setMyLife(_root.maxLife); } } if (nameOfFunc == "changeOpMaxLife") { _root.opMaxLife = _root.opMaxLife + Number(param1); } if (nameOfFunc == "instantClassChange") { if ((_root.instantClassChangeHunter < Number(param1)) && (param2 == "Hunter")) { _root.instantClassChangeHunter = Number(param1); } if ((_root.instantClassChangeAssassin < Number(param1)) && (param2 == "Assassin")) { _root.instantClassChangeAssassin = Number(param1); } if ((_root.instantClassChangeKnight < Number(param1)) && (param2 == "Knight")) { _root.instantClassChangeKnight = Number(param1); } if ((_root.instantClassChangeGladiator < Number(param1)) && (param2 == "Gladiator")) { _root.instantClassChangeGladiator = Number(param1); } if ((_root.instantClassChangeSorcerer < Number(param1)) && (param2 == "Sorcerer")) { _root.instantClassChangeSorcerer = Number(param1); } if ((_root.instantClassChangeWizard < Number(param1)) && (param2 == "Wizard")) { _root.instantClassChangeWizard = Number(param1); } if ((_root.instantClassChangePaladin < Number(param1)) && (param2 == "Paladin")) { _root.instantClassChangePaladin = Number(param1); } if ((_root.instantClassChangeMonk < Number(param1)) && (param2 == "Monk")) { _root.instantClassChangeMonk = Number(param1); } if (!param2) { if (_root.instantClassChangeHunter < Number(param1)) { _root.instantClassChangeHunter = Number(param1); } if (_root.instantClassChangeAssassin < Number(param1)) { _root.instantClassChangeAssassin = Number(param1); } if (_root.instantClassChangeKnight < Number(param1)) { _root.instantClassChangeKnight = Number(param1); } if (_root.instantClassChangeGladiator < Number(param1)) { _root.instantClassChangeGladiator = Number(param1); } if (_root.instantClassChangeSorcerer < Number(param1)) { _root.instantClassChangeSorcerer = Number(param1); } if (_root.instantClassChangeWizard < Number(param1)) { _root.instantClassChangeWizard = Number(param1); } if (_root.instantClassChangePaladin < Number(param1)) { _root.instantClassChangePaladin = Number(param1); } if (_root.instantClassChangeMonk < Number(param1)) { _root.instantClassChangeMonk = Number(param1); } } } if (nameOfFunc == "mustAttack") { if (((_root.currentPhase == "spellPhase") || (_root.currentPhase == "attackPhase")) && (_root.currentPlayerTurn == "my")) { if (_root.mustAttack <= Number(param1)) { _root.mustAttack = Number(param1) + 1; } } else if (_root.mustAttack < Number(param1)) { _root.mustAttack = Number(param1); } } if (nameOfFunc == "mustBlock") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "op")) { if (_root.mustBlock <= Number(param1)) { _root.mustBlock = Number(param1) + 1; } } else if (_root.mustBlock < Number(param1)) { _root.mustBlock = Number(param1); } } if (nameOfFunc == "unableToAttack") { if (((_root.currentPhase == "spellPhase") || (_root.currentPhase == "attackPhase")) && (_root.currentPlayerTurn == "my")) { if (_root.cannotAttack <= Number(param1)) { _root.cannotAttack = Number(param1) + 1; } } else if (_root.cannotAttack < Number(param1)) { _root.cannotAttack = Number(param1); } } if (nameOfFunc == "unableToBlock") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "op")) { if (_root.cannotBlock <= Number(param1)) { _root.cannotBlock = Number(param1) + 1; } } else if (_root.cannotBlock < Number(param1)) { _root.cannotBlock = Number(param1); } } if (nameOfFunc == "unableToDefenseSpells") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "op")) { if (_root.cannotUseDefenseSpells <= Number(param1)) { _root.cannotUseDefenseSpells = Number(param1) + 1; } } else if (_root.cannotUseDefenseSpells < Number(param1)) { _root.cannotUseDefenseSpells = Number(param1); } } if (nameOfFunc == "unableToAttackSpells") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseAttackSpells <= Number(param1)) { _root.cannotUseAttackSpells = Number(param1) + 1; } } else if (_root.cannotUseAttackSpells < Number(param1)) { _root.cannotUseAttackSpells = Number(param1); } } if (nameOfFunc == "unableToUsageSpells") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseUsageSpells <= Number(param1)) { _root.cannotUseUsageSpells = Number(param1) + 1; } } else if (_root.cannotUseUsageSpells < Number(param1)) { _root.cannotUseUsageSpells = Number(param1); } } if (nameOfFunc == "unableToDefenseAbilities") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "op")) { if (_root.cannotUseDefenseAbilities <= Number(param1)) { _root.cannotUseDefenseAbilities = Number(param1) + 1; } } else if (_root.cannotUseDefenseAbilities < Number(param1)) { _root.cannotUseDefenseAbilities = Number(param1); } } if (nameOfFunc == "unableToAttackAbilities") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseAttackAbilities <= Number(param1)) { _root.cannotUseAttackAbilities = Number(param1) + 1; } } else if (_root.cannotUseAttackAbilities < Number(param1)) { _root.cannotUseAttackAbilities = Number(param1); } } if (nameOfFunc == "unableToUsageAbilities") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseUsageAbilities <= Number(param1)) { _root.cannotUseUsageAbilities = Number(param1) + 1; } } else if (_root.cannotUseUsageAbilities < Number(param1)) { _root.cannotUseUsageAbilities = Number(param1); } } if (nameOfFunc == "shuffle") { shuffle(deckOrder); } if (nameOfFunc == "drawCards") { drawCards(Number(param1)); } if (nameOfFunc == "changeMaxHand") { _root.myMaxHand = _root.myMaxHand + Number(param1); } if (nameOfFunc == "setHandSize") { if (_root.myHand < Number(param1)) { drawCards(Number(param1) - _root.myHand); } else if (_root.myHand > Number(param1)) { toDiscard = _root.myHand - Number(param1); z = 0; while (z < toDiscard) { if (_root.myHand > 0) { cardToDiscard = new Array(_root.myHand); t = 0; while (t < _root.myHand) { cardToDiscard[t] = t; t++; } shuffle(cardToDiscard); discardCard(eval ("myCard" + handPos[cardToDiscard[0]].idCard)); delete cardToDiscard; } z++; } delete toDiscard; } } if (nameOfFunc == "discardCards") { if (param2 == "random") { toDiscard = Number(param1); z = 0; while (z < toDiscard) { if (_root.myHand > 0) { cardToDiscard = new Array(_root.myHand); t = 0; while (t < _root.myHand) { cardToDiscard[t] = t; t++; } shuffle(cardToDiscard); discardCard(eval ("myCard" + handPos[cardToDiscard[0]].idCard)); delete cardToDiscard; } z++; } delete toDiscard; } } if (nameOfFunc == "handToDeck") { toDeck = Number(param1); if (param2 == "random") { z = 0; while (z < toDeck) { if (_root.myHand > 0) { _root.myDeck++; randomHandId = Math.floor(Math.random() * _root.myHand); idCardTemp = handPos[randomHandId].idCard; arrangeHand(eval ("myCard" + idCardTemp)); _root.deckOrder.push(eval ("myCard" + idCardTemp).idDraw); eval ("myCard" + idCardTemp).removeMovieClip(); delete randomHandId; delete idCardTemp; } z++; } } delete toDeck; } if (nameOfFunc == "returnToHand") { } if (nameOfFunc == "graveToHand") { toHand = Number(param1); z = 0; while (z < toHand) { if (_root.myDiscard > 0) { if (param2 == "bottom") { idDraw = _root.discardPileArray.shift(); } else if ((param2 == "top") || (!param2)) { idDraw = _root.discardPileArray.pop(); } else if (param2 == "random") { discardPileTemp = _root.discardPileArray.copy(); shuffle(discardPileTemp); idDraw = discardPileTemp.pop(); _root.discardPileArray.splice(_root.discardPileArray.indexOf(idDraw), 1); delete discardPileTemp; } w = 0; while (w < _root.maxHandCards) { if (!handPos[w].used) { _root.myHand++; _root.myDiscard--; createCardObj(idDraw, handPos[w], "handPos", w); handPos[w].used = true; handPos[w].idCard = idDraw; break; } w++; } delete idDraw; } z++; } delete toHand; } if (nameOfFunc == "graveToDeck") { toDeck = Number(param1); z = 0; while (z < toDeck) { if (_root.myDiscard > 0) { _root.myDiscard--; _root.myDeck++; if (param2 == "bottom") { idDraw = _root.discardPileArray.shift(); _root.deckOrder.push(idDraw); } else if ((param2 == "top") || (!param2)) { idDraw = _root.discardPileArray.pop(); _root.deckOrder.push(idDraw); } else if (param2 == "random") { discardPileTemp = _root.discardPileArray.copy(); shuffle(discardPileTemp); idDraw = discardPileTemp.pop(); _root.discardPileArray.splice(_root.discardPileArray.indexOf(idDraw), 1); _root.deckOrder.push(idDraw); delete discardPileTemp; } delete idDraw; } z++; } delete toDeck; } if (nameOfFunc == "gainLife") { if ((param1 == "weapon pow") && (_root.weaponCardObj)) { gainLife(_root.weaponCardObj.powerCount); } else if ((param1 == "weapon res") && (_root.weaponCardObj)) { gainLife(_root.weaponCardObj.resistenceCount); } else if ((param1 == "opweapon pow") && (opCard2._currentframe == 15)) { gainLife(opCard2.powerCount); } else if ((param1 == "opweapon pow") && (opCard4._currentframe == 15)) { gainLife(opCard4.powerCount); } else if ((param1 == "opweapon res") && (opCard2._currentframe == 15)) { gainLife(opCard2.resistenceCount); } else if ((param1 == "opweapon res") && (opCard4._currentframe == 15)) { gainLife(opCard4.resistenceCount); } else if (!isNaN(param1 * 1)) { gainLife(Number(param1)); } } if (nameOfFunc == "loseLife") { if ((param1 == "weapon pow") && (_root.weaponCardObj)) { damage = _root.weaponCardObj.powerCount; } else if ((param1 == "weapon res") && (_root.weaponCardObj)) { damage = _root.weaponCardObj.resistenceCount; } else if ((param1 == "opweapon pow") && (opCard2._currentframe == 15)) { damage = opCard2.powerCount; } else if ((param1 == "opweapon pow") && (opCard4._currentframe == 15)) { damage = opCard4.powerCount; } else if ((param1 == "opweapon res") && (opCard2._currentframe == 15)) { damage = opCard2.resistenceCount; } else if ((param1 == "opweapon res") && (opCard4._currentframe == 15)) { damage = opCard4.resistenceCount; } else if (!isNaN(param1 * 1)) { damage = Number(param1); } if (param2 == "true") { bodyBlock(damage, true); } else { bodyBlock(damage); } } if (nameOfFunc == "hitOwnArtifact") { if (param2 == "weapon") { cardObjTemp = _root.weaponCardObj; } if (param2 == "shield") { cardObjTemp = _root.shieldCardObj; } if (param2 == "armor") { cardObjTemp = _root.armorCardObj; } if (cardObjTemp) { artifactBlock(cardObjTemp, Number(param1)); } if ((param2 == "bag") && (_root.itemCardObj1.subtype == "Bag")) { artifactBlock(_root.itemCardObj1, Number(param1)); } if ((param2 == "orb") && (_root.itemCardObj1.subtype == "Orb")) { artifactBlock(_root.itemCardObj1, Number(param1)); } if ((param2 == "bag") && (_root.itemCardObj2.subtype == "Bag")) { artifactBlock(_root.itemCardObj2, Number(param1)); } if ((param2 == "orb") && (_root.itemCardObj2.subtype == "Orb")) { artifactBlock(_root.itemCardObj2, Number(param1)); } } if (nameOfFunc == "hitAllArtifacts") { if ((param2 == "me") || (!param2)) { if (eval ("myCard" + tablePos[2].idCard)) { artifactBlock(eval ("myCard" + tablePos[2].idCard), Number(param1)); } if (eval ("myCard" + tablePos[3].idCard)) { artifactBlock(eval ("myCard" + tablePos[3].idCard), Number(param1)); } if (eval ("myCard" + tablePos[4].idCard)) { artifactBlock(eval ("myCard" + tablePos[4].idCard), Number(param1)); } if (eval ("myCard" + tablePos[8].idCard)) { artifactBlock(eval ("myCard" + tablePos[8].idCard), Number(param1)); } } } if (nameOfFunc == "restore") { if ((param1 == "weapon") && (_root.weaponCardObj)) { newResAdded = Math.abs(_root.weaponCardObj.resistenceCount - _root.weaponCardObj.originalResistence); gainAnimation(_root.weaponCardObj, newResAdded); _root.weaponCardObj.power = _root.weaponCardObj.originalPower; _root.weaponCardObj.powerCount = _root.weaponCardObj.originalPower; _root.weaponCardObj.resistence = _root.weaponCardObj.originalResistence; _root.weaponCardObj.resistenceCount = _root.weaponCardObj.originalResistence; } else if ((param1 == "shield") && (_root.shieldCardObj)) { newResAdded = Math.abs(_root.shieldCardObj.resistenceCount - _root.shieldCardObj.originalResistence); gainAnimation(_root.shieldCardObj, newResAdded); _root.shieldCardObj.power = _root.shieldCardObj.originalPower; _root.shieldCardObj.powerCount = _root.shieldCardObj.originalPower; _root.shieldCardObj.resistence = _root.shieldCardObj.originalResistence; _root.shieldCardObj.resistenceCount = _root.shieldCardObj.originalResistence; } else if ((param1 == "armor") && (_root.armorCardObj)) { newResAdded = Math.abs(_root.armorCardObj.resistenceCount - _root.armorCardObj.originalResistence); gainAnimation(_root.armorCardObj, newResAdded); _root.armorCardObj.power = _root.armorCardObj.originalPower; _root.armorCardObj.powerCount = _root.armorCardObj.originalPower; _root.armorCardObj.resistence = _root.armorCardObj.originalResistence; _root.armorCardObj.resistenceCount = _root.armorCardObj.originalResistence; } delete newResAdded; } if (nameOfFunc == "ableTo") { if ((param1 == "attack") && (param2 == "false")) { _root.disableAttack++; } else if ((param1 == "attack") && (param2 == "true")) { _root.disableAttack--; } if ((param1 == "block") && (param2 == "false")) { _root.disableBlock++; } else if ((param1 == "block") && (param2 == "true")) { _root.disableBlock--; } if ((param1 == "spells") && (param2 == "false")) { _root.disableUsageSpells++; _root.disableAttackSpells++; _root.disableDefenseSpells++; } else if ((param1 == "spells") && (param2 == "true")) { _root.disableUsageSpells--; _root.disableAttackSpells--; _root.disableDefenseSpells--; } if ((param1 == "abilities") && (param2 == "false")) { _root.disableUsageAbilities++; _root.disableAttackAbilities++; _root.disableDefenseAbilities++; } else if ((param1 == "abilities") && (param2 == "true")) { _root.disableUsageAbilities--; _root.disableAttackAbilities--; _root.disableDefenseAbilities--; } if ((param1 == "usage abilities") && (param2 == "false")) { _root.disableUsageAbilities++; } else if ((param1 == "usage abilities") && (param2 == "true")) { _root.disableUsageAbilities--; } if ((param1 == "attack abilities") && (param2 == "false")) { _root.disableAttackAbilities++; } else if ((param1 == "attack abilities") && (param2 == "true")) { _root.disableAttackAbilities--; } if ((param1 == "defense abilities") && (param2 == "false")) { _root.disableDefenseAbilities++; } else if ((param1 == "defense abilities") && (param2 == "true")) { _root.disableDefenseAbilities--; } if ((param1 == "usage spells") && (param2 == "false")) { _root.disableUsageSpells++; } else if ((param1 == "usage spells") && (param2 == "true")) { _root.disableUsageSpells--; } if ((param1 == "attack spells") && (param2 == "false")) { _root.disableAttackSpells++; } else if ((param1 == "attack spells") && (param2 == "true")) { _root.disableAttackSpells--; } if ((param1 == "defense spells") && (param2 == "false")) { _root.disableDefenseSpells++; } else if ((param1 == "defense spells") && (param2 == "true")) { _root.disableDefenseSpells--; } } if (nameOfFunc == "double") { if (!_root.doubleActionUsed) { _root.doubleAction = true; _root.doubleActionUsed = true; } } if (nameOfFunc == "untapTurnWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((((param1 == "wand") && (subtype.indexOf("wand") != -1)) || (subtype == param1)) || (!param1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { cardObjTemp.untapable = true; cardObjTemp.untapTurnLimit = true; } } if (nameOfFunc == "untapWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((((param1 == "wand") && (subtype.indexOf("wand") != -1)) || (subtype == param1)) || (!param1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { untap(_root.weaponCardObj); } } if (nameOfFunc == "tapWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((((param1 == "wand") && (subtype.indexOf("wand") != -1)) || (subtype == param1)) || (!param1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { tap(cardObjTemp); } } if (nameOfFunc == "untappable") { cardObj.untapable = true; } if (nameOfFunc == "addAttackCounts") { if (_root.weaponCardObj.attackCounts != undefined) { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param2 == "wand") && (subtype.indexOf("wand") != -1)) { addAttackCountsOk = true; } if (_root.weaponCardObj && (((subtype == param2) || (!param2)) || (addAttackCountsOk))) { _root.weaponCardObj.attackCounts = _root.weaponCardObj.attackCounts + Number(param1); } delete addAttackCountsOk; } } if (nameOfFunc == "removeAttackCounts") { if (_root.weaponCardObj.attackCounts != undefined) { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param2 == "wand") && (subtype.indexOf("wand") != -1)) { removeAttackCountsOk = true; } if (_root.weaponCardObj && (((subtype == param2) || (!param2)) || (removeAttackCountsOk))) { _root.weaponCardObj.attackCounts = _root.weaponCardObj.attackCounts - Number(param1); if (_root.weaponCardObj.attackCounts <= 0) { artifactBlock(_root.weaponCardObj, 20); } } delete removeAttackCountsOk; } } if (nameOfFunc == "ignoreTurnArmor") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param1 == "wand") && (subtype.indexOf("wand") != -1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } else if ((!param1) || (subtype == param1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { cardObjTemp.ignoreTurnArmor = true; } else if (param2 == "ability") { ignoreArmorAbility = Number(param1); } else if (param2 == "dark spell") { ignoreArmorDarkSpell = Number(param1); } else if (param2 == "light spell") { ignoreArmorLightSpell = Number(param1); } else if (param2 == "nature spell") { ignoreArmorNatureSpell = Number(param1); } else if (param2 == "all spells") { ignoreArmorDarkSpell = Number(param1); ignoreArmorLightSpell = Number(param1); ignoreArmorNatureSpell = Number(param1); } } if (nameOfFunc == "addTurnPower") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param2 == "wand") && (subtype.indexOf("wand") != -1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } else if (param2 == "shield") { if (_root.shieldCardObj) { cardObjTemp = _root.shieldCardObj; } } else if (param2 == "armor") { if (param2.substring(6) == "leather") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if (param2.substring(6) == "iron") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if (param2.substring(6) == "steel") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if (param2.substring(6) == "cloth") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if (param2.substring(6) == "mail") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if (param2.substring(6) == "special") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } } else if ((!param2) || (subtype == param2)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { if ((param1 == "opweapon pow") && (opCard2._currentframe == 15)) { newPowerAdded = cardObjTemp.powerCount - opCard2.powerCount; newPowerAdded = Math.abs(newPowerAdded); cardObjTemp.powerAdded = cardObjTemp.powerAdded + newPowerAdded; cardObjTemp.powerCount = cardObjTemp.powerCount + newPowerAdded; } else if ((param1 == "opweapon pow") && (opCard4._currentframe == 15)) { newPowerAdded = cardObjTemp.powerCount - opCard4.powerCount; newPowerAdded = Math.abs(newPowerAdded); cardObjTemp.powerAdded = cardObjTemp.powerAdded + newPowerAdded; cardObjTemp.powerCount = cardObjTemp.powerCount + newPowerAdded; } else if ((param1 == "opweapon res") && (opCard2._currentframe == 15)) { newPowerAdded = cardObjTemp.powerCount - opCard2.resistenceCount; newPowerAdded = Math.abs(newPowerAdded); cardObjTemp.powerAdded = cardObjTemp.powerAdded + newPowerAdded; cardObjTemp.powerCount = cardObjTemp.powerCount + newPowerAdded; } else if ((param1 == "opweapon res") && (opCard4._currentframe == 15)) { newPowerAdded = cardObjTemp.powerCount - opCard4.resistenceCount; newPowerAdded = Math.abs(newPowerAdded); cardObjTemp.powerAdded = cardObjTemp.powerAdded + newPowerAdded; cardObjTemp.powerCount = cardObjTemp.powerCount + newPowerAdded; } else { cardObjTemp.powerAdded = cardObjTemp.powerAdded + Number(param1); cardObjTemp.powerCount = cardObjTemp.powerCount + Number(param1); } } else if (param2 == "ability") { abilityTurnPower = abilityTurnPower + Number(param1); } else if (param2 == "dark spell") { darkSpellTurnPower = darkSpellTurnPower + Number(param1); } else if (param2 == "light spell") { lightSpellTurnPower = lightSpellTurnPower + Number(param1); } else if (param2 == "nature spell") { natureSpellTurnPower = natureSpellTurnPower + Number(param1); } else if (param2 == "all spells") { darkSpellTurnPower = darkSpellTurnPower + Number(param1); lightSpellTurnPower = lightSpellTurnPower + Number(param1); natureSpellTurnPower = natureSpellTurnPower + Number(param1); } } if (nameOfFunc == "addTurnDefense") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param2 == "wand") && (subtype.indexOf("wand") != -1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } else if (param2 == "shield") { if (_root.shieldCardObj) { cardObjTemp = _root.shieldCardObj; } } else if (param2.substring(0, 5) == "armor") { if (param2.substring(6) == "leather") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if (param2.substring(6) == "iron") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if (param2.substring(6) == "steel") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if (param2.substring(6) == "cloth") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if (param2.substring(6) == "mail") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if (param2.substring(6) == "special") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } } else if ((!param2) || (subtype == param2)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { if ((param1 == "opweapon pow") && (opCard2._currentframe == 15)) { newResAdded = cardObjTemp.resistenceCount - opCard2.powerCount; newResAdded = Math.abs(newResAdded); cardObjTemp.resistenceAdded = cardObjTemp.resistenceAdded + newResAdded; cardObjTemp.resistenceCount = cardObjTemp.resistenceCount + newResAdded; } else if ((param1 == "opweapon pow") && (opCard4._currentframe == 15)) { newResAdded = cardObjTemp.resistenceCount - opCard4.powerCount; newResAdded = Math.abs(newResAdded); cardObjTemp.resistenceAdded = cardObjTemp.resistenceAdded + newResAdded; cardObjTemp.resistenceCount = cardObjTemp.resistenceCount + newResAdded; } else if ((param1 == "opweapon res") && (opCard2._currentframe == 15)) { newResAdded = cardObjTemp.resistenceCount - opCard2.resistenceCount; newResAdded = Math.abs(newResAdded); cardObjTemp.resistenceAdded = cardObjTemp.resistenceAdded + newResAdded; cardObjTemp.resistenceCount = cardObjTemp.resistenceCount + newResAdded; } else if ((param1 == "opweapon res") && (opCard4._currentframe == 15)) { newResAdded = cardObjTemp.resistenceCount - opCard4.resistenceCount; newResAdded = Math.abs(newResAdded); cardObjTemp.resistenceAdded = cardObjTemp.resistenceAdded + newResAdded; cardObjTemp.resistenceCount = cardObjTemp.resistenceCount + newResAdded; } else { cardObjTemp.resistenceAdded = cardObjTemp.resistenceAdded + Number(param1); cardObjTemp.resistenceCount = cardObjTemp.resistenceCount + Number(param1); } } } if (nameOfFunc == "actionPower") { if (param2 == "all spells") { modifier_DarkSpell = modifier_DarkSpell + Number(param1); modifier_LightSpell = modifier_LightSpell + Number(param1); modifier_NatureSpell = modifier_NatureSpell + Number(param1); } else if (param2 == "all weapons") { powModifier_Bow = powModifier_Bow + Number(param1); powModifier_Crossbow = powModifier_Crossbow + Number(param1); powModifier_Sword = powModifier_Sword + Number(param1); powModifier_Axe = powModifier_Axe + Number(param1); powModifier_Mace = powModifier_Mace + Number(param1); } else if (param2 == "abilities") { modifier_Ability = modifier_Ability + Number(param1); } else if (param2 == "dark spells") { modifier_DarkSpell = modifier_DarkSpell + Number(param1); } else if (param2 == "light spells") { modifier_LightSpell = modifier_LightSpell + Number(param1); } else if (param2 == "nature spells") { modifier_NatureSpell = modifier_NatureSpell + Number(param1); } else if (param2 == "bows") { powModifier_Bow = powModifier_Bow + Number(param1); } else if (param2 == "crossbows") { powModifier_Crossbow = powModifier_Crossbow + Number(param1); } else if (param2 == "swords") { powModifier_Sword = powModifier_Sword + Number(param1); } else if (param2 == "maces") { powModifier_Mace = powModifier_Mace + Number(param1); } else if (param2 == "axes") { powModifier_Axe = powModifier_Axe + Number(param1); } else if (param2 == "ignoreArmor ability") { ignoreArmorAbility = ((param1 == "true") ? 9999 : 0); } else if (param2 == "ignoreArmor dark spell") { ignoreArmorDarkSpell = ((param1 == "true") ? 9999 : 0); } else if (param2 == "ignoreArmor light spell") { ignoreArmorLightSpell = ((param1 == "true") ? 9999 : 0); } else if (param2 == "ignoreArmor nature spell") { ignoreArmorNatureSpell = ((param1 == "true") ? 9999 : 0); } else if (param2 == "ignoreArmor all spells") { ignoreArmorDarkSpell = ((param1 == "true") ? 9999 : 0); ignoreArmorLightSpell = ((param1 == "true") ? 9999 : 0); ignoreArmorNatureSpell = ((param1 == "true") ? 9999 : 0); } addModifiers(_root.weaponCardObj); } if (nameOfFunc == "counter") { if (opCard7) { if (param1 == "ability") { if (opCard7.type == "Ability") { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else if (param1 == "spell") { if (opCard7.type.indexOf("Spell") != -1) { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else if (param1 == "attack spell") { if ((opCard7.type.indexOf("Spell") != -1) && (opCard7.subtype == "Attack")) { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else if (param1 == "usage spell") { if ((opCard7.type.indexOf("Spell") != -1) && (opCard7.subtype == "Usage")) { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else if (param1 == "attack ability") { if ((opCard7.type == "Ability") && (opCard7.subtype == "Attack")) { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else if (param1 == "usage ability") { if ((opCard7.type == "Ability") && (opCard7.subtype == "Usage")) { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } } if (nameOfFunc == "redirectToShield") { reduce = -1 * Number(param1); _root.redirectedDamage = 0; if (opCard7) { subtype = opCard7.subtype.toLowerCase(); type = opCard7.type.toLowerCase(); } else if (_root.opWeaponCardObj) { subtype = _root.opWeaponCardObj.subtype.toLowerCase(); type = _root.opWeaponCardObj.type.toLowerCase(); } if (!param2) { reduceOK = true; } if ((subtype.substr(0, 4) == param2.substr(0, 4)) || (type.indexOf(param2) != -1)) { reduceOK = true; } if (opCard7 && (reduceOK)) { if (opCard7.playfunc1.substr(0, 11) == "hitOpponent") { opCard7.playfunc1 = changeAttackFunction(opCard7.playfunc1, reduce); } else if (opCard7.playfunc2.substr(0, 11) == "hitOpponent") { opCard7.playfunc2 = changeAttackFunction(opCard7.playfunc2, reduce); } else if (opCard7.playfunc3.substr(0, 11) == "hitOpponent") { opCard7.playfunc3 = changeAttackFunction(opCard7.playfunc3, reduce); } else if (opCard7.playfunc4.substr(0, 11) == "hitOpponent") { opCard7.playfunc4 = changeAttackFunction(opCard7.playfunc4, reduce); } else if (opCard7.playfunc5.substr(0, 11) == "hitOpponent") { opCard7.playfunc5 = changeAttackFunction(opCard7.playfunc5, reduce); } else if (opCard7.playfunc6.substr(0, 11) == "hitOpponent") { opCard7.playfunc6 = changeAttackFunction(opCard7.playfunc6, reduce); } } else if (_root.opWeaponCardObj && (reduceOK)) { if (Math.abs(reduce) > _root.opWeaponPower) { _root.redirectedDamage = _root.opWeaponPower; } else { _root.redirectedDamage = Math.abs(reduce); } _root.opWeaponPower = _root.opWeaponPower + reduce; if (_root.opWeaponPower < 0) { _root.opWeaponPower = 0; } } if (_root.shieldCardObj) { artifactBlock(_root.shieldCardObj, _root.redirectedDamage, "redirectToShield"); } delete _root.ignoreArmorRedirectedDamage; delete _root.redirectedDamage; delete reduceOK; } if (nameOfFunc == "reduceDamage") { reduce = -1 * Number(param1); if (opCard7) { subtype = opCard7.subtype.toLowerCase(); type = opCard7.type.toLowerCase(); } else if (_root.opWeaponCardObj) { subtype = _root.opWeaponCardObj.subtype.toLowerCase(); type = _root.opWeaponCardObj.type.toLowerCase(); } if (!param2) { reduceOK = true; } if ((subtype.substr(0, 4) == param2.substr(0, 4)) || (type.indexOf(param2) != -1)) { reduceOK = true; } if (opCard7 && (reduceOK)) { if (opCard7.playfunc1.substr(0, 11) == "hitOpponent") { opCard7.playfunc1 = changeAttackFunction(opCard7.playfunc1, reduce); } else if (opCard7.playfunc2.substr(0, 11) == "hitOpponent") { opCard7.playfunc2 = changeAttackFunction(opCard7.playfunc2, reduce); } else if (opCard7.playfunc3.substr(0, 11) == "hitOpponent") { opCard7.playfunc3 = changeAttackFunction(opCard7.playfunc3, reduce); } else if (opCard7.playfunc4.substr(0, 11) == "hitOpponent") { opCard7.playfunc4 = changeAttackFunction(opCard7.playfunc4, reduce); } else if (opCard7.playfunc5.substr(0, 11) == "hitOpponent") { opCard7.playfunc5 = changeAttackFunction(opCard7.playfunc5, reduce); } else if (opCard7.playfunc6.substr(0, 11) == "hitOpponent") { opCard7.playfunc6 = changeAttackFunction(opCard7.playfunc6, reduce); } } else if (_root.opWeaponCardObj && (reduceOK)) { _root.opWeaponPower = _root.opWeaponPower + reduce; if (_root.opWeaponPower < 0) { _root.opWeaponPower = 0; } } delete reduceOK; } if (nameOfFunc == "hitArtifactBack") { if (_root.opWeaponCardObj && (!_root.opWeaponCardObj.imuneToCounter)) { _root.opWeaponCardObj.resistenceCount = _root.opWeaponCardObj.resistenceCount - Number(param1); if (_root.opWeaponCardObj.resistenceCount <= 0) { removeOpCard(_root.opWeaponCardObj.posNumber); } } } _root.modPicDisplay = cardObj.picture; delete type; delete subtype; delete cardObjTemp; delete damage; delete nameOfFunc; delete param1; delete param2; checkModifiers(); } function changeAttackFunction(func, modNum, ignoreArmorChangeFunc) { nameOfFuncTemp = func.substring(0, func.indexOf("(")); if (func.indexOf(",") != -1) { param1Temp = func.substring(func.indexOf("(") + 1, func.indexOf(",")); param2Temp = func.substring(func.indexOf(",") + 1, func.indexOf(")")); } else { param1Temp = func.substring(func.indexOf("(") + 1, func.indexOf(")")); param2Temp = false; } if ((ignoreArmorChangeFunc > 0) && (param2Temp != "blocked")) { param2Temp = false; } if (nameOfFuncTemp == "hitOpponent") { hit = 0; if (param1Temp == "op attack") { hit = _root.myLastDamage; } else if (param1Temp == "op hand") { hit = _root.opHand; } else if (param1Temp == "my hand") { hit = _root.myHand; } else if (param1Temp == "op items x2") { if (opCard2.idCard > 0) { hit++; } if (opCard3.idCard > 0) { hit++; } if (opCard4.idCard > 0) { hit++; } if (opCard8.idCard > 0) { hit++; } hit = hit * 2; } else if (param1Temp == "op items") { if (opCard2.idCard > 0) { hit++; } if (opCard3.idCard > 0) { hit++; } if (opCard4.idCard > 0) { hit++; } if (opCard8.idCard > 0) { hit++; } } else if (param1Temp == "op armor") { if (opCard3.idCard > 0) { hit = opCard3.resistenceCount; } } else if (param1Temp == "op weapon pow") { if (opCard2._currentframe == 15) { hit = opCard2.powerCount; } else if (opCard4._currentframe == 15) { hit = opCard4.powerCount; } } else if (param1Temp == "op weapon res") { if (opCard2._currentframe == 15) { hit = opCard2.resistenceCount; } else if (opCard4._currentframe == 15) { hit = opCard4.resistenceCount; } } else if (param1Temp == "op shield") { if (opCard2._currentframe == 14) { hit = opCard2.resistenceCount; } else if (opCard4._currentframe == 14) { hit = opCard4.resistenceCount; } } else if (param1Temp == "armor") { if (_root.armorCardObj) { hit = _root.armorCardObj.resistenceCount; } } else if (param1Temp == "weapon pow") { if (_root.weaponCardObj) { hit = _root.weaponCardObj.powerCount; } } else if (param1Temp == "weapon res") { if (_root.weaponCardObj) { hit = _root.weaponCardObj.powerCount; } } else if (param1Temp == "shield") { if (_root.shieldCardObj) { hit = _root.shieldCardObj.resistenceCount; } } else if (param1Temp == "my items x2") { if (tablePos[2].used) { hit++; } if (tablePos[3].used) { hit++; } if (tablePos[4].used) { hit++; } if (tablePos[8].used) { hit++; } hit = hit * 2; } else if (param1Temp == "my items") { if (tablePos[2].used) { hit++; } if (tablePos[3].used) { hit++; } if (tablePos[4].used) { hit++; } if (tablePos[8].used) { hit++; } } else { hit = Number(param1Temp); } if (Math.abs(modNum) > hit) { _root.redirectedDamage = hit; } else { _root.redirectedDamage = Math.abs(modNum); } if (!param2Temp) { _root.ignoreArmorRedirectedDamage = true; } hit = hit + modNum; if (hit < 0) { hit = 0; } newFunc = ((("hitOpponent(" + hit) + ",") + param2Temp) + ")"; delete bollArmor; delete hit; } delete cardObjTemp; delete nameOfFuncTemp; delete param1Temp; delete param2Temp; return(newFunc); } function solveOpFunctions(cardObj) { if (cardObj.playfunc1) { readOpFunctions(cardObj.playfunc1, cardObj); } if (cardObj.playfunc2) { readOpFunctions(cardObj.playfunc2, cardObj); } if (cardObj.playfunc3) { readOpFunctions(cardObj.playfunc3, cardObj); } if (cardObj.playfunc4) { readOpFunctions(cardObj.playfunc4, cardObj); } if (cardObj.playfunc5) { readOpFunctions(cardObj.playfunc5, cardObj); } if (cardObj.playfunc6) { readOpFunctions(cardObj.playfunc6, cardObj); } } function readOpFunctions(func, cardObj) { nameOfFunc = func.substring(0, func.indexOf("(")); if (func.indexOf(",") != -1) { param1 = func.substring(func.indexOf("(") + 1, func.indexOf(",")); param2 = func.substring(func.indexOf(",") + 1, func.indexOf(")")); } else { param1 = func.substring(func.indexOf("(") + 1, func.indexOf(")")); param2 = false; } if (nameOfFunc == "hitOpponent") { if (param2 == "true") { bodyBlock(Number(param1), true); } else if ((param2 == "blocked") && (_root.attackBlocked)) { bodyBlock(Number(param1), true); } else if ((!param2) || (param2 == "false")) { bodyBlock(Number(param1)); } } if ((nameOfFunc == "hitArtifact") || (nameOfFunc == "hitArtifactBack")) { if ((nameOfFunc == "hitArtifactBack") && (_root.weaponCardObj.attacking)) { cardObjTemp = _root.weaponCardObj; } if (param2 == "weapon") { cardObjTemp = _root.weaponCardObj; } if (param2 == "shield") { cardObjTemp = _root.shieldCardObj; } if (param2 == "armor") { cardObjTemp = _root.armorCardObj; } if (param2 == "blocked") { cardObjTemp = _root.blockCardObj; } if (cardObjTemp) { if (((nameOfFunc == "hitArtifactBack") && (!cardObjTemp.imuneToCounter)) || (nameOfFunc == "hitArtifact")) { artifactBlock(cardObjTemp, Number(param1)); } } else { if (param2 == _root.itemCardObj1.subtype.toLowerCase()) { artifactBlock(_root.itemCardObj1, Number(param1)); } if (param2 == _root.itemCardObj2.subtype.toLowerCase()) { artifactBlock(_root.itemCardObj2, Number(param1)); } } } if (nameOfFunc == "opAbleTo") { if ((param1 == "attack") && (param2 == "false")) { _root.disableAttack++; } else if ((param1 == "attack") && (param2 == "true")) { _root.disableAttack--; } if ((param1 == "block") && (param2 == "false")) { _root.disableBlock++; } else if ((param1 == "block") && (param2 == "true")) { _root.disableBlock--; } if ((param1 == "spells") && (param2 == "false")) { _root.disableUsageSpells++; _root.disableAttackSpells++; _root.disableDefenseSpells++; } else if ((param1 == "spells") && (param2 == "true")) { _root.disableUsageSpells--; _root.disableAttackSpells--; _root.disableDefenseSpells--; } if ((param1 == "abilities") && (param2 == "false")) { _root.disableUsageAbilities++; _root.disableAttackAbilities++; _root.disableDefenseAbilities++; } else if ((param1 == "abilities") && (param2 == "true")) { _root.disableUsageAbilities--; _root.disableAttackAbilities--; _root.disableDefenseAbilities--; } if ((param1 == "usage abilities") && (param2 == "false")) { _root.disableUsageAbilities++; } else if ((param1 == "usage abilities") && (param2 == "true")) { _root.disableUsageAbilities--; } if ((param1 == "attack abilities") && (param2 == "false")) { _root.disableAttackAbilities++; } else if ((param1 == "attack abilities") && (param2 == "true")) { _root.disableAttackAbilities--; } if ((param1 == "defense abilities") && (param2 == "false")) { _root.disableDefenseAbilities++; } else if ((param1 == "defense abilities") && (param2 == "true")) { _root.disableDefenseAbilities--; } if ((param1 == "usage spells") && (param2 == "false")) { _root.disableUsageSpells++; } else if ((param1 == "usage spells") && (param2 == "true")) { _root.disableUsageSpells--; } if ((param1 == "attack spells") && (param2 == "false")) { _root.disableAttackSpells++; } else if ((param1 == "attack spells") && (param2 == "true")) { _root.disableAttackSpells--; } if ((param1 == "defense spells") && (param2 == "false")) { _root.disableDefenseSpells++; } else if ((param1 == "defense spells") && (param2 == "true")) { _root.disableDefenseSpells--; } } if (nameOfFunc == "opGainLife") { if ((param1 == "opweapon pow") && (_root.weaponCardObj)) { gainLife(_root.weaponCardObj.powerCount); } else if ((param1 == "opweapon res") && (_root.weaponCardObj)) { gainLife(_root.weaponCardObj.resistenceCount); } else { gainLife(Number(param1)); } } if (nameOfFunc == "returnOpClass") { if (_root.classCardObj) { sendRemoveCard(_root.classCardObj); returnClassCard(_root.classCardObj); } } if (nameOfFunc == "tapOpWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param1 == "wand") && (subtype.indexOf("wand") != -1)) { tap(_root.weaponCardObj); } else if ((!param1) || (subtype == param1)) { tap(_root.weaponCardObj); } } if (nameOfFunc == "untapOpWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param1 == "wand") && (subtype.indexOf("wand") != -1)) { untap(_root.weaponCardObj); } else if ((!param1) || (subtype == param1)) { untap(_root.weaponCardObj); } } if (nameOfFunc == "opCannotChangeClass") { _root.cannotChangeClass = Number(param1); } if (nameOfFunc == "changeOpMaxLife") { _root.maxLife = _root.maxLife + Number(param1); if (_root.myLife > _root.maxLife) { setMyLife(_root.maxLife); } } if (nameOfFunc == "changeMaxLife") { _root.opMaxLife = _root.opMaxLife + Number(param1); } if (nameOfFunc == "opCannotEquip") { if (param2 == "weapon") { _root.cannotEquipWeapon = Number(param1); } else if (param2 == "armor") { _root.cannotEquipArmor = Number(param1); } else if (param2 == "shield") { _root.cannotEquipShield = Number(param1); } else if (param2 == "amulet") { _root.cannotEquipAmulet = Number(param1); } else if (param2 == "item") { _root.cannotEquipItem = Number(param1); } else { _root.cannotEquipWeapon = Number(param1); _root.cannotEquipArmor = Number(param1); _root.cannotEquipShield = Number(param1); _root.cannotEquipAmulet = Number(param1); _root.cannotEquipItem = Number(param1); } } if (nameOfFunc == "opDiscardCards") { if (param2 == "random") { toDiscard = Number(param1); z = 0; while (z < toDiscard) { if (_root.myHand > 0) { cardToDiscard = new Array(_root.myHand); t = 0; while (t < _root.myHand) { cardToDiscard[t] = t; t++; } shuffle(cardToDiscard); discardCard(eval ("myCard" + handPos[cardToDiscard[0]].idCard)); delete cardToDiscard; } z++; } delete toDiscard; } } if (nameOfFunc == "opDrawsCards") { drawCards(Number(param1)); } if (nameOfFunc == "changeOpMaxHand") { _root.myMaxHand = _root.myMaxHand + Number(param1); } if (nameOfFunc == "setOpHandSize") { if (_root.myHand < Number(param1)) { drawCards(Number(param1) - _root.myHand); } else if (_root.myHand > Number(param1)) { toDiscard = _root.myHand - Number(param1); z = 0; while (z < toDiscard) { if (_root.myHand > 0) { cardToDiscard = new Array(_root.myHand); t = 0; while (t < _root.myHand) { cardToDiscard[t] = t; t++; } shuffle(cardToDiscard); discardCard(eval ("myCard" + handPos[cardToDiscard[0]].idCard)); delete cardToDiscard; } z++; } delete toDiscard; } } if (nameOfFunc == "opSkipDrawPhase") { if (_root.skipDrawPhase < Number(param1)) { _root.skipDrawPhase = Number(param1); } } if (nameOfFunc == "opMustAttack") { if (((_root.currentPhase == "spellPhase") || (_root.currentPhase == "attackPhase")) && (_root.currentPlayerTurn == "my")) { if (_root.mustAttack <= Number(param1)) { _root.mustAttack = Number(param1) + 1; } } else if (_root.mustAttack < Number(param1)) { _root.mustAttack = Number(param1); } } if (nameOfFunc == "opMustBlock") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "op")) { if (_root.mustBlock <= Number(param1)) { _root.mustBlock = Number(param1) + 1; } } else if (_root.mustBlock < Number(param1)) { _root.mustBlock = Number(param1); } } if (nameOfFunc == "opCannotBlock") { if (cardObj.subtype == "Attack") { if (_root.cannotBlock <= Number(param1)) { _root.cannotBlock = Number(param1) + 1; } } else if (_root.cannotBlock < Number(param1)) { _root.cannotBlock = Number(param1); } } if (nameOfFunc == "opCannotAttack") { if (((_root.currentPhase == "spellPhase") || (_root.currentPhase == "attackPhase")) && (_root.currentPlayerTurn == "my")) { if (_root.cannotAttack <= Number(param1)) { _root.cannotAttack = Number(param1) + 1; } } else if (_root.cannotAttack < Number(param1)) { _root.cannotAttack = Number(param1); } } if (nameOfFunc == "opCannotDefenseSpell") { if (cardObj.subtype == "Attack") { if (_root.cannotUseDefenseSpells <= Number(param1)) { _root.cannotUseDefenseSpells = Number(param1) + 1; } } else if (_root.cannotUseDefenseSpells < Number(param1)) { _root.cannotUseDefenseSpells = Number(param1); } } if (nameOfFunc == "opCannotAttackSpell") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseAttackSpells <= Number(param1)) { _root.cannotUseAttackSpells = Number(param1) + 1; } } else if (_root.cannotUseAttackSpells < Number(param1)) { _root.cannotUseAttackSpells = Number(param1); } } if (nameOfFunc == "opCannotUsageSpell") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseUsageSpells <= Number(param1)) { _root.cannotUseUsageSpells = Number(param1) + 1; } } else if (_root.cannotUseUsageSpells < Number(param1)) { _root.cannotUseUsageSpells = Number(param1); } } if (nameOfFunc == "opCannotDefenseAbility") { if (cardObj.subtype == "Attack") { if (_root.cannotUseDefenseAbilities <= Number(param1)) { _root.cannotUseDefenseAbilities = Number(param1) + 1; } } else if (_root.cannotUseDefenseAbilities < Number(param1)) { _root.cannotUseDefenseAbilities = Number(param1); } } if (nameOfFunc == "opCannotAttackAbility") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseAttackAbilities <= Number(param1)) { _root.cannotUseAttackAbilities = Number(param1) + 1; } } else if (_root.cannotUseAttackAbilities < Number(param1)) { _root.cannotUseAttackAbilities = Number(param1); } } if (nameOfFunc == "opCannotUsageAbility") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseUsageAbilities <= Number(param1)) { _root.cannotUseUsageAbilities = Number(param1) + 1; } } else if (_root.cannotUseUsageAbilities < Number(param1)) { _root.cannotUseUsageAbilities = Number(param1); } } if (nameOfFunc == "hitAllArtifacts") { if ((param2 == "op") || (!param2)) { if (eval ("myCard" + tablePos[2].idCard)) { artifactBlock(eval ("myCard" + tablePos[2].idCard), Number(param1)); } if (eval ("myCard" + tablePos[3].idCard)) { artifactBlock(eval ("myCard" + tablePos[3].idCard), Number(param1)); } if (eval ("myCard" + tablePos[4].idCard)) { artifactBlock(eval ("myCard" + tablePos[4].idCard), Number(param1)); } if (eval ("myCard" + tablePos[8].idCard)) { artifactBlock(eval ("myCard" + tablePos[8].idCard), Number(param1)); } } } if (nameOfFunc == "counter") { abilityCardObj = eval ("myCard" + tablePos[6].idCard); if (abilityCardObj) { if (param1 == "ability") { if (abilityCardObj.type == "Ability") { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else if (param1 == "spell") { if (abilityCardObj.type.indexOf("Spell") != -1) { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else if (param1 == "attack spell") { if ((abilityCardObj.type.indexOf("Spell") != -1) && (abilityCardObj.subtype == "Attack")) { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else if (param1 == "usage spell") { if ((abilityCardObj.type.indexOf("Spell") != -1) && (abilityCardObj.subtype == "Usage")) { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else if (param1 == "attack ability") { if ((abilityCardObj.type == "Ability") && (abilityCardObj.subtype == "Attack")) { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else if (param1 == "usage ability") { if ((abilityCardObj.type == "Ability") && (abilityCardObj.subtype == "Usage")) { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } delete abilityCardObj; } _root.modPicDisplay = cardObj.picture; checkModifiers(); delete cardObjTemp; delete damage; delete nameOfFunc; delete param1; delete param2; } myLifeObj.gotoAndStop(1); opLifeObj.gotoAndStop(1); myPhases.drawPhase.gotoAndStop(1); myPhases.equipPhase.gotoAndStop(1); myPhases.spellPhase.gotoAndStop(1); myPhases.attackPhase.gotoAndStop(1); myPhases.endPhase.gotoAndStop(1); opPhases.drawPhase.gotoAndStop(1); opPhases.equipPhase.gotoAndStop(1); opPhases.spellPhase.gotoAndStop(1); opPhases.attackPhase.gotoAndStop(1); opPhases.endPhase.gotoAndStop(1); if (autoHelp) { helpButton.gotoAndStop(1); } else { helpButton.gotoAndStop(2); } ToolTip.install(graveyard, "This is your Graveyard. If you want to remove an item from play during your <b>Equip Phase</b>, drag it here. Same goes for cards in your hand during <b>Discard Phase</b>.", 1); ToolTip.install(classDock, "This is your Class Dock. You may drag a class card to your playfield or retrieve it by dragging it back. You can only have one class card at the time.", 250); ToolTip.install(myPlayfield, "This is your playfield. You may drag cards here when able. Remember to always drag a class card first.", 250); ToolTip.install(myPhases.drawPhase, "Draw Phase: Draw one card from your deck.", 1); ToolTip.install(myPhases.equipPhase, "Equip Phase: You may play an item, usage ability or simply skip it by clicking here.", 1); ToolTip.install(myPhases.attackPhase, "Attack Phase: You may choose to attack your opponent with a weapon in your playfield if there is one.", 1); ToolTip.install(myPhases.spellPhase, "Spell/Ability Phase: You may play a attack/usage spell or ability, or simply skip it by clicking here.", 1); ToolTip.install(myPhases.endPhase, "Discard Phase: If you have more then 6 cards in your hand, you must discard them until so.", 1); resetAndStopTimer(); autoMsg("Loading cards..."); myCards.load((_root.webpage + "/game/loadDeck.asp?userId=") + _root.idUser); Selection.setFocus(msgBox);Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Frame 8//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Frame 9function selectADeck(deckID) { uncolorize(deckList.loadDeckButton); deckList.loadDeckButton.enabled = true; deckList.deckNameListTemp = deckList.deckListString.split("<br>"); deckList.selectedLine = deckList.deckNameListTemp.lastIndexOf((">" + deckID) + "<"); deckList.deckNameListTemp[deckList.selectedLine] = ((("<a href='asfunction:_root.selectADeck," + deckID) + "'><font color='#66FF99'>") + deckID) + "</font></a>"; if ((deckList.selectedDeck != "") && (deckList.selectedDeck != deckID)) { deckList.oldSelection = deckList.deckNameListTemp.lastIndexOf((">" + deckList.selectedDeck) + "<"); if (deckList.selectedDeck == _root.defaultDeck) { deckList.deckNameListTemp[deckList.oldSelection] = ((("<a href='asfunction:_root.selectADeck," + deckList.selectedDeck) + "'><font color='#FFCC66'>") + deckList.selectedDeck) + "</font></a>"; } else { deckList.deckNameListTemp[deckList.oldSelection] = ((("<a href='asfunction:_root.selectADeck," + deckList.selectedDeck) + "'><font color='#FFFFFF'>") + deckList.selectedDeck) + "</font></a>"; } } deckList.deckListString = deckList.deckNameListTemp.join("<br>"); deckList.selectedDeck = deckID; deckList.deckListTextField.htmlText = deckList.deckListString; } saveDeck.onRelease = function () { if (cardsInDeck < 40) { warning = "You can't have less then 40 cards in your deck."; warningText.play(); } else if (_root.deckName) { _root.attachMovie("saveDeckBox", "saveDeckBox", _root.confirmBoxDepth + 1); saveDeckBox._x = 319; saveDeckBox._y = 210; sendDeck.idUser = _root.idUser; sendDeck.deckName = _root.deckName; sendDeck.sendAndLoad(webpage + "/managerFiles/saveDeck.asp", saveDeckURL, "POST"); } else { _root.attachMovie("saveNewDeckBox", "saveNewDeckBox", _root.confirmBoxDepth + 1); saveNewDeckBox._x = 319; saveNewDeckBox._y = 210; saveNewDeckBox.saveNewDeckButton.onRelease = function () { if (_root.deckNameList.indexOf(_root.saveNewDeckBox.deckNameInput.text) != -1) { warning = "Deck name already taken. Please choose another name."; warningText.play(); } else if ((_root.saveNewDeckBox.deckNameInput.text == "") || (!validateString(_root.saveNewDeckBox.deckNameInput.text))) { warning = "Invalid deck name."; warningText.play(); } else { _root.deckName = _root.saveNewDeckBox.deckNameInput.text; _root.attachMovie("saveDeckBox", "saveDeckBox", _root.confirmBoxDepth + 1); saveDeckBox._x = 319; saveDeckBox._y = 210; sendDeck.idUser = _root.idUser; sendDeck.deckName = _root.deckName; sendDeck.sendAndLoad(webpage + "/managerFiles/saveDeck.asp", saveDeckURL, "POST"); } }; saveNewDeckBox.cancelButton.onRelease = function () { this._parent.removeMovieClip(); }; } }; loadDeck.onRelease = function () { if (((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) && (!_root.deckList)) { _root.attachMovie("deckList", "deckList", _root.confirmBoxDepth + 1); deckList._x = 246; deckList._y = 126; deckList.swapDepths(5001); deckList.deckListString = ""; deckList.selectedDeck = _root.loadedDeck; i = 0; while (i < deckNameList.length) { if (_root.loadedDeck == deckNameList[i]) { deckList.deckListString = deckList.deckListString + (((("<a href='asfunction:_root.selectADeck," + deckNameList[i]) + "'><font color='#66FF99'>") + deckNameList[i]) + "</font></a><br>"); } else if (_root.defaultDeck == deckNameList[i]) { deckList.deckListString = deckList.deckListString + (((("<a href='asfunction:_root.selectADeck," + deckNameList[i]) + "'><font color='#FFCC66'>") + deckNameList[i]) + "</font></a><br>"); } else { deckList.deckListString = deckList.deckListString + (((("<a href='asfunction:_root.selectADeck," + deckNameList[i]) + "'><font color='#FFFFFF'>") + deckNameList[i]) + "</font></a><br>"); } i++; } deckList.deckListTextField.htmlText = deckList.deckListString; deckList.loadDeckButton.onRelease = function () { _root.loadedDeck = deckList.selectedDeck; okCancelResponseBlackBox("loadFromManager"); this._parent.removeMovieClip(); }; deckList.cancelButton.onRelease = function () { this._parent.removeMovieClip(); }; colorize(deckList.loadDeckButton, disabledColor); deckList.loadDeckButton.enabled = false; } }; newDeck.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { okCancelResponseBlackBox("newFromManager"); } }; deleteDeck.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { if (deckName) { okCancelResponseBlackBox("deleteFromManager"); } } }; tradeCards.onRelease = function () { openPage("trade/tradeMarket.asp"); }; mainMenuManager.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { okCancelResponseBlackBox("menuFromManager"); } }; backToLobby.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { if (_root.defaultDeck == "") { warning = "You don't have a default deck yet!"; warningText.play(); } else { okCancelResponseBlackBox("lobbyFromManager"); } } }; if (playMusic) { soundButton.gotoAndStop(1); } else { soundButton.gotoAndStop(2); } soundButton.onRelease = function () { if (!playMusic) { this.gotoAndStop(1); playMusic = true; loadedSong.start(); intervalVal = setInterval(loopSong, 1); autoMsg("Music On."); localSaves.data.musicOff = false; localSaves.flush(); } else { this.gotoAndStop(2); playMusic = false; loadedSong.stop(); if (intervalVal) { clearInterval(intervalVal); } autoMsg("Music Off."); localSaves.data.musicOff = true; localSaves.flush(); } }; delete inLobby; antiSpam = false; inManager = true; tradeChatTab._alpha = 0; tradeChatTab.enabled = false; _root.selectedRoom = tradeRoomID; i = 0; h = 1; w = 1; currentPage = 0; loop = 0; cardNum = 0; totalCards = 0; cardsInDeck = 0; classesInDeck = 0; numCardsLoaded = 0; imagesLoaded = 0; deckName = ""; loadedDeck = ""; filterString = ""; pageTabsDepth = 15000; if (loadString) { delete loadString; } if (myManagerCards) { delete myManagerCards; } if (mclistener) { delete mclistener; } loadingMsg = "Loading cards..."; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(filterButton, disabledColor); filterButton.enabled = false; colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; var myManagerCards = new LoadVars(); myManagerCards.onLoad = function (success) { if (success) { h = 1; w = 1; imagesLoaded = 0; currentPage = 0; numCardsLoaded = 0; loop = 0; cardNum = this.cardNum; lastPageCards = cardNum % 24; if (lastPageCards == 0) { lastPageCards = 24; } totalPages = ((cardNum - lastPageCards) / 24) + 1; z = 1; while (z <= totalPages) { _root.attachMovie("pageTab", "pageTab" + z, pageTabsDepth - z); eval ("pageTab" + z)._x = 597; eval ("pageTab" + z)._y = 19 + (z * 14); eval ("pageTab" + z).pageNum.text = z; eval ("pageTab" + z).onRelease = gotoPage; ToolTip.install(eval ("pageTab" + z), "Jump to page " + z, 250); z++; } uncolorize(filterButton); filterButton.enabled = true; if (!_root.filterLoad) { avFilter._alpha = 100; avFilter.active = true; sendDeck.avFilter = true; hFilter._alpha = 100; hFilter.active = true; sendDeck.hFilter = true; aFilter._alpha = 100; aFilter.active = true; sendDeck.aFilter = true; pFilter._alpha = 100; pFilter.active = true; sendDeck.pFilter = true; mFilter._alpha = 100; mFilter.active = true; sendDeck.mFilter = true; sFilter._alpha = 100; sFilter.active = true; sendDeck.sFilter = true; wFilter._alpha = 100; wFilter.active = true; sendDeck.wFilter = true; kFilter._alpha = 100; kFilter.active = true; sendDeck.kFilter = true; gFilter._alpha = 100; gFilter.active = true; sendDeck.gFilter = true; totalCards = this.totalCards; cardsInDeck = this.cardsInDeck; classesInDeck = this.classesInDeck; deckName = this.deckName; loadedDeck = this.deckName; deckNameList = this.deckNameList.split(","); cardListBox.removeAll(); sendDeck.deckArray = Array(); if (deckName) { sendDeck.deckArray = this.deckIds.split(","); sendDeck.deckCardsArray = this.deckCards.split(","); i = 0; while (i < sendDeck.deckArray.length) { cardListBox.addItem({data:sendDeck.deckArray[i], label:sendDeck.deckCardsArray[i]}); i++; } cardListBox.selectedIndex = 0; uncolorize(removeCardButton); removeCardButton.enabled = true; deckNameInput.text = deckName; deckNameInput.type = "input"; deckNameInput.selectable = true; uncolorize(renameButton); renameButton.enabled = true; deckNameBG._alpha = 100; if (myManagerCards.defaultDeck) { _root.defaultDeck = deckName; deckNameInput.textColor = 16764006 /* 0xFFCC66 */; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; } else { deckNameInput.textColor = 16777215 /* 0xFFFFFF */; uncolorize(setDefaultButton); setDefaultButton.enabled = true; } } else { cardListBox.addItem("[None]"); deckNameInput.text = ""; deckNameInput.type = "dynamic"; deckNameInput.selectable = false; colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; deckNameBG._alpha = 0; } } else { if (cardListBox.selectedItem.label != "[None]") { uncolorize(removeCardButton); removeCardButton.enabled = true; } delete _root.filterLoad; } if (cardNum < 24) { loop = cardNum; } else { loop = 24; } i = 1; while (i <= loop) { columLimit = i % 3; createCard(myManagerCards["idCard" + i], myManagerCards["picture" + i], myManagerCards["model" + i], myManagerCards["quantity" + i], myManagerCards["deck" + i], myManagerCards["idMyCards" + i], i, w, h, i); if ((columLimit == 0) && (w < 4)) { h++; w = 0; } if (h == 5) { h = 1; w = 4; } if ((columLimit == 0) && (w > 4)) { h++; w = 4; } w++; i++; } h = 1; w = 1; } else { delete _root.filterLoad; _root.loadingMsg = "Server Unavaliable"; } }; var sendDeck = new LoadVars(); var saveDeckURL = new LoadVars(); saveDeckURL.onLoad = function (success) { if (success) { _root.deckNameInput.text = _root.deckName; _root.loadedDeck = _root.deckName; if (_root.deckNameList.indexOf(_root.deckName) == -1) { _root.deckNameList.push(_root.deckName); } deckNameInput.type = "input"; deckNameInput.selectable = true; uncolorize(renameButton); renameButton.enabled = true; uncolorize(filterButton); filterButton.enabled = true; if (this.defaultDeck) { myManagerCards.defaultDeck = true; } if (!myManagerCards.defaultDeck) { uncolorize(setDefaultButton); setDefaultButton.enabled = true; deckNameInput.textColor = 16777215 /* 0xFFFFFF */; } else { _root.defaultDeck = deckName; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; deckNameInput.textColor = 16764006 /* 0xFFCC66 */; } deckNameBG._alpha = 100; removeMovieClip(saveDeckBox); } else { saveDeckBox.savingTxt.text = "Server Unavaliable"; startTime = getTimer() / 1000; saveDeckBox.onEnterFrame = function () { delay = getTimer() / 1000; if (startTime <= (delay - 3)) { removeMovieClip(saveDeckBox); } }; } }; var renameDeckURL = new LoadVars(); renameDeckURL.onLoad = function (success) { if (success) { if (!myManagerCards.defaultDeck) { uncolorize(setDefaultButton); setDefaultButton.enabled = true; } uncolorize(renameButton); renameButton.enabled = true; uncolorize(filterButton); filterButton.enabled = true; _root.deckNameList[deckNameList.indexOf(_root.loadedDeck)] = deckNameInput.text; _root.deckName = deckNameInput.text; _root.loadedDeck = _root.deckName; } }; var setDefaultURL = new LoadVars(); setDefaultURL.onLoad = function (success) { if (success) { myManagerCards.defaultDeck = true; _root.defaultDeck = _root.deckName; deckNameInput.textColor = 16764006 /* 0xFFCC66 */; uncolorize(renameButton); renameButton.enabled = true; uncolorize(filterButton); filterButton.enabled = true; } }; var deleteDeckURL = new LoadVars(); deleteDeckURL.onLoad = function (success) { if (success) { if (myManagerCards.defaultDeck) { _root.defaultDeck = ""; } _root.loadedDeck = ""; _root.deckName = ""; deleteDeckBox.removeMovieClip(); reloadCardManager("new"); } }; if (!loadString) { myManagerCards.load((((webpage + "/managerFiles/loadManagerCards.asp?idUser=") + idUser) + "&loadedDeck=default&rn=") + random(10000)); } function colorizeCard(obj, color) { if ((((((_root.imagesLoaded >= (loop - 1)) && (!_root.saveDeckBox)) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { colorBg = new Color(obj); colorBg.setTransform(color); if (obj.idCard > 9) { _root.createEmptyMovieClip("cardInfo", 5000); cardInfo._x = 256; cardInfo._y = 160; cardInfo.createEmptyMovieClip("shadow", 1); cardInfo.createEmptyMovieClip("bg", 2); cardInfo.createTextField("label", 3, 5, 0, 112, 160); cardInfo.label.autoSize = "left"; cardInfo.label.html = true; cardInfo.label.selectable = false; cardInfo.label.multiline = true; cardInfo.label.wordWrap = true; cardInfo.powAndRes = ((obj.powAndRes == "0/0") ? "" : (("<b>Pow/Res:</b> " + obj.powAndRes) + "<br>")); cardInfo.handle = ((obj.handle == 0) ? "" : ("<b>Handle:</b> " + obj.handle)); cardInfo.textFunc = ((obj.textFunc.substring(0, 3) == "[9]") ? (obj.textFunc.substr(3) + "<br>") : (obj.textFunc + "<br>")); cardInfo.label.htmlText = ((((((("<br><br><b>" + obj.cardName) + "</b><br>") + obj.typeAndSub) + "<br>") + cardInfo.textFunc) + "<br>") + cardInfo.powAndRes) + cardInfo.handle; var _local5 = new TextFormat(); _local5.font = "Verdana"; _local5.size = 10; cardInfo.label.setTextFormat(_local5); var _local4 = ((cardInfo.label.textWidth < 112) ? 124 : (cardInfo.label.textWidth + 12)); var _local3 = ((cardInfo.label.textHeight < 160) ? 164 : (cardInfo.label.textHeight + 4)); cardInfo.bg.clear(); cardInfo.bg.lineStyle(0, 3355443, 80); cardInfo.bg.beginFill(16777164, 80); cardInfo.bg.moveTo(0, 0); cardInfo.bg.lineTo(0, _local3); cardInfo.bg.lineTo(_local4, _local3); cardInfo.bg.lineTo(_local4, 0); cardInfo.bg.lineTo(0, 0); cardInfo.bg.endFill(); cardInfo.shadow.clear(); cardInfo.shadow.beginFill(3355443, 60); cardInfo.shadow.moveTo(2, 2); cardInfo.shadow.lineTo(2, _local3 + 2); cardInfo.shadow.lineTo(_local4 + 2, _local3 + 2); cardInfo.shadow.lineTo(_local4 + 2, 2); cardInfo.shadow.lineTo(2, 2); cardInfo.shadow.endFill(); actualLoc = 1; location_x = 3; location_y = 16; if ((((((((obj.classAverage && (obj.classHunter)) && (obj.classSorcerer)) && (obj.classPaladin)) && (obj.classKnight)) && (obj.subClassAssassin)) && (obj.subClassWizard)) && (obj.subClassMonk)) && (obj.subClassGladiator)) { cardInfo.attachMovie("e", "everyone", cardInfo.getNextHighestDepth()); cardInfo.everyone._x = location_x + (actualLoc * 12); cardInfo.everyone._y = location_y; } else if ((type != "Class") && (type != "Subclass")) { if (obj.classAverage) { cardInfo.attachMovie("av", "classAverage", cardInfo.getNextHighestDepth()); cardInfo.classAverage._x = location_x + (actualLoc * 12); cardInfo.classAverage._y = location_y; actualLoc++; } if (obj.classHunter) { cardInfo.attachMovie("h", "classHunter", cardInfo.getNextHighestDepth()); cardInfo.classHunter._x = location_x + (actualLoc * 12); cardInfo.classHunter._y = location_y; actualLoc++; } if (obj.subClassAssassin) { cardInfo.attachMovie("a", "subClassAssassin", cardInfo.getNextHighestDepth()); cardInfo.subClassAssassin._x = location_x + (actualLoc * 12); cardInfo.subClassAssassin._y = location_y; actualLoc++; } if (obj.classSorcerer) { cardInfo.attachMovie("s", "classSorcerer", cardInfo.getNextHighestDepth()); cardInfo.classSorcerer._x = location_x + (actualLoc * 12); cardInfo.classSorcerer._y = location_y; actualLoc++; } if (obj.subClassWizard) { cardInfo.attachMovie("w", "subClassWizard", cardInfo.getNextHighestDepth()); cardInfo.subClassWizard._x = location_x + (actualLoc * 12); cardInfo.subClassWizard._y = location_y; actualLoc++; } if (obj.classPaladin) { cardInfo.attachMovie("p", "classPaladin", cardInfo.getNextHighestDepth()); cardInfo.classPaladin._x = location_x + (actualLoc * 12); cardInfo.classPaladin._y = location_y; actualLoc++; } if (obj.subClassMonk) { cardInfo.attachMovie("m", "subClassMonk", cardInfo.getNextHighestDepth()); cardInfo.subClassMonk._x = location_x + (actualLoc * 12); cardInfo.subClassMonk._y = location_y; actualLoc++; } if (obj.classKnight) { cardInfo.attachMovie("k", "classKnight", cardInfo.getNextHighestDepth()); cardInfo.classKnight._x = location_x + (actualLoc * 12); cardInfo.classKnight._y = location_y; actualLoc++; } if (obj.subClassGladiator) { cardInfo.attachMovie("g", "subClassGladiator", cardInfo.getNextHighestDepth()); cardInfo.subClassGladiator._x = location_x + (actualLoc * 12); cardInfo.subClassGladiator._y = location_y; actualLoc++; } } } } } function uncolorizeCard(obj) { if (_root.imagesLoaded >= (loop - 1)) { colorBg = new Color(obj); colorBg.setTransform(uncolor); if (cardInfo) { cardInfo.removeMovieClip(); } } } function createCard(idCard, picture, model, quantity, deck, idMyCards, cardPos, wPos, hPos, idMyCard) { _root.attachMovie("cardManager", "card" + cardPos, cardPos + 100); eval ("card" + cardPos)._x = (wPos * 70) + 14; eval ("card" + cardPos)._y = (hPos * 80) - 15; eval ("card" + cardPos).idCard = idCard; eval ("card" + cardPos).idPos = idMyCard; eval ("card" + cardPos).idMyCards = idMyCards.split(","); eval ("card" + cardPos).cardName = myManagerCards["cardName" + idMyCard]; eval ("card" + cardPos).classes = myManagerCards["classes" + idMyCard]; eval ("card" + cardPos).powAndRes = myManagerCards["powAndRes" + idMyCard]; eval ("card" + cardPos).typeAndSub = myManagerCards["typeAndSub" + idMyCard]; eval ("card" + cardPos).textFunc = myManagerCards["textFunc" + idMyCard]; eval ("card" + cardPos).handle = myManagerCards["handle" + idMyCard]; eval ("card" + cardPos).classAverage = myManagerCards["classAverage" + idMyCard]; eval ("card" + cardPos).classHunter = myManagerCards["classHunter" + idMyCard]; eval ("card" + cardPos).subClassAssassin = myManagerCards["subclassAssassin" + idMyCard]; eval ("card" + cardPos).classSorcerer = myManagerCards["classSorcerer" + idMyCard]; eval ("card" + cardPos).subClassWizard = myManagerCards["subclassWizard" + idMyCard]; eval ("card" + cardPos).classPaladin = myManagerCards["classPaladin" + idMyCard]; eval ("card" + cardPos).subClassMonk = myManagerCards["subclassMonk" + idMyCard]; eval ("card" + cardPos).classKnight = myManagerCards["classKnight" + idMyCard]; eval ("card" + cardPos).subClassGladiator = myManagerCards["subclassGladiator" + idMyCard]; eval ("card" + cardPos).tempQuant = ((quantity > 99) ? 99 : (quantity)); eval ("card" + cardPos).tempDeck = deck; eval ("card" + cardPos).gotoAndStop(model.substring(0, model.length - 4)); eval ("card" + cardPos).hit.onRelease = releaseCard; eval ("card" + cardPos).hit.onReleaseOutside = releaseCard; eval ("card" + cardPos).hit.onDragOut = function () { uncolorizeCard(this._parent); }; eval ("card" + cardPos).hit.onDragOver = function () { colorizeCard(this._parent, overCardColor); }; eval ("card" + cardPos).hit.onRollOver = function () { colorizeCard(this._parent, overCardColor); }; eval ("card" + cardPos).hit.onRollOut = function () { uncolorizeCard(this._parent); }; eval ("card" + cardPos).addCard.onRelease = function () { addDeckCard(this._parent); }; eval ("card" + cardPos).removeCard.onRelease = function () { removeDeckCard(this._parent); }; eval ("card" + cardPos)._alpha = 0; eval ("card" + cardPos).hit.enabled = false; eval ("card" + cardPos).addCard.enabled = false; eval ("card" + cardPos).removeCard.enabled = false; if (idCard > 9) { eval ("card" + cardPos).createEmptyMovieClip("pictureClip", eval ("card" + cardPos).getNextHighestDepth()); eval ("card" + cardPos).circle.swapDepths(eval ("card" + cardPos).pictureClip); eval ("card" + cardPos).circle.swapDepths(eval ("card" + cardPos).quantity); movieLoader.loadClip((webpage + "/images/game_elements/cards/small_pictures/") + picture, eval ("card" + cardPos).pictureClip); movieLoader.addListener(mclistener); eval ("card" + cardPos).pictureClip._x = 6; eval ("card" + cardPos).pictureClip._y = 8; } else { _root.imagesLoaded++; } } function addDeckCard(cardObj) { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { deck = Number(cardObj.deck.text); if ((classesInDeck >= 3) && (cardObj.idCard <= 9)) { warning = "You can only have up to 3 different class cards in your deck."; warningText.play(); } else if ((cardObj.idCard <= 9) && (deck == 1)) { warning = "You can only have 1 class card of each in your deck."; warningText.play(); } else if ((cardsInDeck >= 60) && (cardObj.idCard > 9)) { warning = "You can only have up to 60 cards in your deck."; warningText.play(); } else if (deck >= Number(cardObj.quantity.text)) { warning = "You can only add the amount of cards you have."; warningText.play(); } else if (deck >= 4) { warning = "You can only have up to 4 of the same card in your deck."; warningText.play(); } else { i = cardObj.idMyCards.length - 1; while (i >= 0) { if (sendDeck.deckArray.indexOf(cardObj.idMyCards[i]) == -1) { sendDeck.deckArray.push(cardObj.idMyCards[i]); if (cardListBox.getItemAt(0).data == undefined) { cardListBox.removeItemAt(0); } cardListBox.addItem({data:cardObj.idMyCards[i], label:cardObj.cardName}); cardListBox.selectedIndex = cardListBox.length - 1; cardListBox.sortItemsBy("label", "ASC"); break; } i--; } cardObj.deck.text = deck + 1; myManagerCards["deck" + cardObj.idPos] = deck + 1; if (cardObj.idCard <= 9) { classesInDeck++; } else { cardsInDeck++; } } } } function removeDeckCard(cardObj) { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { deck = Number(cardObj.deck.text); if (deck > 0) { cardObj.deck.text = deck - 1; myManagerCards["deck" + cardObj.idPos] = deck - 1; if (cardObj.idCard <= 9) { classesInDeck--; } else { cardsInDeck--; } i = cardObj.idMyCards.length - 1; while (i >= 0) { if (sendDeck.deckArray.indexOf(cardObj.idMyCards[i]) != -1) { removedCardArray = sendDeck.deckArray.splice(sendDeck.deckArray.indexOf(cardObj.idMyCards[i]), 1); removedCard = removedCardArray.toString(); z = 0; while (z < cardListBox.length) { if (cardListBox.getItemAt(z).data == Number(removedCard)) { cardListBox.removeItemAt(z); if (cardListBox.length == 0) { cardListBox.addItem("[None]"); } cardListBox.selectedIndex = z - 1; break; } z++; } break; } i--; } } } } function deleteDeckLoaded() { _root.attachMovie("deleteDeckBox", "deleteDeckBox", _root.confirmBoxDepth + 1); deleteDeckBox._x = 319; deleteDeckBox._y = 210; colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(filterButton, disabledColor); filterButton.enabled = false; colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; deleteDeckURL.load((((((((webpage + "/managerFiles/deleteDeck.asp?idUser=") + idUser) + "&deckName=") + _root.deckName) + "&defaultDeck=") + myManagerCards.defaultDeck) + "&rn=") + random(10000)); } function releaseCard() { var _local2 = ((("window.open('" + webpage) + "/cardPopup.html?idCard=") + this._parent.idCard) + "','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"; getURL (("javascript:" + _local2) + " void(0);"); } function reloadCardManager(deck, filter) { if (filter) { filterString = (((((((((((((((("&filter=true&av=" + avFilter.active) + "&h=") + hFilter.active) + "&a=") + aFilter.active) + "&p=") + pFilter.active) + "&m=") + mFilter.active) + "&s=") + sFilter.active) + "&w=") + wFilter.active) + "&k=") + kFilter.active) + "&g=") + gFilter.active; } else { filterString = ""; } if (deck == "new") { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } _root.loadString = ((((webpage + "/managerFiles/loadManagerCards.asp?idUser=") + idUser) + filterString) + "&rn=") + random(10000); } else if (deck == "load") { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } _root.loadString = ((((((webpage + "/managerFiles/loadManagerCards.asp?idUser=") + idUser) + "&loadedDeck=") + _root.loadedDeck) + filterString) + "&rn=") + random(10000); } z = 1; while (z <= totalPages) { eval ("pageTab" + z).removeMovieClip(); z++; } for (var dataLoaded in myManagerCards) { if (dataLoaded != "onLoad") { delete myManagerCards[dataLoaded]; } } for (var dataLoaded in sendDeck) { if (dataLoaded != "onLoad") { delete sendDeck[dataLoaded]; } } colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(filterButton, disabledColor); filterButton.enabled = false; colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; myManagerCards.load(loadString); loadingMsg = "Loading cards..."; } function gotoPage() { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { if (playSounds) { cardflip.start(); } _root.imagesLoaded = 0; loadingMsg = "Loading cards..."; i = 1; while (i <= 24) { eval ("card" + i).removeMovieClip(); i++; } _root.oldPage = _root.currentPage; _root.currentPage = Number(this.pageNum.text) - 1; if (oldPage > currentPage) { numCardsLoaded = 24; } _root.cardPage = _root.currentPage * 24; i = 1; while (i <= numCardsLoaded) { columLimit = i % 3; createCard(myManagerCards["idCard" + (cardPage + i)], myManagerCards["picture" + (cardPage + i)], myManagerCards["model" + (cardPage + i)], myManagerCards["quantity" + (cardPage + i)], myManagerCards["deck" + (cardPage + i)], myManagerCards["idMyCards" + (cardPage + i)], i, w, h, cardPage + i); if ((columLimit == 0) && (w < 4)) { h++; w = 0; } if (h == 5) { h = 1; w = 4; } if ((columLimit == 0) && (w > 4)) { h++; w = 4; } w++; i++; } h = 1; w = 1; z = 1; while (z <= totalPages) { eval ("pageTab" + z).enabled = false; z++; } buttonPrevious.enabled = false; buttonNext.enabled = false; } } function classFilterTrigger() { if (this.active) { this._alpha = 40; this.active = false; sendDeck[this._name] = false; } else { this._alpha = 100; this.active = true; sendDeck[this._name] = true; } } var mclistener = new Object(); mclistener.onLoadComplete = function (pic) { if ((pic._name = "pictureClip")) { _root.imagesLoaded++; if (_root.imagesLoaded >= (loop - 1)) { pageDisplay.text = "Page " + (_root.currentPage + 1); _root.loadingMsg = ""; if (_root.cardNum <= 24) { buttonPrevious.enabled = false; buttonNext.enabled = false; _root.numCardsLoaded = _root.cardNum; } else { z = 1; while (z <= totalPages) { eval ("pageTab" + z).enabled = true; z++; } if (_root.currentPage >= 1) { buttonPrevious.enabled = true; buttonPrevious._visible = true; } else { buttonPrevious._visible = false; } if ((_root.cardNum - (_root.currentPage * 24)) <= 24) { buttonNext._visible = false; _root.numCardsLoaded = _root.lastPageCards; } else { buttonNext.enabled = true; buttonNext._visible = true; _root.numCardsLoaded = 24; } } z = 1; while (z <= numCardsLoaded) { eval ("card" + z)._alpha = 100; eval ("card" + z).quantity.text = eval ("card" + z).tempQuant; eval ("card" + z).deck.text = eval ("card" + z).tempDeck; eval ("card" + z).hit.enabled = true; eval ("card" + z).addCard.enabled = true; eval ("card" + z).removeCard.enabled = true; z++; } movieLoader.removeListener(mclistener); } } }; removeCardButton.onRelease = function () { if (cardListBox.selectedItem.label != "[None]") { if (playSounds) { cardflip.start(); } i = 1; while (i < cardNum) { if (eval ("card" + i).cardName == cardListBox.selectedItem.label) { deck = Number(eval ("card" + i).deck.text); eval ("card" + i).deck.text = deck - 1; myManagerCards["deck" + eval ("card" + i).idPos] = deck - 1; if (eval ("card" + i).idCard <= 9) { classesInDeck--; } else { cardsInDeck--; } break; } if (myManagerCards["cardName" + i] == cardListBox.selectedItem.label) { deck = Number(myManagerCards["deck" + i]); myManagerCards["deck" + i] = deck - 1; if (Number(myManagerCards["idCard" + i]) <= 9) { classesInDeck--; } else { cardsInDeck--; } break; } i++; } if (sendDeck.deckArray.indexOf(cardListBox.selectedItem.data) != -1) { sendDeck.deckArray.splice(sendDeck.deckArray.indexOf(cardListBox.selectedItem.data), 1); } if (cardListBox.selectedIndex == (cardListBox.length - 1)) { newIndex = cardListBox.selectedIndex - 1; } else { newIndex = cardListBox.selectedIndex; } _root.attachMovie("removeCardAnimation", "removeCardAnimation", 999); removeCardAnimation._x = 39; removeCardAnimation._y = 456; removeCardAnimation.removedCard.text = cardListBox.selectedItem.label; removeCardAnimation.onEnterFrame = function () { if (this._currentframe == 20) { this.stop(); this.removeMovieClip(); } }; cardListBox.removeItemAt(cardListBox.selectedIndex); cardListBox.selectedIndex = newIndex; if (cardListBox.length == 0) { cardListBox.addItem("[None]"); } } else { colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; } }; ToolTip.install(_root.removeCardButton, "Click here to remove this card from your deck.", 250); buttonNext.onRelease = function () { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { if (playSounds) { cardflip.start(); } _root.imagesLoaded = 0; loadingMsg = "Loading cards..."; i = 1; while (i <= 24) { eval ("card" + i).removeMovieClip(); i++; } _root.currentPage++; _root.cardPage = _root.currentPage * 24; i = 1; while (i <= numCardsLoaded) { columLimit = i % 3; createCard(myManagerCards["idCard" + (cardPage + i)], myManagerCards["picture" + (cardPage + i)], myManagerCards["model" + (cardPage + i)], myManagerCards["quantity" + (cardPage + i)], myManagerCards["deck" + (cardPage + i)], myManagerCards["idMyCards" + (cardPage + i)], i, w, h, cardPage + i); if ((columLimit == 0) && (w < 4)) { h++; w = 0; } if (h == 5) { h = 1; w = 4; } if ((columLimit == 0) && (w > 4)) { h++; w = 4; } w++; i++; } h = 1; w = 1; z = 1; while (z <= totalPages) { eval ("pageTab" + z).enabled = false; z++; } buttonPrevious.enabled = false; buttonNext.enabled = false; } }; buttonPrevious.onRelease = function () { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { if (playSounds) { cardflip.start(); } _root.imagesLoaded = 0; loadingMsg = "Loading cards..."; i = 1; while (i <= 24) { eval ("card" + i).removeMovieClip(); i++; } _root.currentPage--; _root.cardPage = _root.currentPage * 24; i = 1; while (i <= 24) { columLimit = i % 3; createCard(myManagerCards["idCard" + (cardPage + i)], myManagerCards["picture" + (cardPage + i)], myManagerCards["model" + (cardPage + i)], myManagerCards["quantity" + (cardPage + i)], myManagerCards["deck" + (cardPage + i)], myManagerCards["idMyCards" + (cardPage + i)], i, w, h, cardPage + i); if ((columLimit == 0) && (w < 4)) { h++; w = 0; } if (h == 5) { h = 1; w = 4; } if ((columLimit == 0) && (w > 4)) { h++; w = 4; } w++; i++; } h = 1; w = 1; z = 1; while (z <= totalPages) { eval ("pageTab" + z).enabled = false; z++; } buttonPrevious.enabled = false; buttonNext.enabled = false; } }; renameButton.onRelease = function () { if (_root.deckNameList.indexOf(deckNameInput.text) != -1) { warning = "Deck name already taken. Please choose another name."; warningText.play(); } else if ((deckNameInput.text == "") || (!validateString(deckNameInput.text))) { warning = "Invalid deck name."; warningText.play(); } else if (loadingMsg == "") { colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(filterButton, disabledColor); filterButton.enabled = false; renameDeckURL.load((((((((((webpage + "/managerFiles/renameDeck.asp?idUser=") + idUser) + "&oldName=") + _root.deckName) + "&newName=") + deckNameInput.text) + "&defaultDeck=") + myManagerCards.defaultDeck) + "&rn=") + random(10000)); } }; ToolTip.install(_root.renameButton, "Type a new deck name in the box above and click here.", 250); setDefaultButton.onRelease = function () { if (loadingMsg == "") { colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(filterButton, disabledColor); filterButton.enabled = false; setDefaultURL.load((((((webpage + "/managerFiles/defaultDeck.asp?idUser=") + idUser) + "&deckName=") + _root.deckName) + "&rn=") + random(10000)); } }; ToolTip.install(_root.setDefaultButton, "Click here to set this deck as your default deck.", 250); avFilter.onRelease = classFilterTrigger; hFilter.onRelease = classFilterTrigger; aFilter.onRelease = classFilterTrigger; pFilter.onRelease = classFilterTrigger; mFilter.onRelease = classFilterTrigger; sFilter.onRelease = classFilterTrigger; wFilter.onRelease = classFilterTrigger; kFilter.onRelease = classFilterTrigger; gFilter.onRelease = classFilterTrigger; filterButton.onRelease = function () { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } z = 1; while (z <= totalPages) { eval ("pageTab" + z).removeMovieClip(); z++; } for (var dataLoaded in myManagerCards) { if ((dataLoaded != "onLoad") && (dataLoaded != "defaultDeck")) { delete myManagerCards[dataLoaded]; } } colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(filterButton, disabledColor); filterButton.enabled = false; colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; _root.filterLoad = true; sendDeck.idUser = _root.idUser; sendDeck.loadedDeck = _root.deckName; sendDeck.sendAndLoad(webpage + "/managerFiles/loadFilterCards.asp", myManagerCards, "POST"); loadingMsg = "Loading cards..."; }; ToolTip.install(_root.filterButton, "Select the classes you would like to see on your left and click here.", 250); tradeChatTab.tradeTabBtn.onRelease = function () { _root.tradeChatTab.play(); }; tradeChatTab.sendButton.onRelease = function () { if (!antiSpam) { sendChatMsg(tradeChatTab.msgBox); antiSpam = true; antiSpamTimer = getTimer() / 1000; _root.tradeChatTab.onEnterFrame = function () { delay = getTimer() / 1000; if (antiSpamTimer <= (delay - 4)) { antiSpam = false; delete this.onEnterFrame; } }; } }; cardListBox.setStyle("backgroundColor", 0); cardListBox.setStyle("borderStyle", "none"); cardListBox.setStyle("color", 16777215); cardListBox.setStyle("fontSize", 10); cardListBox.setStyle("fontFamily", "Verdana"); cardListBox.setStyle("selectionColor", "none"); cardListBox.setStyle("rollOverColor", "none"); cardListBox.setStyle("textRollOverColor", 16763904); cardListBox.setStyle("textSelectedColor", 16763904); var cbListener = new Object(); cbListener.change = function (evt_obj) { var _local1 = evt_obj.target.selectedItem; if (_local1.label != "[None]") { uncolorize(removeCardButton); removeCardButton.enabled = true; } else { colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; } }; cardListBox.addEventListener("change", cbListener); cardListBox.onMouseDown = function () { a = _root.getNextHighestDepth(); cardListBox.__dropdown.swapDepths(a); }; buttonPrevious.enabled = false; buttonNext.enabled = false; warningText.stop(); onEnterFrame = function () { if (loadedSong.getVolume() > 0) { loadedSong.setVolume(loadedSong.getVolume() - 5); } else if (playMusic) { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = manager_music; loadedSong.start(); intervalVal = setInterval(loopSong, 1); delete this.onEnterFrame; } else { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = manager_music; delete this.onEnterFrame; } }; var uVars = new Object(); uVars.chatRoom = 0; uVars.inGame = 0; smartfox.setUserVariables(uVars); delete uVars; var bVars = new Object(); bVars.chatRoom = 0; smartfox.setBuddyVariables(bVars); delete bVars; if (clanRoomID) { smartfox.leaveRoom(clanRoomID); delete clanRoomID; } if (gameRoomID) { smartfox.leaveRoom(gameRoomID); delete gameRoomID; } smartfox.leaveRoom(lobbyRoomID); smartfox.joinRoom(tradeRoomID, "", false, true); publicChat[lobbyRoomID] = ""; publicChat[tradeRoomID] = ""; publicChat[gameRoomID] = ""; privateChat[0] = ""; privateChat[1] = ""; privateChat[2] = ""; privateChat[3] = ""; privateChat[4] = ""; privateChat[5] = ""; privateChat[6] = ""; privateChat[7] = ""; privateChat[8] = "";Instance of Symbol 1039 MovieClip [ComboBox] "cardListBox" in Frame 9//component parameters onClipEvent (construct) { editable = false; rowCount = 8; restrict = ""; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Symbol 46 MovieClip [ScrollThemeColor1] Frame 1mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");Symbol 59 MovieClip [ThumbThemeColor1] Frame 1mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");Symbol 66 MovieClip [ThumbThemeColor2] Frame 1mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");Symbol 87 MovieClip [BtnDownArrow] Frame 1#initclip 57 Object.registerClass("BtnDownArrow", mx.controls.SimpleButton); #endinitclipSymbol 88 MovieClip [BtnUpArrow] Frame 1#initclip 55 Object.registerClass("BtnUpArrow", mx.controls.SimpleButton); #endinitclipSymbol 93 MovieClip [ComboDownArrowDisabled] Frame 1#initclip 56 Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton); #endinitclipSymbol 96 MovieClip [ComboAssets] Frame 1#initclip 58 mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp"; mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown"; mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver"; mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled"; mx.controls.ComboBox.prototype.wrapDownArrowButton = false; mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid"; mx.controls.ComboBox.prototype.adjustFocusRect = function () { var _local2 = this.getStyle("themeColor"); if (_local2 == undefined) { _local2 = 8453965 /* 0x80FF4D */; } var _local3 = this._parent.focus_mc; _local3.setSize(this.width + 4, this.height + 4, {bl:0, tl:0, tr:5, br:5}, 100, _local2); _local3.move(this.x - 2, this.y - 2); }; #endinitclipSymbol 154 MovieClip [viewCard] Frame 1stop();Symbol 221 MovieClip Frame 1i = 1; alpha = 1; maxlight = 20; while (i <= maxlight) { duplicateMovieClip ("ray0", "ray" + i, 800 - i); Set(undefined, undefined); setProperty("ray" + i, _xscale , getProperty("ray" + (i - 1), _xscale) + (i * alpha)); setProperty("ray" + i, _yscale , getProperty("ray" + (i - 1), _yscale) + (i * alpha)); setProperty("ray" + i, _alpha , 10 - (i * 0.01)); i = i + 1; } setProperty("ray0", _visible , "0"); stop();Instance of Symbol 220 MovieClip "ray0" in Symbol 221 MovieClip Frame 1onClipEvent (enterFrame) { mov = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if ((this._currentframe < (mov * 2)) && (!playRay)) { playRay = true; this.play(); } else if ((this._currentframe >= (mov * 2)) || (this._currentframe == 200)) { playRay = false; this.stop(); } if ((mov == 100) && (this._currentframe == 200)) { delete this.onEnterFrame; _root.play(); } }Symbol 417 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0class mx.skins.ColoredSkinElement { var getStyle, _color, onEnterFrame; function ColoredSkinElement () { } function setColor(c) { if (c != undefined) { var _local2 = new Color(this); _local2.setRGB(c); } } function draw(Void) { setColor(getStyle(_color)); onEnterFrame = undefined; } function invalidateStyle(Void) { onEnterFrame = draw; } static function setColorStyle(p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mixins.setColor; p.invalidateStyle = mixins.invalidateStyle; p.draw = mixins.draw; p.setColor(p.getStyle(colorStyle)); } static var mixins = new mx.skins.ColoredSkinElement(); }Symbol 368 MovieClip [__Packages.mx.core.UIObject] Frame 0class mx.core.UIObject extends MovieClip { var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled; function UIObject () { super(); constructObject(); } function get width() { return(_width); } function get height() { return(_height); } function get left() { return(_x); } function get x() { return(_x); } function get top() { return(_y); } function get y() { return(_y); } function get right() { return(_parent.width - (_x + width)); } function get bottom() { return(_parent.height - (_y + height)); } function getMinHeight(Void) { return(_minHeight); } function setMinHeight(h) { _minHeight = h; } function get minHeight() { return(getMinHeight()); } function set minHeight(h) { setMinHeight(h); //return(minHeight); } function getMinWidth(Void) { return(_minWidth); } function setMinWidth(w) { _minWidth = w; } function get minWidth() { return(getMinWidth()); } function set minWidth(w) { setMinWidth(w); //return(minWidth); } function setVisible(x, noEvent) { if (x != _visible) { _visible = x; if (noEvent != true) { dispatchEvent({type:(x ? "reveal" : "hide")}); } } } function get visible() { return(_visible); } function set visible(x) { setVisible(x, false); //return(visible); } function get scaleX() { return(_xscale); } function set scaleX(x) { _xscale = x; //return(scaleX); } function get scaleY() { return(_yscale); } function set scaleY(y) { _yscale = y; //return(scaleY); } function doLater(obj, fn) { if (methodTable == undefined) { methodTable = new Array(); } methodTable.push({obj:obj, fn:fn}); onEnterFrame = doLaterDispatcher; } function doLaterDispatcher(Void) { delete onEnterFrame; if (invalidateFlag) { redraw(); } var _local3 = methodTable; methodTable = new Array(); if (_local3.length > 0) { var _local2; while (_local2 = _local3.shift() , _local2 != undefined) { _local2.obj[_local2.fn](); } } } function cancelAllDoLaters(Void) { delete onEnterFrame; methodTable = new Array(); } function invalidate(Void) { invalidateFlag = true; onEnterFrame = doLaterDispatcher; } function invalidateStyle(Void) { invalidate(); } function redraw(bAlways) { if (invalidateFlag || (bAlways)) { invalidateFlag = false; var _local2; for (_local2 in tfList) { tfList[_local2].draw(); } draw(); dispatchEvent({type:"draw"}); } } function draw(Void) { } function move(x, y, noEvent) { var _local3 = _x; var _local2 = _y; _x = x; _y = y; if (noEvent != true) { dispatchEvent({type:"move", oldX:_local3, oldY:_local2}); } } function setSize(w, h, noEvent) { var _local3 = __width; var _local2 = __height; __width = w; __height = h; size(); if (noEvent != true) { dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2}); } } function size(Void) { _width = __width; _height = __height; } function drawRect(x1, y1, x2, y2) { moveTo(x1, y1); lineTo(x2, y1); lineTo(x2, y2); lineTo(x1, y2); lineTo(x1, y1); } function createLabel(name, depth, text) { createTextField(name, depth, 0, 0, 0, 0); var _local2 = this[name]; _local2._color = textColorList; _local2._visible = false; _local2.__text = text; if (tfList == undefined) { tfList = new Object(); } tfList[name] = _local2; _local2.invalidateStyle(); invalidate(); _local2.styleName = this; return(_local2); } function createObject(linkageName, id, depth, initobj) { return(attachMovie(linkageName, id, depth, initobj)); } function createClassObject(className, id, depth, initobj) { var _local3 = className.symbolName == undefined; if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className); } var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj)); if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return(_local4); } function createEmptyObject(id, depth) { return(createClassObject(mx.core.UIObject, id, depth)); } function destroyObject(id) { var _local2 = this[id]; if (_local2.getDepth() < 0) { var _local4 = buildDepthTable(); var _local5 = findNextAvailableDepth(0, _local4, "up"); var _local3 = _local5; _local2.swapDepths(_local3); } _local2.removeMovieClip(); delete this[id]; } function getSkinIDName(tag) { return(idNames[tag]); } function setSkin(tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return(createObject(linkageName, getSkinIDName(tag), tag, initObj)); } function createSkin(tag) { var _local2 = getSkinIDName(tag); createEmptyObject(_local2, tag); return(this[_local2]); } function createChildren(Void) { } function _createChildren(Void) { createChildren(); childrenCreated = true; } function constructObject(Void) { if (_name == undefined) { return(undefined); } init(); _createChildren(); createAccessibilityImplementation(); _endInit(); if (validateNow) { redraw(true); } else { invalidate(); } } function initFromClipParameters(Void) { var _local4 = false; var _local2; for (_local2 in clipParameters) { if (hasOwnProperty(_local2)) { _local4 = true; this["def_" + _local2] = this[_local2]; delete this[_local2]; } } if (_local4) { for (_local2 in clipParameters) { var _local3 = this["def_" + _local2]; if (_local3 != undefined) { this[_local2] = _local3; } } } } function init(Void) { __width = _width; __height = _height; if (initProperties == undefined) { initFromClipParameters(); } else { initProperties(); } if (_global.cascadingStyles == true) { stylecache = new Object(); } } function getClassStyleDeclaration(Void) { var _local4 = this; var _local3 = className; while (_local3 != undefined) { if (ignoreClassStyleDeclaration[_local3] == undefined) { if (_global.styles[_local3] != undefined) { return(_global.styles[_local3]); } } _local4 = _local4.__proto__; _local3 = _local4.className; } } function setColor(color) { } function __getTextFormat(tf, bAll) { var _local8 = stylecache.tf; if (_local8 != undefined) { var _local3; for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { tf[_local3] = _local8[_local3]; } } } return(false); } var _local6 = false; for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { var _local5 = _tf[_local3]; if (_local5 != undefined) { tf[_local3] = _local5; } else if ((_local3 == "font") && (fontFamily != undefined)) { tf[_local3] = fontFamily; } else if ((_local3 == "size") && (fontSize != undefined)) { tf[_local3] = fontSize; } else if ((_local3 == "color") && (color != undefined)) { tf[_local3] = color; } else if ((_local3 == "leftMargin") && (marginLeft != undefined)) { tf[_local3] = marginLeft; } else if ((_local3 == "rightMargin") && (marginRight != undefined)) { tf[_local3] = marginRight; } else if ((_local3 == "italic") && (fontStyle != undefined)) { tf[_local3] = fontStyle == _local3; } else if ((_local3 == "bold") && (fontWeight != undefined)) { tf[_local3] = fontWeight == _local3; } else if ((_local3 == "align") && (textAlign != undefined)) { tf[_local3] = textAlign; } else if ((_local3 == "indent") && (textIndent != undefined)) { tf[_local3] = textIndent; } else if ((_local3 == "underline") && (textDecoration != undefined)) { tf[_local3] = textDecoration == _local3; } else if ((_local3 == "embedFonts") && (embedFonts != undefined)) { tf[_local3] = embedFonts; } else { _local6 = true; } } } } if (_local6) { var _local9 = styleName; if (_local9 != undefined) { if (typeof(_local9) != "string") { _local6 = _local9.__getTextFormat(tf, true, this); } else if (_global.styles[_local9] != undefined) { _local6 = _global.styles[_local9].__getTextFormat(tf, true, this); } } } if (_local6) { var _local10 = getClassStyleDeclaration(); if (_local10 != undefined) { _local6 = _local10.__getTextFormat(tf, true, this); } } if (_local6) { if (_global.cascadingStyles) { if (_parent != undefined) { _local6 = _parent.__getTextFormat(tf, false); } } } if (_local6) { _local6 = _global.style.__getTextFormat(tf, true, this); } return(_local6); } function _getTextFormat(Void) { var _local2 = stylecache.tf; if (_local2 != undefined) { return(_local2); } _local2 = new TextFormat(); __getTextFormat(_local2, true); stylecache.tf = _local2; if (enabled == false) { var _local3 = getStyle("disabledColor"); _local2.color = _local3; } return(_local2); } function getStyleName(Void) { var _local2 = styleName; if (_local2 != undefined) { if (typeof(_local2) != "string") { return(_local2.getStyleName()); } return(_local2); } if (_parent != undefined) { return(_parent.getStyleName()); } return(undefined); } function getStyle(styleProp) { var _local3; _global.getStyleCounter++; if (this[styleProp] != undefined) { return(this[styleProp]); } var _local6 = styleName; if (_local6 != undefined) { if (typeof(_local6) != "string") { _local3 = _local6.getStyle(styleProp); } else { var _local7 = _global.styles[_local6]; _local3 = _local7.getStyle(styleProp); } } if (_local3 != undefined) { return(_local3); } var _local7 = getClassStyleDeclaration(); if (_local7 != undefined) { _local3 = _local7[styleProp]; } if (_local3 != undefined) { return(_local3); } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) { var _local5 = stylecache; if (_local5 != undefined) { if (_local5[styleProp] != undefined) { return(_local5[styleProp]); } } if (_parent != undefined) { _local3 = _parent.getStyle(styleProp); } else { _local3 = _global.style[styleProp]; } if (_local5 != undefined) { _local5[styleProp] = _local3; } return(_local3); } } if (_local3 == undefined) { _local3 = _global.style[styleProp]; } return(_local3); } static function mergeClipParameters(o, p) { for (var _local3 in p) { o[_local3] = p[_local3]; } return(true); } static var symbolName = "UIObject"; static var symbolOwner = mx.core.UIObject; static var version = "2.0.2.127"; static var textColorList = {color:1, disabledColor:1}; var invalidateFlag = false; var lineWidth = 1; var lineColor = 0; var tabEnabled = false; var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1}; }Symbol 405 MovieClip [__Packages.mx.skins.SkinElement] Frame 0class mx.skins.SkinElement extends MovieClip { var _visible, _x, _y, _width, _height; function SkinElement () { super(); } static function registerElement(name, className) { Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className))); _global.skinRegistry[name] = true; } function __set__visible(visible) { _visible = visible; } function move(x, y) { _x = x; _y = y; } function setSize(w, h) { _width = w; _height = h; } }Symbol 406 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0class mx.styles.CSSTextStyles { function CSSTextStyles () { } static function addTextStyles(o, bColor) { o.addProperty("textAlign", function () { return(this._tf.align); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty("fontWeight", function () { return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == "bold"; }); if (bColor) { o.addProperty("color", function () { return(this._tf.color); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty("fontFamily", function () { return(this._tf.font); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty("textIndent", function () { return(this._tf.indent); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty("fontStyle", function () { return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == "italic"; }); o.addProperty("marginLeft", function () { return(this._tf.leftMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty("marginRight", function () { return(this._tf.rightMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty("fontSize", function () { return(this._tf.size); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty("textDecoration", function () { return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == "underline"; }); o.addProperty("embedFonts", function () { return(this._tf.embedFonts); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); } }Symbol 408 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0class mx.styles.CSSStyleDeclaration { var _tf; function CSSStyleDeclaration () { } function __getTextFormat(tf, bAll) { var _local5 = false; if (_tf != undefined) { var _local2; for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) { if (tf[_local2] == undefined) { var _local3 = _tf[_local2]; if (_local3 != undefined) { tf[_local2] = _local3; } else { _local5 = true; } } } } } else { _local5 = true; } return(_local5); } function getStyle(styleProp) { var _local2 = this[styleProp]; var _local3 = mx.styles.StyleManager.getColorName(_local2); return(((_local3 == undefined) ? (_local2) : (_local3))); } static function classConstruct() { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return(true); } static var classConstructed = classConstruct(); static var CSSTextStylesDependency = mx.styles.CSSTextStyles; }Symbol 407 MovieClip [__Packages.mx.styles.StyleManager] Frame 0class mx.styles.StyleManager { function StyleManager () { } static function registerInheritingStyle(styleName) { inheritingStyles[styleName] = true; } static function isInheritingStyle(styleName) { return(inheritingStyles[styleName] == true); } static function registerColorStyle(styleName) { colorStyles[styleName] = true; } static function isColorStyle(styleName) { return(colorStyles[styleName] == true); } static function registerColorName(colorName, colorValue) { colorNames[colorName] = colorValue; } static function isColorName(colorName) { return(colorNames[colorName] != undefined); } static function getColorName(colorName) { return(colorNames[colorName]); } static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true}; static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true}; static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344}; static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false}; static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true}; }Symbol 369 MovieClip [__Packages.mx.core.UIComponent] Frame 0class mx.core.UIComponent extends mx.core.UIObject { var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled; function UIComponent () { super(); } function get width() { return(__width); } function get height() { return(__height); } function setVisible(x, noEvent) { super.setVisible(x, noEvent); } function enabledChanged(id, oldValue, newValue) { setEnabled(newValue); invalidate(); delete stylecache.tf; return(newValue); } function setEnabled(enabled) { invalidate(); } function getFocus() { var selFocus = Selection.getFocus(); return(((selFocus === null) ? null : (eval (selFocus)))); } function setFocus() { Selection.setFocus(this); } function getFocusManager() { var _local2 = this; while (_local2 != undefined) { if (_local2.focusManager != undefined) { return(_local2.focusManager); } _local2 = _local2._parent; } return(undefined); } function onKillFocus(newFocus) { removeEventListener("keyDown", this); removeEventListener("keyUp", this); dispatchEvent({type:"focusOut"}); drawFocus(false); } function onSetFocus(oldFocus) { addEventListener("keyDown", this); addEventListener("keyUp", this); dispatchEvent({type:"focusIn"}); if (getFocusManager().bDrawFocus != false) { drawFocus(true); } } function findFocusInChildren(o) { if (o.focusTextField != undefined) { return(o.focusTextField); } if (o.tabEnabled == true) { return(o); } return(undefined); } function findFocusFromObject(o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return(undefined); } if (o._parent.tabEnabled == true) { o = o._parent; } else if (o._parent.tabChildren) { o = findFocusInChildren(o._parent); } else { o = findFocusFromObject(o._parent); } } return(o); } function pressFocus() { var _local3 = findFocusFromObject(this); var _local2 = getFocus(); if (_local3 != _local2) { _local2.drawFocus(false); if (getFocusManager().bDrawFocus != false) { _local3.drawFocus(true); } } } function releaseFocus() { var _local2 = findFocusFromObject(this); if (_local2 != getFocus()) { _local2.setFocus(); } } function isParent(o) { while (o != undefined) { if (o == this) { return(true); } o = o._parent; } return(false); } function size() { } function init() { super.init(); _xscale = 100; _yscale = 100; _focusrect = _global.useFocusRect == false; watch("enabled", enabledChanged); if (enabled == false) { setEnabled(false); } } function dispatchValueChangedEvent(value) { dispatchEvent({type:"valueChanged", value:value}); } static var symbolName = "UIComponent"; static var symbolOwner = mx.core.UIComponent; static var version = "2.0.2.127"; static var kStretch = 5000; var focusEnabled = true; var tabEnabled = true; var origBorderStyles = {themeColor:16711680}; var clipParameters = {}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); }Symbol 409 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0class mx.controls.SimpleButton extends mx.core.UIComponent { static var emphasizedStyleDeclaration; var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle; function SimpleButton () { super(); } function init(Void) { super.init(); if (preset == undefined) { boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } useHandCursor = false; } function createChildren(Void) { if (preset != undefined) { var _local2 = this[idNames[preset]]; this[refNames[preset]] = _local2; skinName = _local2; if (falseOverSkin.length == 0) { rolloverSkin = fus; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } initializing = false; } else if (__state == true) { setStateVar(true); } else { if (falseOverSkin.length == 0) { rolloverSkin = fus; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } } } function setIcon(tag, linkageName) { return(setSkin(tag + 8, linkageName)); } function changeIcon(tag, linkageName) { linkLength = linkageName.length; var _local2 = stateNames[tag] + "Icon"; this[_local2] = linkageName; this[idNames[tag + 8]] = _local2; setStateVar(getState()); } function changeSkin(tag, linkageName) { var _local2 = stateNames[tag] + "Skin"; this[_local2] = linkageName; this[idNames[tag]] = _local2; setStateVar(getState()); } function viewIcon(varName) { var _local4 = varName + "Icon"; var _local3 = this[_local4]; if (typeof(_local3) == "string") { var _local5 = _local3; if (__emphasized) { if (this[_local3 + "Emphasized"].length > 0) { _local3 = _local3 + "Emphasized"; } } if (this[_local3].length == 0) { return(undefined); } _local3 = setIcon(tagMap[_local5], this[_local3]); if ((_local3 == undefined) && (_global.isLivePreview)) { _local3 = setIcon(0, "ButtonIcon"); } this[_local4] = _local3; } iconName._visible = false; iconName = _local3; iconName._visible = true; } function removeIcons() { var _local3 = 0; while (_local3 < 2) { var _local2 = 8; while (_local2 < 16) { destroyObject(idNames[_local2]); this[stateNames[_local2 - 8] + "Icon"] = ""; _local2++; } _local3++; } refresh(); } function setSkin(tag, linkageName, initobj) { var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this}))); calcSize(tag, _local3); return(_local3); } function calcSize(Void) { __width = _width; __height = _height; } function viewSkin(varName, initObj) { var _local3 = varName + "Skin"; var _local2 = this[_local3]; if (typeof(_local2) == "string") { var _local4 = _local2; if (__emphasized) { if (this[_local2 + "Emphasized"].length > 0) { _local2 = _local2 + "Emphasized"; } } if (this[_local2].length == 0) { return(undefined); } _local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this}))); this[_local3] = _local2; } skinName._visible = false; skinName = _local2; skinName._visible = true; } function showEmphasized(e) { if (e && (!__emphatic)) { if (emphasizedStyleDeclaration != undefined) { __emphaticStyleName = styleName; styleName = emphasizedStyleDeclaration; } __emphatic = true; } else { if (__emphatic) { styleName = __emphaticStyleName; } __emphatic = false; } } function refresh(Void) { var _local2 = getState(); if (enabled == false) { viewIcon("disabled"); viewSkin("disabled"); } else { viewSkin(phase); viewIcon(phase); } setView(phase == "down"); iconName.enabled = enabled; } function setView(offset) { if (iconName == undefined) { return(undefined); } var _local2 = (offset ? (btnOffset) : 0); iconName._x = ((__width - iconName._width) / 2) + _local2; iconName._y = ((__height - iconName._height) / 2) + _local2; } function setStateVar(state) { if (state) { if (trueOverSkin.length == 0) { rolloverSkin = tus; } else { rolloverSkin = trs; } if (trueOverIcon.length == 0) { rolloverIcon = tui; } else { rolloverIcon = tri; } upSkin = tus; downSkin = tds; disabledSkin = dts; upIcon = tui; downIcon = tdi; disabledIcon = dti; } else { if (falseOverSkin.length == 0) { rolloverSkin = fus; } else { rolloverSkin = frs; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } else { rolloverIcon = fri; } upSkin = fus; downSkin = fds; disabledSkin = dfs; upIcon = fui; downIcon = fdi; disabledIcon = dfi; } __state = state; } function setState(state) { if (state != __state) { setStateVar(state); invalidate(); } } function size(Void) { refresh(); } function draw(Void) { if (initializing) { initializing = false; skinName.visible = true; iconName.visible = true; } size(); } function getState(Void) { return(__state); } function setToggle(val) { __toggle = val; if (__toggle == false) { setState(false); } } function getToggle(Void) { return(__toggle); } function set toggle(val) { setToggle(val); //return(toggle); } function get toggle() { return(getToggle()); } function set value(val) { setSelected(val); //return(value); } function get value() { return(getSelected()); } function set selected(val) { setSelected(val); //return(selected); } function get selected() { return(getSelected()); } function setSelected(val) { if (__toggle) { setState(val); } else { setState((initializing ? (val) : (__state))); } } function getSelected() { return(__state); } function setEnabled(val) { if (enabled != val) { super.setEnabled(val); invalidate(); } } function onPress(Void) { pressFocus(); phase = "down"; refresh(); dispatchEvent({type:"buttonDown"}); if (autoRepeat) { interval = setInterval(this, "onPressDelay", getStyle("repeatDelay")); } } function onPressDelay(Void) { dispatchEvent({type:"buttonDown"}); if (autoRepeat) { clearInterval(interval); interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval")); } } function onPressRepeat(Void) { dispatchEvent({type:"buttonDown"}); updateAfterEvent(); } function onRelease(Void) { releaseFocus(); phase = "rollover"; if (interval != undefined) { clearInterval(interval); delete interval; } if (getToggle()) { setState(!getState()); } else { refresh(); } dispatchEvent({type:"click"}); } function onDragOut(Void) { phase = "up"; refresh(); dispatchEvent({type:"buttonDragOut"}); } function onDragOver(Void) { if (phase != "up") { onPress(); return(undefined); } phase = "down"; refresh(); } function onReleaseOutside(Void) { releaseFocus(); phase = "up"; if (interval != undefined) { clearInterval(interval); delete interval; } } function onRollOver(Void) { phase = "rollover"; refresh(); } function onRollOut(Void) { phase = "up"; refresh(); } function getLabel(Void) { return(fui.text); } function setLabel(val) { if (typeof(fui) == "string") { createLabel("fui", 8, val); fui.styleName = this; } else { fui.text = val; } var _local4 = fui._getTextFormat(); var _local2 = _local4.getTextExtent2(val); fui._width = _local2.width + 5; fui._height = _local2.height + 5; iconName = fui; setView(__state); } function get emphasized() { return(__emphasized); } function set emphasized(val) { __emphasized = val; var _local2 = 0; while (_local2 < 8) { this[idNames[_local2]] = stateNames[_local2] + "Skin"; if (typeof(this[idNames[_local2 + 8]]) == "movieclip") { this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon"; } _local2++; } showEmphasized(__emphasized); setStateVar(__state); invalidateStyle(); //return(emphasized); } function keyDown(e) { if (e.code == 32) { onPress(); } } function keyUp(e) { if (e.code == 32) { onRelease(); } } function onKillFocus(newFocus) { super.onKillFocus(); if (phase != "up") { phase = "up"; refresh(); } } static var symbolName = "SimpleButton"; static var symbolOwner = mx.controls.SimpleButton; static var version = "2.0.2.127"; var className = "SimpleButton"; var style3dInset = 4; var btnOffset = 1; var __toggle = false; var __state = false; var __emphasized = false; var __emphatic = false; static var falseUp = 0; static var falseDown = 1; static var falseOver = 2; static var falseDisabled = 3; static var trueUp = 4; static var trueDown = 5; static var trueOver = 6; static var trueDisabled = 7; var falseUpSkin = "SimpleButtonUp"; var falseDownSkin = "SimpleButtonIn"; var falseOverSkin = ""; var falseDisabledSkin = "SimpleButtonUp"; var trueUpSkin = "SimpleButtonIn"; var trueDownSkin = ""; var trueOverSkin = ""; var trueDisabledSkin = "SimpleButtonIn"; var falseUpIcon = ""; var falseDownIcon = ""; var falseOverIcon = ""; var falseDisabledIcon = ""; var trueUpIcon = ""; var trueDownIcon = ""; var trueOverIcon = ""; var trueDisabledIcon = ""; var phase = "up"; var fui = "falseUpIcon"; var fus = "falseUpSkin"; var fdi = "falseDownIcon"; var fds = "falseDownSkin"; var frs = "falseOverSkin"; var fri = "falseOverIcon"; var dfi = "falseDisabledIcon"; var dfs = "falseDisabledSkin"; var tui = "trueUpIcon"; var tus = "trueUpSkin"; var tdi = "trueDownIcon"; var tds = "trueDownSkin"; var trs = "trueOverSkin"; var tri = "trueOverIcon"; var dts = "trueDisabledSkin"; var dti = "trueDisabledIcon"; var rolloverSkin = mx.controls.SimpleButton.prototype.frs; var rolloverIcon = mx.controls.SimpleButton.prototype.fri; var upSkin = mx.controls.SimpleButton.prototype.fus; var downSkin = mx.controls.SimpleButton.prototype.fds; var disabledSkin = mx.controls.SimpleButton.prototype.dfs; var upIcon = mx.controls.SimpleButton.prototype.fui; var downIcon = mx.controls.SimpleButton.prototype.fdi; var disabledIcon = mx.controls.SimpleButton.prototype.dfi; var initializing = true; var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"]; var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"]; var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"]; var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7}; }Symbol 1025 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0class mx.controls.listclasses.DataSelector extends Object { var __vPosition, setVPosition, __dataProvider, enabled, lastSelID, lastSelected, selected, invUpdateControl, invalidate, multipleSelection, updateControl, __rowCount, rows; function DataSelector () { super(); } static function Initialize(obj) { var _local3 = mixinProps; var _local4 = _local3.length; obj = obj.prototype; var _local1 = 0; while (_local1 < _local4) { obj[_local3[_local1]] = mixins[_local3[_local1]]; _local1++; } mixins.createProp(obj, "dataProvider", true); mixins.createProp(obj, "length", false); mixins.createProp(obj, "value", false); mixins.createProp(obj, "selectedIndex", true); mixins.createProp(obj, "selectedIndices", true); mixins.createProp(obj, "selectedItems", false); mixins.createProp(obj, "selectedItem", true); return(true); } function createProp(obj, propName, setter) { var p = (propName.charAt(0).toUpperCase() + propName.substr(1)); var _local2 = null; var _local3 = function (Void) { return(this["get" + p]()); }; if (setter) { _local2 = function (val) { this["set" + p](val); }; } obj.addProperty(propName, _local3, _local2); } function setDataProvider(dP) { if (__vPosition != 0) { setVPosition(0); } clearSelected(); __dataProvider.removeEventListener(this); __dataProvider = dP; dP.addEventListener("modelChanged", this); dP.addView(this); modelChanged({eventName:"updateAll"}); } function getDataProvider(Void) { return(__dataProvider); } function addItemAt(index, label, data) { if ((index < 0) || (!enabled)) { return(undefined); } var _local2 = __dataProvider; if (_local2 == undefined) { _local2 = (__dataProvider = new Array()); _local2.addEventListener("modelChanged", this); index = 0; } if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) { _local2.addItemAt(index, label); } else { _local2.addItemAt(index, {label:label, data:data}); } } function addItem(label, data) { addItemAt(__dataProvider.length, label, data); } function removeItemAt(index) { return(__dataProvider.removeItemAt(index)); } function removeAll(Void) { __dataProvider.removeAll(); } function replaceItemAt(index, newLabel, newData) { if (typeof(newLabel) == "object") { __dataProvider.replaceItemAt(index, newLabel); } else { __dataProvider.replaceItemAt(index, {label:newLabel, data:newData}); } } function sortItemsBy(fieldName, order) { lastSelID = __dataProvider.getItemID(lastSelected); __dataProvider.sortItemsBy(fieldName, order); } function sortItems(compareFunc, order) { lastSelID = __dataProvider.getItemID(lastSelected); __dataProvider.sortItems(compareFunc, order); } function getLength(Void) { return(__dataProvider.length); } function getItemAt(index) { return(__dataProvider.getItemAt(index)); } function modelChanged(eventObj) { var _local3 = eventObj.firstItem; var _local6 = eventObj.lastItem; var _local7 = eventObj.eventName; if (_local7 == undefined) { _local7 = eventObj.event; _local3 = eventObj.firstRow; _local6 = eventObj.lastRow; if (_local7 == "addRows") { _local7 = (eventObj.eventName = "addItems"); } else if (_local7 == "deleteRows") { _local7 = (eventObj.eventName = "removeItems"); } else if (_local7 == "updateRows") { _local7 = (eventObj.eventName = "updateItems"); } } if (_local7 == "addItems") { for (var _local2 in selected) { var _local5 = selected[_local2]; if ((_local5 != undefined) && (_local5 >= _local3)) { selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1); } } } else if (_local7 == "removeItems") { if (__dataProvider.length == 0) { delete selected; } else { var _local9 = eventObj.removedIDs; var _local10 = _local9.length; var _local2 = 0; while (_local2 < _local10) { var _local4 = _local9[_local2]; if (selected[_local4] != undefined) { delete selected[_local4]; } _local2++; } for (_local2 in selected) { if (selected[_local2] >= _local3) { selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1); } } } } else if (_local7 == "sort") { if (typeof(__dataProvider.getItemAt(0)) != "object") { delete selected; } else { var _local10 = __dataProvider.length; var _local2 = 0; while (_local2 < _local10) { if (isSelected(_local2)) { var _local4 = __dataProvider.getItemID(_local2); if (_local4 == lastSelID) { lastSelected = _local2; } selected[_local4] = _local2; } _local2++; } } } else if (_local7 == "filterModel") { setVPosition(0); } invUpdateControl = true; invalidate(); } function getValue(Void) { var _local2 = getSelectedItem(); if (typeof(_local2) != "object") { return(_local2); } return(((_local2.data == undefined) ? (_local2.label) : (_local2.data))); } function getSelectedIndex(Void) { for (var _local3 in selected) { var _local2 = selected[_local3]; if (_local2 != undefined) { return(_local2); } } } function setSelectedIndex(index) { if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) { delete selected; selectItem(index, true); lastSelected = index; invUpdateControl = true; invalidate(); } else if (index == undefined) { clearSelected(); } } function getSelectedIndices(Void) { var _local2 = new Array(); for (var _local3 in selected) { _local2.push(selected[_local3]); } _local2.reverse(); return(((_local2.length > 0) ? (_local2) : undefined)); } function setSelectedIndices(indexArray) { if (multipleSelection != true) { return(undefined); } delete selected; var _local3 = 0; while (_local3 < indexArray.length) { var _local2 = indexArray[_local3]; if ((_local2 >= 0) && (_local2 < __dataProvider.length)) { selectItem(_local2, true); } _local3++; } invUpdateControl = true; updateControl(); } function getSelectedItems(Void) { var _local3 = getSelectedIndices(); var _local4 = new Array(); var _local2 = 0; while (_local2 < _local3.length) { _local4.push(getItemAt(_local3[_local2])); _local2++; } return(((_local4.length > 0) ? (_local4) : undefined)); } function getSelectedItem(Void) { return(__dataProvider.getItemAt(getSelectedIndex())); } function selectItem(index, selectedFlag) { if (selected == undefined) { selected = new Object(); } var _local2 = __dataProvider.getItemID(index); if (_local2 == undefined) { return(undefined); } if (selectedFlag && (!isSelected(index))) { selected[_local2] = index; } else if (!selectedFlag) { delete selected[_local2]; } } function isSelected(index) { var _local2 = __dataProvider.getItemID(index); if (_local2 == undefined) { return(false); } return(selected[_local2] != undefined); } function clearSelected(transition) { var _local3 = 0; for (var _local4 in selected) { var _local2 = selected[_local4]; if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) { rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0)); } _local3++; } delete selected; } static var mixins = new mx.controls.listclasses.DataSelector(); static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"]; }Symbol 1026 MovieClip [__Packages.mx.controls.ComboBase] Frame 0class mx.controls.ComboBase extends mx.core.UIComponent { var getValue, tabEnabled, tabChildren, boundingBox_mc, downArrow_mc, createClassObject, onDownArrow, border_mc, __border, text_mc, focusTextField, __width, __height, getFocusManager, __get__height, height, _parent; function ComboBase () { super(); getValue = _getValue; } function init() { super.init(); tabEnabled = !_editable; tabChildren = _editable; boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function createChildren() { var _local3 = new Object(); _local3.styleName = this; if (downArrow_mc == undefined) { _local3.falseUpSkin = downArrowUpName; _local3.falseOverSkin = downArrowOverName; _local3.falseDownSkin = downArrowDownName; _local3.falseDisabledSkin = downArrowDisabledName; _local3.validateNow = true; _local3.tabEnabled = false; createClassObject(mx.controls.SimpleButton, "downArrow_mc", 19, _local3); downArrow_mc.buttonDownHandler = onDownArrow; downArrow_mc.useHandCursor = false; downArrow_mc.onPressWas = downArrow_mc.onPress; downArrow_mc.onPress = function () { this.trackAsMenuWas = this.trackAsMenu; this.trackAsMenu = true; if (!this._editable) { this._parent.text_mc.trackAsMenu = this.trackAsMenu; } this.onPressWas(); }; downArrow_mc.onDragOutWas = downArrow_mc.onDragOut; downArrow_mc.onDragOut = function () { this.trackAsMenuWas = this.trackAsMenu; this.trackAsMenu = false; if (!this._editable) { this._parent.text_mc.trackAsMenu = this.trackAsMenu; } this.onDragOutWas(); }; downArrow_mc.onDragOverWas = downArrow_mc.onDragOver; downArrow_mc.onDragOver = function () { this.trackAsMenu = this.trackAsMenuWas; if (!this._editable) { this._parent.text_mc.trackAsMenu = this.trackAsMenu; } this.onDragOverWas(); }; } if (border_mc == undefined) { _local3.tabEnabled = false; createClassObject(_global.styles.rectBorderClass, "border_mc", 17, _local3); border_mc.move(0, 0); __border = border_mc; } _local3.borderStyle = "none"; _local3.readOnly = !_editable; _local3.tabEnabled = _editable; if (text_mc == undefined) { createClassObject(mx.controls.TextInput, "text_mc", 18, _local3); text_mc.move(0, 0); text_mc.addEnterEvents(); text_mc.enterHandler = _enterHandler; text_mc.changeHandler = _changeHandler; text_mc.oldOnSetFocus = text_mc.onSetFocus; text_mc.onSetFocus = function () { this.oldOnSetFocus(); this._parent.onSetFocus(); }; text_mc.__set__restrict("^\x1B"); text_mc.oldOnKillFocus = text_mc.onKillFocus; text_mc.onKillFocus = function (n) { this.oldOnKillFocus(n); this._parent.onKillFocus(n); }; text_mc.drawFocus = function (b) { this._parent.drawFocus(b); }; delete text_mc.borderStyle; } focusTextField = text_mc; text_mc.owner = this; layoutChildren(__width, __height); } function onKillFocus() { super.onKillFocus(); Key.removeListener(text_mc); getFocusManager().defaultPushButtonEnabled = true; } function onSetFocus() { super.onSetFocus(); getFocusManager().defaultPushButtonEnabled = false; Key.addListener(text_mc); } function setFocus() { if (_editable) { Selection.setFocus(text_mc); } else { Selection.setFocus(this); } } function setSize(w, h, noEvent) { super.setSize(w, ((h == undefined) ? (__get__height()) : (h)), noEvent); } function setEnabled(enabledFlag) { super.setEnabled(enabledFlag); downArrow_mc.enabled = enabledFlag; text_mc.enabled = enabledFlag; } function setEditable(e) { _editable = e; if (wrapDownArrowButton == false) { if (e) { border_mc.borderStyle = "inset"; text_mc.borderStyle = "inset"; symbolName = "ComboBox"; invalidateStyle(); } else { border_mc.borderStyle = "comboNonEdit"; text_mc.borderStyle = "dropDown"; symbolName = "DropDown"; invalidateStyle(); } } tabEnabled = !e; tabChildren = e; text_mc.tabEnabled = e; if (e) { delete text_mc.onPress; delete text_mc.onRelease; delete text_mc.onReleaseOutside; delete text_mc.onDragOut; delete text_mc.onDragOver; delete text_mc.onRollOver; delete text_mc.onRollOut; } else { text_mc.onPress = function () { this._parent.downArrow_mc.onPress(); }; text_mc.onRelease = function () { this._parent.downArrow_mc.onRelease(); }; text_mc.onReleaseOutside = function () { this._parent.downArrow_mc.onReleaseOutside(); }; text_mc.onDragOut = function () { this._parent.downArrow_mc.onDragOut(); }; text_mc.onDragOver = function () { this._parent.downArrow_mc.onDragOver(); }; text_mc.onRollOver = function () { this._parent.downArrow_mc.onRollOver(); }; text_mc.onRollOut = function () { this._parent.downArrow_mc.onRollOut(); }; text_mc.useHandCursor = false; } } function get editable() { return(_editable); } function set editable(e) { setEditable(e); //return(editable); } function _getValue() { return((_editable ? (text_mc.getText()) : (DSgetValue()))); } function draw() { downArrow_mc.draw(); border_mc.draw(); } function size() { layoutChildren(__width, __height); } function setTheme(t) { downArrowUpName = (t + "downArrow") + "Up_mc"; downArrowDownName = (t + "downArrow") + "Down_mc"; downArrowDisabledName = (t + "downArrow") + "Disabled_mc"; } function get text() { return(text_mc.getText()); } function set text(t) { setText(t); //return(text); } function setText(t) { text_mc.setText(t); } function get textField() { return(text_mc); } function get restrict() { return(text_mc.__get__restrict()); } function set restrict(w) { text_mc.__set__restrict(w); //return(restrict); } function invalidateStyle() { downArrow_mc.invalidateStyle(); text_mc.invalidateStyle(); border_mc.invalidateStyle(); } function layoutChildren(w, h) { if (downArrow_mc == undefined) { return(undefined); } if (wrapDownArrowButton) { var _local2 = border_mc.__get__borderMetrics(); downArrow_mc._width = (downArrow_mc._height = (h - _local2.top) - _local2.bottom); downArrow_mc.move((w - downArrow_mc._width) - _local2.right, _local2.top); border_mc.setSize(w, h); text_mc.setSize(w - downArrow_mc._width, h); } else { downArrow_mc.move(w - downArrow_mc._width, 0); border_mc.setSize(w - downArrow_mc.width, h); text_mc.setSize(w - downArrow_mc._width, h); downArrow_mc._height = height; } } function _changeHandler(obj) { } function _enterHandler(obj) { var _local2 = _parent; obj.target = _local2; _local2.dispatchEvent(obj); } function get tabIndex() { return(text_mc.__get__tabIndex()); } function set tabIndex(w) { text_mc.__set__tabIndex(w); //return(tabIndex); } static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase); static var symbolName = "ComboBase"; static var symbolOwner = mx.controls.ComboBase; static var version = "2.0.2.127"; var _editable = false; var downArrowUpName = "ScrollDownArrowUp"; var downArrowDownName = "ScrollDownArrowDown"; var downArrowOverName = "ScrollDownArrowOver"; var downArrowDisabledName = "ScrollDownArrowDisabled"; var wrapDownArrowButton = true; var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue; var multipleSelection = false; }Symbol 410 MovieClip [__Packages.mx.skins.Border] Frame 0class mx.skins.Border extends mx.core.UIObject { function Border () { super(); } function init(Void) { super.init(); } static var symbolName = "Border"; static var symbolOwner = mx.skins.Border; var className = "Border"; var tagBorder = 0; var idNames = new Array("border_mc"); }Symbol 427 MovieClip [__Packages.mx.skins.RectBorder] Frame 0class mx.skins.RectBorder extends mx.skins.Border { var __width, __height, offset, __borderMetrics; function RectBorder () { super(); } function get width() { return(__width); } function get height() { return(__height); } function init(Void) { super.init(); } function draw(Void) { size(); } function getBorderMetrics(Void) { var _local2 = offset; if (__borderMetrics == undefined) { __borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2}; } else { __borderMetrics.left = _local2; __borderMetrics.top = _local2; __borderMetrics.right = _local2; __borderMetrics.bottom = _local2; } return(__borderMetrics); } function get borderMetrics() { return(getBorderMetrics()); } function drawBorder(Void) { } function size(Void) { drawBorder(); } function setColor(Void) { drawBorder(); } static var symbolName = "RectBorder"; static var symbolOwner = mx.skins.RectBorder; static var version = "2.0.2.127"; var className = "RectBorder"; var borderStyleName = "borderStyle"; var borderColorName = "borderColor"; var shadowColorName = "shadowColor"; var highlightColorName = "highlightColor"; var buttonColorName = "buttonColor"; var backgroundColorName = "backgroundColor"; }Symbol 1040 MovieClip [__Packages.mx.controls.TextInput] Frame 0class mx.controls.TextInput extends mx.core.UIComponent { var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled; function TextInput () { super(); } function addEventListener(event, handler) { if (event == "enter") { addEnterEvents(); } super.addEventListener(event, handler); } function enterOnKeyDown() { if (Key.getAscii() == 13) { owner.dispatchEvent({type:"enter"}); } } function addEnterEvents() { if (enterListener == undefined) { enterListener = new Object(); enterListener.owner = this; enterListener.onKeyDown = enterOnKeyDown; } } function init(Void) { super.init(); label.styleName = this; tabChildren = true; tabEnabled = false; focusTextField = label; _color = mx.core.UIObject.textColorList; label.onSetFocus = function () { this._parent.onSetFocus(); }; label.onKillFocus = function (n) { this._parent.onKillFocus(n); }; label.drawFocus = function (b) { this._parent.drawFocus(b); }; label.onChanged = onLabelChanged; } function setFocus() { Selection.setFocus(label); } function onLabelChanged(Void) { _parent.dispatchEvent({type:"change"}); _parent.dispatchValueChangedEvent(text); } function createChildren(Void) { super.createChildren(); if (border_mc == undefined) { createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this}); } border_mc.swapDepths(label); label.autoSize = "none"; } function get html() { return(getHtml()); } function set html(value) { setHtml(value); //return(html); } function getHtml() { return(label.html); } function setHtml(value) { if (value != label.html) { label.html = value; } } function get text() { return(getText()); } function set text(t) { setText(t); //return(text); } function getText() { if (initializing) { return(initText); } if (label.html == true) { return(label.htmlText); } return(label.text); } function setText(t) { if (initializing) { initText = t; } else { var _local2 = label; if (_local2.html == true) { _local2.htmlText = t; } else { _local2.text = t; } } dispatchValueChangedEvent(t); } function size(Void) { border_mc.setSize(__get__width(), __get__height()); var _local2 = border_mc.__get__borderMetrics(); var _local6 = _local2.left + _local2.right; var _local3 = _local2.top + _local2.bottom; var _local5 = _local2.left; var _local4 = _local2.top; tfx = _local5; tfy = _local4; tfw = __get__width() - _local6; tfh = __get__height() - _local3; label.move(tfx, tfy); label.setSize(tfw, tfh + 1); } function setEnabled(enable) { label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic"); label.selectable = enable; var _local2 = getStyle((enable ? "color" : "disabledColor")); if (_local2 == undefined) { _local2 = (enable ? 0 : 8947848); } setColor(_local2); } function setColor(col) { label.textColor = col; } function onKillFocus(newFocus) { if (enterListener != undefined) { Key.removeListener(enterListener); } if (bind != undefined) { updateModel(text); } super.onKillFocus(newFocus); } function onSetFocus(oldFocus) { var f = Selection.getFocus(); var o = eval (f); if (o != label) { Selection.setFocus(label); return(undefined); } if (enterListener != undefined) { Key.addListener(enterListener); } super.onSetFocus(oldFocus); } function draw(Void) { var _local2 = label; var _local4 = getText(); if (initializing) { initializing = false; delete initText; } var _local3 = _getTextFormat(); _local2.embedFonts = _local3.embedFonts == true; if (_local3 != undefined) { _local2.setTextFormat(_local3); _local2.setNewTextFormat(_local3); } _local2.multiline = false; _local2.wordWrap = false; if (_local2.html == true) { _local2.setTextFormat(_local3); _local2.htmlText = _local4; } else { _local2.text = _local4; } _local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic"); size(); } function setEditable(s) { __editable = s; label.type = (s ? "input" : "dynamic"); } function get maxChars() { return(label.maxChars); } function set maxChars(w) { label.maxChars = w; //return(maxChars); } function get length() { return(label.length); } function get restrict() { return(label.restrict); } function set restrict(w) { label.restrict = ((w == "") ? null : (w)); //return(restrict); } function get hPosition() { return(label.hscroll); } function set hPosition(w) { label.hscroll = w; //return(hPosition); } function get maxHPosition() { return(label.maxhscroll); } function get editable() { return(__editable); } function set editable(w) { setEditable(w); //return(editable); } function get password() { return(label.password); } function set password(w) { label.password = w; //return(password); } function get tabIndex() { return(label.tabIndex); } function set tabIndex(w) { label.tabIndex = w; //return(tabIndex); } function set _accProps(val) { label._accProps = val; //return(_accProps); } function get _accProps() { return(label._accProps); } static var symbolName = "TextInput"; static var symbolOwner = mx.controls.TextInput; static var version = "2.0.2.127"; var className = "TextInput"; var initializing = true; var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); var _maxWidth = mx.core.UIComponent.kStretch; var __editable = true; var initText = ""; }Symbol 1027 MovieClip [__Packages.mx.controls.ComboBox] Frame 0class mx.controls.ComboBox extends mx.controls.ComboBase { var __set__editable, editable, __labels, data, __dropdownWidth, __width, _editable, selectedIndex, __dropdown, dataProvider, __labelFunction, createObject, border_mc, mask, text_mc, dispatchValueChangedEvent, getValue, length, selectedItem, _y, isPressed, owner, __set__visible, height, localToGlobal, __selectedIndexOnDropdown, __initialSelectedIndexOnDropdown, __get__height, getStyle, _parent, width, __dataProvider, selected, dispatchEvent; function ComboBox () { super(); } function init() { super.init(); } function createChildren() { super.createChildren(); __set__editable(editable); if (__labels.length > 0) { var _local6 = new Array(); var _local3 = 0; while (_local3 < labels.length) { _local6.addItem({label:labels[_local3], data:data[_local3]}); _local3++; } setDataProvider(_local6); } dropdownWidth = (((typeof(__dropdownWidth) == "number") ? (__dropdownWidth) : (__width))); if (!_editable) { selectedIndex = 0; } initializing = false; } function onKillFocus(n) { if (_showingDropdown && (n != null)) { displayDropdown(false); } super.onKillFocus(); } function getDropdown() { if (initializing) { return(undefined); } if (!hasDropdown()) { var _local3 = new Object(); _local3.styleName = this; if (dropdownBorderStyle != undefined) { _local3.borderStyle = dropdownBorderStyle; } _local3._visible = false; __dropdown = mx.managers.PopUpManager.createPopUp(this, mx.controls.List, false, _local3, true); __dropdown.scroller.mask.removeMovieClip(); if (dataProvider == undefined) { dataProvider = new Array(); } __dropdown.setDataProvider(dataProvider); __dropdown.selectMultiple = false; __dropdown.rowCount = __rowCount; __dropdown.selectedIndex = selectedIndex; __dropdown.vScrollPolicy = "auto"; __dropdown.labelField = __labelField; __dropdown.labelFunction = __labelFunction; __dropdown.owner = this; __dropdown.changeHandler = _changeHandler; __dropdown.scrollHandler = _scrollHandler; __dropdown.itemRollOverHandler = _itemRollOverHandler; __dropdown.itemRollOutHandler = _itemRollOutHandler; __dropdown.resizeHandler = _resizeHandler; __dropdown.mouseDownOutsideHandler = function (eventObj) { var _local3 = this.owner; var _local4 = new Object(); _local4.x = _local3._root._xmouse; _local4.y = _local3._root._ymouse; _local3._root.localToGlobal(_local4); if (_local3.hitTest(_local4.x, _local4.y, false)) { } else if ((!this.wrapDownArrowButton) && (this.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false))) { } else { _local3.displayDropdown(false); } }; __dropdown.onTweenUpdate = function (v) { this._y = v; }; __dropdown.setSize(__dropdownWidth, __dropdown.height); createObject("BoundingBox", "mask", 20); mask._y = border_mc.height; mask._width = __dropdownWidth; mask._height = __dropdown.height; mask._visible = false; __dropdown.setMask(mask); } return(__dropdown); } function setSize(w, h, noEvent) { super.setSize(w, h, noEvent); __dropdownWidth = w; __dropdown.rowHeight = h; __dropdown.setSize(__dropdownWidth, __dropdown.height); } function setEditable(e) { super.setEditable(e); if (e) { text_mc.setText(""); } else { text_mc.setText(selectedLabel); } } function get labels() { return(__labels); } function set labels(lbls) { __labels = lbls; setDataProvider(lbls); //return(labels); } function getLabelField() { return(__labelField); } function get labelField() { return(getLabelField()); } function setLabelField(s) { __dropdown.labelField = (__labelField = s); text_mc.setText(selectedLabel); } function set labelField(s) { setLabelField(s); //return(labelField); } function getLabelFunction() { return(__labelFunction); } function get labelFunction() { return(getLabelFunction()); } function set labelFunction(f) { __dropdown.labelFunction = (__labelFunction = f); text_mc.setText(selectedLabel); //return(labelFunction); } function setSelectedItem(v) { super.setSelectedItem(v); __dropdown.selectedItem = v; text_mc.setText(selectedLabel); } function setSelectedIndex(v) { super.setSelectedIndex(v); __dropdown.selectedIndex = v; if (v != undefined) { text_mc.setText(selectedLabel); } dispatchValueChangedEvent(getValue()); } function setRowCount(count) { if (isNaN(count)) { return(undefined); } __rowCount = count; __dropdown.setRowCount(count); } function get rowCount() { return(Math.max(1, Math.min(length, __rowCount))); } function set rowCount(v) { setRowCount(v); //return(rowCount); } function setDropdownWidth(w) { __dropdownWidth = w; __dropdown.setSize(w, __dropdown.height); } function get dropdownWidth() { return(__dropdownWidth); } function set dropdownWidth(v) { setDropdownWidth(v); //return(dropdownWidth); } function get dropdown() { return(getDropdown()); } function setDataProvider(dp) { super.setDataProvider(dp); __dropdown.setDataProvider(dp); if (!_editable) { selectedIndex = 0; } } function open() { displayDropdown(true); } function close() { displayDropdown(false); } function get selectedLabel() { var _local2 = selectedItem; if (_local2 == undefined) { return(""); } if (labelFunction != undefined) { return(labelFunction(_local2)); } if (typeof(_local2) != "object") { return(_local2); } if (_local2[labelField] != undefined) { return(_local2[labelField]); } if (_local2.label != undefined) { return(_local2.label); } var _local3 = " "; for (var _local4 in _local2) { if (_local4 != "__ID__") { _local3 = (_local2[_local4] + ", ") + _local3; } } _local3 = _local3.substring(0, _local3.length - 3); return(_local3); } function hasDropdown() { return((__dropdown != undefined) && (__dropdown.valueOf() != undefined)); } function tweenEndShow(value) { _y = value; isPressed = true; owner.dispatchEvent({type:"open", target:owner}); } function tweenEndHide(value) { _y = value; __set__visible(false); owner.dispatchEvent({type:"close", target:owner}); } function displayDropdown(show) { if (show == _showingDropdown) { return(undefined); } var _local3 = new Object(); _local3.x = 0; _local3.y = height; localToGlobal(_local3); if (show) { __selectedIndexOnDropdown = selectedIndex; __initialSelectedIndexOnDropdown = selectedIndex; getDropdown(); var _local2 = __dropdown; _local2.isPressed = true; _local2.rowCount = rowCount; _local2.visible = show; _local2._parent.globalToLocal(_local3); _local2.onTweenEnd = tweenEndShow; var _local5; var _local8; if ((_local3.y + _local2.height) > Stage.height) { _local5 = _local3.y - __get__height(); _local8 = _local5 - _local2.height; mask._y = -_local2.height; } else { _local5 = _local3.y - _local2.height; _local8 = _local3.y; mask._y = border_mc.height; } var _local6 = _local2.selectedIndex; if (_local6 == undefined) { _local6 = 0; } var _local4 = _local2.vPosition; _local4 = _local6 - 1; _local4 = Math.min(Math.max(_local4, 0), _local2.length - _local2.rowCount); _local2.vPosition = _local4; _local2.move(_local3.x, _local5); _local2.tween = new mx.effects.Tween(__dropdown, _local5, _local8, getStyle("openDuration")); } else { __dropdown._parent.globalToLocal(_local3); delete __dropdown.dragScrolling; __dropdown.onTweenEnd = tweenEndHide; __dropdown.tween = new mx.effects.Tween(__dropdown, __dropdown._y, _local3.y - __dropdown.height, getStyle("openDuration")); if (__initialSelectedIndexOnDropdown != selectedIndex) { dispatchChangeEvent(undefined, __initialSelectedIndexOnDropdown, selectedIndex); } } var _local9 = getStyle("openEasing"); if (_local9 != undefined) { __dropdown.tween.easingEquation = _local9; } _showingDropdown = show; } function onDownArrow() { _parent.displayDropdown(!_parent._showingDropdown); } function keyDown(e) { if (e.ctrlKey && (e.code == 40)) { displayDropdown(true); } else if (e.ctrlKey && (e.code == 38)) { displayDropdown(false); dispatchChangeEvent(undefined, __selectedIndexOnDropdown, selectedIndex); } else if (e.code == 27) { displayDropdown(false); } else if (e.code == 13) { if (_showingDropdown) { selectedIndex = __dropdown.selectedIndex; displayDropdown(false); } } else if (((((!_editable) || (e.code == 38)) || (e.code == 40)) || (e.code == 33)) || (e.code == 34)) { selectedIndex = 0 + selectedIndex; bInKeyDown = true; var _local3 = dropdown; _local3.keyDown(e); bInKeyDown = false; selectedIndex = __dropdown.selectedIndex; } } function invalidateStyle(styleProp) { __dropdown.invalidateStyle(styleProp); super.invalidateStyle(styleProp); } function changeTextStyleInChildren(styleProp) { if (dropdown.stylecache != undefined) { delete dropdown.stylecache[styleProp]; delete dropdown.stylecache.tf; } __dropdown.changeTextStyleInChildren(styleProp); super.changeTextStyleInChildren(styleProp); } function changeColorStyleInChildren(sheetName, styleProp, newValue) { if (dropdown.stylecache != undefined) { delete dropdown.stylecache[styleProp]; delete dropdown.stylecache.tf; } __dropdown.changeColorStyleInChildren(sheetName, styleProp, newValue); super.changeColorStyleInChildren(sheetName, styleProp, newValue); } function notifyStyleChangeInChildren(sheetName, styleProp, newValue) { if (dropdown.stylecache != undefined) { delete dropdown.stylecache[styleProp]; delete dropdown.stylecache.tf; } __dropdown.notifyStyleChangeInChildren(sheetName, styleProp, newValue); super.notifyStyleChangeInChildren(sheetName, styleProp, newValue); } function onUnload() { __dropdown.removeMovieClip(); } function _resizeHandler() { var _local2 = owner; _local2.mask._width = width; _local2.mask._height = height; } function _changeHandler(obj) { var _local2 = owner; var _local3 = _local2.selectedIndex; obj.target = _local2; if (this == owner.text_mc) { _local2.selectedIndex = undefined; _local2.dispatchChangeEvent(obj, -1, -2); } else { _local2.selectedIndex = selectedIndex; if (!_local2._showingDropdown) { _local2.dispatchChangeEvent(obj, _local3, _local2.selectedIndex); } else if (!_local2.bInKeyDown) { _local2.displayDropdown(false); } } } function _scrollHandler(obj) { var _local2 = owner; obj.target = _local2; _local2.dispatchEvent(obj); } function _itemRollOverHandler(obj) { var _local2 = owner; obj.target = _local2; _local2.dispatchEvent(obj); } function _itemRollOutHandler(obj) { var _local2 = owner; obj.target = _local2; _local2.dispatchEvent(obj); } function modelChanged(eventObj) { super.modelChanged(eventObj); if (0 == __dataProvider.length) { text_mc.setText(""); delete selected; } else if ((__dataProvider.length == ((eventObj.lastItem - eventObj.firstItem) + 1)) && (eventObj.eventName == "addItems")) { selectedIndex = 0; } } function dispatchChangeEvent(obj, prevValue, newValue) { var _local2; if (prevValue != newValue) { if ((obj != undefined) && (obj.type == "change")) { _local2 = obj; } else { _local2 = {type:"change"}; } dispatchEvent(_local2); } } static var symbolName = "ComboBox"; static var symbolOwner = mx.controls.ComboBox; static var version = "2.0.2.127"; var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters); var className = "ComboBox"; var _showingDropdown = false; var __rowCount = 5; var dropdownBorderStyle = undefined; var initializing = true; var __labelField = "label"; var bInKeyDown = false; }Symbol 1041 MovieClip [__Packages.mx.managers.PopUpManager] Frame 0class mx.managers.PopUpManager { var popUp, setSize, move, modalWindow, _parent, _name, _visible, owner; function PopUpManager () { } static function createModalWindow(parent, o, broadcastOutsideEvents) { var _local2 = parent.createChildAtDepth("Modal", mx.managers.DepthManager.kTopmost); _local2.setDepthBelow(o); o.modalID = _local2._name; _local2._alpha = _global.style.modalTransparency; _local2.tabEnabled = false; if (broadcastOutsideEvents) { _local2.onPress = mixins.onPress; } else { _local2.onPress = mixins.nullFunction; } _local2.onRelease = mixins.nullFunction; _local2.resize = mixins.resize; mx.managers.SystemManager.init(); mx.managers.SystemManager.addEventListener("resize", _local2); _local2.resize(); _local2.useHandCursor = false; _local2.popUp = o; o.modalWindow = _local2; o.deletePopUp = mixins.deletePopUp; o.setVisible = mixins.setVisible; o.getVisible = mixins.getVisible; o.addProperty("visible", o.getVisible, o.setVisible); } static function createPopUp(parent, className, modal, initobj, broadcastOutsideEvents) { if (mixins == undefined) { mixins = new mx.managers.PopUpManager(); } if (broadcastOutsideEvents == undefined) { broadcastOutsideEvents = false; } var _local5 = parent._root; if (_local5 == undefined) { _local5 = _root; } while (parent != _local5) { parent = parent._parent; } initobj.popUp = true; var _local4 = parent.createClassChildAtDepth(className, ((broadcastOutsideEvents || (modal)) ? (mx.managers.DepthManager.kTopmost) : (mx.managers.DepthManager.kTop)), initobj); var _local2 = _root; var _local6 = _local2.focusManager != undefined; while (_local2._parent != undefined) { _local2 = _local2._parent._root; if (_local2.focusManager != undefined) { _local6 = true; break; } } if (_local6) { _local4.createObject("FocusManager", "focusManager", -1); if (_local4._visible == false) { mx.managers.SystemManager.deactivate(_local4); } } if (modal) { createModalWindow(parent, _local4, broadcastOutsideEvents); } else { if (broadcastOutsideEvents) { _local4.mouseListener = new Object(); _local4.mouseListener.owner = _local4; _local4.mouseListener.onMouseDown = mixins.onMouseDown; Mouse.addListener(_local4.mouseListener); } _local4.deletePopUp = mixins.deletePopUp; } return(_local4); } function onPress(Void) { var _local3 = popUp._root; if (_local3 == undefined) { _local3 = _root; } if (popUp.hitTest(_local3._xmouse, _local3._ymouse, false)) { return(undefined); } popUp.dispatchEvent({type:"mouseDownOutside"}); } function nullFunction(Void) { } function resize(Void) { var _local2 = mx.managers.SystemManager.__get__screen(); setSize(_local2.width, _local2.height); move(_local2.x, _local2.y); } function deletePopUp(Void) { if (modalWindow != undefined) { _parent.destroyObject(modalWindow._name); } _parent.destroyObject(_name); } function setVisible(v, noEvent) { super.setVisible(v, noEvent); modalWindow._visible = v; } function getVisible(Void) { return(_visible); } function onMouseDown(Void) { var _local3 = owner._root; if (_local3 == undefined) { _local3 = _root; } var _local4 = new Object(); _local4.x = _local3._xmouse; _local4.y = _local3._ymouse; _local3.localToGlobal(_local4); if (owner.hitTest(_local4.x, _local4.y, false)) { } else { owner.mouseDownOutsideHandler(owner); } } static var version = "2.0.2.127"; static var mixins = undefined; }Symbol 420 MovieClip [__Packages.mx.managers.DepthManager] Frame 0class mx.managers.DepthManager { var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth; function DepthManager () { MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = createChildAtDepth; MovieClip.prototype.setDepthTo = setDepthTo; MovieClip.prototype.setDepthAbove = setDepthAbove; MovieClip.prototype.setDepthBelow = setDepthBelow; MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth; MovieClip.prototype.shuffleDepths = shuffleDepths; MovieClip.prototype.getDepthByFlag = getDepthByFlag; MovieClip.prototype.buildDepthTable = buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1); _global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1); _global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1); _global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1); } static function sortFunction(a, b) { if (a.getDepth() > b.getDepth()) { return(1); } return(-1); } static function test(depth) { if (depth == reservedDepth) { return(false); } return(true); } static function createClassObjectAtDepth(className, depthSpace, initObj) { var _local1; switch (depthSpace) { case kCursor : _local1 = holder.createClassChildAtDepth(className, kTopmost, initObj); break; case kTooltip : _local1 = holder.createClassChildAtDepth(className, kTop, initObj); break; } return(_local1); } static function createObjectAtDepth(linkageName, depthSpace, initObj) { var _local1; switch (depthSpace) { case kCursor : _local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj); break; case kTooltip : _local1 = holder.createChildAtDepth(linkageName, kTop, initObj); break; } return(_local1); } function createClassChildAtDepth(className, depthFlag, initObj) { if (_childCounter == undefined) { _childCounter = 0; } var _local3 = buildDepthTable(); var _local2 = getDepthByFlag(depthFlag, _local3); var _local5 = "down"; if (depthFlag == kBottom) { _local5 = "up"; } var _local6; if (_local3[_local2] != undefined) { _local6 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local5); } var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj); if (_local6 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local6, _local3, _local5); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function createChildAtDepth(linkageName, depthFlag, initObj) { if (_childCounter == undefined) { _childCounter = 0; } var _local3 = buildDepthTable(); var _local2 = getDepthByFlag(depthFlag, _local3); var _local5 = "down"; if (depthFlag == kBottom) { _local5 = "up"; } var _local6; if (_local3[_local2] != undefined) { _local6 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local5); } var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj); if (_local6 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local6, _local3, _local5); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function setDepthTo(depthFlag) { var _local2 = _parent.buildDepthTable(); var _local3 = _parent.getDepthByFlag(depthFlag, _local2); if (_local2[_local3] != undefined) { shuffleDepths(MovieClip(this), _local3, _local2, undefined); } else { swapDepths(_local3); } if (depthFlag == kTopmost) { _topmost = true; } else { delete _topmost; } } function setDepthAbove(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local2 = targetInstance.getDepth() + 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local2] != undefined) && (getDepth() < _local2)) { _local2 = _local2 - 1; } if (_local2 > highestDepth) { _local2 = highestDepth; } if (_local2 == highestDepth) { _parent.shuffleDepths(this, _local2, _local3, "down"); } else if (_local3[_local2] != undefined) { _parent.shuffleDepths(this, _local2, _local3, undefined); } else { swapDepths(_local2); } } function setDepthBelow(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local6 = targetInstance.getDepth() - 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local6] != undefined) && (getDepth() > _local6)) { _local6 = _local6 + 1; } var _local4 = lowestDepth + numberOfAuthortimeLayers; var _local5; for (_local5 in _local3) { var _local2 = _local3[_local5]; if (_local2._parent != undefined) { _local4 = Math.min(_local4, _local2.getDepth()); } } if (_local6 < _local4) { _local6 = _local4; } if (_local6 == _local4) { _parent.shuffleDepths(this, _local6, _local3, "up"); } else if (_local3[_local6] != undefined) { _parent.shuffleDepths(this, _local6, _local3, undefined); } else { swapDepths(_local6); } } function findNextAvailableDepth(targetDepth, depthTable, direction) { var _local5 = lowestDepth + numberOfAuthortimeLayers; if (targetDepth < _local5) { targetDepth = _local5; } if (depthTable[targetDepth] == undefined) { return(targetDepth); } var _local1 = targetDepth; var _local2 = targetDepth; if (direction == "down") { while (depthTable[_local2] != undefined) { _local2--; } return(_local2); } while (depthTable[_local1] != undefined) { _local1++; } return(_local1); } function shuffleDepths(subject, targetDepth, depthTable, direction) { var _local9 = lowestDepth + numberOfAuthortimeLayers; var _local8 = _local9; var _local5; for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local9 = Math.min(_local9, _local7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = "up"; } else { direction = "down"; } } var _local1 = new Array(); for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local1.push(_local7); } } _local1.sort(sortFunction); if (direction == "up") { var _local3; var _local11; do { if (_local1.length <= 0) { break; } _local3 = _local1.pop(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } _local11 = subject.getDepth(); _local3 = _local1.pop(); var _local4 = _local3.getDepth(); if (_local11 > (_local4 + 1)) { if (_local4 >= 0) { subject.swapDepths(_local4 + 1); } else if ((_local11 > _local8) && (_local4 < _local8)) { subject.swapDepths(_local8); } } subject.swapDepths(_local3); } while (_local4 != targetDepth); } else if (direction == "down") { var _local3; do { if (_local1.length <= 0) { break; } _local3 = _local1.shift(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } var _local11 = _local3.getDepth(); _local3 = _local1.shift(); var _local4 = _local3.getDepth(); if ((_local11 < (_local4 - 1)) && (_local4 > 0)) { subject.swapDepths(_local4 - 1); } subject.swapDepths(_local3); } while (_local4 != targetDepth); } } function getDepthByFlag(depthFlag, depthTable) { var _local2 = 0; if ((depthFlag == kTop) || (depthFlag == kNotopmost)) { var _local5 = 0; var _local7 = false; var _local8; for (_local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { if (!_local9._topmost) { _local2 = Math.max(_local2, _local9.getDepth()); } else if (!_local7) { _local5 = _local9.getDepth(); _local7 = true; } else { _local5 = Math.min(_local5, _local9.getDepth()); } } } } _local2 = _local2 + 20; if (_local7) { if (_local2 >= _local5) { _local2 = _local5 - 1; } } } else if (depthFlag == kBottom) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.min(_local2, _local9.getDepth()); } } } _local2 = _local2 - 20; } else if (depthFlag == kTopmost) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.max(_local2, _local9.getDepth()); } } } _local2 = _local2 + 100; } if (_local2 >= highestDepth) { _local2 = highestDepth; } var _local6 = lowestDepth + numberOfAuthortimeLayers; for (var _local9 in depthTable) { var _local4 = depthTable[_local9]; if (_local4._parent != undefined) { _local6 = Math.min(_local6, _local4.getDepth()); } } if (_local2 <= _local6) { _local2 = _local6; } return(_local2); } function buildDepthTable(Void) { var _local5 = new Array(); var _local4; for (_local4 in this) { var _local2 = this[_local4]; var _local3 = typeof(_local2); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) { if (_local2._parent == this) { _local5[_local2.getDepth()] = _local2; } } } return(_local5); } static var reservedDepth = 1048575; static var highestDepth = 1048574; static var lowestDepth = -16383; static var numberOfAuthortimeLayers = 383; static var kCursor = 101; static var kTooltip = 102; static var kTop = 201; static var kBottom = 202; static var kTopmost = 203; static var kNotopmost = 204; static var holder = _root.createEmptyMovieClip("reserved", reservedDepth); static var __depthManager = new mx.managers.DepthManager(); }Symbol 421 MovieClip [__Packages.mx.managers.SystemManager] Frame 0class mx.managers.SystemManager { static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent; function SystemManager () { } static function init(Void) { if (_initialized == false) { _initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); _xAddEventListener = addEventListener; addEventListener = __addEventListener; _xRemoveEventListener = removeEventListener; removeEventListener = __removeEventListener; } } static function addFocusManager(f) { form = f; f.focusManager.activate(); } static function removeFocusManager(f) { } static function onMouseDown(Void) { var _local1 = form; _local1.focusManager._onMouseDown(); } static function onResize(Void) { var _local7 = Stage.width; var _local6 = Stage.height; var _local9 = _global.origWidth; var _local8 = _global.origHeight; var _local3 = Stage.align; var _local5 = (_local9 - _local7) / 2; var _local4 = (_local8 - _local6) / 2; if (_local3 == "T") { _local4 = 0; } else if (_local3 == "B") { _local4 = _local8 - _local6; } else if (_local3 == "L") { _local5 = 0; } else if (_local3 == "R") { _local5 = _local9 - _local7; } else if (_local3 == "LT") { _local4 = 0; _local5 = 0; } else if (_local3 == "TR") { _local4 = 0; _local5 = _local9 - _local7; } else if (_local3 == "LB") { _local4 = _local8 - _local6; _local5 = 0; } else if (_local3 == "RB") { _local4 = _local8 - _local6; _local5 = _local9 - _local7; } if (__screen == undefined) { __screen = new Object(); } __screen.x = _local5; __screen.y = _local4; __screen.width = _local7; __screen.height = _local6; _root.focusManager.relocate(); dispatchEvent({type:"resize"}); } static function get screen() { init(); if (__screen == undefined) { onResize(); } return(__screen); } static var _initialized = false; static var idleFrames = 0; static var isMouseDown = false; static var forms = new Array(); }Symbol 415 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0class mx.events.EventDispatcher { function EventDispatcher () { } static function _removeEventListener(queue, event, handler) { if (queue != undefined) { var _local4 = queue.length; var _local1; _local1 = 0; while (_local1 < _local4) { var _local2 = queue[_local1]; if (_local2 == handler) { queue.splice(_local1, 1); return(undefined); } _local1++; } } } static function initialize(object) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = _fEventDispatcher.addEventListener; object.removeEventListener = _fEventDispatcher.removeEventListener; object.dispatchEvent = _fEventDispatcher.dispatchEvent; object.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchQueue(queueObj, eventObj) { var _local7 = "__q_" + eventObj.type; var _local4 = queueObj[_local7]; if (_local4 != undefined) { var _local5; for (_local5 in _local4) { var _local1 = _local4[_local5]; var _local3 = typeof(_local1); if ((_local3 == "object") || (_local3 == "movieclip")) { if (_local1.handleEvent != undefined) { _local1.handleEvent(eventObj); } if (_local1[eventObj.type] != undefined) { if (exceptions[eventObj.type] == undefined) { _local1[eventObj.type](eventObj); } } } else { _local1.apply(queueObj, [eventObj]); } } } } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(this, eventObj); } function addEventListener(event, handler) { var _local3 = "__q_" + event; if (this[_local3] == undefined) { this[_local3] = new Array(); } _global.ASSetPropFlags(this, _local3, 1); _removeEventListener(this[_local3], event, handler); this[_local3].push(handler); } function removeEventListener(event, handler) { var _local2 = "__q_" + event; _removeEventListener(this[_local2], event, handler); } static var _fEventDispatcher = undefined; static var exceptions = {move:1, draw:1, load:1}; }Symbol 1042 MovieClip [__Packages.mx.core.View] Frame 0class mx.core.View extends mx.core.UIComponent { var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater; function View () { super(); } function init() { super.init(); tabChildren = true; tabEnabled = false; boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function size() { border_mc.move(0, 0); border_mc.setSize(__get__width(), __get__height()); doLayout(); } function draw() { size(); } function get numChildren() { var _local3 = childNameBase; var _local2 = 0; while (true) { if (this[_local3 + _local2] == undefined) { return(_local2); } _local2++; } } function get tabIndex() { return((tabEnabled ? (__tabIndex) : undefined)); } function set tabIndex(n) { __tabIndex = n; //return(tabIndex); } function addLayoutObject(object) { } function createChild(className, instanceName, initProps) { if (depth == undefined) { depth = 1; } var _local2; if (typeof(className) == "string") { _local2 = createObject(className, instanceName, depth++, initProps); } else { _local2 = createClassObject(className, instanceName, depth++, initProps); } if (_local2 == undefined) { _local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps); } else { this[childNameBase + numChildren] = _local2; _local2._complete = true; childLoaded(_local2); } addLayoutObject(_local2); return(_local2); } function getChildAt(childIndex) { return(this[childNameBase + childIndex]); } function destroyChildAt(childIndex) { if (!((childIndex >= 0) && (childIndex < numChildren))) { return(undefined); } var _local4 = childNameBase + childIndex; var _local6 = numChildren; var _local3; for (_local3 in this) { if (_local3 == _local4) { _local4 = ""; destroyObject(_local3); break; } } var _local2 = Number(childIndex); while (_local2 < (_local6 - 1)) { this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)]; _local2++; } delete this[childNameBase + (_local6 - 1)]; depth--; } function initLayout() { if (!hasBeenLayedOut) { doLayout(); } } function doLayout() { hasBeenLayedOut = true; } function createChildren() { if (border_mc == undefined) { border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this}); } doLater(this, "initLayout"); } function convertToUIObject(obj) { } function childLoaded(obj) { convertToUIObject(obj); } static function extension() { mx.core.ExternalContent.enableExternalContent(); } static var symbolName = "View"; static var symbolOwner = mx.core.View; static var version = "2.0.2.127"; var className = "View"; static var childNameBase = "_child"; var hasBeenLayedOut = false; var _loadExternalClass = "UIComponent"; }Symbol 1043 MovieClip [__Packages.mx.core.ExternalContent] Frame 0class mx.core.ExternalContent { var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded; function ExternalContent () { } function loadExternal(url, placeholderClassName, instanceName, depth, initProps) { var _local2; _local2 = createObject(placeholderClassName, instanceName, depth, initProps); this[mx.core.View.childNameBase + numChildren] = _local2; if (prepList == undefined) { prepList = new Object(); } prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps}; prepareToLoadMovie(_local2); return(_local2); } function prepareToLoadMovie(obj) { obj.unloadMovie(); doLater(this, "waitForUnload"); } function waitForUnload() { var _local3; for (_local3 in prepList) { var _local2 = prepList[_local3]; if (_local2.obj.getBytesTotal() == 0) { if (loadList == undefined) { loadList = new Object(); } loadList[_local3] = _local2; _local2.obj.loadMovie(_local2.url); delete prepList[_local3]; doLater(this, "checkLoadProgress"); } else { doLater(this, "waitForUnload"); } } } function checkLoadProgress() { var _local8 = false; var _local3; for (_local3 in loadList) { var _local2 = loadList[_local3]; _local2.loaded = _local2.obj.getBytesLoaded(); _local2.total = _local2.obj.getBytesTotal(); if (_local2.total > 0) { _local2.obj._visible = false; dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total}); if (_local2.loaded == _local2.total) { if (loadedList == undefined) { loadedList = new Object(); } loadedList[_local3] = _local2; delete loadList[_local3]; doLater(this, "contentLoaded"); } } else if (_local2.total == -1) { if (_local2.failedOnce != undefined) { _local2.failedOnce++; if (_local2.failedOnce > 3) { dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total}); delete loadList[_local3]; } } else { _local2.failedOnce = 0; } } _local8 = true; } if (_local8) { doLater(this, "checkLoadProgress"); } } function contentLoaded() { var _local4; for (_local4 in loadedList) { var _local2 = loadedList[_local4]; _local2.obj._visible = true; _local2.obj._complete = true; var _local3; for (_local3 in _local2.initProps) { _local2.obj[_local3] = _local2.initProps[_local3]; } childLoaded(_local2.obj); dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total}); delete loadedList[_local4]; } } function convertToUIObject(obj) { if (obj.setSize == undefined) { var _local2 = mx.core.UIObject.prototype; obj.addProperty("width", _local2.__get__width, null); obj.addProperty("height", _local2.__get__height, null); obj.addProperty("left", _local2.__get__left, null); obj.addProperty("x", _local2.__get__x, null); obj.addProperty("top", _local2.__get__top, null); obj.addProperty("y", _local2.__get__y, null); obj.addProperty("right", _local2.__get__right, null); obj.addProperty("bottom", _local2.__get__bottom, null); obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible); obj.move = mx.core.UIObject.prototype.move; obj.setSize = mx.core.UIObject.prototype.setSize; obj.size = mx.core.UIObject.prototype.size; mx.events.UIEventDispatcher.initialize(obj); } } static function enableExternalContent() { } static function classConstruct() { var _local1 = mx.core.View.prototype; var _local2 = mx.core.ExternalContent.prototype; _local1.loadExternal = _local2.loadExternal; _local1.prepareToLoadMovie = _local2.prepareToLoadMovie; _local1.waitForUnload = _local2.waitForUnload; _local1.checkLoadProgress = _local2.checkLoadProgress; _local1.contentLoaded = _local2.contentLoaded; _local1.convertToUIObject = _local2.convertToUIObject; return(true); } static var classConstructed = classConstruct(); static var ViewDependency = mx.core.View; }Symbol 416 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0class mx.events.UIEventDispatcher extends mx.events.EventDispatcher { var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener; function UIEventDispatcher () { super(); } static function addKeyEvents(obj) { if (obj.keyHandler == undefined) { var _local1 = (obj.keyHandler = new Object()); _local1.owner = obj; _local1.onKeyDown = _fEventDispatcher.onKeyDown; _local1.onKeyUp = _fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); } static function removeKeyEvents(obj) { Key.removeListener(obj.keyHandler); } static function addLoadEvents(obj) { if (obj.onLoad == undefined) { obj.onLoad = _fEventDispatcher.onLoad; obj.onUnload = _fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, "onLoad"); } } } static function removeLoadEvents(obj) { delete obj.onLoad; delete obj.onUnload; } static function initialize(obj) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = _fEventDispatcher.__addEventListener; obj.__origAddEventListener = _fEventDispatcher.addEventListener; obj.removeEventListener = _fEventDispatcher.removeEventListener; obj.dispatchEvent = _fEventDispatcher.dispatchEvent; obj.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(mx.events.EventDispatcher, eventObj); dispatchQueue(this, eventObj); } function onKeyDown(Void) { owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)}); } function onKeyUp(Void) { owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)}); } function onLoad(Void) { if (__sentLoadEvent != true) { dispatchEvent({type:"load"}); } __sentLoadEvent = true; } function onUnload(Void) { dispatchEvent({type:"unload"}); } function __addEventListener(event, handler) { __origAddEventListener(event, handler); var _local3 = lowLevelEvents; for (var _local5 in _local3) { if (mx.events.UIEventDispatcher[_local5][event] != undefined) { var _local2 = _local3[_local5][0]; mx.events.UIEventDispatcher[_local2](this); } } } function removeEventListener(event, handler) { var _local6 = "__q_" + event; mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler); if (this[_local6].length == 0) { var _local2 = lowLevelEvents; for (var _local5 in _local2) { if (mx.events.UIEventDispatcher[_local5][event] != undefined) { var _local3 = _local2[_local5][1]; mx.events.UIEventDispatcher[_local2[_local5][1]](this); } } } } static var keyEvents = {keyDown:1, keyUp:1}; static var loadEvents = {load:1, unload:1}; static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]}; static var _fEventDispatcher = undefined; }Symbol 1044 MovieClip [__Packages.mx.core.ScrollView] Frame 0class mx.core.ScrollView extends mx.core.View { var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent; function ScrollView () { super(); } function getHScrollPolicy(Void) { return(__hScrollPolicy); } function setHScrollPolicy(policy) { __hScrollPolicy = policy.toLowerCase(); if (__width == undefined) { return(undefined); } setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding); } function get hScrollPolicy() { return(getHScrollPolicy()); } function set hScrollPolicy(policy) { setHScrollPolicy(policy); //return(hScrollPolicy); } function getVScrollPolicy(Void) { return(__vScrollPolicy); } function setVScrollPolicy(policy) { __vScrollPolicy = policy.toLowerCase(); if (__width == undefined) { return(undefined); } setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding); } function get vScrollPolicy() { return(getVScrollPolicy()); } function set vScrollPolicy(policy) { setVScrollPolicy(policy); //return(vScrollPolicy); } function get hPosition() { return(getHPosition()); } function set hPosition(pos) { setHPosition(pos); //return(hPosition); } function getHPosition(Void) { return(__hPosition); } function setHPosition(pos) { hScroller.__set__scrollPosition(pos); __hPosition = pos; } function get vPosition() { return(getVPosition()); } function set vPosition(pos) { setVPosition(pos); //return(vPosition); } function getVPosition(Void) { return(__vPosition); } function setVPosition(pos) { vScroller.__set__scrollPosition(pos); __vPosition = pos; } function get maxVPosition() { var _local2 = vScroller.maxPos; return(((_local2 == undefined) ? 0 : (_local2))); } function get maxHPosition() { return(getMaxHPosition()); } function set maxHPosition(pos) { setMaxHPosition(pos); //return(maxHPosition); } function getMaxHPosition(Void) { if (__maxHPosition != undefined) { return(__maxHPosition); } var _local2 = hScroller.maxPos; return(((_local2 == undefined) ? 0 : (_local2))); } function setMaxHPosition(pos) { __maxHPosition = pos; } function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) { var _local3 = getViewMetrics(); if (hPadding == undefined) { hPadding = 0; } if (wPadding == undefined) { wPadding = 0; } propsInited = true; delete scrollAreaChanged; heightPadding = hPadding; widthPadding = wPadding; if (colWidth == 0) { colWidth = 1; } if (rwHeight == 0) { rwHeight = 1; } var _local4 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth); if ((__hScrollPolicy == "on") || ((_local4 < colCount) && (__hScrollPolicy == "auto"))) { if ((hScroller == undefined) || (specialHScrollCase)) { delete specialHScrollCase; hScroller = mx.controls.scrollClasses.ScrollBar(createObject("HScrollBar", "hSB", 1001)); hScroller.__set__lineScrollSize(20); hScroller.scrollHandler = scrollProxy; hScroller.__set__scrollPosition(__hPosition); scrollAreaChanged = true; } if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local4)) || (scrollAreaChanged)) { hScroller.setScrollProperties(_local4, 0, colCount - _local4); viewableColumns = _local4; numberOfCols = colCount; columnWidth = colWidth; } } else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) { hScroller.removeMovieClip(); delete hScroller; scrollAreaChanged = true; } if (heightPadding == undefined) { heightPadding = 0; } var _local5 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight); var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0; if ((__vScrollPolicy == "on") || ((_local5 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) { if (vScroller == undefined) { vScroller = mx.controls.scrollClasses.ScrollBar(createObject("VScrollBar", "vSB", 1002)); vScroller.scrollHandler = scrollProxy; vScroller.__set__scrollPosition(__vPosition); scrollAreaChanged = true; rowH = 0; } if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local5 + oldRndUp))) || (scrollAreaChanged)) { vScroller.setScrollProperties(_local5, 0, (rwCount - _local5) + _local8); viewableRows = _local5; rowC = rwCount; rowH = rwHeight; oldRndUp = _local8; } } else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) { vScroller.removeMovieClip(); delete vScroller; scrollAreaChanged = true; } numberOfCols = colCount; columnWidth = colWidth; if (scrollAreaChanged) { doLayout(); var _local2 = __viewMetrics; var _local12 = ((owner != undefined) ? (owner) : this); _local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom); } if (!enabled) { setEnabled(false); } } function getViewMetrics(Void) { var _local2 = __viewMetrics; var _local3 = border_mc.__get__borderMetrics(); _local2.left = _local3.left; _local2.right = _local3.right; if (vScroller != undefined) { _local2.right = _local2.right + vScroller.minWidth; } _local2.top = _local3.top; if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) { hScroller = mx.controls.scrollClasses.ScrollBar(createObject("FHScrollBar", "hSB", 1001)); specialHScrollCase = true; } _local2.bottom = _local3.bottom; if (hScroller != undefined) { _local2.bottom = _local2.bottom + hScroller.minHeight; } return(_local2); } function doLayout(Void) { var _local10 = __get__width(); var _local8 = __get__height(); delete invLayout; var _local3 = (__viewMetrics = getViewMetrics()); var _local2 = _local3.left; var _local9 = _local3.right; var _local5 = _local3.top; var _local11 = _local3.bottom; var _local7 = hScroller; var _local6 = vScroller; _local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0); _local7.move(_local2, _local8 - _local11); _local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11); _local6.move(_local10 - _local9, _local5); var _local4 = mask_mc; _local4._width = (_local10 - _local2) - _local9; _local4._height = (_local8 - _local5) - _local11; _local4._x = _local2; _local4._y = _local5; } function createChild(id, name, props) { var _local2 = super.createChild(id, name, props); return(_local2); } function init(Void) { super.init(); __viewMetrics = new Object(); if (_global.__SVMouseWheelManager == undefined) { var _local4 = (_global.__SVMouseWheelManager = new Object()); _local4.onMouseWheel = __onMouseWheel; Mouse.addListener(_local4); } } function __onMouseWheel(delta, scrollTarget) { var _local4 = scrollTarget; var _local1; while (_local4 != undefined) { if (_local4 instanceof mx.core.ScrollView) { _local1 = _local4; } _local4 = _local4._parent; } if (_local1 != undefined) { _local4 = ((delta <= 0) ? 1 : -1); var _local2 = _local1.vScroller.lineScrollSize; if (_local2 == undefined) { _local2 = 0; } _local2 = Math.max(Math.abs(delta), _local2); var _local3 = _local1.vPosition + (_local2 * _local4); _local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition)); _local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition}); } } function createChildren(Void) { super.createChildren(); if (mask_mc == undefined) { mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH); } mask_mc._visible = false; } function invalidate(Void) { super.invalidate(); } function draw(Void) { size(); } function size(Void) { super.size(); } function scrollProxy(docObj) { _parent.onScroll(docObj); } function onScroll(docObj) { var _local3 = docObj.target; var _local2 = _local3.scrollPosition; if (_local3 == vScroller) { var _local4 = "vertical"; var _local5 = "__vPosition"; } else { var _local4 = "horizontal"; var _local5 = "__hPosition"; } this[_local5] = _local2; dispatchEvent({type:"scroll", direction:_local4, position:_local2}); } function setEnabled(v) { vScroller.enabled = (hScroller.enabled = v); } function childLoaded(obj) { super.childLoaded(obj); obj.setMask(mask_mc); } static var symbolName = "ScrollView"; static var symbolOwner = mx.core.ScrollView; static var version = "2.0.2.127"; var className = "ScrollView"; var __vScrollPolicy = "auto"; var __hScrollPolicy = "off"; var __vPosition = 0; var __hPosition = 0; var numberOfCols = 0; var rowC = 0; var columnWidth = 1; var rowH = 0; var heightPadding = 0; var widthPadding = 0; var MASK_DEPTH = 10000; }Symbol 370 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent { var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse; function ScrollBar () { super(); } function get scrollPosition() { return(_scrollPosition); } function set scrollPosition(pos) { _scrollPosition = pos; if (isScrolling != true) { pos = Math.min(pos, maxPos); pos = Math.max(pos, minPos); var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top; scrollThumb_mc.move(0, _local3); } //return(scrollPosition); } function get pageScrollSize() { return(largeScroll); } function set pageScrollSize(lScroll) { largeScroll = lScroll; //return(pageScrollSize); } function set lineScrollSize(sScroll) { smallScroll = sScroll; //return(lineScrollSize); } function get lineScrollSize() { return(smallScroll); } function get virtualHeight() { return(__height); } function init(Void) { super.init(); _scrollPosition = 0; tabEnabled = false; focusEnabled = false; boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function createChildren(Void) { if (scrollTrack_mc == undefined) { setSkin(skinIDTrack, scrollTrackName); } scrollTrack_mc.visible = false; var _local3 = new Object(); _local3.enabled = false; _local3.preset = mx.controls.SimpleButton.falseDisabled; _local3.initProperties = 0; _local3.autoRepeat = true; _local3.tabEnabled = false; var _local2; if (upArrow_mc == undefined) { _local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3); } _local2.buttonDownHandler = onUpArrow; _local2.clickHandler = onScrollChanged; _minHeight = _local2.height; _minWidth = _local2.width; if (downArrow_mc == undefined) { _local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3); } _local2.buttonDownHandler = onDownArrow; _local2.clickHandler = onScrollChanged; _minHeight = _minHeight + _local2.height; } function createButton(linkageName, id, skinID, o) { if (skinID == skinIDUpArrow) { o.falseUpSkin = upArrowUpName; o.falseDownSkin = upArrowDownName; o.falseOverSkin = upArrowOverName; } else { o.falseUpSkin = downArrowUpName; o.falseDownSkin = downArrowDownName; o.falseOverSkin = downArrowOverName; } var _local3 = createObject(linkageName, id, skinID, o); this[id].visible = false; this[id].useHandCursor = false; return(_local3); } function createThumb(Void) { var _local2 = new Object(); _local2.validateNow = true; _local2.tabEnabled = false; _local2.leftSkin = thumbTopName; _local2.middleSkin = thumbMiddleName; _local2.rightSkin = thumbBottomName; _local2.gripSkin = thumbGripName; createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2); } function setScrollProperties(pSize, mnPos, mxPos, ls) { var _local4; var _local2 = scrollTrack_mc; pageSize = pSize; largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize)); minPos = Math.max(mnPos, 0); maxPos = Math.max(mxPos, 0); _scrollPosition = Math.max(minPos, _scrollPosition); _scrollPosition = Math.min(maxPos, _scrollPosition); if (((maxPos - minPos) > 0) && (enabled)) { var _local5 = _scrollPosition; if (!initializing) { upArrow_mc.enabled = true; downArrow_mc.enabled = true; } _local2.onPress = (_local2.onDragOver = startTrackScroller); _local2.onRelease = releaseScrolling; _local2.onDragOut = (_local2.stopScrolling = stopScrolling); _local2.onReleaseOutside = releaseScrolling; _local2.useHandCursor = false; if (scrollThumb_mc == undefined) { createThumb(); } var _local3 = scrollThumb_mc; if (scrollTrackOverName.length > 0) { _local2.onRollOver = trackOver; _local2.onRollOut = trackOut; } _local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height; if (_local4 < _local3.minHeight) { if (_local2.height < _local3.minHeight) { _local3.__set__visible(false); } else { _local4 = _local3.minHeight; _local3.__set__visible(true); _local3.setSize(_minWidth, _local3.minHeight + 0); } } else { _local3.__set__visible(true); _local3.setSize(_minWidth, _local4); } _local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos); _local5 = Math.min(_local5, maxPos); scrollPosition = (Math.max(_local5, minPos)); } else { scrollThumb_mc.__set__visible(false); if (!initializing) { upArrow_mc.enabled = false; downArrow_mc.enabled = false; } delete _local2.onPress; delete _local2.onDragOver; delete _local2.onRelease; delete _local2.onDragOut; delete _local2.onRollOver; delete _local2.onRollOut; delete _local2.onReleaseOutside; } if (initializing) { scrollThumb_mc.__set__visible(false); } } function setEnabled(enabledFlag) { super.setEnabled(enabledFlag); setScrollProperties(pageSize, minPos, maxPos, largeScroll); } function draw(Void) { if (initializing) { initializing = false; scrollTrack_mc.visible = true; upArrow_mc.__set__visible(true); downArrow_mc.__set__visible(true); } size(); } function size(Void) { if (_height == 1) { return(undefined); } if (upArrow_mc == undefined) { return(undefined); } var _local3 = upArrow_mc.__get__height(); var _local2 = downArrow_mc.__get__height(); upArrow_mc.move(0, 0); var _local4 = scrollTrack_mc; _local4._y = _local3; _local4._height = (virtualHeight - _local3) - _local2; downArrow_mc.move(0, virtualHeight - _local2); setScrollProperties(pageSize, minPos, maxPos, largeScroll); } function dispatchScrollEvent(detail) { dispatchEvent({type:"scroll", detail:detail}); } function isScrollBarKey(k) { if (k == 36) { if (scrollPosition != 0) { scrollPosition = (0); dispatchScrollEvent(minMode); } return(true); } if (k == 35) { if (scrollPosition < maxPos) { scrollPosition = (maxPos); dispatchScrollEvent(maxMode); } return(true); } return(false); } function scrollIt(inc, mode) { var _local3 = smallScroll; if (inc != "Line") { _local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll)); } var _local2 = _scrollPosition + (mode * _local3); if (_local2 > maxPos) { _local2 = maxPos; } else if (_local2 < minPos) { _local2 = minPos; } if (scrollPosition != _local2) { scrollPosition = (_local2); var _local4 = ((mode < 0) ? (minusMode) : (plusMode)); dispatchScrollEvent(inc + _local4); } } function startTrackScroller(Void) { _parent.pressFocus(); if (_parent.scrollTrackDownName.length > 0) { if (_parent.scrollTrackDown_mc == undefined) { _parent.setSkin(skinIDTrackDown, scrollTrackDownName); } else { _parent.scrollTrackDown_mc.visible = true; } } _parent.trackScroller(); _parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1); } function scrollInterval(inc, mode) { clearInterval(scrolling); if (inc == "Page") { trackScroller(); } else { scrollIt(inc, mode); } scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode); } function trackScroller(Void) { if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) { scrollIt("Page", 1); } else if (scrollThumb_mc._y > _ymouse) { scrollIt("Page", -1); } } function dispatchScrollChangedEvent(Void) { dispatchEvent({type:"scrollChanged"}); } function stopScrolling(Void) { clearInterval(_parent.scrolling); _parent.scrollTrackDown_mc.visible = false; } function releaseScrolling(Void) { _parent.releaseFocus(); stopScrolling(); _parent.dispatchScrollChangedEvent(); } function trackOver(Void) { if (_parent.scrollTrackOverName.length > 0) { if (_parent.scrollTrackOver_mc == undefined) { _parent.setSkin(skinIDTrackOver, scrollTrackOverName); } else { _parent.scrollTrackOver_mc.visible = true; } } } function trackOut(Void) { _parent.scrollTrackOver_mc.visible = false; } function onUpArrow(Void) { _parent.scrollIt("Line", -1); } function onDownArrow(Void) { _parent.scrollIt("Line", 1); } function onScrollChanged(Void) { _parent.dispatchScrollChangedEvent(); } static var symbolOwner = mx.core.UIComponent; var className = "ScrollBar"; var minPos = 0; var maxPos = 0; var pageSize = 0; var largeScroll = 0; var smallScroll = 1; var _scrollPosition = 0; var scrollTrackName = "ScrollTrack"; var scrollTrackOverName = ""; var scrollTrackDownName = ""; var upArrowName = "BtnUpArrow"; var upArrowUpName = "ScrollUpArrowUp"; var upArrowOverName = "ScrollUpArrowOver"; var upArrowDownName = "ScrollUpArrowDown"; var downArrowName = "BtnDownArrow"; var downArrowUpName = "ScrollDownArrowUp"; var downArrowOverName = "ScrollDownArrowOver"; var downArrowDownName = "ScrollDownArrowDown"; var thumbTopName = "ScrollThumbTopUp"; var thumbMiddleName = "ScrollThumbMiddleUp"; var thumbBottomName = "ScrollThumbBottomUp"; var thumbGripName = "ScrollThumbGripUp"; static var skinIDTrack = 0; static var skinIDTrackOver = 1; static var skinIDTrackDown = 2; static var skinIDUpArrow = 3; static var skinIDDownArrow = 4; static var skinIDThumb = 5; var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc"); var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); var initializing = true; }Symbol 411 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0class mx.skins.CustomBorder extends mx.skins.Border { var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc; function CustomBorder () { super(); } function get width() { return(__width); } function get height() { return(__height); } function init(Void) { super.init(); } function createChildren(Void) { } function draw(Void) { if (l_mc == undefined) { var _local2 = setSkin(tagL, leftSkin); if (horizontal) { minHeight = l_mc._height; minWidth = l_mc._width; } else { minHeight = l_mc._height; minWidth = l_mc._width; } } if (m_mc == undefined) { setSkin(tagM, middleSkin); if (horizontal) { minHeight = m_mc._height; minWidth = minWidth + m_mc._width; } else { minHeight = minHeight + m_mc._height; minWidth = m_mc._width; } } if (r_mc == undefined) { setSkin(tagR, rightSkin); if (horizontal) { minHeight = r_mc._height; minWidth = minWidth + r_mc._width; } else { minHeight = minHeight + r_mc._height; minWidth = r_mc._width; } } size(); } function size(Void) { l_mc.move(0, 0); if (horizontal) { r_mc.move(width - r_mc.width, 0); m_mc.move(l_mc.width, 0); m_mc.setSize(r_mc.x - m_mc.x, m_mc.height); } else { r_mc.move(0, height - r_mc.height, 0); m_mc.move(0, l_mc.height); m_mc.setSize(m_mc.width, r_mc.y - m_mc.y); } } static var symbolName = "CustomBorder"; static var symbolOwner = mx.skins.CustomBorder; static var version = "2.0.2.127"; var className = "CustomBorder"; static var tagL = 0; static var tagM = 1; static var tagR = 2; var idNames = new Array("l_mc", "m_mc", "r_mc"); var leftSkin = "F3PieceLeft"; var middleSkin = "F3PieceMiddle"; var rightSkin = "F3PieceRight"; var horizontal = true; }Symbol 412 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder { var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height; function ScrollThumb () { super(); } function createChildren(Void) { super.createChildren(); useHandCursor = false; } function setRange(_ymin, _ymax, _datamin, _datamax) { ymin = _ymin; ymax = _ymax; datamin = _datamin; datamax = _datamax; } function dragThumb(Void) { scrollMove = _ymouse - lastY; scrollMove = scrollMove + _y; if (scrollMove < ymin) { scrollMove = ymin; } else if (scrollMove > ymax) { scrollMove = ymax; } _parent.isScrolling = true; _y = scrollMove; var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin; _parent.scrollPosition = _local2; _parent.dispatchScrollEvent("ThumbTrack"); updateAfterEvent(); } function stopDragThumb(Void) { _parent.isScrolling = false; _parent.dispatchScrollEvent("ThumbPosition"); _parent.dispatchScrollChangedEvent(); delete onMouseMove; } function onPress(Void) { _parent.pressFocus(); lastY = _ymouse; onMouseMove = dragThumb; super.onPress(); } function onRelease(Void) { _parent.releaseFocus(); stopDragThumb(); super.onRelease(); } function onReleaseOutside(Void) { _parent.releaseFocus(); stopDragThumb(); super.onReleaseOutside(); } function draw() { super.draw(); if (grip_mc == undefined) { setSkin(3, gripSkin); } } function size() { super.size(); grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2); } static var symbolOwner = mx.skins.CustomBorder.symbolOwner; var className = "ScrollThumb"; var btnOffset = 0; var horizontal = false; var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc"); }Symbol 1045 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0class mx.controls.listclasses.DataProvider extends Object { var length, splice, dispatchEvent, sortOn, reverse, sort; function DataProvider (obj) { super(); } static function Initialize(obj) { var _local4 = mixinProps; var _local6 = _local4.length; obj = obj.prototype; var _local3 = 0; while (_local3 < _local6) { obj[_local4[_local3]] = mixins[_local4[_local3]]; _global.ASSetPropFlags(obj, _local4[_local3], 1); _local3++; } mx.events.EventDispatcher.initialize(obj); _global.ASSetPropFlags(obj, "addEventListener", 1); _global.ASSetPropFlags(obj, "removeEventListener", 1); _global.ASSetPropFlags(obj, "dispatchEvent", 1); _global.ASSetPropFlags(obj, "dispatchQueue", 1); Object.prototype.LargestID = 0; Object.prototype.getID = function () { if (this.__ID__ == undefined) { this.__ID__ = Object.prototype.LargestID++; _global.ASSetPropFlags(this, "__ID__", 1); } return(this.__ID__); }; _global.ASSetPropFlags(Object.prototype, "LargestID", 1); _global.ASSetPropFlags(Object.prototype, "getID", 1); return(true); } function addItemAt(index, value) { if (index < length) { splice(index, 0, value); } else if (index > length) { return(undefined); } this[index] = value; updateViews("addItems", index, index); } function addItem(value) { addItemAt(length, value); } function addItemsAt(index, newItems) { index = Math.min(length, index); newItems.unshift(index, 0); splice.apply(this, newItems); newItems.splice(0, 2); updateViews("addItems", index, (index + newItems.length) - 1); } function removeItemsAt(index, len) { var _local3 = new Array(); var _local2 = 0; while (_local2 < len) { _local3.push(getItemID(index + _local2)); _local2++; } var _local6 = splice(index, len); dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3}); } function removeItemAt(index) { var _local2 = this[index]; removeItemsAt(index, 1); return(_local2); } function removeAll(Void) { splice(0); updateViews("removeItems", 0, length - 1); } function replaceItemAt(index, itemObj) { if ((index < 0) || (index >= length)) { return(undefined); } var _local3 = getItemID(index); this[index] = itemObj; this[index].__ID__ = _local3; updateViews("updateItems", index, index); } function getItemAt(index) { return(this[index]); } function getItemID(index) { var _local2 = this[index]; if ((typeof(_local2) != "object") && (_local2 != undefined)) { return(index); } return(_local2.getID()); } function sortItemsBy(fieldName, order) { if (typeof(order) == "string") { sortOn(fieldName); if (order.toUpperCase() == "DESC") { reverse(); } } else { sortOn(fieldName, order); } updateViews("sort"); } function sortItems(compareFunc, optionFlags) { sort(compareFunc, optionFlags); updateViews("sort"); } function editField(index, fieldName, newData) { this[index][fieldName] = newData; dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:index, lastItem:index, fieldName:fieldName}); } function getEditingData(index, fieldName) { return(this[index][fieldName]); } function updateViews(event, first, last) { dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last}); } static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"]; static var evtDipatcher = mx.events.EventDispatcher; static var mixins = new mx.controls.listclasses.DataProvider(); }Symbol 1046 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView { var invLayoutContent, rows, topRowZ, listContent, __dataProvider, __vPosition, tW, layoutX, layoutY, tH, invRowHeight, invalidate, __height, invUpdateControl, __cellRenderer, __labelFunction, __iconField, __iconFunction, getLength, baseRowZ, lastPosition, propertyTable, isSelected, wasKeySelected, changeFlag, clearSelected, selectItem, lastSelected, dispatchEvent, dragScrolling, _ymouse, scrollInterval, isPressed, onMouseUp, getSelectedIndex, enabled, tabEnabled, tabChildren, createEmptyMovieClip, border_mc; function ScrollSelectList () { super(); } function layoutContent(x, y, w, h) { delete invLayoutContent; var _local4 = Math.ceil(h / __rowHeight); roundUp = (h % __rowHeight) != 0; var _local12 = _local4 - __rowCount; if (_local12 < 0) { var _local3 = _local4; while (_local3 < __rowCount) { rows[_local3].removeMovieClip(); delete rows[_local3]; _local3++; } topRowZ = topRowZ + _local12; } else if (_local12 > 0) { if (rows == undefined) { rows = new Array(); } var _local3 = __rowCount; while (_local3 < _local4) { var _local2 = (rows[_local3] = listContent.createObject(__rowRenderer, "listRow" + (topRowZ++), topRowZ, {owner:this, styleName:this, rowIndex:_local3})); _local2._x = x; _local2._y = Math.round((_local3 * __rowHeight) + y); _local2.setSize(w, __rowHeight); _local2.drawRow(__dataProvider.getItemAt(__vPosition + _local3), getStateAt(__vPosition + _local3)); _local2.lastY = _local2._y; _local3++; } } if (w != tW) { var _local11 = ((_local12 > 0) ? (__rowCount) : (_local4)); var _local3 = 0; while (_local3 < _local11) { rows[_local3].setSize(w, __rowHeight); _local3++; } } if ((layoutX != x) || (layoutY != y)) { var _local3 = 0; while (_local3 < _local4) { rows[_local3]._x = x; rows[_local3]._y = Math.round((_local3 * __rowHeight) + y); _local3++; } } __rowCount = _local4; layoutX = x; layoutY = y; tW = w; tH = h; } function getRowHeight(Void) { return(__rowHeight); } function setRowHeight(v) { __rowHeight = v; invRowHeight = true; invalidate(); } function get rowHeight() { return(getRowHeight()); } function set rowHeight(w) { setRowHeight(w); //return(rowHeight); } function setRowCount(v) { __rowCount = v; } function getRowCount(Void) { var _local2 = ((__rowCount == 0) ? (Math.ceil(__height / __rowHeight)) : (__rowCount)); return(_local2); } function get rowCount() { return(getRowCount()); } function set rowCount(w) { setRowCount(w); //return(rowCount); } function setEnabled(v) { super.setEnabled(v); invUpdateControl = true; invalidate(); } function setCellRenderer(cR) { __cellRenderer = cR; var _local2 = 0; while (_local2 < rows.length) { rows[_local2].setCellRenderer(true); _local2++; } invUpdateControl = true; invalidate(); } function set cellRenderer(cR) { setCellRenderer(cR); //return(cellRenderer); } function get cellRenderer() { return(__cellRenderer); } function set labelField(field) { setLabelField(field); //return(labelField); } function setLabelField(field) { __labelField = field; invUpdateControl = true; invalidate(); } function get labelField() { return(__labelField); } function set labelFunction(func) { setLabelFunction(func); //return(labelFunction); } function setLabelFunction(func) { __labelFunction = func; invUpdateControl = true; invalidate(); } function get labelFunction() { return(__labelFunction); } function set iconField(field) { setIconField(field); //return(iconField); } function setIconField(field) { __iconField = field; invUpdateControl = true; invalidate(); } function get iconField() { return(__iconField); } function set iconFunction(func) { setIconFunction(func); //return(iconFunction); } function setIconFunction(func) { __iconFunction = func; invUpdateControl = true; invalidate(); } function get iconFunction() { return(__iconFunction); } function setVPosition(pos) { if (pos < 0) { return(undefined); } if ((pos > 0) && (pos > ((getLength() - __rowCount) + roundUp))) { return(undefined); } var _local8 = pos - __vPosition; if (_local8 == 0) { return(undefined); } __vPosition = pos; var _local10 = _local8 > 0; _local8 = Math.abs(_local8); if (_local8 >= __rowCount) { updateControl(); } else { var _local4 = new Array(); var _local9 = __rowCount - _local8; var _local12 = _local8 * __rowHeight; var _local11 = _local9 * __rowHeight; var _local6 = (_local10 ? 1 : -1); var _local3 = 0; while (_local3 < __rowCount) { if (((_local3 < _local8) && (_local10)) || ((_local3 >= _local9) && (!_local10))) { rows[_local3]._y = rows[_local3]._y + Math.round(_local6 * _local11); var _local5 = _local3 + (_local6 * _local9); var _local7 = __vPosition + _local5; _local4[_local5] = rows[_local3]; _local4[_local5].rowIndex = _local5; _local4[_local5].drawRow(__dataProvider.getItemAt(_local7), getStateAt(_local7), false); } else { rows[_local3]._y = rows[_local3]._y - Math.round(_local6 * _local12); var _local5 = _local3 - (_local6 * _local8); _local4[_local5] = rows[_local3]; _local4[_local5].rowIndex = _local5; } _local3++; } rows = _local4; _local3 = 0; while (_local3 < __rowCount) { rows[_local3].swapDepths(baseRowZ + _local3); _local3++; } } lastPosition = pos; super.setVPosition(pos); } function setPropertiesAt(index, obj) { var _local2 = __dataProvider.getItemID(index); if (_local2 == undefined) { return(undefined); } if (propertyTable == undefined) { propertyTable = new Object(); } propertyTable[_local2] = obj; rows[index - __vPosition].drawRow(__dataProvider.getItemAt(index), getStateAt(index)); } function getPropertiesAt(index) { var _local2 = __dataProvider.getItemID(index); if (_local2 == undefined) { return(undefined); } return(propertyTable[_local2]); } function getPropertiesOf(obj) { var _local2 = obj.getID(); if (_local2 == undefined) { return(undefined); } return(propertyTable[_local2]); } function getStyle(styleProp) { var _local2 = super.getStyle(styleProp); var _local3 = mx.styles.StyleManager.colorNames[_local2]; if (_local3 != undefined) { _local2 = _local3; } return(_local2); } function updateControl(Void) { var _local2 = 0; while (_local2 < __rowCount) { rows[_local2].drawRow(__dataProvider.getItemAt(_local2 + __vPosition), getStateAt(_local2 + __vPosition)); _local2++; } delete invUpdateControl; } function getStateAt(index) { return((isSelected(index) ? "selected" : "normal")); } function selectRow(rowIndex, transition, allowChangeEvent) { if (!selectable) { return(undefined); } var _local3 = __vPosition + rowIndex; var _local8 = __dataProvider.getItemAt(_local3); var _local5 = rows[rowIndex]; if (_local8 == undefined) { return(undefined); } if (transition == undefined) { transition = true; } if (allowChangeEvent == undefined) { allowChangeEvent = wasKeySelected; } changeFlag = true; if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) { clearSelected(transition); selectItem(_local3, true); lastSelected = _local3; _local5.drawRow(_local5.item, getStateAt(_local3), transition); } else if (Key.isDown(16) && (multipleSelection)) { if (lastSelected == undefined) { lastSelected = _local3; } var _local4 = ((lastSelected < _local3) ? 1 : -1); clearSelected(false); var _local2 = lastSelected; while (_local2 != _local3) { selectItem(_local2, true); if ((_local2 >= __vPosition) && (_local2 < (__vPosition + __rowCount))) { rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "selected", false); } _local2 = _local2 + _local4; } selectItem(_local3, true); _local5.drawRow(_local5.item, "selected", transition); } else if (Key.isDown(17)) { var _local7 = isSelected(_local3); if ((!multipleSelection) || (wasKeySelected)) { clearSelected(transition); } if (!((!multipleSelection) && (_local7))) { selectItem(_local3, !_local7); var _local9 = ((!_local7) ? "selected" : "normal"); _local5.drawRow(_local5.item, _local9, transition); } lastSelected = _local3; } if (allowChangeEvent) { dispatchEvent({type:"change"}); } delete wasKeySelected; } function dragScroll(Void) { clearInterval(dragScrolling); if (_ymouse < 0) { setVPosition(__vPosition - 1); selectRow(0, false); var _local2 = Math.min((-_ymouse) - 30, 0); scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval; dragScrolling = setInterval(this, "dragScroll", scrollInterval); dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition}); } else if (_ymouse > __height) { var _local3 = __vPosition; setVPosition(__vPosition + 1); if (_local3 != __vPosition) { selectRow((__rowCount - 1) - roundUp, false); } var _local2 = Math.min((_ymouse - __height) - 30, 0); scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval; dragScrolling = setInterval(this, "dragScroll", scrollInterval); dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition}); } else { dragScrolling = setInterval(this, "dragScroll", 15); } updateAfterEvent(); } function __onMouseUp(Void) { clearInterval(dragScrolling); delete dragScrolling; delete dragScrolling; delete isPressed; delete onMouseUp; if (!selectable) { return(undefined); } if (changeFlag) { dispatchEvent({type:"change"}); } delete changeFlag; } function moveSelBy(incr) { if (!selectable) { setVPosition(__vPosition + incr); return(undefined); } var _local3 = getSelectedIndex(); if (_local3 == undefined) { _local3 = -1; } var _local2 = _local3 + incr; _local2 = Math.max(0, _local2); _local2 = Math.min(getLength() - 1, _local2); if (_local2 == _local3) { return(undefined); } if ((_local3 < __vPosition) || (_local3 >= (__vPosition + __rowCount))) { setVPosition(_local3); } if ((_local2 >= ((__vPosition + __rowCount) - roundUp)) || (_local2 < __vPosition)) { setVPosition(__vPosition + incr); } wasKeySelected = true; selectRow(_local2 - __vPosition, false); } function keyDown(e) { if (selectable) { if (findInputText()) { return(undefined); } } if (e.code == 40) { moveSelBy(1); } else if (e.code == 38) { moveSelBy(-1); } else if (e.code == 34) { if (selectable) { var _local3 = getSelectedIndex(); if (_local3 == undefined) { _local3 = 0; } setVPosition(_local3); } moveSelBy((__rowCount - 1) - roundUp); } else if (e.code == 33) { if (selectable) { var _local3 = getSelectedIndex(); if (_local3 == undefined) { _local3 = 0; } setVPosition(_local3); } moveSelBy((1 - __rowCount) + roundUp); } else if (e.code == 36) { moveSelBy(-__dataProvider.length); } else if (e.code == 35) { moveSelBy(__dataProvider.length); } } function findInputText(Void) { var _local2 = Key.getAscii(); if ((_local2 >= 33) && (_local2 <= 126)) { findString(String.fromCharCode(_local2)); return(true); } } function findString(str) { if (__dataProvider.length == 0) { return(undefined); } var _local4 = getSelectedIndex(); if (_local4 == undefined) { _local4 = 0; } var _local6 = 0; var _local3 = _local4 + 1; while (_local3 != _local4) { var _local2 = __dataProvider.getItemAt(_local3); if (_local2 instanceof XMLNode) { _local2 = _local2.attributes[__labelField]; } else if (typeof(_local2) != "string") { _local2 = String(_local2[__labelField]); } _local2 = _local2.substring(0, str.length); if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) { _local6 = _local3 - _local4; break; } if (_local3 >= (getLength() - 1)) { _local3 = -1; } _local3++; } if (_local6 != 0) { moveSelBy(_local6); } } function onRowPress(rowIndex) { if (!enabled) { return(undefined); } isPressed = true; dragScrolling = setInterval(this, "dragScroll", 15); onMouseUp = __onMouseUp; if (!selectable) { return(undefined); } selectRow(rowIndex); } function onRowRelease(rowIndex) { } function onRowRollOver(rowIndex) { if (!enabled) { return(undefined); } var _local2 = rows[rowIndex].item; if (getStyle("useRollOver") && (_local2 != undefined)) { rows[rowIndex].drawRow(_local2, "highlighted", false); } dispatchEvent({type:"itemRollOver", index:rowIndex + __vPosition}); } function onRowRollOut(rowIndex) { if (!enabled) { return(undefined); } if (getStyle("useRollOver")) { rows[rowIndex].drawRow(rows[rowIndex].item, getStateAt(rowIndex + __vPosition), false); } dispatchEvent({type:"itemRollOut", index:rowIndex + __vPosition}); } function onRowDragOver(rowIndex) { if (((!enabled) || (isPressed != true)) || (!selectable)) { return(undefined); } if (dropEnabled) { } else if (dragScrolling) { selectRow(rowIndex, false); } else { onMouseUp = __onMouseUp; onRowPress(rowIndex); } } function onRowDragOut(rowIndex) { if (!enabled) { return(undefined); } if (dragEnabled) { } else { onRowRollOut(rowIndex); } } function init(Void) { super.init(); tabEnabled = true; tabChildren = false; if (__dataProvider == undefined) { __dataProvider = new Array(); __dataProvider.addEventListener("modelChanged", this); } baseRowZ = (topRowZ = 10); } function createChildren(Void) { super.createChildren(); listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH); invLayoutContent = true; invalidate(); } function draw(Void) { if (invRowHeight) { delete invRowHeight; __rowCount = 0; listContent.removeMovieClip(); listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH); } if (invUpdateControl) { updateControl(); } border_mc.draw(); } function invalidateStyle(propName) { if (isRowStyle[propName]) { invUpdateControl = true; invalidate(); } else { var _local3 = 0; while (_local3 < __rowCount) { rows[_local3].invalidateStyle(propName); _local3++; } } super.invalidateStyle(propName); } static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList); static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array); var CONTENTDEPTH = 100; var __hPosition = 0; var __rowRenderer = "SelectableRow"; var __rowHeight = 22; var __rowCount = 0; var __labelField = "label"; var minScrollInterval = 30; var dropEnabled = false; var dragEnabled = false; var className = "ScrollSelectList"; var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true}; var roundUp = 0; var selectable = true; var multipleSelection = false; }Symbol 1047 MovieClip [__Packages.mx.controls.List] Frame 0class mx.controls.List extends mx.controls.listclasses.ScrollSelectList { var border_mc, __labels, setDataProvider, roundUp, __get__rowCount, __dataProvider, __maxHPosition, invScrollProps, invalidate, __vPosition, getViewMetrics, setSize, __width, __rowHeight, totalWidth, totalHeight, displayWidth, __hScrollPolicy, vScroller, __hPosition, listContent, data, mask_mc, __height, __rowCount, invRowHeight, invLayoutContent, setScrollProperties, oldVWidth; function List () { super(); } function setEnabled(v) { super.setEnabled(v); border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor"); border_mc.invalidate(); } function get labels() { return(__labels); } function set labels(lbls) { __labels = lbls; setDataProvider(lbls); //return(labels); } function setVPosition(pos) { pos = Math.min((__dataProvider.length - __get__rowCount()) + roundUp, pos); pos = Math.max(0, pos); super.setVPosition(pos); } function setHPosition(pos) { pos = Math.max(Math.min(__maxHPosition, pos), 0); super.setHPosition(pos); hScroll(pos); } function setMaxHPosition(pos) { __maxHPosition = pos; invScrollProps = true; invalidate(); } function setHScrollPolicy(policy) { if ((policy.toLowerCase() == "auto") && (!autoHScrollAble)) { return(undefined); } super.setHScrollPolicy(policy); if (policy == "off") { setHPosition(0); setVPosition(Math.min((__dataProvider.length - __get__rowCount()) + roundUp, __vPosition)); } } function setRowCount(rC) { if (isNaN(rC)) { return(undefined); } var _local2 = getViewMetrics(); setSize(__width, ((__rowHeight * rC) + _local2.top) + _local2.bottom); } function layoutContent(x, y, tW, tH, dW, dH) { totalWidth = tW; totalHeight = tH; displayWidth = dW; var _local4 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (Math.max(tW, dW)) : (dW)); super.layoutContent(x, y, _local4, dH); } function modelChanged(eventObj) { super.modelChanged(eventObj); var _local3 = eventObj.eventName; if ((((_local3 == "addItems") || (_local3 == "removeItems")) || (_local3 == "updateAll")) || (_local3 == "filterModel")) { invScrollProps = true; invalidate("invScrollProps"); } } function onScroll(eventObj) { var _local3 = eventObj.target; if (_local3 == vScroller) { setVPosition(_local3.scrollPosition); } else { hScroll(_local3.scrollPosition); } super.onScroll(eventObj); } function hScroll(pos) { __hPosition = pos; listContent._x = -pos; } function init(Void) { super.init(); if (labels.length > 0) { var _local6 = new Array(); var _local3 = 0; while (_local3 < labels.length) { _local6.addItem({label:labels[_local3], data:data[_local3]}); _local3++; } setDataProvider(_local6); } __maxHPosition = 0; } function createChildren(Void) { super.createChildren(); listContent.setMask(MovieClip(mask_mc)); border_mc.move(0, 0); border_mc.setSize(__width, __height); } function getRowCount(Void) { var _local2 = getViewMetrics(); return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount))); } function size(Void) { super.size(); configureScrolling(); var _local3 = getViewMetrics(); layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom); } function draw(Void) { if (invRowHeight) { invScrollProps = true; super.draw(); listContent.setMask(MovieClip(mask_mc)); invLayoutContent = true; } if (invScrollProps) { configureScrolling(); delete invScrollProps; } if (invLayoutContent) { var _local3 = getViewMetrics(); layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom); } super.draw(); } function configureScrolling(Void) { var _local2 = __dataProvider.length; if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) { setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition))); } var _local3 = getViewMetrics(); var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right)); if (_local2 == undefined) { _local2 = 0; } setScrollProperties(_local4, 1, _local2, __rowHeight); if (oldVWidth != _local4) { invLayoutContent = true; } oldVWidth = _local4; } static var symbolOwner = mx.controls.List; static var symbolName = "List"; var className = "List"; static var version = "2.0.2.127"; var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1}; var scrollDepth = 1; var __vScrollPolicy = "on"; var autoHScrollAble = false; }Symbol 1048 MovieClip [__Packages.mx.effects.Tween] Frame 0class mx.effects.Tween extends Object { static var IntervalToken; var arrayMode, listener, initVal, endVal, startTime, updateFunc, endFunc, ID; function Tween (listenerObj, init, end, dur) { super(); if (listenerObj == undefined) { return; } if (typeof(init) != "number") { arrayMode = true; } listener = listenerObj; initVal = init; endVal = end; if (dur != undefined) { duration = dur; } startTime = getTimer(); if (duration == 0) { endTween(); } else { AddTween(this); } } static function AddTween(tween) { tween.ID = ActiveTweens.length; ActiveTweens.push(tween); if (IntervalToken == undefined) { Dispatcher.DispatchTweens = DispatchTweens; IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval); } } static function RemoveTweenAt(index) { var _local2 = ActiveTweens; if (((index >= _local2.length) || (index < 0)) || (index == undefined)) { return(undefined); } _local2.splice(index, 1); var _local4 = _local2.length; var _local1 = index; while (_local1 < _local4) { _local2[_local1].ID--; _local1++; } if (_local4 == 0) { clearInterval(IntervalToken); delete IntervalToken; } } static function DispatchTweens(Void) { var _local2 = ActiveTweens; var _local3 = _local2.length; var _local1 = 0; while (_local1 < _local3) { _local2[_local1].doInterval(); _local1++; } updateAfterEvent(); } function doInterval() { var _local2 = getTimer() - startTime; var _local3 = getCurVal(_local2); if (_local2 >= duration) { endTween(); } else if (updateFunc != undefined) { listener[updateFunc](_local3); } else { listener.onTweenUpdate(_local3); } } function getCurVal(curTime) { if (arrayMode) { var _local3 = new Array(); var _local2 = 0; while (_local2 < initVal.length) { _local3[_local2] = easingEquation(curTime, initVal[_local2], endVal[_local2] - initVal[_local2], duration); _local2++; } return(_local3); } return(easingEquation(curTime, initVal, endVal - initVal, duration)); } function endTween() { if (endFunc != undefined) { listener[endFunc](endVal); } else { listener.onTweenEnd(endVal); } RemoveTweenAt(ID); } function setTweenHandlers(update, end) { updateFunc = update; endFunc = end; } function easingEquation(t, b, c, d) { return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b); } static var ActiveTweens = new Array(); static var Interval = 10; static var Dispatcher = new Object(); var duration = 3000; }Symbol 1064 MovieClip [__Packages.it.gotoandplay.smartfoxserver.SmartFoxClient] Frame 0class it.gotoandplay.smartfoxserver.SmartFoxClient extends XMLSocket { var objRef, os, isConnected, debug, arrayTags, messageHandlers, httpConnection, onConnect, onData, onXML, onClose, fpMajorVersion, pollingDelayFn, roomList, buddyList, myBuddyVars, activeRoomId, myUserId, myUserName, playerId, changingRoom, amIModerator, configLoader, onConfigLoadFailure, ipAddress, blueBoxIpAddress, port, onConfigLoadSuccess, onBuddyListUpdate, onBuddyList, t1, socketConnectionTimeoutThread, onConnection, onConnectionLost, close; function SmartFoxClient (objRef) { super(); this.objRef = objRef; os = it.gotoandplay.smartfoxserver.ObjectSerializer.getInstance(); isConnected = false; debug = false; initialize(); arrayTags = {uLs:true, rmList:true, vars:true, bList:true, vs:true, mv:true}; messageHandlers = new Object(); httpConnection = new it.gotoandplay.smartfoxserver.http.HttpConnection(mx.utils.Delegate.create(this, handleHttpConnect), mx.utils.Delegate.create(this, handleHttpClose), mx.utils.Delegate.create(this, handleHttpData), mx.utils.Delegate.create(this, handleHttpError)); onConnect = connectionEstablished; onData = gotData; onXML = xmlReceived; onClose = connectionClosed; fpMajorVersion = getFpMajorVersion(); if (fpMajorVersion < 8) { pollingDelayFn = _global.setInterval; } else { pollingDelayFn = _global.setTimeout; } setupMessageHandlers(); } function get httpPollSpeed() { return(_httpPollSpeed); } function set httpPollSpeed(sp) { if ((sp >= MIN_POLL_SPEED) && (sp <= MAX_POLL_SPEED)) { _httpPollSpeed = sp; } //return(httpPollSpeed); } function getFpMajorVersion() { var _local1 = System.capabilities.version.indexOf(","); return(Number(System.capabilities.version.substr(_local1 - 1, 1))); } function initialize(isLogout) { if (isLogout == undefined) { isLogout = false; } roomList = {}; buddyList = []; myBuddyVars = []; activeRoomId = null; myUserId = null; myUserName = ""; playerId = null; changingRoom = false; amIModerator = false; if (!isLogout) { isConnected = false; isHttpMode = false; preConnection = true; } } function loadConfig(configFile, autoConnect) { if (configFile == undefined) { configFile = DEFAULT_CONFIG_FILE; } if (autoConnect == undefined) { autoConnectOnConfigSuccess = DEFAULT_AUTO_CONNECT; } else { autoConnectOnConfigSuccess = autoConnect; } configLoader = new XML(); configLoader.ignoreWhite = true; configLoader.onLoad = mx.utils.Delegate.create(this, onConfigLoadSucceeded); configLoader.load(configFile); } function onConfigLoadSucceeded(ok) { if (!ok) { onConfigLoadFailure("Could not load config file!"); return(undefined); } var _local6 = configLoader.childNodes[0].childNodes; var _local4 = 0; while (_local4 < _local6.length) { var _local5 = _local6[_local4]; var _local2 = _local5.nodeName.toLowerCase(); var _local3 = _local5.firstChild.nodeValue; if (_local2 == "ip") { ipAddress = (blueBoxIpAddress = _local3); } else if (_local2 == "port") { port = Number(_local3); } else if (_local2 == "zone") { defaultZone = _local3; } else if (_local2 == "smartconnect") { smartConnect = ((_local3 == "true") ? true : false); } else if (_local2 == "blueboxipaddress") { blueBoxIpAddress = _local3; } else if (_local2 == "blueboxport") { blueBoxPort = _local3; } else if (_local2 == "debug") { debug = ((_local3 == "true") ? true : false); } else if (_local2 == "httpport") { httpPort = Number(_local3); } else if (_local2 == "httppollspeed") { httpPollSpeed = (Number(_local3)); } else if (_local2 == "socketconnectiontimeout") { socketConnectionTimeout = Number(_local3); } else if (_local2 == "rawprotocolseparator") { rawProtocolSeparator = _local3; } _local4++; } if (autoConnectOnConfigSuccess) { connect(ipAddress, port); } else { onConfigLoadSuccess(); } } function onConfigLoadFailed(code) { if (code == 404) { onConfigLoadFailure("Could not find configuration file."); } else { onConfigLoadFailure("Could not load configuration file. Http status = " + code); } } function getVersion() { return((((majVersion + ".") + minVersion) + ".") + subVersion); } function connected() { return(isConnected); } function getConnectionMode() { var _local2 = CONNECTION_MODE_DISCONNECTED; if (isConnected) { if (isHttpMode) { _local2 = CONNECTION_MODE_HTTP; } else { _local2 = CONNECTION_MODE_SOCKET; } } return(_local2); } function setupMessageHandlers() { addMessageHandler("sys", handleSysMessages); addMessageHandler("xt", handleExtensionMessages); } function addMessageHandler(handlerId, handlerMethod) { if (messageHandlers[handlerId] == undefined) { messageHandlers[handlerId] = new Object(); messageHandlers[handlerId].handleMessage = handlerMethod; } } function isModerator() { return(amIModerator); } function handleSysMessages(xmlObj, scope) { var _local9 = xmlObj.attributes.action; var _local20 = xmlObj.attributes.r; if (_local9 == "apiOK") { scope.isConnected = true; scope.onConnection(true); } else if (_local9 == "apiKO") { scope.onConnection(false); } else if (_local9 == "logOK") { scope.myUserId = xmlObj.login.attributes.id; scope.myUserName = xmlObj.login.attributes.n; scope.amIModerator = ((xmlObj.login.attributes.mod == "0") ? false : true); scope.onLogin({success:true, name:scope.myUserName, error:""}); scope.getRoomList(); } else if (_local9 == "logKO") { var _local62 = xmlObj.login.attributes.e; scope.onLogin({success:false, name:"", error:_local62}); } else if (_local9 == "logout") { scope.initialize(true); scope.onLogout(); } else if (_local9 == "rmList") { var _local10 = xmlObj.rmList.rmList; scope.roomList = new Array(); for (var _local43 in _local10) { var _local6 = _local10[_local43].attributes.id; var _local2 = _local10[_local43].attributes; var _local4 = _local2.id; var _local22 = _local10[_local43].n.value; var _local23 = Number(_local2.maxu); var _local24 = Number(_local2.maxs); var _local66 = (_local2.temp ? true : false); var _local54 = (_local2.game ? true : false); var _local30 = (_local2.priv ? true : false); var _local31 = Number(_local2.ucnt); var _local25 = Number(_local2.scnt); var _local71 = (_local2.lmb ? true : false); scope.roomList[_local6] = new it.gotoandplay.smartfoxserver.Room(_local4, _local22, _local23, _local24, _local66, _local54, _local30); scope.roomList[_local6].userCount = _local31; scope.roomList[_local6].specCount = _local25; scope.roomList[_local6].setIsLimbo(_local71); var _local3 = _local10[_local43].vars.vars; var _local37 = 0; while (_local37 < _local3.length) { var _local28 = _local3[_local37].attributes.n; var _local12 = _local3[_local37].attributes.t; var _local11 = _local3[_local37].value; var _local13; if (_local12 == "b") { _local13 = Boolean; _local11 = Number(_local11); } else if (_local12 == "n") { _local13 = Number; } else if (_local12 == "s") { _local13 = String; } else if (_local12 == "x") { _local13 = function (x) { return(null); }; } scope.roomList[_local6].variables[_local28] = _local13(_local11); _local37++; } } scope.onRoomListUpdate(scope.roomList); } else if (_local9 == "joinOK") { var _local49 = xmlObj.uLs.attributes.r; var _local7 = xmlObj.uLs.uLs; var _local16 = xmlObj.vars.vars; scope.activeRoomId = Number(_local49); var _local50 = scope.roomList[_local49]; _local50.userList = new Object(); scope.playerId = xmlObj.pid.attributes.id; _local50.setMyPlayerIndex(xmlObj.pid.attributes.id); _local50.variables = new Object(); var _local37 = 0; while (_local37 < _local16.length) { var _local28 = _local16[_local37].attributes.n; var _local12 = _local16[_local37].attributes.t; var _local11 = _local16[_local37].value; if (_local12 == "b") { var _local13 = Boolean; _local11 = Number(_local11); } else if (_local12 == "n") { var _local13 = Number; } else if (_local12 == "s") { var _local13 = String; } else if (_local12 == "x") { var _local13 = function (x) { return(null); }; } _local50.variables[_local28] = _local13(_local11); _local37++; } var _local72 = 0; var _local59 = 0; var _local43 = 0; while (_local43 < _local7.length) { var _local22 = _local7[_local43].n.value; var _local4 = _local7[_local43].attributes.i; var _local63 = _local7[_local43].attributes.m; var _local75 = _local7[_local43].attributes.s; var _local51 = _local7[_local43].attributes.p; _local50.userList[_local4] = new it.gotoandplay.smartfoxserver.User(_local4, _local22); _local50.userList[_local4].isMod = ((_local63 == "1") ? true : false); _local50.userList[_local4].isSpec = ((_local75 == "1") ? true : false); _local50.userList[_local4].pid = ((_local51 == undefined) ? -1 : _local51); if (_local50.isGame() && (_local75 == "1")) { _local59++; } else { _local72++; } var _local14 = _local7[_local43].vars.vars; _local50.userList[_local4].variables = {}; var _local41 = _local50.userList[_local4].variables; _local37 = 0; while (_local37 < _local14.length) { var _local28 = _local14[_local37].attributes.n; var _local12 = _local14[_local37].attributes.t; var _local11 = _local14[_local37].value; if (_local12 == "b") { var _local13 = Boolean; _local11 = Number(_local11); } else if (_local12 == "n") { var _local13 = Number; } else if (_local12 == "s") { var _local13 = String; } else if (_local12 == "x") { var _local13 = function (x) { return(null); }; } _local41[_local28] = _local13(_local11); _local37++; } _local43++; } _local50.userCount = _local72; _local50.specCount = _local59; scope.changingRoom = false; scope.onJoinRoom(scope.roomList[_local49]); } else if (_local9 == "joinKO") { scope.changingRoom = false; var _local65 = xmlObj.error.attributes.msg; scope.onJoinRoomError(_local65); } else if (_local9 == "uER") { var _local69 = xmlObj.u.attributes.i; var _local64 = xmlObj.u.n.value; var _local63 = xmlObj.u.attributes.m; var _local75 = xmlObj.u.attributes.s; var _local51 = xmlObj.u.attributes.p; var _local50 = scope.roomList[_local20]; _local50.userList[_local69] = new it.gotoandplay.smartfoxserver.User(_local69, _local64); _local50.userList[_local69].isMod = ((_local63 == "1") ? true : false); _local50.userList[_local69].isSpec = ((_local75 == "1") ? true : false); _local50.userList[_local69].pid = ((_local51 == undefined) ? -1 : _local51); if (_local50.isGame() && (_local75 == "1")) { _local50.specCount++; } else { _local50.userCount++; } var _local14 = xmlObj.u.vars.vars; _local50.userList[_local69].variables = {}; var _local41 = _local50.userList[_local69].variables; var _local37 = 0; while (_local37 < _local14.length) { var _local28 = _local14[_local37].attributes.n; var _local12 = _local14[_local37].attributes.t; var _local11 = _local14[_local37].value; if (_local12 == "b") { var _local13 = Boolean; _local11 = Number(_local11); } else if (_local12 == "n") { var _local13 = Number; } else if (_local12 == "s") { var _local13 = String; } else if (_local12 == "x") { var _local13 = function (x) { return(null); }; } _local41[_local28] = _local13(_local11); _local37++; } scope.onUserEnterRoom(_local20, _local50.userList[_local69]); } else if (_local9 == "userGone") { var _local69 = xmlObj.user.attributes.id; var _local50 = scope.roomList[_local20]; var _local64 = _local50.userList[_local69].name; var _local75 = _local50.userList[_local69].isSpec; delete _local50.userList[_local69]; if (_local50.isGame() && _local75) { _local50.specCount--; } else { _local50.userCount--; } scope.onUserLeaveRoom(_local20, _local69, _local64); } else if (_local9 == "pubMsg") { var _local69 = xmlObj.user.attributes.id; var _local47 = xmlObj.txt.value; _local47 = scope.os.decodeEntities(_local47.toString()); scope.onPublicMessage(_local47.toString(), scope.roomList[_local20].userList[_local69], _local20); } else if (_local9 == "prvMsg") { var _local69 = xmlObj.user.attributes.id; var _local47 = xmlObj.txt.value; _local47 = scope.os.decodeEntities(_local47); scope.onPrivateMessage(_local47.toString(), scope.roomList[_local20].userList[_local69], _local69, _local20); } else if (_local9 == "dmnMsg") { var _local69 = xmlObj.user.attributes.id; var _local47 = xmlObj.txt.value; _local47 = scope.os.decodeEntities(_local47); scope.onAdminMessage(_local47.toString(), scope.roomList[_local20].userList[_local69]); } else if (_local9 == "modMsg") { var _local69 = xmlObj.user.attributes.id; var _local47 = xmlObj.txt.value; _local47 = scope.os.decodeEntities(_local47); scope.onModeratorMessage(_local47.toString(), scope.roomList[_local20].userList[_local69]); } else if (_local9 == "dataObj") { var _local73 = xmlObj.user.attributes.id; var _local60 = xmlObj.dataObj.value; var _local61 = scope.os.deserialize(_local60); scope.onObjectReceived(_local61, scope.roomList[_local20].userList[_local73]); } else if (_local9 == "uVarsUpdate") { var _local69 = xmlObj.user.attributes.id; var _local15 = xmlObj.vars.vars; var _local33 = scope.roomList[_local20].userList[_local69]; if (_local33.variables == undefined) { _local33.variables = {}; } var _local34 = []; var _local37 = 0; while (_local37 < _local15.length) { var _local28 = _local15[_local37].attributes.n; var _local12 = _local15[_local37].attributes.t; var _local11 = _local15[_local37].value; _local34.push(_local28); _local34[_local28] = true; if (_local12 == "x") { delete _local33.variables[_local28]; } else { if (_local12 == "b") { var _local13 = Boolean; _local11 = Number(_local11); } else if (_local12 == "n") { var _local13 = Number; } else if (_local12 == "s") { var _local13 = String; } _local33.variables[_local28] = _local13(_local11); } _local37++; } scope.onUserVariablesUpdate(_local33, _local34); } else if (_local9 == "rVarsUpdate") { var _local15 = xmlObj.vars.vars; var _local50 = scope.roomList[_local20]; var _local34 = []; if (_local50.variables == undefined) { _local50.variables = new Object(); } var _local37 = 0; while (_local37 < _local15.length) { var _local28 = _local15[_local37].attributes.n; var _local12 = _local15[_local37].attributes.t; var _local11 = _local15[_local37].value; _local34.push(_local28); _local34[_local28] = true; if (_local12 == "x") { delete _local50.variables[_local28]; } else { if (_local12 == "b") { var _local13 = Boolean; _local11 = Number(_local11); } else if (_local12 == "n") { var _local13 = Number; } else if (_local12 == "s") { var _local13 = String; } _local50.variables[_local28] = _local13(_local11); } _local37++; } scope.onRoomVariablesUpdate(_local50, _local34); } else if (_local9 == "createRmKO") { var _local62 = xmlObj.room.attributes.e; scope.onCreateRoomError(_local62); } else if (_local9 == "uCount") { var _local72 = xmlObj.attributes.u; var _local59 = xmlObj.attributes.s; var _local44 = scope.roomList[_local20]; _local44.userCount = Number(_local72); _local44.specCount = Number(_local59); scope.onUserCountChange(_local44); } else if (_local9 == "roomAdd") { var _local38 = xmlObj.rm.attributes; var _local52 = _local38.id; var _local67 = xmlObj.rm.name.value; var _local74 = Number(_local38.max); var _local58 = Number(_local38.spec); var _local66 = (_local38.temp ? true : false); var _local54 = (_local38.game ? true : false); var _local68 = (_local38.priv ? true : false); var _local71 = (_local38.limbo ? true : false); var _local36 = new it.gotoandplay.smartfoxserver.Room(_local52, _local67, _local74, _local58, _local66, _local54, _local68); _local36.setIsLimbo(_local71); scope.roomList[_local52] = _local36; var _local15 = xmlObj.rm.vars.vars; _local36.variables = new Object(); var _local37 = 0; while (_local37 < _local15.length) { var _local28 = _local15[_local37].attributes.n; var _local12 = _local15[_local37].attributes.t; var _local11 = _local15[_local37].value; if (_local12 == "b") { var _local13 = Boolean; _local11 = Number(_local11); } else if (_local12 == "n") { var _local13 = Number; } else if (_local12 == "s") { var _local13 = String; } _local36.variables[_local28] = _local13(_local11); _local37++; } scope.onRoomAdded(_local36); } else if (_local9 == "roomDel") { var _local53 = xmlObj.rm.attributes.id; var _local55 = scope.roomList[_local53]; delete scope.roomList[_local53]; scope.onRoomDeleted(_local55); } else if (_local9 == "leaveRoom") { var _local76 = xmlObj.rm.attributes.id; scope.onRoomLeft(_local76); } else if (_local9 == "roundTripRes") { scope.t2 = getTimer(); scope.onRoundTripResponse(scope.t2 - scope.t1); } else if (_local9 == "swSpec") { var _local46 = Number(xmlObj.pid.attributes.id); var _local48 = Number(xmlObj.pid.attributes.u); if (_local46 > 0) { scope.roomList[_local20].userCount++; scope.roomList[_local20].specCount--; } if (!isNaN(_local48)) { var _local50 = scope.roomList[_local20]; _local50.userList[_local48].pid = _local46; _local50.userList[_local48].isSpec = false; } else { scope.playerId = _local46; scope.onSpectatorSwitched(scope.playerId > 0, scope.playerId, scope.roomList[_local20]); } } else if (_local9 == "bList") { var _local8 = xmlObj.bList.bList; if (_local8 == undefined) { scope.onBuddyListError(xmlObj.err.value); return(undefined); } var _local18 = xmlObj.mv.mv; if (_local18 != undefined) { for (var it in _local18) { var _local32 = _local18[it].attributes.n; var _local27 = _local18[it].value; scope.myBuddyVars[_local32] = _local27; } } var _local43 = 0; while (_local43 < _local8.length) { var _local35 = {}; _local35.isOnline = ((_local8[_local43].attributes.s == "1") ? true : false); _local35.name = _local8[_local43].n.value; _local35.id = _local8[_local43].attributes.i; _local35.isBlocked = ((_local8[_local43].attributes.x == "1") ? true : false); _local35.variables = {}; var _local21 = _local8[_local43].vs.vs; for (var _local37 in _local21) { var _local29 = _local21[_local37].attributes.n; var _local26 = _local21[_local37].value; _local35.variables[_local29] = _local26; } scope.buddyList.push(_local35); _local43++; } scope.onBuddyList(scope.buddyList); } else if (_local9 == "bUpd") { var _local39 = false; var _local42 = xmlObj.b; if (_local42 == undefined) { scope.onBuddyListError(xmlObj.err.value); return(undefined); } var _local35 = {}; _local35.name = _local42.n.value; _local35.id = _local42.attributes.i; _local35.isOnline = ((_local42.attributes.s == "1") ? true : false); _local35.isBlocked = ((_local42.attributes.x == "1") ? true : false); var _local21 = _local42.vs.vs; var _local17 = null; for (var it in scope.buddyList) { _local17 = scope.buddyList[it]; if (_local17.name == _local35.name) { scope.buddyList[it] = _local35; _local35.isBlocked = _local17.isBlocked; _local35.variables = _local17.variables; for (var _local43 in _local21) { var _local29 = _local21[_local43].attributes.n; var _local26 = _local21[_local43].value; _local35.variables[_local29] = _local26; } _local39 = true; break; } } if (_local39) { scope.onBuddyListUpdate(_local35); } } else if (_local9 == "bAdd") { var _local42 = xmlObj.b; var _local35 = {}; _local35.name = _local42.n.value; _local35.id = _local42.attributes.i; _local35.isOnline = ((_local42.attributes.s == "1") ? true : false); _local35.isBlocked = ((_local42.attributes.x == "1") ? true : false); _local35.variables = {}; var _local21 = _local42.vs.vs; for (var _local43 in _local21) { var _local29 = _local21[_local43].attributes.n; var _local26 = _local21[_local43].value; _local35.variables[_local29] = _local26; } scope.buddyList.push(_local35); scope.onBuddyList(scope.buddyList); } else if (_local9 == "remB") { var _local40 = xmlObj.n.value; var _local35 = null; for (var it in scope.buddyList) { _local35 = scope.buddyList[it]; if (_local35.name == _local40) { delete scope.buddyList[it]; scope.onBuddyList(scope.buddyList); break; } } } else if (_local9 == "bPrm") { var _local56 = xmlObj.n.value; var _local45 = ""; if (xmlObj.txt != undefined) { _local45 = scope.os.decodeEntities(_local45); } scope.onBuddyPermissionRequest(_local56, _local45); } else if (_local9 == "roomB") { var _local70 = xmlObj.br.attributes.r; var _local19 = _local70.toString().split(","); for (var _local43 in _local19) { _local19[_local43] = Number(_local19[_local43]); } scope.onBuddyRoom(_local19); } else if (_local9 == "rndK") { var _local57 = xmlObj.k.value; scope.onRandomKey(_local57); } } function handleExtensionMessages(dataObj, scope, type) { if (type == undefined) { type = "xml"; } if (type == "xml") { var _local6 = dataObj.attributes.action; var _local7 = dataObj.attributes.r; if (_local6 == "xtRes") { var _local4 = dataObj.value; var _local5 = scope.os.deserialize(_local4); scope.onExtensionResponse(_local5, type); } } else if (type == "str") { scope.onExtensionResponse(dataObj, type); } else if (type == "json") { scope.onExtensionResponse(dataObj.o, type); } } function sendXtMessage(xtName, cmdName, paramObj, type, roomId) { if (roomId == undefined) { roomId = activeRoomId; } if (type == undefined) { type = "xml"; } if (type == "xml") { var _local11; _local11 = {t:"xt"}; var _local10 = {name:xtName, cmd:cmdName, param:paramObj}; var _local12 = ("<![CDATA[" + os.serialize(_local10)) + "]]>"; send(_local11, "xtReq", roomId, _local12); } else if (type == "str") { var _local4; _local4 = (((((((rawProtocolSeparator + "xt") + rawProtocolSeparator) + xtName) + rawProtocolSeparator) + cmdName) + rawProtocolSeparator) + roomId) + rawProtocolSeparator; var _local2 = 0; while (_local2 < paramObj.length) { _local4 = _local4 + (paramObj[_local2].toString() + rawProtocolSeparator); _local2++; } sendString(_local4); } else if (type == "json") { var _local5 = {}; _local5.x = xtName; _local5.c = cmdName; _local5.r = roomId; _local5.p = paramObj; var _local6 = {}; _local6.t = "xt"; _local6.b = _local5; try { var _local13 = it.gotoandplay.smartfoxserver.JSON.stringify(_local6); sendJson(_local13); } catch(ex) { if (debug) { } } } } function dumpObj(obj, depth) { if (depth == undefined) { depth = 0; } if (debug) { if (depth == 0) { } for (var _local8 in obj) { var _local4 = obj[_local8]; var _local5 = typeof(_local4); if (_local5 != "object") { var _local3 = ""; var _local2 = 0; while (_local2 < depth) { _local3 = _local3 + "\t"; _local2++; } _local3 = _local3 + (((((_local8 + " : ") + _local4) + " ( ") + _local5) + " )"); } else { dumpObj(_local4, depth + 1); } } } } function login(zone, name, pass) { var _local3 = {t:"sys"}; var _local2 = ((((("<login z='" + zone) + "'><nick><![CDATA[") + name) + "]]></nick><pword><![CDATA[") + pass) + "]]></pword></login>"; send(_local3, "login", 0, _local2); } function logout() { var _local2 = {t:"sys"}; send(_local2, "logout", -1, ""); } function getRoomList() { var _local2 = {t:"sys"}; send(_local2, "getRmList", (activeRoomId ? (activeRoomId) : -1), ""); } function autoJoin() { var _local2 = {t:"sys"}; send(_local2, "autoJoin", (activeRoomId ? (activeRoomId) : -1), ""); } function joinRoom(newRoom, pword, isSpectator, dontLeave, oldRoom) { var _local2 = null; var _local7; if (isSpectator) { _local7 = 1; } else { _local7 = 0; } if (!changingRoom) { if (typeof(newRoom) == "number") { _local2 = newRoom; } else { for (var _local4 in roomList) { if (roomList[_local4].name == newRoom) { _local2 = roomList[_local4].id; break; } } } if (_local2 != null) { var _local9 = {t:"sys"}; var _local6 = (dontLeave ? "0" : "1"); var _local5; if (oldRoom) { _local5 = oldRoom; } else { _local5 = activeRoomId; } if (activeRoomId == null) { _local6 = "0"; _local5 = -1; } var _local8 = ((((((((("<room id='" + _local2) + "' pwd='") + pword) + "' spec='") + _local7) + "' leave='") + _local6) + "' old='") + _local5) + "' />"; send(_local9, "joinRoom", (activeRoomId ? (activeRoomId) : -1), _local8); changingRoom = true; } } } function sendBuddyPermissionResponse(allowBuddy, targetBuddy) { var _local2 = ((("<n res='" + (allowBuddy ? "g" : "r")) + "'><![CDATA[") + targetBuddy) + "]]></n>"; send({t:"sys"}, "bPrm", -1, _local2); } function sendPublicMessage(message, roomId) { if (roomId == undefined) { roomId = activeRoomId; } var _local2 = {t:"sys"}; var _local3 = ("<txt><![CDATA[" + os.encodeEntities(message)) + "]]></txt>"; send(_local2, "pubMsg", roomId, _local3); } function sendPrivateMessage(message, recipientId, roomId) { if (roomId == undefined) { roomId = activeRoomId; } var _local2 = {t:"sys"}; var _local3 = ((("<txt rcp='" + recipientId) + "'><![CDATA[") + os.encodeEntities(message)) + "]]></txt>"; send(_local2, "prvMsg", roomId, _local3); } function sendModeratorMessage(message, type, id) { var _local2 = {t:"sys"}; var _local3 = ((((("<txt t='" + type) + "' id='") + id) + "'><![CDATA[") + os.encodeEntities(message)) + "]]></txt>"; send(_local2, "modMsg", activeRoomId, _local3); } function sendObject(obj, roomId) { if (roomId == undefined) { roomId = activeRoomId; } var _local2 = ("<![CDATA[" + os.serialize(obj)) + "]]>"; var _local3 = {t:"sys"}; send(_local3, "asObj", roomId, _local2); } function sendObjectToGroup(obj, userList, roomId) { if (roomId == undefined) { roomId = activeRoomId; } var _local3 = ""; for (var _local4 in userList) { if (!isNaN(userList[_local4])) { _local3 = _local3 + (userList[_local4] + ","); } } _local3 = _local3.substr(0, _local3.length - 1); obj._$$_ = _local3; var _local5 = ("<![CDATA[" + os.serialize(obj)) + "]]>"; var _local6 = {t:"sys"}; send(_local6, "asObjG", roomId, _local5); } function setBuddyBlockStatus(buddyName, status) { var _local2 = getBuddyByName(buddyName); if (_local2 != null) { if (_local2.blocked != status) { _local2.isBlocked = status; var _local3 = ((("<n x='" + (status ? "1" : "0")) + "'><![CDATA[") + buddyName) + "]]></n>"; send({t:"sys"}, "setB", -1, _local3); onBuddyListUpdate(_local2); } } } function setUserVariables(varObj, roomId) { if (roomId == undefined) { roomId = activeRoomId; } var _local9 = {t:"sys"}; var _local6 = "<vars>"; var _local4 = roomList[roomId].userList[myUserId]; for (var _local7 in varObj) { var _local2 = varObj[_local7]; var _local3 = null; if (typeof(_local2) == "boolean") { _local3 = "b"; _local2 = (_local2 ? 1 : 0); } else if (typeof(_local2) == "number") { _local3 = "n"; } else if (typeof(_local2) == "string") { _local3 = "s"; } else if (typeof(_local2) == "null") { _local3 = "x"; delete _local4.variables[_local7]; } if (_local3 != null) { _local4.variables[_local7] = _local2; _local6 = _local6 + (((((("<var n='" + _local7) + "' t='") + _local3) + "'><![CDATA[") + _local2) + "]]></var>"); } } _local6 = _local6 + "</vars>"; send(_local9, "setUvars", roomId, _local6); } function setBuddyVariables(varList) { var _local6 = {t:"sys"}; var _local4 = "<vars>"; for (var _local5 in varList) { var _local2 = varList[_local5]; if (myBuddyVars[_local5] != _local2) { myBuddyVars[_local5] = _local2; _local4 = _local4 + (((("<var n='" + _local5) + "'><![CDATA[") + _local2) + "]]></var>"); } } _local4 = _local4 + "</vars>"; send(_local6, "setBvars", -1, _local4); } function dumpRoomList() { for (var _local5 in roomList) { var _local2 = roomList[_local5]; for (var _local4 in _local2.variables) { } var _local3 = _local2.getUserList(); for (var _local4 in _local3) { } } } function createRoom(roomObj, roomId) { if (roomId == undefined) { roomId = activeRoomId; } var _local7 = {t:"sys"}; var _local10 = (roomObj.updatable ? 1 : 0); var _local5 = (roomObj.isGame ? 1 : 0); var _local6 = 1; var _local8 = roomObj.maxSpectators; if (_local5 && (roomObj.exitCurrentRoom != undefined)) { _local6 = (roomObj.exitCurrentRoom ? 1 : 0); } var _local3 = ((((((("<room upd='" + _local10) + "' tmp='1' gam='") + _local5) + "' spec='") + _local8) + "' exit='") + _local6) + "'>"; _local3 = _local3 + (("<name><![CDATA[" + roomObj.name) + "]]></name>"); _local3 = _local3 + (("<pwd><![CDATA[" + ((roomObj.password == undefined) ? "" : (roomObj.password))) + "]]></pwd>"); _local3 = _local3 + (("<max>" + roomObj.maxUsers) + "</max>"); if (roomObj.uCount != undefined) { _local3 = _local3 + (("<uCnt>" + (roomObj.uCount ? "1" : "0")) + "</uCnt>"); } if (roomObj.extension != undefined) { _local3 = _local3 + ("<xt n='" + roomObj.extension.name); _local3 = _local3 + (("' s='" + roomObj.extension.script) + "' />"); } if (roomObj.vars == undefined) { _local3 = _local3 + "<vars></vars>"; } else { _local3 = _local3 + "<vars>"; for (var _local4 in roomObj.vars) { _local3 = _local3 + getXmlRoomVariable(roomObj.vars[_local4]); } _local3 = _local3 + "</vars>"; } _local3 = _local3 + "</room>"; send(_local7, "createRoom", roomId, _local3); } function leaveRoom(roomId) { var _local3 = {t:"sys"}; var _local2 = ("<rm id='" + roomId) + "' />"; send(_local3, "leaveRoom", roomId, _local2); } function getRoom(roomId) { if (typeof(roomId) == "number") { return(roomList[roomId]); } if (typeof(roomId) == "string") { for (var _local4 in roomList) { var _local2 = roomList[_local4]; if (_local2.getName() == roomId) { return(_local2); } } } } function getActiveRoom() { return(roomList[activeRoomId]); } function setRoomVariables(varList, roomId, setOwnership) { if (roomId == undefined) { roomId = activeRoomId; } if (setOwnership == undefined) { setOwnership = true; } var _local5 = {t:"sys"}; var _local4; if (setOwnership) { _local4 = "<vars>"; } else { _local4 = "<vars so='0'>"; } var _local2 = 0; while (_local2 < varList.length) { _local4 = _local4 + getXmlRoomVariable(varList[_local2]); _local2++; } _local4 = _local4 + "</vars>"; send(_local5, "setRvars", roomId, _local4); } function getXmlRoomVariable(rVar) { var _local5 = rVar.name; var _local1 = rVar.val; var _local6 = (rVar.priv ? "1" : "0"); var _local4 = (rVar.persistent ? "1" : "0"); var _local2 = null; if (typeof(_local1) == "boolean") { _local2 = "b"; _local1 = (_local1 ? 1 : 0); } else if (typeof(_local1) == "number") { _local2 = "n"; } else if (typeof(_local1) == "string") { _local2 = "s"; } else if (typeof(_local1) == "null") { _local2 = "x"; } if (_local2 != null) { return(((((((((("<var n='" + _local5) + "' t='") + _local2) + "' pr='") + _local6) + "' pe='") + _local4) + "'><![CDATA[") + _local1) + "]]></var>"); } return(""); } function loadBuddyList() { var _local2 = {t:"sys"}; send(_local2, "loadB", -1, ""); } function addBuddy(buddyName) { if ((buddyName != myUserName) && (!checkBuddy(buddyName))) { var _local6 = roomList[activeRoomId].getUserList().getUser(buddyName); var _local4 = {t:"sys"}; var _local3 = ("<n>" + buddyName) + "</n>"; send(_local4, "addB", -1, _local3); } } function removeBuddy(buddyName) { for (var _local3 in buddyList) { if (buddyList[_local3].name == buddyName) { delete buddyList[_local3]; break; } } var _local5 = {t:"sys"}; var _local4 = ("<n>" + buddyName) + "</n>"; send(_local5, "remB", -1, _local4); onBuddyList(buddyList); } function getBuddyByName(buddyName) { var _local2; for (var _local4 in buddyList) { _local2 = buddyList[_local4]; if (_local2.name == buddyName) { return(_local2); } } return(null); } function getBuddyById(id) { var _local2; for (var _local4 in buddyList) { _local2 = buddyList[_local4]; if (_local2.id == id) { return(_local2); } } return(null); } function getBuddyRoom(buddy) { if (buddy.id != -1) { send({t:"sys", bid:buddy.id}, "roomB", -1, ("<b id='" + buddy.id) + "' />"); } } function checkBuddy(name) { var _local2 = false; for (var _local4 in buddyList) { if (buddyList[_local4].name == name) { _local2 = true; break; } } return(_local2); } function clearBuddyList() { buddyList = []; send({t:"sys"}, "clearB", -1, ""); onBuddyList(buddyList); } function roundTripBench() { t1 = getTimer(); var _local2 = {t:"sys"}; send(_local2, "roundTrip", activeRoomId, ""); } function switchSpectator(roomId) { if (roomId == undefined) { roomId = activeRoomId; } var _local2 = {t:"sys"}; send(_local2, "swSpec", roomId, ""); } function getRandomKey() { send({t:"sys"}, "rndK", -1, ""); } function send(header, action, fromRoom, message) { var _local3 = makeHeader(header); _local3 = _local3 + ((((((("<body action='" + action) + "' r='") + fromRoom) + "'>") + message) + "</body>") + closeHeader()); if (debug) { } if (isHttpMode) { httpConnection.send(_local3); } else { super.send(_local3); } } function uploadFile(fileRef, id, nick, port) { if (id == undefined) { id = myUserId; } if (nick == undefined) { nick = myUserName; } if (port == undefined) { port = httpPort; } fileRef.upload((((((("http://" + ipAddress) + ":") + port) + "/default/Upload.py?id=") + id) + "&nick=") + nick); if (debug) { } } function getUploadPath() { return(((("http://" + ipAddress) + ":") + httpPort) + "/default/uploads/"); } function sendString(message) { if (debug) { } if (isHttpMode) { httpConnection.send(message); } else { super.send(message); } } function sendJson(message) { if (debug) { } if (isHttpMode) { httpConnection.send(message); } else { super.send(message); } } function gotData(message) { if (message.charAt(0) == rawProtocolSeparator) { strReceived(message); } else if (message.charAt(0) == "<") { onXML(new XML(message)); } else if (message.charAt(0) == "{") { jsonReceived(message); } } function connectionEstablished(ok) { if (ok) { clearInterval(socketConnectionTimeoutThread); preConnection = false; var _local3 = {t:"sys"}; var _local2 = ((("<ver v='" + majVersion.toString()) + minVersion.toString()) + subVersion.toString()) + "' />"; send(_local3, "verChk", 0, _local2); } else if (smartConnect && (preConnection)) { if (debug) { } isHttpMode = true; var _local4 = ((blueBoxIpAddress != null) ? (blueBoxIpAddress) : (ipAddress)); var _local5 = ((blueBoxPort != 0) ? (blueBoxPort) : (httpPort)); httpConnection.connect(_local4, _local5); } else { preConnection = false; onConnection(false); } } function connectionClosed() { isConnected = false; if (preConnection) { connectionEstablished(false); } else { initialize(); onConnectionLost(); } } function connect(ipAdr, port) { if (!isConnected) { ipAddress = ipAdr; this.port = port; super.connect(ipAdr, port); socketConnectionTimeoutThread = setInterval(mx.utils.Delegate.create(this, socketTimeoutHandler), socketConnectionTimeout); } } function disconnect() { close(); isConnected = false; if (isHttpMode) { httpConnection.close(); } initialize(); onConnectionLost(); } function xmlReceived(message) { var _local2 = new Object(); message2Object(message.childNodes, _local2); if (debug) { } var _local3 = _local2.msg.attributes.t; messageHandlers[_local3].handleMessage(_local2.msg.body, this, "xml"); } function socketTimeoutHandler() { clearInterval(socketConnectionTimeoutThread); close(); } function strReceived(message) { var _local2 = message.substr(1, message.length - 2).split(rawProtocolSeparator); if (debug) { } var _local4 = _local2[0]; messageHandlers[_local4].handleMessage(_local2.splice(1, _local2.length - 1), this, "str"); } function jsonReceived(message) { var _local2 = it.gotoandplay.smartfoxserver.JSON.parse(message); if (debug) { } var _local3 = _local2.t; messageHandlers[_local3].handleMessage(_local2.b, this, "json"); } function message2Object(xmlNodes, parentObj) { var _local8 = 0; var _local3 = null; while (_local8 < xmlNodes.length) { var _local4 = xmlNodes[_local8]; var _local5 = _local4.nodeName; var _local6 = _local4.nodeValue; if (parentObj instanceof Array) { _local3 = {}; parentObj.push(_local3); _local3 = parentObj[parentObj.length - 1]; } else { parentObj[_local5] = new Object(); _local3 = parentObj[_local5]; } for (var _local11 in _local4.attributes) { if (typeof(_local3.attributes) == "undefined") { _local3.attributes = {}; } var _local2 = _local4.attributes[_local11]; if (!isNaN(Number(_local2))) { _local2 = Number(_local2); } if (_local2.toLowerCase() == "true") { _local2 = true; } else if (_local2.toLowerCase() == "false") { _local2 = false; } _local3.attributes[_local11] = _local2; } if (arrayTags[_local5]) { _local3[_local5] = []; _local3 = _local3[_local5]; } if (_local4.hasChildNodes() && (_local4.firstChild.nodeValue == undefined)) { var _local9 = _local4.childNodes; message2Object(_local9, _local3); } else { _local6 = _local4.firstChild.nodeValue; if (((!isNaN(_local6)) && (_local4.nodeName != "txt")) && (_local4.nodeName != "var")) { _local6 = Number(_local6); } _local3.value = _local6; } _local8++; } } function makeHeader(headerObj) { var _local2 = "<msg"; for (var _local3 in headerObj) { _local2 = _local2 + ((((" " + _local3) + "='") + headerObj[_local3]) + "'"); } _local2 = _local2 + ">"; return(_local2); } function closeHeader() { return("</msg>"); } function handleDelayedPoll() { httpConnection.send(HTTP_POLL_REQUEST); if (fpMajorVersion < 8) { clearInterval(pollingThread); } } function handleHttpConnect(params) { isConnected = true; preConnection = false; connectionEstablished(true); httpConnection.send(HTTP_POLL_REQUEST); } function handleHttpClose(params) { initialize(); onConnectionLost(); } function handleHttpData(params) { var _local5 = params.data; var _local4 = _local5.split(newline); var _local3; var _local2 = 0; while (_local2 < (_local4.length - 1)) { _local3 = _local4[_local2]; if (_local3.length > 0) { gotData(_local3); } _local2++; } if (_httpPollSpeed > 0) { pollingThread = pollingDelayFn(mx.utils.Delegate.create(this, handleDelayedPoll), _httpPollSpeed); } else { httpConnection.send(HTTP_POLL_REQUEST); } } function handleHttpError(params) { if (!isConnected) { onConnection(false); } else { connectionClosed(); } } static var MIN_POLL_SPEED = 0; static var DEFAULT_POLL_SPEED = 750; static var MAX_POLL_SPEED = 10000; static var HTTP_POLL_REQUEST = "poll"; static var MODMSG_TO_USER = "u"; static var MODMSG_TO_ROOM = "r"; static var MODMSG_TO_ZONE = "z"; static var PROTOCOL_XML = "xml"; static var PROTOCOL_STR = "str"; static var PROTOCOL_JSON = "json"; static var CONNECTION_MODE_DISCONNECTED = "disconnected"; static var CONNECTION_MODE_SOCKET = "socket"; static var CONNECTION_MODE_HTTP = "http"; var DEFAULT_CONFIG_FILE = "config.xml"; var DEFAULT_AUTO_CONNECT = true; var majVersion = 1; var minVersion = 5; var subVersion = 4; var autoConnectOnConfigSuccess = true; var defaultZone = ""; var httpPort = 8080; var rawProtocolSeparator = "%"; var blueBoxPort = 0; var smartConnect = true; var socketConnectionTimeout = 5000; var isHttpMode = false; var _httpPollSpeed = DEFAULT_POLL_SPEED; var pollingThread = -1; var preConnection = true; }Symbol 1065 MovieClip [__Packages.it.gotoandplay.smartfoxserver.ObjectSerializer] Frame 0class it.gotoandplay.smartfoxserver.ObjectSerializer { static var __instance; var tabs, xmlStr, debug, eof, ascTab, ascTabRev, hexTable; function ObjectSerializer () { init(); } static function getInstance() { if (__instance == null) { __instance = new it.gotoandplay.smartfoxserver.ObjectSerializer(); } return(__instance); } function init() { tabs = "\t\t\t\t\t\t\t\t\t\t"; xmlStr = ""; debug = false; eof = ""; ascTab = []; ascTab[">"] = ">"; ascTab["<"] = "<"; ascTab["&"] = "&"; ascTab["'"] = "'"; ascTab["\""] = """; ascTabRev = []; ascTabRev[">"] = ">"; ascTabRev["<"] = "<"; ascTabRev["&"] = "&"; ascTabRev["'"] = "'"; ascTabRev["""] = "\""; hexTable = new Array(); hexTable["0"] = 0; hexTable["1"] = 1; hexTable["2"] = 2; hexTable["3"] = 3; hexTable["4"] = 4; hexTable["5"] = 5; hexTable["6"] = 6; hexTable["7"] = 7; hexTable["8"] = 8; hexTable["9"] = 9; hexTable.A = 10; hexTable.B = 11; hexTable.C = 12; hexTable.D = 13; hexTable.E = 14; hexTable.F = 15; } function serialize(obj) { var _local2 = {}; _local2.xmlStr = ""; if (debug) { eof = newline; } obj2xml(_local2, obj, 0, ""); return(_local2.xmlStr); } function obj2xml(envelope, obj, lev, objn) { if (lev == 0) { envelope.xmlStr = envelope.xmlStr + ("<dataObj>" + eof); } else { if (debug) { envelope.xmlStr = envelope.xmlStr + tabs.substr(0, lev); } var _local8 = ((obj instanceof Array) ? "a" : "o"); envelope.xmlStr = envelope.xmlStr + ((((("<obj t='" + _local8) + "' o='") + objn) + "'>") + eof); } for (var _local7 in obj) { var _local2 = typeof(obj[_local7]); var _local3 = obj[_local7]; if ((((_local2 == "boolean") || (_local2 == "number")) || (_local2 == "string")) || (_local2 == "null")) { if (_local2 == "boolean") { _local3 = Number(_local3); } else if (_local2 == "null") { _local2 = "x"; _local3 = ""; } else if (_local2 == "string") { _local3 = encodeEntities(_local3); } if (debug) { envelope.xmlStr = envelope.xmlStr + tabs.substr(0, lev + 1); } envelope.xmlStr = envelope.xmlStr + ((((((("<var n='" + _local7) + "' t='") + _local2.substr(0, 1)) + "'>") + _local3) + "</var>") + eof); } else if (_local2 == "object") { obj2xml(envelope, _local3, lev + 1, _local7); if (debug) { envelope.xmlStr = envelope.xmlStr + tabs.substr(0, lev + 1); } envelope.xmlStr = envelope.xmlStr + ("</obj>" + eof); } } if (lev == 0) { envelope.xmlStr = envelope.xmlStr + ("</dataObj>" + eof); } } function deserialize(xmlObj) { var _local3 = new XML(xmlObj); _local3.ignoreWhite = true; var _local2 = new Object(); xml2obj(_local3, _local2); return(_local2); } function xml2obj(xmlNode, currObj) { var _local2 = 0; var _local3 = xmlNode.firstChild; while (_local3.childNodes[_local2]) { if (_local3.childNodes[_local2].nodeName == "obj") { var _local9 = _local3.childNodes[_local2].attributes.o; var _local7 = _local3.childNodes[_local2].attributes.t; if (_local7 == "a") { currObj[_local9] = []; } else if (_local7 == "o") { currObj[_local9] = {}; } xml2obj(new XML(_local3.childNodes[_local2]), currObj[_local9]); } else { var _local9 = _local3.childNodes[_local2].attributes.n; var _local4 = _local3.childNodes[_local2].attributes.t; var _local8 = _local3.childNodes[_local2].firstChild.nodeValue; var _local5; if (_local4 == "b") { _local5 = function (b) { return(Boolean(Number(b))); }; } else if (_local4 == "n") { _local5 = Number; } else if (_local4 == "s") { _local5 = String; } else if (_local4 == "x") { _local5 = function (x) { return(null); }; } currObj[_local9] = _local5(_local8); } _local2++; } } function encodeEntities(st) { var _local5 = ""; var _local4 = 0; while (_local4 < st.length) { var _local3 = st.charAt(_local4); var _local2 = st.charCodeAt(_local4); if (((_local2 == 9) || (_local2 == 10)) || (_local2 == 13)) { _local5 = _local5 + _local3; } else if ((_local2 >= 32) && (_local2 <= 126)) { if (ascTab[_local3] != undefined) { _local5 = _local5 + ascTab[_local3]; } else { _local5 = _local5 + _local3; } } else { _local5 = _local5 + _local3; } _local4++; } return(_local5); } function decodeEntities(st) { var _local7; var _local6; var _local5; var _local3; var _local8; var _local2 = 0; _local7 = ""; while (_local2 < st.length) { _local6 = st.charAt(_local2); if (_local6 == "&") { _local5 = _local6; do { _local2++; _local3 = st.charAt(_local2); _local5 = _local5 + _local3; } while ((_local3 != ";") && (_local2 < st.length)); _local8 = ascTabRev[_local5]; if (_local8 != undefined) { _local7 = _local7 + _local8; } else { _local7 = _local7 + String.fromCharCode(getCharCode(_local5)); } } else { _local7 = _local7 + _local6; } _local2++; } return(_local7); } function getCharCode(ent) { var _local1 = ent.substr(3, ent.length); _local1 = _local1.substr(0, _local1.length - 1); return(Number("0x" + _local1)); } }Symbol 1066 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.HttpConnection] Frame 0class it.gotoandplay.smartfoxserver.http.HttpConnection { var codec, handlers, sessionId, ipAddr, port, webUrl, loaderFactory, _classRef; function HttpConnection (httpConnectHandler, httpCloseHandler, httpDataHandler, httpErrorHandler) { codec = new it.gotoandplay.smartfoxserver.http.RawProtocolCodec(); handlers = []; handlers[onHttpConnect] = httpConnectHandler; handlers[onHttpClose] = httpCloseHandler; handlers[onHttpData] = httpDataHandler; handlers[onHttpError] = httpErrorHandler; } function getSessionId() { return(sessionId); } function isConnected() { return(connected); } function connect(addr, port) { if (port == undefined) { port = 8080; } ipAddr = addr; this.port = port; webUrl = (((("http://" + ipAddr) + ":") + this.port) + "/") + servletUrl; sessionId = null; loaderFactory = new it.gotoandplay.smartfoxserver.http.LoaderFactory(this, handleResponse, webUrl, paramName); send(HANDSHAKE); } function close() { send(DISCONNECT); } function send(message) { if ((connected || ((!connected) && (message == HANDSHAKE))) || ((!connected) && (message == "poll"))) { if (message != "poll") { } loaderFactory.sendAndLoad(codec.encode(sessionId, message)); } } function handleResponse(data) { var _local2 = _classRef; if (data != undefined) { var _local3 = {}; if (data.charAt(0) == HANDSHAKE_TOKEN) { if (_local2.sessionId == null) { _local2.sessionId = _local2.codec.decode(data); _local2.connected = true; _local3.sessionId = _local2.sessionId; _local3.success = true; _local2.dispatchEvent(onHttpConnect, _local3); } } else if (data.indexOf(CONN_LOST) == 0) { _local3.data = {}; _local2.dispatchEvent(onHttpClose, _local3); } else { _local3.data = data; _local2.dispatchEvent(onHttpData, _local3); } } else if (!_local2.connected) { _local2.handleIOError("I/O error: null response from server"); } } function handleIOError(error) { var _local2 = {}; _local2.message = error; dispatchEvent(onHttpError, _local2); } function dispatchEvent(type, params) { handlers[type](params); } static var HANDSHAKE = "connect"; static var DISCONNECT = "disconnect"; static var CONN_LOST = "ERR#01"; static var HANDSHAKE_TOKEN = "#"; static var servletUrl = "BlueBox/HttpBox.do"; static var paramName = "sfsHttp"; static var onHttpData = "onHttpData"; static var onHttpError = "onHttpError"; static var onHttpConnect = "onHttpConnect"; static var onHttpClose = "onHttpClose"; var connected = false; }Symbol 1067 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.LoaderFactory] Frame 0class it.gotoandplay.smartfoxserver.http.LoaderFactory { var poolSize, webUrl, loaderParamName, sendersPool, loadersPool, currentIndex; function LoaderFactory (httpConnection, responseHandler, _webUrl, _loaderParamName, _poolSize) { if (_poolSize > 0) { poolSize = _poolSize; } else { poolSize = DEFAULT_POOL_SIZE; } webUrl = _webUrl; loaderParamName = _loaderParamName; sendersPool = []; loadersPool = []; var _local3 = 0; while (_local3 < poolSize) { var _local4 = new LoadVars(); var _local2 = new LoadVars(); _local2._classRef = httpConnection; _local2.onData = responseHandler; sendersPool.push(_local4); loadersPool.push(_local2); _local3++; } currentIndex = 0; } function sendAndLoad(message) { var _local2 = sendersPool[currentIndex]; var _local3 = loadersPool[currentIndex]; _local2[loaderParamName] = message; _local2.sendAndLoad(webUrl, _local3); currentIndex++; if (currentIndex >= poolSize) { currentIndex = 0; } } function handleHTTPStatus(status) { } static var DEFAULT_POOL_SIZE = 8; }Symbol 1068 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec] Frame 0interface it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec { }Symbol 1069 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.RawProtocolCodec] Frame 0class it.gotoandplay.smartfoxserver.http.RawProtocolCodec implements it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec { function RawProtocolCodec () { } function encode(sessionId, message) { return(((sessionId == null) ? "" : (sessionId)) + message); } function decode(message) { var _local1; if (message.charAt(0) == it.gotoandplay.smartfoxserver.http.HttpConnection.HANDSHAKE_TOKEN) { _local1 = message.substr(1, SESSION_ID_LEN); } return(_local1); } static var SESSION_ID_LEN = 32; }Symbol 1070 MovieClip [__Packages.mx.utils.Delegate] Frame 0class mx.utils.Delegate extends Object { var func; function Delegate (f) { super(); func = f; } static function create(obj, func) { var _local2 = function () { var _local2 = arguments.callee.target; var _local3 = arguments.callee.func; return(_local3.apply(_local2, arguments)); }; _local2.target = obj; _local2.func = func; return(_local2); } function createDelegate(obj) { return(create(obj, func)); } }Symbol 1071 MovieClip [__Packages.it.gotoandplay.smartfoxserver.Room] Frame 0class it.gotoandplay.smartfoxserver.Room { var id, name, maxUsers, maxSpectators, temp, game, priv, limbo, updatable, description, userCount, specCount, userList, variables, myPlayerIndex; function Room (id, name, maxUsers, maxSpectators, isTemp, isGame, isPrivate) { this.id = id; this.name = name; this.maxUsers = maxUsers; this.maxSpectators = maxSpectators; temp = isTemp; game = isGame; priv = isPrivate; limbo = false; updatable = false; description = ""; userCount = 0; specCount = 0; userList = new Object(); variables = new Array(); } function getUserList() { return(userList); } function getUser(userId) { if (typeof(userId) == "number") { return(userList[userId]); } if (typeof(userId) == "string") { for (var _local4 in userList) { var _local2 = userList[_local4]; if (_local2.getName() == userId) { return(_local2); } } } } function getVariable(varName) { return(variables[varName]); } function getVariables() { return(variables); } function getName() { return(name); } function getId() { return(id); } function isTemp() { return(temp); } function isGame() { return(game); } function isPrivate() { return(priv); } function getUserCount() { return(userCount); } function getSpectatorCount() { return(specCount); } function getMaxUsers() { return(maxUsers); } function getMaxSpectators() { return(maxSpectators); } function setMyPlayerIndex(id) { myPlayerIndex = id; } function getMyPlayerIndex() { return(myPlayerIndex); } function setIsLimbo(b) { limbo = b; } function isLimbo() { return(limbo); } }Symbol 1072 MovieClip [__Packages.it.gotoandplay.smartfoxserver.User] Frame 0class it.gotoandplay.smartfoxserver.User { var id, name, variables, isSpec, isMod, pid; function User (id, name) { this.id = id; this.name = name; variables = new Object(); isSpec = false; } function getId() { return(id); } function getName() { return(name); } function getVariable(varName) { return(variables[varName]); } function getVariables() { return(variables); } function setIsSpectator(b) { isSpec = b; } function isSpectator() { return(isSpec); } function setModerator(b) { isMod = b; } function isModerator() { return(isMod); } function getPlayerId() { return(pid); } function setPlayerId(pid) { this.pid = pid; } }Symbol 1073 MovieClip [__Packages.it.gotoandplay.smartfoxserver.JSON] Frame 0class it.gotoandplay.smartfoxserver.JSON { function JSON () { } static function stringify(arg) { var _local3; var _local2; var _local6; var _local1 = ""; var _local4; switch (typeof(arg)) { case "object" : if (arg) { if (arg instanceof Array) { _local2 = 0; while (_local2 < arg.length) { _local4 = stringify(arg[_local2]); if (_local1) { _local1 = _local1 + ","; } _local1 = _local1 + _local4; _local2++; } return(("[" + _local1) + "]"); } if (typeof(arg.toString) != "undefined") { for (_local2 in arg) { _local4 = arg[_local2]; if ((typeof(_local4) != "undefined") && (typeof(_local4) != "function")) { _local4 = stringify(_local4); if (_local1) { _local1 = _local1 + ","; } _local1 = _local1 + ((stringify(_local2) + ":") + _local4); } } return(("{" + _local1) + "}"); } } return("null"); case "number" : return((isFinite(arg) ? (String(arg)) : "null")); case "string" : _local6 = arg.length; _local1 = "\""; _local2 = 0; while (_local2 < _local6) { _local3 = arg.charAt(_local2); if (_local3 >= " ") { if ((_local3 == "\\") || (_local3 == "\"")) { _local1 = _local1 + "\\"; } _local1 = _local1 + _local3; } else { switch (_local3) { case "\b" : _local1 = _local1 + "\\b"; break; case "\f" : _local1 = _local1 + "\\f"; break; case newline : _local1 = _local1 + "\\n"; break; case "\r" : _local1 = _local1 + "\\r"; break; case "\t" : _local1 = _local1 + "\\t"; break; default : _local3 = _local3.charCodeAt(); _local1 = _local1 + (("\\u00" + Math.floor(_local3 / 16).toString(16)) + (_local3 % 16).toString(16)); } } _local2 = _local2 + 1; } return(_local1 + "\""); case "boolean" : return(String(arg)); } return("null"); } static function parse(text) { var at = 0; var ch = " "; var _value; var _error = function (m) { throw {name:"JSONError", message:m, at:at - 1, text:text}; }; var _next = function () { ch = text.charAt(at); at = at + 1; return(ch); }; var _white = function () { while (ch) { if (ch <= " ") { _next(); } else if (ch == "/") { switch (_next()) { case "/" : while ((_next() && (ch != newline)) && (ch != "\r")) { } break; case "*" : _next(); for(;;){ if (ch) { if (ch == "*") { if (_next() == "/") { _next(); // unexpected jump } } else { _next(); } } else { _error("Unterminated comment"); } }; break; default : _error("Syntax error"); } } else { return; } } }; var _string = function () { var _local4; var _local1 = ""; var _local3; var _local2; var _local5 = false; if (ch == "\"") { while (_next()) { if (ch == "\"") { _next(); return(_local1); } if (ch == "\\") { switch (_next()) { case "b" : _local1 = _local1 + "\b"; break; case "f" : _local1 = _local1 + "\f"; break; case "n" : _local1 = _local1 + newline; break; case "r" : _local1 = _local1 + "\r"; break; case "t" : _local1 = _local1 + "\t"; break; case "u" : _local2 = 0; _local4 = 0; while (_local4 < 4) { _local3 = parseInt(_next(), 16); if (!isFinite(_local3)) { _local5 = true; break; } _local2 = (_local2 * 16) + _local3; _local4 = _local4 + 1; } if (_local5) { _local5 = false; break; } _local1 = _local1 + String.fromCharCode(_local2); break; default : _local1 = _local1 + ch; } } else { _local1 = _local1 + ch; } } } _error("Bad string"); }; var _array = function () { var _local1 = []; if (ch == "[") { _next(); _white(); if (ch == "]") { _next(); return(_local1); } while (ch) { _local1.push(_value()); _white(); if (ch == "]") { _next(); return(_local1); } if (ch != ",") { break; } _next(); _white(); } } _error("Bad array"); }; var _object = function () { var _local2; var _local1 = {}; if (ch == "{") { _next(); _white(); if (ch == "}") { _next(); return(_local1); } while (ch) { _local2 = _string(); _white(); if (ch != ":") { break; } _next(); _local1[_local2] = _value(); _white(); if (ch == "}") { _next(); return(_local1); } if (ch != ",") { break; } _next(); _white(); } } _error("Bad object"); }; var _number = function () { var _local1 = ""; var _local2; if (ch == "-") { _local1 = "-"; _next(); } while ((ch >= "0") && (ch <= "9")) { _local1 = _local1 + ch; _next(); } if (ch == ".") { _local1 = _local1 + "."; while ((_next() && (ch >= "0")) && (ch <= "9")) { _local1 = _local1 + ch; } } _local2 = 1 * _local1; if (!isFinite(_local2)) { _error("Bad number"); } else { return(_local2); } }; var _word = function () { switch (ch) { case "t" : if (((_next() == "r") && (_next() == "u")) && (_next() == "e")) { _next(); return(true); } break; case "f" : if ((((_next() == "a") && (_next() == "l")) && (_next() == "s")) && (_next() == "e")) { _next(); return(false); } break; case "n" : if (!(((_next() == "u") && (_next() == "l")) && (_next() == "l"))) { break; } _next(); return(null); } _error("Syntax error"); }; _value = function () { _white(); switch (ch) { case "{" : return(_object()); case "[" : return(_array()); case "\"" : return(_string()); case "-" : return(_number()); } return((((ch >= "0") && (ch <= "9")) ? (_number()) : (_word()))); }; return(_value()); } }Symbol 1074 MovieClip [__Packages.ToolTip] Frame 0class ToolTip { static var _text, label, _cont, _caller, _mouseListener, toolTipintervalID, shadow, bg; function ToolTip () { } static function set text(_t) { _text = _t; //return(text); } static function get text() { return(label.text); } static function get active() { return(_cont._visible); } static function set caller(_c) { _caller = _c; //return(caller); } static function get caller() { return(_caller); } static function show(_t, time) { if ((time && (time > 0)) && (_t != "")) { setText((_t ? (_t) : (_text))); _mouseListener.show = mx.utils.Delegate.create(getInstance(), show); clearInterval(toolTipintervalID); toolTipintervalID = setInterval(_mouseListener, "show", time); return(undefined); } clearInterval(toolTipintervalID); Mouse.addListener(_mouseListener); _mouseListener.onMouseMove = mx.utils.Delegate.create(getInstance(), setToolTipToMouse); setToolTipToMouse(); _cont._visible = true; } static function hide() { Mouse.removeListener(_mouseListener); delete _mouseListener.onMouseMove; _cont._visible = false; clearInterval(toolTipintervalID); } static function getInstance() { if (_instance == undefined) { _instance = new ToolTip(); init(); } return(_instance); } static function init() { _cont = _root.createEmptyMovieClip("__tooltip_mc", 35000); shadow = _cont.createEmptyMovieClip("shadow", 1); bg = _cont.createEmptyMovieClip("bg", 2); _cont.createTextField("label", 3, 5, 0, 120, 20); label = _cont.label; label.autoSize = "left"; label.wordWrap = true; label.html = true; label.selectable = false; label.multiline = true; _mouseListener = new Object(); hide(); } static function setText(_t) { label.htmlText = ("<font face=\"Verdana\" size=\"10\">" + _t) + "</font>"; resetBG(); } static function setToolTipToMouse(Void) { _cont._x = _root._xmouse + 15; _cont._y = _root._ymouse; if ((_cont._x + _cont._width) > Stage.width) { _cont._x = (_root._xmouse - _cont._width) - 5; if (_cont._x < 0) { _cont._x = Stage.width - _cont._width; } } if ((_cont._y + _cont._height) > Stage.height) { _cont._y = (_root._ymouse - _cont._height) - 5; } updateAfterEvent(); } static function resetBG(Void) { var _local2 = label.textWidth + 12; var _local1 = label.textHeight + 4; bg.clear(); bg.lineStyle(0, 3355443, 80); bg.beginFill(16777164, 80); bg.moveTo(0, 0); bg.lineTo(0, _local1); bg.lineTo(_local2, _local1); bg.lineTo(_local2, 0); bg.lineTo(0, 0); bg.endFill(); shadow.clear(); shadow.beginFill(3355443, 60); shadow.moveTo(2, 2); shadow.lineTo(2, _local1 + 2); shadow.lineTo(_local2 + 2, _local1 + 2); shadow.lineTo(_local2 + 2, 2); shadow.lineTo(2, 2); shadow.endFill(); } static function install(mc, text, delay) { mc.toolTipText = (text ? (text) : ""); mc.toolTipDelay = (delay ? (delay) : 500); mc.oldOnRollOver = mc.onRollOver; mc.onRollOver = function () { if (this.enabled && (_root.autoHelp || (this.fixedToolTip))) { if (this.oldOnRollOver) { this.oldOnRollOver(); } if (this.toolTipText != "") { ToolTip.show(this.toolTipText, this.toolTipDelay); } } }; mc.oldOnRollOut = mc.onRollOut; mc.onRollOut = function () { if (this.oldOnRollOut) { this.oldOnRollOut(); } ToolTip.hide(); }; mc.onPress = function () { if (this.oldOnRollOut) { this.oldOnRollOut(); } ToolTip.hide(); }; } static var _instance = getInstance(); }Symbol 371 MovieClip [__Packages.mx.controls.UIScrollBar] Frame 0class mx.controls.UIScrollBar extends mx.controls.scrollClasses.ScrollBar { var textField, wasHorizontal, __width, __height, _parent, synchScroll, setScrollProperties, __set__scrollPosition, initializing, _rotation, _xscale, hScroller, vScroller, onChanged, onScroller, scrollPosition, dispatchEvent; function UIScrollBar () { super(); } function init(Void) { super.init(); textField.owner = this; horizontal = (wasHorizontal); if (horizontal) { ((textField != undefined) ? (super.setSize(textField._width, 16)) : (super.setSize(__width, __height))); } else { ((textField != undefined) ? (super.setSize(16, textField._height)) : (super.setSize(__width, __height))); } if (horizontal) { var _local3 = __width; __height = __width; width = _local3; __width = 16; } textField.onScroller = function () { this.hPosition = this.hscroll; this.vPosition = this.scroll - 1; }; if (_targetInstanceName != undefined) { setScrollTarget(_targetInstanceName); _targetInstanceName.addListener(this); } } function get _targetInstanceName() { return(textField); } function get height() { if (wasHorizontal) { return(__width); } return(__height); } function get width() { if (wasHorizontal) { return(__height); } return(__width); } function size(Void) { super.size(); onTextChanged(); } function draw() { super.draw(); } function set _targetInstanceName(t) { if (t == undefined) { textField.removeListener(this); delete textField[(horizontal ? "hScroller" : "vScroller")]; if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) { textField.unwatch("text"); textField.unwatch("htmltext"); } } var _local3 = _parent[t]; textField = _parent[t]; onTextChanged(); //return(_targetInstanceName); } function setSize(w, h) { if (horizontal) { super.setSize(h, w); } else { super.setSize(w, h); } } function onTextChanged(Void) { if (textField == undefined) { return(undefined); } clearInterval(synchScroll); if (horizontal) { var _local2 = textField.hscroll; setScrollProperties(textField._width, 0, textField.maxhscroll); __set__scrollPosition(Math.min(_local2, textField.maxhscroll)); } else { var _local2 = textField.scroll; var _local3 = textField.bottomScroll - textField.scroll; setScrollProperties(_local3, 1, textField.maxscroll); __set__scrollPosition(Math.min(_local2, textField.maxscroll)); } } function get horizontal() { return(wasHorizontal); } function set horizontal(v) { wasHorizontal = v; if (v and initializing) { if (_rotation == 90) { return; } _xscale = -100; _rotation = -90; } if (!initializing) { if (v) { if (_rotation == 0) { _rotation = -90; _xscale = -100; } } else if (_rotation == -90) { _rotation = 0; _xscale = 100; } } //return(horizontal); } function callback(prop, oldval, newval) { clearInterval(hScroller.synchScroll); clearInterval(vScroller.synchScroll); hScroller.synchScroll = setInterval(hScroller, "onTextChanged", 50); vScroller.synchScroll = setInterval(vScroller, "onTextChanged", 50); return(newval); } function setScrollTarget(tF) { if (tF == undefined) { textField.removeListener(this); delete textField[(horizontal ? "hScroller" : "vScroller")]; if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) { textField.unwatch("text"); textField.unwatch("htmltext"); } } textField = undefined; if (!(tF instanceof TextField)) { return(undefined); } textField = tF; if (horizontal) { textField.hScroller = this; textField.hScroller.lineScrollSize = 5; } else { textField.vScroller = this; textField.vScroller.lineScrollSize = 1; } onTextChanged(); onChanged = function (Void) { this.onTextChanged(); }; onScroller = function (Void) { if (!this.isScrolling) { if (!this.horizontal) { this.scrollPosition = this.textField.scroll; } else { this.scrollPosition = this.textField.hscroll; } } }; textField.addListener(this); textField.watch("text", callback); textField.watch("htmlText", callback); } function scrollHandler(Void) { if (horizontal) { var _local2 = textField.background; textField.hscroll = scrollPosition; textField.background = _local2; } else { textField.scroll = scrollPosition; } } function setEnabled(enable) { super.setEnabled(enable); if (enable) { textField.addListener(this); } else { textField.removeListener(); } } function dispatchScrollEvent(detail) { dispatchEvent({type:"scroll"}); } static var symbolName = "UIScrollBar"; static var symbolOwner = mx.controls.UIScrollBar; var className = "UIScrollBar"; var clipParameters = {_targetInstanceName:1, horizontal:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.UIScrollBar.prototype.clipParameters); static var version = "2.0.1.78"; }Symbol 413 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar { var scrollIt; function VScrollBar () { super(); } function init(Void) { super.init(); } function isScrollBarKey(k) { if (k == 38) { scrollIt("Line", -1); return(true); } if (k == 40) { scrollIt("Line", 1); return(true); } if (k == 33) { scrollIt("Page", -1); return(true); } if (k == 34) { scrollIt("Page", 1); return(true); } return(super.isScrollBarKey(k)); } static var symbolName = "VScrollBar"; static var symbolOwner = mx.core.UIComponent; static var version = "2.0.2.126"; var className = "VScrollBar"; var minusMode = "Up"; var plusMode = "Down"; var minMode = "AtTop"; var maxMode = "AtBottom"; }Symbol 414 MovieClip [__Packages.mx.controls.Button] Frame 0class mx.controls.Button extends mx.controls.SimpleButton { var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject; function Button () { super(); } function init(Void) { super.init(); } function draw() { if (initializing) { labelPath.visible = true; } super.draw(); if (initIcon != undefined) { _setIcon(initIcon); } delete initIcon; } function onRelease(Void) { super.onRelease(); } function createChildren(Void) { super.createChildren(); } function setSkin(tag, linkageName, initobj) { return(super.setSkin(tag, linkageName, initobj)); } function viewSkin(varName) { var _local3 = (getState() ? "true" : "false"); _local3 = _local3 + (enabled ? (phase) : "disabled"); super.viewSkin(varName, {styleName:this, borderStyle:_local3}); } function invalidateStyle(c) { labelPath.invalidateStyle(c); super.invalidateStyle(c); } function setColor(c) { var _local2 = 0; while (_local2 < 8) { this[idNames[_local2]].redraw(true); _local2++; } } function setEnabled(enable) { labelPath.enabled = enable; super.setEnabled(enable); } function calcSize(tag, ref) { if ((__width == undefined) || (__height == undefined)) { return(undefined); } if (tag < 7) { ref.setSize(__width, __height, true); } } function size(Void) { setState(getState()); setHitArea(__width, __height); var _local3 = 0; while (_local3 < 8) { var _local4 = idNames[_local3]; if (typeof(this[_local4]) == "movieclip") { this[_local4].setSize(__width, __height, true); } _local3++; } super.size(); } function set labelPlacement(val) { __labelPlacement = val; invalidate(); //return(labelPlacement); } function get labelPlacement() { return(__labelPlacement); } function getLabelPlacement(Void) { return(__labelPlacement); } function setLabelPlacement(val) { __labelPlacement = val; invalidate(); } function getBtnOffset(Void) { if (getState()) { var _local2 = btnOffset; } else if (phase == "down") { var _local2 = btnOffset; } else { var _local2 = 0; } return(_local2); } function setView(offset) { var _local16 = (offset ? (btnOffset) : 0); var _local12 = getLabelPlacement(); var _local7 = 0; var _local6 = 0; var _local9 = 0; var _local8 = 0; var _local5 = 0; var _local4 = 0; var _local3 = labelPath; var _local2 = iconName; var _local15 = _local3.textWidth; var _local14 = _local3.textHeight; var _local10 = (__width - borderW) - borderW; var _local11 = (__height - borderW) - borderW; if (_local2 != undefined) { _local7 = _local2._width; _local6 = _local2._height; } if ((_local12 == "left") || (_local12 == "right")) { if (_local3 != undefined) { _local9 = Math.min(_local10 - _local7, _local15 + 5); _local3._width = _local9; _local8 = Math.min(_local11, _local14 + 5); _local3._height = _local8; } if (_local12 == "right") { _local5 = _local7; if (centerContent) { _local5 = _local5 + (((_local10 - _local9) - _local7) / 2); } _local2._x = _local5 - _local7; } else { _local5 = (_local10 - _local9) - _local7; if (centerContent) { _local5 = _local5 / 2; } _local2._x = _local5 + _local9; } _local4 = 0; _local2._y = _local4; if (centerContent) { _local2._y = (_local11 - _local6) / 2; _local4 = (_local11 - _local8) / 2; } if (!centerContent) { _local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2); } } else { if (_local3 != undefined) { _local9 = Math.min(_local10, _local15 + 5); _local3._width = _local9; _local8 = Math.min(_local11 - _local6, _local14 + 5); _local3._height = _local8; } _local5 = (_local10 - _local9) / 2; _local2._x = (_local10 - _local7) / 2; if (_local12 == "top") { _local4 = (_local11 - _local8) - _local6; if (centerContent) { _local4 = _local4 / 2; } _local2._y = _local4 + _local8; } else { _local4 = _local6; if (centerContent) { _local4 = _local4 + (((_local11 - _local8) - _local6) / 2); } _local2._y = _local4 - _local6; } } var _local13 = borderW + _local16; _local3._x = _local5 + _local13; _local3._y = _local4 + _local13; _local2._x = _local2._x + _local13; _local2._y = _local2._y + _local13; } function set label(lbl) { setLabel(lbl); //return(label); } function setLabel(label) { if (label == "") { labelPath.removeTextField(); refresh(); return(undefined); } if (labelPath == undefined) { var _local2 = createLabel("labelPath", 200, label); _local2._width = _local2.textWidth + 5; _local2._height = _local2.textHeight + 5; if (initializing) { _local2.visible = false; } } else { delete labelPath.__text; labelPath.text = label; refresh(); } } function getLabel(Void) { return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text))); } function get label() { return(getLabel()); } function _getIcon(Void) { return(_iconLinkageName); } function get icon() { if (initializing) { return(initIcon); } return(_iconLinkageName); } function _setIcon(linkage) { if (initializing) { if (linkage == "") { return(undefined); } initIcon = linkage; } else { if (linkage == "") { removeIcons(); return(undefined); } super.changeIcon(0, linkage); super.changeIcon(1, linkage); super.changeIcon(3, linkage); super.changeIcon(4, linkage); super.changeIcon(5, linkage); _iconLinkageName = linkage; refresh(); } } function set icon(linkage) { _setIcon(linkage); //return(icon); } function setHitArea(w, h) { if (hitArea_mc == undefined) { createEmptyObject("hitArea_mc", 100); } var _local2 = hitArea_mc; _local2.clear(); _local2.beginFill(16711680); _local2.drawRect(0, 0, w, h); _local2.endFill(); _local2.setVisible(false); } static var symbolName = "Button"; static var symbolOwner = mx.controls.Button; var className = "Button"; static var version = "2.0.2.126"; var btnOffset = 0; var _color = "buttonColor"; var __label = "default value"; var __labelPlacement = "right"; var falseUpSkin = "ButtonSkin"; var falseDownSkin = "ButtonSkin"; var falseOverSkin = "ButtonSkin"; var falseDisabledSkin = "ButtonSkin"; var trueUpSkin = "ButtonSkin"; var trueDownSkin = "ButtonSkin"; var trueOverSkin = "ButtonSkin"; var trueDisabledSkin = "ButtonSkin"; var falseUpIcon = ""; var falseDownIcon = ""; var falseOverIcon = ""; var falseDisabledIcon = ""; var trueUpIcon = ""; var trueDownIcon = ""; var trueOverIcon = ""; var trueDisabledIcon = ""; var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters); var centerContent = true; var borderW = 1; }Symbol 418 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0class mx.core.ext.UIObjectExtensions { function UIObjectExtensions () { } static function addGeometry(tf, ui) { tf.addProperty("width", ui.__get__width, null); tf.addProperty("height", ui.__get__height, null); tf.addProperty("left", ui.__get__left, null); tf.addProperty("x", ui.__get__x, null); tf.addProperty("top", ui.__get__top, null); tf.addProperty("y", ui.__get__y, null); tf.addProperty("right", ui.__get__right, null); tf.addProperty("bottom", ui.__get__bottom, null); tf.addProperty("visible", ui.__get__visible, ui.__set__visible); } static function Extensions() { if (bExtended == true) { return(true); } bExtended = true; var _local6 = mx.core.UIObject.prototype; var _local9 = mx.skins.SkinElement.prototype; addGeometry(_local9, _local6); mx.events.UIEventDispatcher.initialize(_local6); var _local13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(_local6); var _local5 = MovieClip.prototype; _local5.getTopLevel = _local6.getTopLevel; _local5.createLabel = _local6.createLabel; _local5.createObject = _local6.createObject; _local5.createClassObject = _local6.createClassObject; _local5.createEmptyObject = _local6.createEmptyObject; _local5.destroyObject = _local6.destroyObject; _global.ASSetPropFlags(_local5, "getTopLevel", 1); _global.ASSetPropFlags(_local5, "createLabel", 1); _global.ASSetPropFlags(_local5, "createObject", 1); _global.ASSetPropFlags(_local5, "createClassObject", 1); _global.ASSetPropFlags(_local5, "createEmptyObject", 1); _global.ASSetPropFlags(_local5, "destroyObject", 1); _local5.__getTextFormat = _local6.__getTextFormat; _local5._getTextFormat = _local6._getTextFormat; _local5.getStyleName = _local6.getStyleName; _local5.getStyle = _local6.getStyle; _global.ASSetPropFlags(_local5, "__getTextFormat", 1); _global.ASSetPropFlags(_local5, "_getTextFormat", 1); _global.ASSetPropFlags(_local5, "getStyleName", 1); _global.ASSetPropFlags(_local5, "getStyle", 1); var _local7 = TextField.prototype; addGeometry(_local7, _local6); _local7.addProperty("enabled", function () { return(this.__enabled); }, function (x) { this.__enabled = x; this.invalidateStyle(); }); _local7.move = _local9.move; _local7.setSize = _local9.setSize; _local7.invalidateStyle = function () { this.invalidateFlag = true; }; _local7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var _local2 = this._getTextFormat(); this.setTextFormat(_local2); this.setNewTextFormat(_local2); this.embedFonts = _local2.embedFonts == true; if (this.__text != undefined) { if (this.text == "") { this.text = this.__text; } delete this.__text; } this._visible = true; } }; _local7.setColor = function (color) { this.textColor = color; }; _local7.getStyle = _local5.getStyle; _local7.__getTextFormat = _local6.__getTextFormat; _local7.setValue = function (v) { this.text = v; }; _local7.getValue = function () { return(this.text); }; _local7.addProperty("value", function () { return(this.getValue()); }, function (v) { this.setValue(v); }); _local7._getTextFormat = function () { var _local2 = this.stylecache.tf; if (_local2 != undefined) { return(_local2); } _local2 = new TextFormat(); this.__getTextFormat(_local2); this.stylecache.tf = _local2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var _local4 = this.getTextFormat(); this.enabledColor = _local4.color; } var _local3 = this.getStyle("disabledColor"); _local2.color = _local3; } else if (this.enabledColor != undefined) { if (_local2.color == undefined) { _local2.color = this.enabledColor; } } return(_local2); }; _local7.getPreferredWidth = function () { this.draw(); return(this.textWidth + 4); }; _local7.getPreferredHeight = function () { this.draw(); return(this.textHeight + 4); }; TextFormat.prototype.getTextExtent2 = function (s) { var _local3 = _root._getTextExtent; if (_local3 == undefined) { _root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100); _local3 = _root._getTextExtent; _local3._visible = false; } _root._getTextExtent.text = s; var _local4 = this.align; this.align = "left"; _root._getTextExtent.setTextFormat(this); this.align = _local4; return({width:_local3.textWidth, height:_local3.textHeight}); }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var _local4 = _root; while (_local4._parent != undefined) { _local4 = _local4._parent; } _local4.addProperty("width", function () { return(Stage.width); }, null); _local4.addProperty("height", function () { return(Stage.height); }, null); _global.ASSetPropFlags(_local4, "width", 1); _global.ASSetPropFlags(_local4, "height", 1); return(true); } static var bExtended = false; static var UIObjectExtended = Extensions(); static var UIObjectDependency = mx.core.UIObject; static var SkinElementDependency = mx.skins.SkinElement; static var CSSTextStylesDependency = mx.styles.CSSTextStyles; static var UIEventDispatcherDependency = mx.events.UIEventDispatcher; }Symbol 419 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0class mx.skins.halo.Defaults { var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill; function Defaults () { } static function setThemeDefaults() { var _local2 = _global.style; _local2.themeColor = 8453965 /* 0x80FF4D */; _local2.disabledColor = 8684164 /* 0x848284 */; _local2.modalTransparency = 0; _local2.filled = true; _local2.stroked = true; _local2.strokeWidth = 1; _local2.strokeColor = 0; _local2.fillColor = 16777215 /* 0xFFFFFF */; _local2.repeatInterval = 35; _local2.repeatDelay = 500; _local2.fontFamily = "_sans"; _local2.fontSize = 12; _local2.selectionColor = 13500353 /* 0xCDFFC1 */; _local2.rollOverColor = 14942166 /* 0xE3FFD6 */; _local2.useRollOver = true; _local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */; _local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */; _local2.selectionDuration = 200; _local2.openDuration = 250; _local2.borderStyle = "inset"; _local2.color = 734012 /* 0x0B333C */; _local2.textSelectedColor = 24371; _local2.textRollOverColor = 2831164 /* 0x2B333C */; _local2.textDisabledColor = 16777215 /* 0xFFFFFF */; _local2.vGridLines = true; _local2.hGridLines = false; _local2.vGridLineColor = 6710886 /* 0x666666 */; _local2.hGridLineColor = 6710886 /* 0x666666 */; _local2.headerColor = 15395562 /* 0xEAEAEA */; _local2.indentation = 17; _local2.folderOpenIcon = "TreeFolderOpen"; _local2.folderClosedIcon = "TreeFolderClosed"; _local2.defaultLeafIcon = "TreeNodeIcon"; _local2.disclosureOpenIcon = "TreeDisclosureOpen"; _local2.disclosureClosedIcon = "TreeDisclosureClosed"; _local2.popupDuration = 150; _local2.todayColor = 6710886 /* 0x666666 */; _local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration()); _local2.backgroundColor = 16777215 /* 0xFFFFFF */; _local2.borderColor = 13290186 /* 0xCACACA */; _local2.borderStyle = "inset"; _local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration()); _local2.borderStyle = "inset"; _local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration()); _local2.textAlign = "center"; _local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration()); _local2.borderColor = 14015965 /* 0xD5DDDD */; _local2.buttonColor = 7305079 /* 0x6F7777 */; _local2.shadowColor = 15658734 /* 0xEEEEEE */; _local2.highlightColor = 12897484 /* 0xC4CCCC */; _local2.shadowCapColor = 14015965 /* 0xD5DDDD */; _local2.borderCapColor = 9542041 /* 0x919999 */; var _local4 = new Object(); _local4.borderColor = 16711680 /* 0xFF0000 */; _local4.buttonColor = 16711680 /* 0xFF0000 */; _local4.shadowColor = 16711680 /* 0xFF0000 */; _local4.highlightColor = 16711680 /* 0xFF0000 */; _local4.shadowCapColor = 16711680 /* 0xFF0000 */; _local4.borderCapColor = 16711680 /* 0xFF0000 */; mx.core.UIComponent.prototype.origBorderStyles = _local4; var _local3; _local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration()); _local3.backgroundColor = 16777215 /* 0xFFFFFF */; _local3.borderStyle = "inset"; _global.styles.TextArea = _global.styles.TextInput; _local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "default"; _local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "alert"; _local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "inset"; _local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "none"; _local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration()); _local3.color = 11187123 /* 0xAAB3B3 */; _local3.fontWeight = "bold"; _local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3.fontSize = "11"; _local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "solid"; _local3.backgroundColor = 16777215 /* 0xFFFFFF */; _local3.borderColor = 9081738 /* 0x8A938A */; _local3.headerHeight = 22; _local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1))); _local3.verticalGap = -1; _local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration()); _local3.borderColor = 9542041 /* 0x919999 */; _local3.headerColor = 16777215 /* 0xFFFFFF */; _local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration()); _local3.fontSize = 10; _local3.textAlign = "right"; _local3.color = 2831164 /* 0x2B333C */; _local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3.fontSize = 11; _local3.textAlign = "center"; _local3.color = 2831164 /* 0x2B333C */; _local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration()); _local3.color = 16777215 /* 0xFFFFFF */; _local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration()); _local3.fontSize = 12; _local3.fontWeight = "bold"; _local3.textAlign = "center"; } function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof(r) == "object") { var _local18 = r.br; var _local16 = r.bl; var _local15 = r.tl; var _local10 = r.tr; } else { var _local10 = r; var _local15 = _local10; var _local16 = _local15; var _local18 = _local16; } if (typeof(c) == "object") { if (typeof(alpha) != "object") { var _local9 = [alpha, alpha]; } else { var _local9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var _local14 = h * 0.7; if (typeof(rot) != "object") { var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */}; } else { var _local11 = rot; } if (gradient == "radial") { beginGradientFill("radial", c, _local9, ratios, _local11); } else { beginGradientFill("linear", c, _local9, ratios, _local11); } } else if (c != undefined) { beginFill(c, alpha); } r = _local18; var _local13 = r - (r * 0.707106781186547); var _local12 = r - (r * 0.414213562373095); moveTo(x + w, (y + h) - r); lineTo(x + w, (y + h) - r); curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13); curveTo((x + w) - _local12, y + h, (x + w) - r, y + h); r = _local16; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo(x + r, y + h); curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13); curveTo(x, (y + h) - _local12, x, (y + h) - r); r = _local15; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo(x, y + r); curveTo(x, y + _local12, x + _local13, y + _local13); curveTo(x + _local12, y, x + r, y); r = _local10; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo((x + w) - r, y); curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13); curveTo(x + w, y + _local12, x + w, y + r); lineTo(x + w, (y + h) - r); if (c != undefined) { endFill(); } } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return(true); } static var classConstructed = classConstruct(); static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; static var UIObjectDependency = mx.core.UIObject; }Symbol 422 MovieClip [__Packages.mx.managers.FocusManager] Frame 0class mx.managers.FocusManager extends mx.core.UIComponent { var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject; function FocusManager () { super(); } function get defaultPushButton() { return(__defaultPushButton); } function set defaultPushButton(x) { if (x != __defaultPushButton) { __defaultPushButton.__set__emphasized(false); __defaultPushButton = x; defPushButton = x; x.__set__emphasized(true); } //return(defaultPushButton); } function getMaxTabIndex(o) { var _local3 = 0; var _local6; for (_local6 in o) { var _local2 = o[_local6]; if (_local2._parent == o) { if (_local2.tabIndex != undefined) { if (_local2.tabIndex > _local3) { _local3 = _local2.tabIndex; } } if (_local2.tabChildren == true) { var _local4 = getMaxTabIndex(_local2); if (_local4 > _local3) { _local3 = _local4; } } } } return(_local3); } function getNextTabIndex(Void) { return(getMaxTabIndex(form) + 1); } function get nextTabIndex() { return(getNextTabIndex()); } function relocate(Void) { var _local2 = mx.managers.SystemManager.__get__screen(); move(_local2.x - 1, _local2.y - 1); } function init(Void) { super.init(); tabEnabled = false; _width = (_height = 1); _x = (_y = -1); _alpha = 0; _parent.focusManager = this; _parent.tabChildren = true; _parent.tabEnabled = false; form = _parent; _parent.addEventListener("hide", this); _parent.addEventListener("reveal", this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(form); tabCapture.tabIndex = 0; watch("enabled", enabledChanged); Selection.addListener(this); lastMouse = new Object(); _global.ASSetPropFlags(_parent, "focusManager", 1); _global.ASSetPropFlags(_parent, "tabChildren", 1); _global.ASSetPropFlags(_parent, "tabEnabled", 1); } function enabledChanged(id, oldValue, newValue) { _visible = newValue; return(newValue); } function activate(Void) { Key.addListener(this); activated = (_visible = true); if (lastFocus != undefined) { bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { doLater(this, "restoreFocus"); } } } function deactivate(Void) { Key.removeListener(this); activated = (_visible = false); var _local2 = getSelectionFocus(); var _local3 = getActualFocus(_local2); if (isOurFocus(_local3)) { lastSelFocus = _local2; lastFocus = _local3; } cancelAllDoLaters(); } function isOurFocus(o) { if (o.focusManager == this) { return(true); } while (o != undefined) { if (o.focusManager != undefined) { return(false); } if (o._parent == _parent) { return(true); } o = o._parent; } return(false); } function onSetFocus(o, n) { if (n == null) { if (activated) { bNeedFocus = true; } } else { var _local2 = getFocus(); if (isOurFocus(_local2)) { bNeedFocus = false; lastFocus = _local2; lastSelFocus = n; } } } function restoreFocus(Void) { var _local2 = lastSelFocus.hscroll; if (_local2 != undefined) { var _local5 = lastSelFocus.scroll; var _local4 = lastSelFocus.background; } lastFocus.setFocus(); var _local3 = Selection; Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex); if (_local2 != undefined) { lastSelFocus.scroll = _local5; lastSelFocus.hscroll = _local2; lastSelFocus.background = _local4; } } function onUnload(Void) { mx.managers.SystemManager.removeFocusManager(form); } function setFocus(o) { if (o == null) { Selection.setFocus(null); } else if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } function getActualFocus(o) { var _local1 = o._parent; while (_local1 != undefined) { if (_local1.focusTextField != undefined) { while (_local1.focusTextField != undefined) { o = _local1; _local1 = _local1._parent; if (_local1 == undefined) { return(undefined); } if (_local1.focusTextField == undefined) { return(o); } } } if (_local1.tabEnabled != true) { return(o); } o = _local1; _local1 = o._parent; } return(undefined); } function getSelectionFocus() { var m = Selection.getFocus(); var o = eval (m); return(o); } function getFocus(Void) { var _local2 = getSelectionFocus(); return(getActualFocus(_local2)); } function walkTree(p, index, groupName, dir, lookup, firstChild) { var _local5 = true; var _local11; for (_local11 in p) { var _local2 = p[_local11]; if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; if (_local2 != _lastTarget) { if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) { continue; } if ((_local2 instanceof TextField) && (_local2.selectable == false)) { continue; } if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) { if (firstChild) { _firstNode = _local2; firstChild = false; } } if (_nextIsNext == true) { if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) { _nextNode = _local2; } } if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) { if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) { } else { _lastx = _local2; } } } else { _prevNode = _lastx; _needPrev = false; _nextIsNext = true; } if (_local2.tabIndex != undefined) { if (_local2.tabIndex == index) { if (_foundList[_local2._name] == undefined) { if (_needPrev) { _prevObj = _local2; _needPrev = false; } _nextObj = _local2; } } if (dir && (_local2.tabIndex > index)) { if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) { _nextObj = _local2; } } else if ((!dir) && (_local2.tabIndex < index)) { if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) { _prevObj = _local2; } } if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) { _firstObj = _local2; } if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) { _lastObj = _local2; } } if (_local2.tabChildren) { getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild)); } _local5 = false; } else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) { if (_local2 == _lastTarget) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; if (_prevNode == undefined) { var _local3 = _lastx; var _local7 = false; while (_local3 != undefined) { if (_local3 == _local2) { _local7 = true; break; } _local3 = _local3._parent; } if (_local7 == false) { _prevNode = _lastx; } } _needPrev = false; if (_nextNode == undefined) { _nextIsNext = true; } } else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild)); } _local5 = false; } } _lastNode = _lastx; if (lookup) { if (p._parent != undefined) { if (p != _parent) { if ((_prevNode == undefined) && (dir)) { _needPrev = true; } else if ((_nextNode == undefined) && (!dir)) { _nextIsNext = false; } _lastTarget = _lastTarget._parent; getTabCandidate(p._parent, index, groupName, dir, true); } } } } function getTabCandidate(o, index, groupName, dir, firstChild) { var _local2; var _local3 = true; if (o == _parent) { _local2 = o; _local3 = false; } else { _local2 = o._parent; if (_local2 == undefined) { _local2 = o; _local3 = false; } } walkTree(_local2, index, groupName, dir, _local3, firstChild); } function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) { walkTree(o, index, groupName, dir, false, firstChild); } function getFocusManagerFromObject(o) { while (o != undefined) { if (o.focusManager != undefined) { return(o.focusManager); } o = o._parent; } return(undefined); } function tabHandler(Void) { bDrawFocus = true; var _local5 = getSelectionFocus(); var _local4 = getActualFocus(_local5); if (_local4 != _local5) { _local5 = _local4; } if (getFocusManagerFromObject(_local5) != this) { _local5 == undefined; } if (_local5 == undefined) { _local5 = form; } else if (_local5.tabIndex != undefined) { if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) { _foundList = new Object(); _foundList.tabIndex = _local5.tabIndex; } _foundList[_local5._name] = _local5; } var _local3 = Key.isDown(16) != true; _searchKey = getTimer(); _needPrev = true; _nextIsNext = false; _lastx = undefined; _firstNode = undefined; _lastNode = undefined; _nextNode = undefined; _prevNode = undefined; _firstObj = undefined; _lastObj = undefined; _nextObj = undefined; _prevObj = undefined; _lastTarget = _local5; var _local6 = _local5; getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true); var _local2; if (_local3) { if (_nextObj != undefined) { _local2 = _nextObj; } else { _local2 = _firstObj; } } else if (_prevObj != undefined) { _local2 = _prevObj; } else { _local2 = _lastObj; } if (_local2.tabIndex != _local5.tabIndex) { _foundList = new Object(); _foundList.tabIndex = _local2.tabIndex; _foundList[_local2._name] = _local2; } else { if (_foundList == undefined) { _foundList = new Object(); _foundList.tabIndex = _local2.tabIndex; } _foundList[_local2._name] = _local2; } if (_local2 == undefined) { if (_local3 == false) { if (_nextNode != undefined) { _local2 = _nextNode; } else { _local2 = _firstNode; } } else if ((_prevNode == undefined) || (_local5 == form)) { _local2 = _lastNode; } else { _local2 = _prevNode; } } if (_local2 == undefined) { return(undefined); } lastTabFocus = _local2; setFocus(_local2); if (_local2.emphasized != undefined) { if (defPushButton != undefined) { _local5 = defPushButton; defPushButton = _local2; _local5.emphasized = false; _local2.emphasized = true; } } else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) { _local5 = defPushButton; defPushButton = __defaultPushButton; _local5.emphasized = false; __defaultPushButton.__set__emphasized(true); } } function onKeyDown(Void) { mx.managers.SystemManager.idleFrames = 0; if (defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (defaultPushButton != undefined) { doLater(this, "sendDefaultPushButtonEvent"); } } } } function sendDefaultPushButtonEvent(Void) { defPushButton.dispatchEvent({type:"click"}); } function getMousedComponentFromChildren(x, y, o) { for (var _local7 in o) { var _local2 = o[_local7]; if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) { _local2._searchKey = _searchKey; if (_local2.hitTest(x, y, true)) { if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) { return(_local2); } var _local3 = getMousedComponentFromChildren(x, y, _local2); if (_local3 != undefined) { return(_local3); } return(_local2); } } } return(undefined); } function mouseActivate(Void) { if (!bNeedFocus) { return(undefined); } _searchKey = getTimer(); var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form); if (_local2 instanceof mx.core.UIComponent) { return(undefined); } _local2 = findFocusFromObject(_local2); if (_local2 == lastFocus) { return(undefined); } if (_local2 == undefined) { doLater(this, "restoreFocus"); return(undefined); } var _local3 = _local2.hscroll; if (_local3 != undefined) { var _local6 = _local2.scroll; var _local5 = _local2.background; } setFocus(_local2); var _local4 = Selection; Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex); if (_local3 != undefined) { _local2.scroll = _local6; _local2.hscroll = _local3; _local2.background = _local5; } } function _onMouseDown(Void) { bDrawFocus = false; if (lastFocus != undefined) { lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var _local3 = Selection; _local3.lastBeginIndex = Selection.getBeginIndex(); _local3.lastEndIndex = Selection.getEndIndex(); lastMouse.x = _root._xmouse; lastMouse.y = _root._ymouse; _root.localToGlobal(lastMouse); } function onMouseUp(Void) { if (_visible) { doLater(this, "mouseActivate"); } } function handleEvent(e) { if (e.type == "reveal") { mx.managers.SystemManager.activate(form); } else { mx.managers.SystemManager.deactivate(form); } } static function enableFocusManagement() { if (!initialized) { initialized = true; Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } } } static var symbolName = "FocusManager"; static var symbolOwner = mx.managers.FocusManager; static var version = "2.0.2.126"; var className = "FocusManager"; var bNeedFocus = false; var bDrawFocus = false; var defaultPushButtonEnabled = true; var activated = true; static var initialized = false; static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }Symbol 423 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0class mx.skins.halo.FocusRect extends mx.skins.SkinElement { var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible; function FocusRect () { super(); boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function draw(o) { o.adjustFocusRect(); } function setSize(w, h, r, a, rectCol) { _xscale = (_yscale = 100); clear(); if (typeof(r) == "object") { r.br = ((r.br > 2) ? (r.br - 2) : 0); r.bl = ((r.bl > 2) ? (r.bl - 2) : 0); r.tr = ((r.tr > 2) ? (r.tr - 2) : 0); r.tl = ((r.tl > 2) ? (r.tl - 2) : 0); beginFill(rectCol, a * 0.3); drawRoundRect(0, 0, w, h, r); drawRoundRect(2, 2, w - 4, h - 4, r); endFill(); r.br = ((r.br > 1) ? (r.br + 1) : 0); r.bl = ((r.bl > 1) ? (r.bl + 1) : 0); r.tr = ((r.tr > 1) ? (r.tr + 1) : 0); r.tl = ((r.tl > 1) ? (r.tl + 1) : 0); beginFill(rectCol, a * 0.3); drawRoundRect(1, 1, w - 2, h - 2, r); r.br = ((r.br > 1) ? (r.br - 1) : 0); r.bl = ((r.bl > 1) ? (r.bl - 1) : 0); r.tr = ((r.tr > 1) ? (r.tr - 1) : 0); r.tl = ((r.tl > 1) ? (r.tl - 1) : 0); drawRoundRect(2, 2, w - 4, h - 4, r); endFill(); } else { var _local5; if (r != 0) { _local5 = r - 2; } else { _local5 = 0; } beginFill(rectCol, a * 0.3); drawRoundRect(0, 0, w, h, r); drawRoundRect(2, 2, w - 4, h - 4, _local5); endFill(); beginFill(rectCol, a * 0.3); if (r != 0) { _local5 = r - 2; r = r - 1; } else { _local5 = 0; r = 0; } drawRoundRect(1, 1, w - 2, h - 2, r); drawRoundRect(2, 2, w - 4, h - 4, _local5); endFill(); } } function handleEvent(e) { if (e.type == "unload") { _visible = true; } else if (e.type == "resize") { e.target.adjustFocusRect(); } else if (e.type == "move") { e.target.adjustFocusRect(); } } static function classConstruct() { mx.core.UIComponent.prototype.drawFocus = function (focused) { var _local2 = this._parent.focus_mc; if (!focused) { _local2._visible = false; this.removeEventListener("unload", _local2); this.removeEventListener("move", _local2); this.removeEventListener("resize", _local2); } else { if (_local2 == undefined) { _local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop); _local2.tabEnabled = false; this._parent.focus_mc = _local2; } else { _local2._visible = true; } _local2.draw(this); if (_local2.getDepth() < this.getDepth()) { _local2.setDepthAbove(this); } this.addEventListener("unload", _local2); this.addEventListener("move", _local2); this.addEventListener("resize", _local2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var _local2 = this.getStyle("themeColor"); if (_local2 == undefined) { _local2 = 8453965 /* 0x80FF4D */; } var _local3 = this._parent.focus_mc; _local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2); _local3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return(true); } static var classConstructed = classConstruct(); static var DefaultsDependency = mx.skins.halo.Defaults; static var UIComponentDependency = mx.core.UIComponent; }Symbol 424 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0class mx.managers.OverlappedWindows { function OverlappedWindows () { } static function checkIdle(Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({type:"idle"}); } else { mx.managers.SystemManager.idleFrames++; } } static function __addEventListener(e, o, l) { if (e == "idle") { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); } static function __removeEventListener(e, o, l) { if (e == "idle") { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } } static function onMouseDown(Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var _local5 = _root; var _local3; var _local8 = _root._xmouse; var _local7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var _local6 = mx.managers.SystemManager.forms.length; var _local4; _local4 = 0; while (_local4 < _local6) { var _local2 = mx.managers.SystemManager.forms[_local4]; if (_local2._visible) { if (_local2.hitTest(_local8, _local7)) { if (_local3 == undefined) { _local3 = _local2.getDepth(); _local5 = _local2; } else if (_local3 < _local2.getDepth()) { _local3 = _local2.getDepth(); _local5 = _local2; } } } _local4++; } if (_local5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(_local5); } } } var _local9 = mx.managers.SystemManager.form; _local9.focusManager._onMouseDown(); } static function onMouseMove(Void) { mx.managers.SystemManager.idleFrames = 0; } static function onMouseUp(Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; } static function activate(f) { if (mx.managers.SystemManager.form != undefined) { if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) { var _local1 = mx.managers.SystemManager.form; _local1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); } static function deactivate(f) { if (mx.managers.SystemManager.form != undefined) { if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) { var _local5 = mx.managers.SystemManager.form; _local5.focusManager.deactivate(); var _local3 = mx.managers.SystemManager.forms.length; var _local1; var _local2; _local1 = 0; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1] == f) { _local1 = _local1 + 1; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1]._visible == true) { _local2 = mx.managers.SystemManager.forms[_local1]; } _local1++; } mx.managers.SystemManager.form = _local2; break; } if (mx.managers.SystemManager.forms[_local1]._visible == true) { _local2 = mx.managers.SystemManager.forms[_local1]; } _local1++; } _local5 = mx.managers.SystemManager.form; _local5.focusManager.activate(); } } } static function addFocusManager(f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); } static function removeFocusManager(f) { var _local3 = mx.managers.SystemManager.forms.length; var _local1; _local1 = 0; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(_local1, 1); return(undefined); } _local1++; } } static function enableOverlappedWindows() { if (!initialized) { initialized = true; mx.managers.SystemManager.checkIdle = checkIdle; mx.managers.SystemManager.__addEventListener = __addEventListener; mx.managers.SystemManager.__removeEventListener = __removeEventListener; mx.managers.SystemManager.onMouseDown = onMouseDown; mx.managers.SystemManager.onMouseMove = onMouseMove; mx.managers.SystemManager.onMouseUp = onMouseUp; mx.managers.SystemManager.activate = activate; mx.managers.SystemManager.deactivate = deactivate; mx.managers.SystemManager.addFocusManager = addFocusManager; mx.managers.SystemManager.removeFocusManager = removeFocusManager; } } static var initialized = false; static var SystemManagerDependency = mx.managers.SystemManager; }Symbol 425 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0class mx.styles.CSSSetStyle { var styleName, stylecache, _color, setColor, invalidateStyle; function CSSSetStyle () { } function _setStyle(styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == "color") { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } } _level0.changeTextStyleInChildren(styleProp); return(undefined); } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } if (styleProp == "themeColor") { var _local7 = mx.styles.StyleManager.colorNames.haloBlue; var _local6 = mx.styles.StyleManager.colorNames.haloGreen; var _local8 = mx.styles.StyleManager.colorNames.haloOrange; var _local4 = {}; _local4[_local7] = 12188666 /* 0xB9FBFA */; _local4[_local6] = 13500353 /* 0xCDFFC1 */; _local4[_local8] = 16766319 /* 0xFFD56F */; var _local5 = {}; _local5[_local7] = 13958653 /* 0xD4FDFD */; _local5[_local6] = 14942166 /* 0xE3FFD6 */; _local5[_local8] = 16772787 /* 0xFFEEB3 */; var _local9 = _local4[newValue]; var _local10 = _local5[newValue]; if (_local9 == undefined) { _local9 = newValue; } if (_local10 == undefined) { _local10 = newValue; } setStyle("selectionColor", _local9); setStyle("rollOverColor", _local10); } _level0.changeColorStyleInChildren(styleName, styleProp, newValue); } else { if ((styleProp == "backgroundColor") && (isNaN(newValue))) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } _level0.notifyStyleChangeInChildren(styleName, styleProp, newValue); } } function changeTextStyleInChildren(styleProp) { var _local4 = getTimer(); var _local5; for (_local5 in this) { var _local2 = this[_local5]; if (_local2._parent == this) { if (_local2.searchKey != _local4) { if (_local2.stylecache != undefined) { delete _local2.stylecache.tf; delete _local2.stylecache[styleProp]; } _local2.invalidateStyle(styleProp); _local2.changeTextStyleInChildren(styleProp); _local2.searchKey = _local4; } } } } function changeColorStyleInChildren(sheetName, colorStyle, newValue) { var _local6 = getTimer(); var _local7; for (_local7 in this) { var _local2 = this[_local7]; if (_local2._parent == this) { if (_local2.searchKey != _local6) { if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) { if (_local2.stylecache != undefined) { delete _local2.stylecache[colorStyle]; } if (typeof(_local2._color) == "string") { if (_local2._color == colorStyle) { var _local4 = _local2.getStyle(colorStyle); if (colorStyle == "color") { if (stylecache.tf.color != undefined) { stylecache.tf.color = _local4; } } _local2.setColor(_local4); } } else if (_local2._color[colorStyle] != undefined) { if (typeof(_local2) != "movieclip") { _local2._parent.invalidateStyle(); } else { _local2.invalidateStyle(colorStyle); } } } _local2.changeColorStyleInChildren(sheetName, colorStyle, newValue); _local2.searchKey = _local6; } } } } function notifyStyleChangeInChildren(sheetName, styleProp, newValue) { var _local5 = getTimer(); var _local6; for (_local6 in this) { var _local2 = this[_local6]; if (_local2._parent == this) { if (_local2.searchKey != _local5) { if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) { if (_local2.stylecache != undefined) { delete _local2.stylecache[styleProp]; delete _local2.stylecache.tf; } delete _local2.enabledColor; _local2.invalidateStyle(styleProp); } _local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); _local2.searchKey = _local5; } } } } function setStyle(styleProp, newValue) { if (stylecache != undefined) { delete stylecache[styleProp]; delete stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } if (styleProp == "themeColor") { var _local10 = mx.styles.StyleManager.colorNames.haloBlue; var _local9 = mx.styles.StyleManager.colorNames.haloGreen; var _local11 = mx.styles.StyleManager.colorNames.haloOrange; var _local6 = {}; _local6[_local10] = 12188666 /* 0xB9FBFA */; _local6[_local9] = 13500353 /* 0xCDFFC1 */; _local6[_local11] = 16766319 /* 0xFFD56F */; var _local7 = {}; _local7[_local10] = 13958653 /* 0xD4FDFD */; _local7[_local9] = 14942166 /* 0xE3FFD6 */; _local7[_local11] = 16772787 /* 0xFFEEB3 */; var _local12 = _local6[newValue]; var _local13 = _local7[newValue]; if (_local12 == undefined) { _local12 = newValue; } if (_local13 == undefined) { _local13 = newValue; } setStyle("selectionColor", _local12); setStyle("rollOverColor", _local13); } if (typeof(_color) == "string") { if (_color == styleProp) { if (styleProp == "color") { if (stylecache.tf.color != undefined) { stylecache.tf.color = newValue; } } setColor(newValue); } } else if (_color[styleProp] != undefined) { invalidateStyle(styleProp); } changeColorStyleInChildren(undefined, styleProp, newValue); } else { if ((styleProp == "backgroundColor") && (isNaN(newValue))) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) { var _local8; var _local5 = newValue; if (styleProp == "styleName") { _local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5)); _local5 = _local8.themeColor; if (_local5 != undefined) { _local8.rollOverColor = (_local8.selectionColor = _local5); } } notifyStyleChangeInChildren(undefined, styleProp, newValue); } } static function enableRunTimeCSS() { } static function classConstruct() { var _local2 = MovieClip.prototype; var _local3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle; _local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren; _local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren; _local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren; _local2.setStyle = _local3.setStyle; _global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1); _global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1); _global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1); _global.ASSetPropFlags(_local2, "setStyle", 1); var _local4 = TextField.prototype; _local4.setStyle = _local2.setStyle; _local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren; return(true); } static var classConstructed = classConstruct(); static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; }Symbol 426 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0class mx.core.ext.UIComponentExtensions { function UIComponentExtensions () { } static function Extensions() { if (bExtended == true) { return(true); } bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if (this.getFocusManager().bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); } static var bExtended = false; static var UIComponentExtended = Extensions(); static var UIComponentDependency = mx.core.UIComponent; static var FocusManagerDependency = mx.managers.FocusManager; static var OverlappedWindowsDependency = mx.managers.OverlappedWindows; }Symbol 428 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0class mx.skins.halo.RectBorder extends mx.skins.RectBorder { var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill; function RectBorder () { super(); } function init(Void) { borderWidths.default = 3; super.init(); } function getBorderMetrics(Void) { if (offset == undefined) { var _local3 = getStyle(borderStyleName); offset = borderWidths[_local3]; } if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) { __borderMetrics = {left:3, top:1, right:3, bottom:3}; return(__borderMetrics); } return(super.getBorderMetrics()); } function drawBorder(Void) { var _local6 = _global.styles[className]; if (_local6 == undefined) { _local6 = _global.styles.RectBorder; } var _local5 = getStyle(borderStyleName); var _local7 = getStyle(borderColorName); if (_local7 == undefined) { _local7 = _local6[borderColorName]; } var _local8 = getStyle(backgroundColorName); if (_local8 == undefined) { _local8 = _local6[backgroundColorName]; } var _local16 = getStyle("backgroundImage"); if (_local5 != "none") { var _local14 = getStyle(shadowColorName); if (_local14 == undefined) { _local14 = _local6[shadowColorName]; } var _local13 = getStyle(highlightColorName); if (_local13 == undefined) { _local13 = _local6[highlightColorName]; } var _local12 = getStyle(buttonColorName); if (_local12 == undefined) { _local12 = _local6[buttonColorName]; } var _local11 = getStyle(borderCapColorName); if (_local11 == undefined) { _local11 = _local6[borderCapColorName]; } var _local10 = getStyle(shadowCapColorName); if (_local10 == undefined) { _local10 = _local6[shadowCapColorName]; } } offset = borderWidths[_local5]; var _local9 = offset; var _local3 = __get__width(); var _local4 = __get__height(); clear(); _color = undefined; if (_local5 == "none") { } else if (_local5 == "inset") { _color = colorList; draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10); } else if (_local5 == "outset") { _color = colorList; draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10); } else if (_local5 == "alert") { var _local15 = getStyle("themeColor"); drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10); drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50); drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100); } else if (_local5 == "default") { drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10); drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial"); drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100); } else if (_local5 == "dropDown") { drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear"); drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100); } else if (_local5 == "menuBorder") { var _local15 = getStyle("themeColor"); drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10); drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear"); drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50); drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100); } else if (_local5 == "comboNonEdit") { } else { beginFill(_local7); drawRect(0, 0, _local3, _local4); drawRect(1, 1, _local3 - 1, _local4 - 1); endFill(); _color = borderColorName; } if (_local8 != undefined) { beginFill(_local8); drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9); endFill(); } } function draw3dBorder(c1, c2, c3, c4, c5, c6) { var _local3 = __get__width(); var _local2 = __get__height(); beginFill(c1); drawRect(0, 0, _local3, _local2); drawRect(1, 0, _local3 - 1, _local2); endFill(); beginFill(c2); drawRect(1, 0, _local3 - 1, 1); endFill(); beginFill(c3); drawRect(1, _local2 - 1, _local3 - 1, _local2); endFill(); beginFill(c4); drawRect(1, 1, _local3 - 1, 2); endFill(); beginFill(c5); drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1); endFill(); beginFill(c6); drawRect(1, 2, _local3 - 1, _local2 - 2); drawRect(2, 2, _local3 - 2, _local2 - 2); endFill(); } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return(true); } static var symbolName = "RectBorder"; static var symbolOwner = mx.skins.halo.RectBorder; static var version = "2.0.2.126"; var borderCapColorName = "borderCapColor"; var shadowCapColorName = "shadowCapColor"; var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0}; var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2}; static var classConstructed = classConstruct(); static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }Symbol 429 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder { var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y; function ButtonSkin () { super(); } function init() { super.init(); } function size() { drawHaloRect(__get__width(), __get__height()); } function drawHaloRect(w, h) { var _local6 = getStyle("borderStyle"); var _local4 = getStyle("themeColor"); var _local5 = _parent.emphasized; clear(); switch (_local6) { case "falseup" : if (_local5) { drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); } else { drawRoundRect(0, 0, w, h, 5, 9542041, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial"); drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial"); drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100); } break; case "falsedown" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20); break; case "falserollover" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case "falsedisabled" : drawRoundRect(0, 0, w, h, 5, 13159628, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); break; case "trueup" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100); break; case "truedown" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20); break; case "truerollover" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case "truedisabled" : drawRoundRect(0, 0, w, h, 5, 13159628, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); } } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); _global.skinRegistry.ButtonSkin = true; return(true); } static var symbolName = "ButtonSkin"; static var symbolOwner = mx.skins.halo.ButtonSkin; var className = "ButtonSkin"; var backgroundColorName = "buttonColor"; static var classConstructed = classConstruct(); static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }Symbol 430 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar { var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt; function HScrollBar () { super(); } function getMinWidth(Void) { return(_minHeight); } function getMinHeight(Void) { return(_minWidth); } function init(Void) { super.init(); _xscale = -100; _rotation = -90; } function get virtualHeight() { return(__width); } function isScrollBarKey(k) { if (k == 37) { scrollIt("Line", -1); return(true); } if (k == 39) { scrollIt("Line", 1); return(true); } return(super.isScrollBarKey(k)); } static var symbolName = "HScrollBar"; static var symbolOwner = mx.core.UIComponent; static var version = "2.0.2.126"; var className = "HScrollBar"; var minusMode = "Left"; var plusMode = "Right"; var minMode = "AtLeft"; var maxMode = "AtRight"; }Symbol 1049 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0class mx.controls.listclasses.SelectableRow extends mx.core.UIComponent { var __height, cell, owner, rowIndex, icon_mc, createObject, __width, backGround, highlight, highlightColor, createLabel, createClassObject, listOwner, tabEnabled, item, createEmptyMovieClip, drawRect, isChangedToSelected, bGTween, grandOwner; function SelectableRow () { super(); } function setValue(itmObj, state) { var _local7 = __height; var _local2 = cell; var _local5 = owner; var _local8 = itemToString(itmObj); if (_local2.getValue() != _local8) { _local2.setValue(_local8, itmObj, state); } var _local4 = _local5.getPropertiesAt(rowIndex + _local5.__vPosition).icon; if (_local4 == undefined) { _local4 = _local5.__iconFunction(itmObj); if (_local4 == undefined) { _local4 = itmObj[_local5.__iconField]; if (_local4 == undefined) { _local4 = _local5.getStyle("defaultIcon"); } } } var _local3 = icon_mc; if ((_local4 != undefined) && (itmObj != undefined)) { _local3 = createObject(_local4, "icon_mc", 20); _local3._x = 2; _local3._y = (_local7 - _local3._height) / 2; _local2._x = 4 + _local3._width; } else { _local3.removeMovieClip(); _local2._x = 2; } var _local9 = ((_local3 == undefined) ? 0 : (_local3._width)); _local2.setSize(__width - _local9, Math.min(_local7, _local2.getPreferredHeight())); _local2._y = (_local7 - _local2._height) / 2; } function size(Void) { var _local3 = backGround; var _local2 = cell; var _local4 = __height; var _local5 = __width; var _local6 = ((icon_mc == undefined) ? 0 : (icon_mc._width)); _local2.setSize(_local5 - _local6, Math.min(_local4, _local2.getPreferredHeight())); _local2._y = (_local4 - _local2._height) / 2; icon_mc._y = (_local4 - icon_mc._height) / 2; _local3._x = 0; _local3._width = _local5; _local3._height = _local4; drawRowFill(_local3, normalColor); drawRowFill(highlight, highlightColor); } function setCellRenderer(forceSizing) { var _local3 = owner.__cellRenderer; var _local4; if (cell != undefined) { _local4 = cell._x; cell.removeMovieClip(); cell.removeTextField(); } var _local2; if (_local3 == undefined) { _local2 = (cell = createLabel("cll", 0, {styleName:this})); _local2.styleName = owner; _local2.selectable = false; _local2.tabEnabled = false; _local2.background = false; _local2.border = false; } else if (typeof(_local3) == "string") { _local2 = (cell = createObject(_local3, "cll", 0, {styleName:this})); } else { _local2 = (cell = createClassObject(_local3, "cll", 0, {styleName:this})); } _local2.owner = this; _local2.listOwner = owner; _local2.getCellIndex = getCellIndex; _local2.getDataLabel = getDataLabel; if (_local4 != undefined) { _local2._x = _local4; } if (forceSizing) { size(); } } function getCellIndex(Void) { return({columnIndex:0, itemIndex:owner.rowIndex + listOwner.__vPosition}); } function getDataLabel() { return(listOwner.labelField); } function init(Void) { super.init(); tabEnabled = false; } function createChildren(Void) { setCellRenderer(false); setupBG(); setState(state, false); } function drawRow(itmObj, state, transition) { item = itmObj; setState(state, transition); setValue(itmObj, state, transition); } function itemToString(itmObj) { if (itmObj == undefined) { return(" "); } var _local2 = owner.__labelFunction(itmObj); if (_local2 == undefined) { _local2 = ((itmObj instanceof XMLNode) ? (itmObj.attributes[owner.__labelField]) : (itmObj[owner.__labelField])); if (_local2 == undefined) { _local2 = " "; if (typeof(itmObj) == "object") { for (var _local4 in itmObj) { if (_local4 != "__ID__") { _local2 = (itmObj[_local4] + ", ") + _local2; } } _local2 = _local2.substring(0, _local2.length - 2); } else { _local2 = itmObj; } } } return(_local2); } function setupBG(Void) { var _local2 = (backGround = createEmptyMovieClip("bG_mc", LOWEST_DEPTH)); drawRowFill(_local2, normalColor); highlight = createEmptyMovieClip("tran_mc", LOWEST_DEPTH + 10); _local2.owner = this; _local2.grandOwner = owner; _local2.onPress = bGOnPress; _local2.onRelease = bGOnRelease; _local2.onRollOver = bGOnRollOver; _local2.onRollOut = bGOnRollOut; _local2.onDragOver = bGOnDragOver; _local2.onDragOut = bGOnDragOut; _local2.useHandCursor = false; _local2.trackAsMenu = true; _local2.drawRect = drawRect; highlight.drawRect = drawRect; } function drawRowFill(mc, newClr) { mc.clear(); mc.beginFill(newClr); mc.drawRect(1, 0, __width, __height); mc.endFill(); mc._width = __width; mc._height = __height; } function setState(newState, transition) { var _local2 = highlight; var _local8 = backGround; var _local4 = __height; var _local3 = owner; if (!_local3.enabled) { if ((newState == "selected") || (state == "selected")) { highlightColor = _local3.getStyle("selectionDisabledColor"); drawRowFill(_local2, highlightColor); _local2._visible = true; _local2._y = 0; _local2._height = _local4; } else { _local2._visible = false; normalColor = _local3.getStyle("backgroundDisabledColor"); drawRowFill(_local8, normalColor); } cell.__enabled = false; cell.setColor(_local3.getStyle("disabledColor")); } else { cell.__enabled = true; if (transition && ((newState == state) || ((newState == "highlighted") && (state == "selected")))) { isChangedToSelected = true; return(undefined); } var _local6 = _local3.getStyle("selectionDuration"); var _local7 = 0; if (isChangedToSelected && (newState == "selected")) { transition = false; } var _local10 = transition && (_local6 != 0); if (newState == "normal") { _local7 = _local3.getStyle("color"); normalColor = getNormalColor(); drawRowFill(_local8, normalColor); if (_local10) { _local6 = _local6 / 2; _local2._height = _local4; _local2._width = __width; _local2._y = 0; bGTween = new mx.effects.Tween(this, _local4 + 2, _local4 * 0.2, _local6, 5); } else { _local2._visible = false; } delete isChangedToSelected; } else { highlightColor = _local3.getStyle(((newState == "highlighted") ? "rollOverColor" : "selectionColor")); drawRowFill(_local2, highlightColor); _local2._visible = true; _local7 = _local3.getStyle(((newState == "highlighted") ? "textRollOverColor" : "textSelectedColor")); if (_local10) { _local2._height = _local4 * 0.5; _local2._y = (_local4 - _local2._height) / 2; bGTween = new mx.effects.Tween(this, _local2._height, _local4 + 2, _local6, 5); var _local9 = _local3.getStyle("selectionEasing"); if (_local9 != undefined) { bGTween.easingEquation = _local9; } } else { _local2._y = 0; _local2._height = _local4; } } cell.setColor(_local7); } state = newState; } function onTweenUpdate(val) { highlight._height = val; highlight._y = (__height - val) / 2; } function onTweenEnd(val) { onTweenUpdate(val); highlight._visible = state != "normal"; } function getNormalColor(Void) { var _local3; var _local2 = owner; if (!owner.enabled) { _local3 = _local2.getStyle("backgroundDisabledColor"); } else { var _local5 = rowIndex + _local2.__vPosition; if (rowIndex == undefined) { _local3 = _local2.getPropertiesOf(item).backgroundColor; } else { _local3 = _local2.getPropertiesAt(_local5).backgroundColor; } if (_local3 == undefined) { var _local4 = _local2.getStyle("alternatingRowColors"); if (_local4 == undefined) { _local3 = _local2.getStyle("backgroundColor"); } else { _local3 = _local4[_local5 % _local4.length]; } } } return(_local3); } function invalidateStyle(propName) { cell.invalidateStyle(propName); super.invalidateStyle(propName); } function bGOnPress(Void) { grandOwner.pressFocus(); grandOwner.onRowPress(owner.rowIndex); } function bGOnRelease(Void) { grandOwner.releaseFocus(); grandOwner.onRowRelease(owner.rowIndex); } function bGOnRollOver(Void) { grandOwner.onRowRollOver(owner.rowIndex); } function bGOnRollOut(Void) { grandOwner.onRowRollOut(owner.rowIndex); } function bGOnDragOver(Void) { grandOwner.onRowDragOver(owner.rowIndex); } function bGOnDragOut(Void) { grandOwner.onRowDragOut(owner.rowIndex); } static var LOWEST_DEPTH = -16384; var state = "normal"; var disabledColor = 15263976; var normalColor = 16777215; }Symbol 375 MovieClip [BrdrShdw] Frame 1mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");Symbol 377 MovieClip [BrdrFace] Frame 1mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");Symbol 380 MovieClip [BrdrBlk] Frame 1mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");Symbol 382 MovieClip [BrdrHilght] Frame 1mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");Symbol 385 MovieClip [Defaults] Frame 1#initclip 59 Object.registerClass("Defaults", mx.skins.halo.Defaults); #endinitclipSymbol 386 MovieClip [UIObjectExtensions] Frame 1#initclip 60 Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions); #endinitclipSymbol 387 MovieClip [UIObject] Frame 1#initclip 61 Object.registerClass("UIObject", mx.core.UIObject); #endinitclip stop();Symbol 390 Buttonon (keyPress "<Tab>") { this.tabHandler(); }Symbol 391 MovieClip Frame 1#initclip 62 Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } #endinitclipSymbol 392 MovieClip [FocusRect] Frame 1#initclip 63 Object.registerClass("FocusRect", mx.skins.halo.FocusRect); #endinitclipSymbol 393 MovieClip [FocusManager] Frame 1#initclip 64 Object.registerClass("FocusManager", mx.managers.FocusManager); #endinitclip stop();Symbol 394 MovieClip [UIComponentExtensions] Frame 1#initclip 65 Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions); #endinitclipSymbol 395 MovieClip [UIComponent] Frame 1#initclip 66 Object.registerClass("UIComponent", mx.core.UIComponent); #endinitclip stop();Symbol 396 MovieClip [SimpleButton] Frame 1#initclip 67 Object.registerClass("SimpleButton", mx.controls.SimpleButton); #endinitclip stop();Symbol 397 MovieClip [Border] Frame 1#initclip 68 Object.registerClass("Border", mx.skins.Border); #endinitclip stop();Symbol 398 MovieClip [RectBorder] Frame 1#initclip 69 mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass("RectBorder", mx.skins.halo.RectBorder); #endinitclip stop();Symbol 399 MovieClip [ButtonSkin] Frame 1#initclip 70 Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin); #endinitclipSymbol 400 MovieClip [Button] Frame 1#initclip 71 Object.registerClass("Button", mx.controls.Button); #endinitclip stop();Instance of Symbol 396 MovieClip [SimpleButton] in Symbol 400 MovieClip [Button] Frame 2//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Symbol 401 MovieClip [CustomBorder] Frame 1#initclip 72 Object.registerClass("CustomBorder", mx.skins.CustomBorder); mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder); #endinitclipSymbol 402 MovieClip [VScrollBar] Frame 1#initclip 73 Object.registerClass("VScrollBar", mx.controls.VScrollBar); #endinitclip stop();Instance of Symbol 400 MovieClip [Button] in Symbol 402 MovieClip [VScrollBar] Frame 2//component parameters onClipEvent (initialize) { icon = ""; label = "Button"; labelPlacement = "right"; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 396 MovieClip [SimpleButton] in Symbol 402 MovieClip [VScrollBar] Frame 2//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Symbol 403 MovieClip [HScrollBar] Frame 1#initclip 74 Object.registerClass("HScrollBar", mx.controls.HScrollBar); #endinitclip stop();Instance of Symbol 400 MovieClip [Button] in Symbol 403 MovieClip [HScrollBar] Frame 2//component parameters onClipEvent (initialize) { icon = ""; label = "Button"; labelPlacement = "right"; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 396 MovieClip [SimpleButton] in Symbol 403 MovieClip [HScrollBar] Frame 2//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Symbol 404 MovieClip [UIScrollBar] Frame 1#initclip 75 Object.registerClass("UIScrollBar", mx.controls.UIScrollBar); #endinitclip stop();Instance of Symbol 402 MovieClip [VScrollBar] in Symbol 404 MovieClip [UIScrollBar] Frame 2//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 403 MovieClip [HScrollBar] in Symbol 404 MovieClip [UIScrollBar] Frame 2//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "chatboxSb5" in Symbol 439 MovieClip [deckList] Frame 1//component parameters onClipEvent (construct) { _targetInstanceName = "deckListTextField"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Symbol 489 MovieClip Frame 1stop();Symbol 616 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/game/viewGuideBookImage.html?image=lobby_example','_blank','width=640,height=495,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 620 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/game/viewGuideBookImage.html?image=game_example2','_blank','width=640,height=495,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 624 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/game/viewGuideBookImage.html?image=game_example3','_blank','width=640,height=495,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 631 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=2','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 636 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=48','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 641 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=82','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 646 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=201','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 651 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=227','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 656 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=185','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 661 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=288','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 666 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=389','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 671 Buttonon (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=174','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }Symbol 988 MovieClip Frame 60_root.warning = ""; stop();Symbol 1030 MovieClip [TextInput] Frame 1#initclip 76 Object.registerClass("TextInput", mx.controls.TextInput); #endinitclip stop();Symbol 1031 MovieClip [ComboBase] Frame 1#initclip 77 mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype); Object.registerClass("ComboBase", mx.controls.ComboBase); #endinitclip stop();Instance of Symbol 396 MovieClip [SimpleButton] in Symbol 1031 MovieClip [ComboBase] Frame 2//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 1030 MovieClip [TextInput] in Symbol 1031 MovieClip [ComboBase] Frame 2//component parameters onClipEvent (initialize) { editable = true; password = false; text = ""; maxChars = null; restrict = "null"; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Symbol 1032 MovieClip [DataProvider] Frame 1#initclip 78 Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider); #endinitclip stop();Symbol 1033 MovieClip [DataSelector] Frame 1#initclip 79 Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector); #endinitclip stop();Symbol 1034 MovieClip [SelectableRow] Frame 1#initclip 80 Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow); #endinitclip stop();Symbol 1035 MovieClip [View] Frame 1#initclip 81 Object.registerClass("View", mx.core.View); #endinitclip stop();Symbol 1036 MovieClip [ScrollView] Frame 1#initclip 82 Object.registerClass("ScrollView", mx.core.ScrollView); #endinitclip stop();Instance of Symbol 403 MovieClip [HScrollBar] in Symbol 1036 MovieClip [ScrollView] Frame 2//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 402 MovieClip [VScrollBar] in Symbol 1036 MovieClip [ScrollView] Frame 2//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }Symbol 1037 MovieClip [ScrollSelectList] Frame 1#initclip 83 Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList); #endinitclip stop();Symbol 1038 MovieClip [List] Frame 1#initclip 84 Object.registerClass("List", mx.controls.List); #endinitclip stop();Symbol 1039 MovieClip [ComboBox] Frame 1#initclip 85 Object.registerClass("ComboBox", mx.controls.ComboBox); #endinitclip stop();Instance of Symbol 1038 MovieClip [List] in Symbol 1039 MovieClip [ComboBox] Frame 2//component parameters onClipEvent (initialize) { multipleSelection = false; rowHeight = 20; }Symbol 1063 MovieClip Frame 1stop();Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 1//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 2//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 3//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 4//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 5//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 6//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 7//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 8//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 9//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Symbol 1063 MovieClip Frame 10stop();Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 10//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 11//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 12//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 13//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 14//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 15//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 16//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 17//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 18//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 19//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }Instance of Symbol 404 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1063 MovieClip Frame 20//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Library Items
Symbol 1 Sound [privateMessage.mp3] | Used by:489 | |
Symbol 2 Graphic | Used by:3 | |
Symbol 3 MovieClip | Uses:2 | Used by:4 |
Symbol 4 MovieClip | Uses:3 | Used by:11 |
Symbol 5 Graphic | Used by:6 | |
Symbol 6 MovieClip | Uses:5 | Used by:7 |
Symbol 7 MovieClip | Uses:6 | Used by:11 |
Symbol 8 Graphic | Used by:9 | |
Symbol 9 MovieClip | Uses:8 | Used by:10 |
Symbol 10 MovieClip | Uses:9 | Used by:11 |
Symbol 11 MovieClip [sparkle_mc] | Uses:4 7 10 | |
Symbol 12 Font | Used by:13 15 17 19 21 23 25 27 29 31 33 35 97 98 99 102 103 108 127 282 283 290 291 332 335 339 341 342 344 347 349 354 356 444 445 461 792 831 835 1018 | |
Symbol 13 EditableText | Uses:12 | Used by:14 |
Symbol 14 Button [morphIntoToolTip] | Uses:13 | |
Symbol 15 EditableText | Uses:12 | Used by:16 |
Symbol 16 Button [untappableToolTip] | Uses:15 | |
Symbol 17 EditableText | Uses:12 | Used by:18 |
Symbol 18 Button [unblockableToolTip] | Uses:17 | |
Symbol 19 EditableText | Uses:12 | Used by:20 |
Symbol 20 Button [removeToolTip] | Uses:19 | |
Symbol 21 EditableText | Uses:12 | Used by:22 |
Symbol 22 Button [instantEquipToolTip] | Uses:21 | |
Symbol 23 EditableText | Uses:12 | Used by:24 |
Symbol 24 Button [instantEffectToolTip] | Uses:23 | |
Symbol 25 EditableText | Uses:12 | Used by:26 |
Symbol 26 Button [fastStrikeToolTip] | Uses:25 | |
Symbol 27 EditableText | Uses:12 | Used by:28 |
Symbol 28 Button [doubleSpellToolTip] | Uses:27 | |
Symbol 29 EditableText | Uses:12 | Used by:30 |
Symbol 30 Button [doubleAbilityToolTip] | Uses:29 | |
Symbol 31 EditableText | Uses:12 | Used by:32 |
Symbol 32 Button [attackEffectToolTip] | Uses:31 | |
Symbol 33 EditableText | Uses:12 | Used by:34 |
Symbol 34 Button [attackCountsToolTip] | Uses:33 | |
Symbol 35 EditableText | Uses:12 | Used by:36 |
Symbol 36 Button [rangedToolTip] | Uses:35 | |
Symbol 37 Graphic | Used by:39 71 72 73 76 77 82 | |
Symbol 38 Graphic | Used by:39 71 72 76 77 82 | |
Symbol 39 MovieClip [ScrollTrack] | Uses:37 38 | Used by:42 43 50 51 83 84 85 86 87 88 |
Symbol 40 Bitmap | Used by:41 | |
Symbol 41 Graphic | Uses:40 | Used by:42 43 50 51 83 84 85 86 92 94 95 |
Symbol 42 MovieClip [ScrollDownArrowDisabled] | Uses:39 41 | Used by:89 90 91 |
Symbol 43 MovieClip [ScrollDownArrowDown] | Uses:39 41 | Used by:89 90 91 |
Symbol 44 Graphic | Used by:50 | |
Symbol 45 Graphic | Used by:46 | |
Symbol 46 MovieClip [ScrollThemeColor1] | Uses:45 | Used by:50 |
Symbol 47 Graphic | Used by:50 | |
Symbol 48 Graphic | Used by:50 | |
Symbol 49 Graphic | Used by:50 | |
Symbol 50 MovieClip [ScrollDownArrowOver] | Uses:39 44 46 47 48 49 41 | Used by:89 90 91 |
Symbol 51 MovieClip [ScrollDownArrowUp] | Uses:39 41 | Used by:89 90 91 |
Symbol 52 Graphic | Used by:57 60 61 62 78 79 80 81 | |
Symbol 53 Graphic | Used by:57 60 61 62 78 79 80 81 | |
Symbol 54 Graphic | Used by:57 60 61 62 78 79 80 81 | |
Symbol 55 Bitmap | Used by:56 | |
Symbol 56 Graphic | Uses:55 | Used by:57 60 61 62 78 79 80 81 |
Symbol 57 MovieClip [ScrollThumbBottomDisabled] | Uses:52 53 54 56 | Used by:89 90 91 |
Symbol 58 Graphic | Used by:59 | |
Symbol 59 MovieClip [ThumbThemeColor1] | Uses:58 | Used by:60 61 79 80 |
Symbol 60 MovieClip [ScrollThumbBottomDown] | Uses:52 59 53 54 56 | Used by:89 90 91 |
Symbol 61 MovieClip [ScrollThumbBottomOver] | Uses:52 59 53 54 56 | Used by:89 90 91 |
Symbol 62 MovieClip [ScrollThumbBottomUp] | Uses:52 53 54 56 | Used by:89 90 91 |
Symbol 63 Graphic | Used by:64 67 68 69 | |
Symbol 64 MovieClip [ScrollThumbGripDisabled] | Uses:63 | Used by:89 90 91 |
Symbol 65 Graphic | Used by:66 768 | |
Symbol 66 MovieClip [ThumbThemeColor2] | Uses:65 | Used by:67 68 71 72 76 |
Symbol 67 MovieClip [ScrollThumbGripDown] | Uses:66 63 | Used by:89 90 91 |
Symbol 68 MovieClip [ScrollThumbGripOver] | Uses:66 63 | Used by:89 90 91 |
Symbol 69 MovieClip [ScrollThumbGripUp] | Uses:63 | Used by:89 90 91 |
Symbol 70 Graphic | Used by:71 72 76 77 | |
Symbol 71 MovieClip [ScrollThumbMiddleDisabled] | Uses:37 70 66 38 | Used by:89 90 91 |
Symbol 72 MovieClip [ScrollThumbMiddleDown] | Uses:37 66 70 38 | Used by:89 90 91 |
Symbol 73 MovieClip | Uses:37 | Used by:76 |
Symbol 74 Graphic | Used by:75 | |
Symbol 75 MovieClip | Uses:74 | Used by:76 |
Symbol 76 MovieClip [ScrollThumbMiddleOver] | Uses:37 66 70 73 75 38 | Used by:89 90 91 |
Symbol 77 MovieClip [ScrollThumbMiddleUp] | Uses:37 70 38 | Used by:89 90 91 |
Symbol 78 MovieClip [ScrollThumbTopDisabled] | Uses:52 53 54 56 | Used by:89 90 91 |
Symbol 79 MovieClip [ScrollThumbTopDown] | Uses:52 59 53 54 56 | Used by:89 90 91 |
Symbol 80 MovieClip [ScrollThumbTopOver] | Uses:52 59 53 54 56 | Used by:89 90 91 |
Symbol 81 MovieClip [ScrollThumbTopUp] | Uses:52 53 54 56 | Used by:89 90 91 |
Symbol 82 MovieClip [ScrollTrackDisabled] | Uses:37 38 | Used by:89 90 91 |
Symbol 83 MovieClip [ScrollUpArrowDisabled] | Uses:39 41 | Used by:89 90 91 |
Symbol 84 MovieClip [ScrollUpArrowDown] | Uses:39 41 | Used by:89 90 91 |
Symbol 85 MovieClip [ScrollUpArrowOver] | Uses:39 41 | Used by:89 90 91 |
Symbol 86 MovieClip [ScrollUpArrowUp] | Uses:39 41 | Used by:89 90 91 |
Symbol 87 MovieClip [BtnDownArrow] | Uses:39 | Used by:89 90 91 |
Symbol 88 MovieClip [BtnUpArrow] | Uses:39 | Used by:89 90 91 |
Symbol 89 MovieClip [VScrollBarAssets] | Uses:42 43 50 51 57 60 61 62 64 67 68 69 71 72 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
Symbol 90 MovieClip [ScrollBarAssets] | Uses:42 43 50 51 57 60 61 62 64 67 68 69 71 72 76 77 78 79 80 81 82 83 84 85 86 87 88 | Used by:402 403 |
Symbol 91 MovieClip [HScrollBarAssets] | Uses:42 43 50 51 57 60 61 62 64 67 68 69 71 72 76 77 78 79 80 81 82 83 84 85 86 88 87 | |
Symbol 92 MovieClip [ComboDownArrowUp] | Uses:41 | Used by:93 96 |
Symbol 93 MovieClip [ComboDownArrowDisabled] | Uses:92 | Used by:96 |
Symbol 94 MovieClip [ComboDownArrowDown] | Uses:41 | Used by:96 |
Symbol 95 MovieClip [ComboDownArrowOver] | Uses:41 | Used by:96 |
Symbol 96 MovieClip [ComboAssets] | Uses:93 94 95 92 | Used by:1039 |
Symbol 97 EditableText | Uses:12 | Used by:104 |
Symbol 98 EditableText | Uses:12 | Used by:104 |
Symbol 99 EditableText | Uses:12 | Used by:104 |
Symbol 100 Font | Used by:101 211 286 287 288 298 358 361 432 447 452 454 497 498 524 525 526 556 558 601 826 987 1009 1010 1011 1017 | |
Symbol 101 EditableText | Uses:100 | Used by:104 |
Symbol 102 EditableText | Uses:12 | Used by:104 |
Symbol 103 EditableText | Uses:12 | Used by:104 |
Symbol 104 MovieClip [textFields] | Uses:97 98 99 101 102 103 | |
Symbol 105 Graphic | Used by:154 271 363 | |
Symbol 106 Bitmap | Used by:107 | |
Symbol 107 Graphic | Uses:106 | Used by:154 |
Symbol 108 EditableText | Uses:12 | Used by:154 |
Symbol 109 Bitmap | Used by:110 | |
Symbol 110 Graphic | Uses:109 | Used by:154 |
Symbol 111 Bitmap | Used by:112 | |
Symbol 112 Graphic | Uses:111 | Used by:154 |
Symbol 113 Bitmap | Used by:114 | |
Symbol 114 Graphic | Uses:113 | Used by:154 |
Symbol 115 Bitmap | Used by:116 | |
Symbol 116 Graphic | Uses:115 | Used by:154 |
Symbol 117 Bitmap | Used by:118 | |
Symbol 118 Graphic | Uses:117 | Used by:154 |
Symbol 119 Bitmap | Used by:120 | |
Symbol 120 Graphic | Uses:119 | Used by:154 |
Symbol 121 Bitmap | Used by:122 | |
Symbol 122 Graphic | Uses:121 | Used by:154 |
Symbol 123 Bitmap | Used by:124 | |
Symbol 124 Graphic | Uses:123 | Used by:154 |
Symbol 125 Bitmap | Used by:126 | |
Symbol 126 Graphic | Uses:125 | Used by:154 |
Symbol 127 EditableText | Uses:12 | Used by:154 |
Symbol 128 Bitmap | Used by:129 | |
Symbol 129 Graphic | Uses:128 | Used by:154 |
Symbol 130 Bitmap | Used by:131 | |
Symbol 131 Graphic | Uses:130 | Used by:154 |
Symbol 132 Bitmap | Used by:133 | |
Symbol 133 Graphic | Uses:132 | Used by:154 |
Symbol 134 Bitmap | Used by:135 | |
Symbol 135 Graphic | Uses:134 | Used by:154 |
Symbol 136 Bitmap | Used by:137 | |
Symbol 137 Graphic | Uses:136 | Used by:154 |
Symbol 138 Bitmap | Used by:139 | |
Symbol 139 Graphic | Uses:138 | Used by:154 |
Symbol 140 Bitmap | Used by:141 | |
Symbol 141 Graphic | Uses:140 | Used by:154 |
Symbol 142 Bitmap | Used by:143 | |
Symbol 143 Graphic | Uses:142 | Used by:154 |
Symbol 144 Bitmap | Used by:145 | |
Symbol 145 Graphic | Uses:144 | Used by:154 |
Symbol 146 Bitmap | Used by:147 | |
Symbol 147 Graphic | Uses:146 | Used by:154 |
Symbol 148 Bitmap | Used by:149 | |
Symbol 149 Graphic | Uses:148 | Used by:154 |
Symbol 150 Bitmap | Used by:151 | |
Symbol 151 Graphic | Uses:150 | Used by:154 |
Symbol 152 Bitmap | Used by:153 | |
Symbol 153 Graphic | Uses:152 | Used by:154 |
Symbol 154 MovieClip [viewCard] | Uses:105 107 108 110 112 114 116 118 120 122 124 126 127 129 131 133 135 137 139 141 143 145 147 149 151 153 | |
Symbol 155 Graphic | Used by:156 | |
Symbol 156 Button | Uses:155 | Used by:163 460 |
Symbol 157 Graphic | Used by:163 456 | |
Symbol 158 Font | Used by:159 161 431 442 458 459 496 507 508 510 513 529 557 561 562 564 565 568 569 571 597 598 600 610 621 623 625 626 672 684 685 688 689 691 693 695 696 699 707 711 714 716 718 719 720 721 724 725 730 731 733 735 736 737 744 748 749 755 770 771 793 846 866 867 869 873 875 880 933 957 1058 1059 | |
Symbol 159 EditableText | Uses:158 | Used by:163 |
Symbol 160 Graphic | Used by:162 457 | |
Symbol 161 Text | Uses:158 | Used by:162 460 |
Symbol 162 Button | Uses:160 161 | Used by:163 |
Symbol 163 MovieClip [warningBox] | Uses:156 157 159 162 | |
Symbol 164 Bitmap | Used by:165 | |
Symbol 165 Graphic | Uses:164 | Used by:182 |
Symbol 166 Bitmap | Used by:167 | |
Symbol 167 Graphic | Uses:166 | Used by:182 |
Symbol 168 Bitmap | Used by:169 | |
Symbol 169 Graphic | Uses:168 | Used by:182 |
Symbol 170 Bitmap | Used by:171 | |
Symbol 171 Graphic | Uses:170 | Used by:182 |
Symbol 172 Bitmap | Used by:173 | |
Symbol 173 Graphic | Uses:172 | Used by:182 |
Symbol 174 Bitmap | Used by:175 | |
Symbol 175 Graphic | Uses:174 | Used by:182 |
Symbol 176 Bitmap | Used by:177 | |
Symbol 177 Graphic | Uses:176 | Used by:182 |
Symbol 178 Bitmap | Used by:179 | |
Symbol 179 Graphic | Uses:178 | Used by:182 |
Symbol 180 Bitmap | Used by:181 | |
Symbol 181 Graphic | Uses:180 | Used by:182 |
Symbol 182 MovieClip [rarityClip] | Uses:165 167 169 171 173 175 177 179 181 | |
Symbol 183 Bitmap | Used by:184 | |
Symbol 184 Graphic | Uses:183 | Used by:187 |
Symbol 185 Bitmap | Used by:186 | |
Symbol 186 Graphic | Uses:185 | Used by:187 |
Symbol 187 MovieClip [boxClip] | Uses:184 186 | |
Symbol 188 Bitmap | Used by:189 | |
Symbol 189 Graphic | Uses:188 | Used by:190 |
Symbol 190 MovieClip [chatIcon] | Uses:189 | |
Symbol 191 Bitmap | Used by:192 | |
Symbol 192 Graphic | Uses:191 | Used by:193 |
Symbol 193 MovieClip [battleIcon] | Uses:192 | |
Symbol 194 Bitmap | Used by:195 | |
Symbol 195 Graphic | Uses:194 | Used by:196 |
Symbol 196 MovieClip [offlineIcon] | Uses:195 | |
Symbol 197 Bitmap | Used by:198 | |
Symbol 198 Graphic | Uses:197 | Used by:199 |
Symbol 199 MovieClip [blockIcon] | Uses:198 | |
Symbol 200 Bitmap | Used by:201 | |
Symbol 201 Graphic | Uses:200 | Used by:202 |
Symbol 202 MovieClip [managerIcon] | Uses:201 | |
Symbol 203 Bitmap | Used by:204 | |
Symbol 204 Graphic | Uses:203 | Used by:205 |
Symbol 205 MovieClip [graveyard] | Uses:204 | Used by:Timeline |
Symbol 206 Bitmap | Used by:207 | |
Symbol 207 Graphic | Uses:206 | Used by:208 |
Symbol 208 MovieClip [closeTab] | Uses:207 | Used by:Timeline |
Symbol 209 Bitmap | Used by:210 | |
Symbol 210 Graphic | Uses:209 | Used by:212 |
Symbol 211 EditableText | Uses:100 | Used by:212 |
Symbol 212 MovieClip [friendTab] | Uses:210 211 | Used by:Timeline |
Symbol 213 Graphic | Used by:214 | |
Symbol 214 MovieClip [flames] | Uses:213 | Used by:Timeline |
Symbol 215 Bitmap | Used by:216 | |
Symbol 216 Graphic | Uses:215 | Used by:220 221 |
Symbol 217 Graphic | Used by:220 | |
Symbol 218 ShapeTweening | Used by:220 | |
Symbol 219 Graphic | Used by:220 | |
Symbol 220 MovieClip | Uses:217 216 218 219 | Used by:221 |
Symbol 221 MovieClip | Uses:216 220 | Used by:Timeline |
Symbol 222 Font | Used by:223 506 | |
Symbol 223 Text | Uses:222 | Used by:Timeline |
Symbol 417 MovieClip [__Packages.mx.skins.ColoredSkinElement] | ||
Symbol 368 MovieClip [__Packages.mx.core.UIObject] | ||
Symbol 405 MovieClip [__Packages.mx.skins.SkinElement] | ||
Symbol 406 MovieClip [__Packages.mx.styles.CSSTextStyles] | ||
Symbol 408 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] | ||
Symbol 407 MovieClip [__Packages.mx.styles.StyleManager] | ||
Symbol 369 MovieClip [__Packages.mx.core.UIComponent] | ||
Symbol 409 MovieClip [__Packages.mx.controls.SimpleButton] | ||
Symbol 1025 MovieClip [__Packages.mx.controls.listclasses.DataSelector] | ||
Symbol 1026 MovieClip [__Packages.mx.controls.ComboBase] | ||
Symbol 410 MovieClip [__Packages.mx.skins.Border] | ||
Symbol 427 MovieClip [__Packages.mx.skins.RectBorder] | ||
Symbol 1040 MovieClip [__Packages.mx.controls.TextInput] | ||
Symbol 1027 MovieClip [__Packages.mx.controls.ComboBox] | ||
Symbol 1041 MovieClip [__Packages.mx.managers.PopUpManager] | ||
Symbol 420 MovieClip [__Packages.mx.managers.DepthManager] | ||
Symbol 421 MovieClip [__Packages.mx.managers.SystemManager] | ||
Symbol 415 MovieClip [__Packages.mx.events.EventDispatcher] | ||
Symbol 1042 MovieClip [__Packages.mx.core.View] | ||
Symbol 1043 MovieClip [__Packages.mx.core.ExternalContent] | ||
Symbol 416 MovieClip [__Packages.mx.events.UIEventDispatcher] | ||
Symbol 1044 MovieClip [__Packages.mx.core.ScrollView] | ||
Symbol 370 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] | ||
Symbol 411 MovieClip [__Packages.mx.skins.CustomBorder] | ||
Symbol 412 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] | ||
Symbol 1045 MovieClip [__Packages.mx.controls.listclasses.DataProvider] | ||
Symbol 1046 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] | ||
Symbol 1047 MovieClip [__Packages.mx.controls.List] | ||
Symbol 1048 MovieClip [__Packages.mx.effects.Tween] | ||
Symbol 1064 MovieClip [__Packages.it.gotoandplay.smartfoxserver.SmartFoxClient] | ||
Symbol 1065 MovieClip [__Packages.it.gotoandplay.smartfoxserver.ObjectSerializer] | ||
Symbol 1066 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.HttpConnection] | ||
Symbol 1067 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.LoaderFactory] | ||
Symbol 1068 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec] | ||
Symbol 1069 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.RawProtocolCodec] | ||
Symbol 1070 MovieClip [__Packages.mx.utils.Delegate] | ||
Symbol 1071 MovieClip [__Packages.it.gotoandplay.smartfoxserver.Room] | ||
Symbol 1072 MovieClip [__Packages.it.gotoandplay.smartfoxserver.User] | ||
Symbol 1073 MovieClip [__Packages.it.gotoandplay.smartfoxserver.JSON] | ||
Symbol 1074 MovieClip [__Packages.ToolTip] | ||
Symbol 371 MovieClip [__Packages.mx.controls.UIScrollBar] | ||
Symbol 413 MovieClip [__Packages.mx.controls.VScrollBar] | ||
Symbol 414 MovieClip [__Packages.mx.controls.Button] | ||
Symbol 418 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] | ||
Symbol 419 MovieClip [__Packages.mx.skins.halo.Defaults] | ||
Symbol 422 MovieClip [__Packages.mx.managers.FocusManager] | ||
Symbol 423 MovieClip [__Packages.mx.skins.halo.FocusRect] | ||
Symbol 424 MovieClip [__Packages.mx.managers.OverlappedWindows] | ||
Symbol 425 MovieClip [__Packages.mx.styles.CSSSetStyle] | ||
Symbol 426 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] | ||
Symbol 428 MovieClip [__Packages.mx.skins.halo.RectBorder] | ||
Symbol 429 MovieClip [__Packages.mx.skins.halo.ButtonSkin] | ||
Symbol 430 MovieClip [__Packages.mx.controls.HScrollBar] | ||
Symbol 1049 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] | ||
Symbol 224 Bitmap | Used by:225 | |
Symbol 225 Graphic | Uses:224 | Used by:276 |
Symbol 226 Graphic | Used by:227 | |
Symbol 227 Button | Uses:226 | Used by:276 337 340 346 348 350 |
Symbol 228 Font | Used by:229 230 273 274 566 611 615 622 625 626 627 630 635 640 645 650 655 660 665 670 673 676 678 679 680 681 682 683 686 687 690 692 694 696 699 704 712 717 718 719 720 726 727 730 731 732 733 734 737 738 742 744 796 797 798 799 816 828 829 830 868 870 871 872 874 876 877 878 879 982 1055 | |
Symbol 229 Text | Uses:228 | Used by:276 |
Symbol 230 Text | Uses:228 | Used by:276 |
Symbol 231 Graphic | Used by:232 281 | |
Symbol 232 MovieClip [cardSelected] | Uses:231 | Used by:271 Timeline |
Symbol 233 Bitmap | Used by:234 628 629 | |
Symbol 234 Graphic | Uses:233 | Used by:271 363 |
Symbol 235 Bitmap | Used by:236 | |
Symbol 236 Graphic | Uses:235 | Used by:271 363 |
Symbol 237 Bitmap | Used by:238 | |
Symbol 238 Graphic | Uses:237 | Used by:271 363 |
Symbol 239 Bitmap | Used by:240 | |
Symbol 240 Graphic | Uses:239 | Used by:271 363 |
Symbol 241 Bitmap | Used by:242 | |
Symbol 242 Graphic | Uses:241 | Used by:271 363 |
Symbol 243 Bitmap | Used by:244 | |
Symbol 244 Graphic | Uses:243 | Used by:271 363 |
Symbol 245 Bitmap | Used by:246 | |
Symbol 246 Graphic | Uses:245 | Used by:271 363 |
Symbol 247 Bitmap | Used by:248 | |
Symbol 248 Graphic | Uses:247 | Used by:271 363 |
Symbol 249 Bitmap | Used by:250 | |
Symbol 250 Graphic | Uses:249 | Used by:271 363 |
Symbol 251 Bitmap | Used by:252 | |
Symbol 252 Graphic | Uses:251 | Used by:271 363 |
Symbol 253 Bitmap | Used by:254 | |
Symbol 254 Graphic | Uses:253 | Used by:271 363 |
Symbol 255 Bitmap | Used by:256 | |
Symbol 256 Graphic | Uses:255 | Used by:271 363 |
Symbol 257 Bitmap | Used by:258 | |
Symbol 258 Graphic | Uses:257 | Used by:271 363 |
Symbol 259 Bitmap | Used by:260 | |
Symbol 260 Graphic | Uses:259 | Used by:271 363 |
Symbol 261 Bitmap | Used by:262 | |
Symbol 262 Graphic | Uses:261 | Used by:271 363 |
Symbol 263 Bitmap | Used by:264 | |
Symbol 264 Graphic | Uses:263 | Used by:271 363 |
Symbol 265 Bitmap | Used by:266 | |
Symbol 266 Graphic | Uses:265 | Used by:271 363 |
Symbol 267 Bitmap | Used by:268 | |
Symbol 268 Graphic | Uses:267 | Used by:271 363 |
Symbol 269 Bitmap | Used by:270 362 | |
Symbol 270 Graphic | Uses:269 | Used by:271 |
Symbol 271 MovieClip [card] | Uses:232 105 234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 | Used by:276 Timeline |
Symbol 272 Graphic | Used by:275 | |
Symbol 273 Text | Uses:228 | Used by:275 |
Symbol 274 Text | Uses:228 | Used by:275 |
Symbol 275 Button | Uses:272 273 274 | Used by:276 |
Symbol 276 MovieClip [bonusCards] | Uses:225 227 229 230 271 275 | Used by:Timeline |
Symbol 277 ShapeTweening | Used by:281 | |
Symbol 278 Graphic | Used by:281 | |
Symbol 279 ShapeTweening | Used by:281 | |
Symbol 280 Graphic | Used by:281 | |
Symbol 281 MovieClip [sparklesEffect] | Uses:231 277 278 279 280 | Used by:Timeline |
Symbol 282 EditableText | Uses:12 | Used by:284 |
Symbol 283 EditableText | Uses:12 | Used by:284 |
Symbol 284 MovieClip [lose_animation] | Uses:282 283 | Used by:Timeline |
Symbol 285 Graphic | Used by:289 | |
Symbol 286 Text | Uses:100 | Used by:289 |
Symbol 287 EditableText | Uses:100 | Used by:289 |
Symbol 288 EditableText | Uses:100 | Used by:289 |
Symbol 289 MovieClip [infoBox] | Uses:285 286 287 288 | Used by:Timeline |
Symbol 290 EditableText | Uses:12 | Used by:292 |
Symbol 291 EditableText | Uses:12 | Used by:292 |
Symbol 292 MovieClip [gain_animation] | Uses:290 291 | Used by:Timeline |
Symbol 293 Graphic | Used by:296 | |
Symbol 294 ShapeTweening | Used by:296 | |
Symbol 295 Graphic | Used by:296 | |
Symbol 296 MovieClip [fade_control] | Uses:293 294 295 | Used by:Timeline |
Symbol 297 Graphic | Used by:299 | |
Symbol 298 EditableText | Uses:100 | Used by:299 |
Symbol 299 MovieClip [countsBox] | Uses:297 298 | Used by:Timeline |
Symbol 300 Bitmap | Used by:301 715 | |
Symbol 301 Graphic | Uses:300 | Used by:302 |
Symbol 302 MovieClip [a] | Uses:301 | Used by:Timeline |
Symbol 303 Bitmap | Used by:304 715 | |
Symbol 304 Graphic | Uses:303 | Used by:305 |
Symbol 305 MovieClip [av] | Uses:304 | Used by:Timeline |
Symbol 306 Bitmap | Used by:307 715 | |
Symbol 307 Graphic | Uses:306 | Used by:308 |
Symbol 308 MovieClip [e] | Uses:307 | Used by:Timeline |
Symbol 309 Bitmap | Used by:310 715 | |
Symbol 310 Graphic | Uses:309 | Used by:311 |
Symbol 311 MovieClip [g] | Uses:310 | Used by:Timeline |
Symbol 312 Bitmap | Used by:313 715 | |
Symbol 313 Graphic | Uses:312 | Used by:314 |
Symbol 314 MovieClip [h] | Uses:313 | Used by:Timeline |
Symbol 315 Bitmap | Used by:316 715 | |
Symbol 316 Graphic | Uses:315 | Used by:317 |
Symbol 317 MovieClip [k] | Uses:316 | Used by:Timeline |
Symbol 318 Bitmap | Used by:319 715 | |
Symbol 319 Graphic | Uses:318 | Used by:320 |
Symbol 320 MovieClip [m] | Uses:319 | Used by:Timeline |
Symbol 321 Bitmap | Used by:322 715 | |
Symbol 322 Graphic | Uses:321 | Used by:323 |
Symbol 323 MovieClip [p] | Uses:322 | Used by:Timeline |
Symbol 324 Bitmap | Used by:325 715 | |
Symbol 325 Graphic | Uses:324 | Used by:326 |
Symbol 326 MovieClip [s] | Uses:325 | Used by:Timeline |
Symbol 327 Bitmap | Used by:328 715 | |
Symbol 328 Graphic | Uses:327 | Used by:329 |
Symbol 329 MovieClip [w] | Uses:328 | Used by:Timeline |
Symbol 330 Bitmap | Used by:331 338 | |
Symbol 331 Graphic | Uses:330 | Used by:337 346 348 350 |
Symbol 332 Text | Uses:12 | Used by:337 |
Symbol 333 Bitmap | Used by:334 343 | |
Symbol 334 Graphic | Uses:333 | Used by:336 |
Symbol 335 EditableText | Uses:12 | Used by:336 |
Symbol 336 MovieClip | Uses:334 335 | Used by:337 340 348 |
Symbol 337 MovieClip [attackResponse] | Uses:331 227 332 336 | Used by:Timeline |
Symbol 338 Graphic | Uses:330 | Used by:340 |
Symbol 339 Text | Uses:12 | Used by:340 |
Symbol 340 MovieClip [defenseResponse] | Uses:338 227 339 336 | Used by:Timeline |
Symbol 341 Text | Uses:12 | Used by:346 348 350 |
Symbol 342 EditableText | Uses:12 | Used by:346 |
Symbol 343 Graphic | Uses:333 | Used by:345 |
Symbol 344 EditableText | Uses:12 | Used by:345 |
Symbol 345 MovieClip | Uses:343 344 | Used by:346 |
Symbol 346 MovieClip [okCancelResponse] | Uses:331 227 341 342 345 | Used by:Timeline |
Symbol 347 EditableText | Uses:12 | Used by:348 |
Symbol 348 MovieClip [okResponse] | Uses:331 227 341 336 347 | Used by:Timeline |
Symbol 349 EditableText | Uses:12 | Used by:350 |
Symbol 350 MovieClip [waitingResponse] | Uses:331 227 341 349 | Used by:Timeline |
Symbol 351 Graphic | Used by:352 | |
Symbol 352 MovieClip | Uses:351 | Used by:363 |
Symbol 353 Graphic | Used by:355 357 363 | |
Symbol 354 Text | Uses:12 | Used by:355 |
Symbol 355 MovieClip | Uses:353 354 | Used by:363 |
Symbol 356 Text | Uses:12 | Used by:357 |
Symbol 357 Button | Uses:353 356 | Used by:363 |
Symbol 358 EditableText | Uses:100 | Used by:363 |
Symbol 359 Graphic | Used by:360 | |
Symbol 360 MovieClip | Uses:359 | Used by:363 |
Symbol 361 EditableText | Uses:100 | Used by:363 |
Symbol 362 Graphic | Uses:269 | Used by:363 |
Symbol 363 MovieClip [cardManager] | Uses:105 234 352 353 355 357 358 360 361 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 362 | Used by:Timeline |
Symbol 364 Graphic | Used by:365 | |
Symbol 365 Button | Uses:364 | Used by:439 448 455 |
Symbol 366 Bitmap | Used by:367 599 | |
Symbol 367 Graphic | Uses:366 | Used by:439 |
Symbol 372 Graphic | Used by:373 | |
Symbol 373 MovieClip [BoundingBox] | Uses:372 | Used by:392 396 400 402 403 404 1031 1034 1035 1036 1037 1038 1039 |
Symbol 374 Graphic | Used by:375 | |
Symbol 375 MovieClip [BrdrShdw] | Uses:374 | Used by:378 383 384 |
Symbol 376 Graphic | Used by:377 | |
Symbol 377 MovieClip [BrdrFace] | Uses:376 | Used by:378 383 384 |
Symbol 378 MovieClip [SimpleButtonDown] | Uses:375 377 | Used by:396 |
Symbol 379 Graphic | Used by:380 | |
Symbol 380 MovieClip [BrdrBlk] | Uses:379 | Used by:383 384 |
Symbol 381 Graphic | Used by:382 | |
Symbol 382 MovieClip [BrdrHilght] | Uses:381 | Used by:383 384 |
Symbol 383 MovieClip [SimpleButtonIn] | Uses:380 382 375 377 | Used by:396 |
Symbol 384 MovieClip [SimpleButtonUp] | Uses:380 377 375 382 | Used by:396 |
Symbol 385 MovieClip [Defaults] | Used by:387 | |
Symbol 386 MovieClip [UIObjectExtensions] | Used by:387 | |
Symbol 387 MovieClip [UIObject] | Uses:385 386 | Used by:393 395 397 |
Symbol 388 Graphic | Used by:390 | |
Symbol 389 Graphic | Used by:390 | |
Symbol 390 Button | Uses:388 389 | Used by:393 |
Symbol 391 MovieClip | Used by:393 | |
Symbol 392 MovieClip [FocusRect] | Uses:373 | Used by:393 |
Symbol 393 MovieClip [FocusManager] | Uses:390 391 392 387 | Used by:395 |
Symbol 394 MovieClip [UIComponentExtensions] | Used by:395 | |
Symbol 395 MovieClip [UIComponent] | Uses:387 393 394 | Used by:396 1030 1031 1034 1035 |
Symbol 396 MovieClip [SimpleButton] | Uses:373 378 383 384 395 | Used by:400 402 403 1031 |
Symbol 397 MovieClip [Border] | Uses:387 | Used by:398 400 |
Symbol 398 MovieClip [RectBorder] | Uses:397 | Used by:400 1030 1035 |
Symbol 399 MovieClip [ButtonSkin] | Used by:400 | |
Symbol 400 MovieClip [Button] | Uses:373 396 397 398 399 | Used by:402 403 |
Symbol 401 MovieClip [CustomBorder] | Used by:402 403 | |
Symbol 402 MovieClip [VScrollBar] | Uses:373 400 396 401 90 | Used by:404 1036 |
Symbol 403 MovieClip [HScrollBar] | Uses:373 400 396 401 90 | Used by:404 1036 |
Symbol 404 MovieClip [UIScrollBar] | Uses:373 402 403 | Used by:439 1063 Timeline |
Symbol 431 EditableText | Uses:158 | Used by:439 |
Symbol 432 Text | Uses:100 | Used by:439 |
Symbol 433 Bitmap | Used by:434 | |
Symbol 434 Graphic | Uses:433 | Used by:435 |
Symbol 435 Button | Uses:434 | Used by:439 |
Symbol 436 Bitmap | Used by:437 | |
Symbol 437 Graphic | Uses:436 | Used by:438 |
Symbol 438 Button | Uses:437 | Used by:439 455 |
Symbol 439 MovieClip [deckList] | Uses:365 367 404 431 432 435 438 | Used by:Timeline |
Symbol 440 Bitmap | Used by:441 | |
Symbol 441 Graphic | Uses:440 | Used by:443 |
Symbol 442 EditableText | Uses:158 | Used by:443 |
Symbol 443 MovieClip [pageTab] | Uses:441 442 | Used by:Timeline |
Symbol 444 EditableText | Uses:12 | Used by:446 |
Symbol 445 EditableText | Uses:12 | Used by:446 |
Symbol 446 MovieClip [removeCardAnimation] | Uses:444 445 | Used by:Timeline |
Symbol 447 EditableText | Uses:100 | Used by:448 |
Symbol 448 MovieClip [saveDeckBox] | Uses:365 447 | Used by:Timeline |
Symbol 449 Bitmap | Used by:450 | |
Symbol 450 Graphic | Uses:449 | Used by:451 |
Symbol 451 Button | Uses:450 | Used by:455 |
Symbol 452 Text | Uses:100 | Used by:455 |
Symbol 453 Graphic | Used by:455 | |
Symbol 454 EditableText | Uses:100 | Used by:455 |
Symbol 455 MovieClip [saveNewDeckBox] | Uses:365 451 452 453 454 438 | Used by:Timeline |
Symbol 456 Button | Uses:157 | Used by:460 |
Symbol 457 Button | Uses:160 | Used by:460 |
Symbol 458 Text | Uses:158 | Used by:460 |
Symbol 459 EditableText | Uses:158 | Used by:460 |
Symbol 460 MovieClip [okCancelResponseBlack] | Uses:156 456 457 161 458 459 | Used by:Timeline |
Symbol 461 EditableText | Uses:12 | Used by:462 |
Symbol 462 MovieClip [phaseAnnounce] | Uses:461 | Used by:Timeline |
Symbol 463 Graphic | Used by:464 | |
Symbol 464 MovieClip [posModIcon] | Uses:463 | Used by:Timeline |
Symbol 465 Graphic | Used by:466 | |
Symbol 466 MovieClip [negModIcon] | Uses:465 | Used by:Timeline |
Symbol 467 Graphic | Used by:472 | |
Symbol 468 Graphic | Used by:469 | |
Symbol 469 MovieClip | Uses:468 | Used by:472 |
Symbol 470 Graphic | Used by:471 | |
Symbol 471 MovieClip | Uses:470 | Used by:472 |
Symbol 472 MovieClip | Uses:467 469 471 | Used by:473 |
Symbol 473 MovieClip [helpArrow] | Uses:472 | Used by:Timeline |
Symbol 474 Sound [battle.mp3] | Used by:489 | |
Symbol 475 Sound [battlestart.au] | Used by:489 | |
Symbol 476 Sound [cardflip.wav] | Used by:489 | |
Symbol 477 Sound [challenge.wav] | Used by:489 | |
Symbol 478 Sound [levelup.wav] | Used by:489 | |
Symbol 479 Sound [lobby.mp3] | Used by:489 | |
Symbol 480 Sound [login.mp3] | Used by:489 | |
Symbol 481 Sound [lose.au] | Used by:489 | |
Symbol 482 Sound [manager.mp3] | Used by:489 | |
Symbol 483 Sound [mouseover.au] | Used by:489 | |
Symbol 484 Sound [myturn.au] | Used by:489 | |
Symbol 485 Sound [opaction.au] | Used by:489 | |
Symbol 486 Sound [phase.au] | Used by:489 | |
Symbol 487 Sound [win.au] | Used by:489 | |
Symbol 488 Sound [battle2.mp3] | Used by:489 | |
Symbol 489 MovieClip | Uses:474 475 476 477 478 479 480 481 482 483 484 485 486 487 1 488 | Used by:Timeline |
Symbol 490 ShapeTweening | Used by:493 | |
Symbol 491 ShapeTweening | Used by:493 | |
Symbol 492 Graphic | Used by:493 | |
Symbol 493 MovieClip [damageColorEffect] | Uses:490 491 492 | Used by:Timeline |
Symbol 494 Bitmap | Used by:495 560 | |
Symbol 495 Graphic | Uses:494 | Used by:Timeline |
Symbol 496 EditableText | Uses:158 | Used by:Timeline |
Symbol 497 Text | Uses:100 | Used by:500 |
Symbol 498 Text | Uses:100 | Used by:500 |
Symbol 499 Graphic | Used by:500 | |
Symbol 500 Button | Uses:497 498 499 | Used by:Timeline |
Symbol 501 Graphic | Used by:504 | |
Symbol 502 ShapeTweening | Used by:504 | |
Symbol 503 ShapeTweening | Used by:504 | |
Symbol 504 MovieClip | Uses:501 502 503 | Used by:Timeline |
Symbol 505 Font | Used by:506 511 512 514 515 517 518 521 522 533 534 537 538 540 541 543 544 546 547 549 550 574 575 577 578 | |
Symbol 506 EditableText | Uses:222 505 | Used by:Timeline |
Symbol 507 EditableText | Uses:158 | Used by:Timeline |
Symbol 508 EditableText | Uses:158 | Used by:Timeline |
Symbol 509 Graphic | Used by:Timeline | |
Symbol 510 EditableText | Uses:158 | Used by:Timeline |
Symbol 511 Text | Uses:505 | Used by:Timeline |
Symbol 512 Text | Uses:505 | Used by:Timeline |
Symbol 513 EditableText | Uses:158 | Used by:Timeline |
Symbol 514 Text | Uses:505 | Used by:Timeline |
Symbol 515 Text | Uses:505 | Used by:Timeline |
Symbol 516 Graphic | Used by:519 | |
Symbol 517 Text | Uses:505 | Used by:519 |
Symbol 518 Text | Uses:505 | Used by:519 |
Symbol 519 MovieClip | Uses:516 517 518 | Used by:Timeline |
Symbol 520 Graphic | Used by:523 | |
Symbol 521 Text | Uses:505 | Used by:523 |
Symbol 522 Text | Uses:505 | Used by:523 |
Symbol 523 MovieClip | Uses:520 521 522 | Used by:Timeline |
Symbol 524 Text | Uses:100 | Used by:528 |
Symbol 525 Text | Uses:100 | Used by:528 |
Symbol 526 Text | Uses:100 | Used by:528 |
Symbol 527 Graphic | Used by:528 | |
Symbol 528 Button | Uses:524 525 526 527 | Used by:Timeline |
Symbol 529 EditableText | Uses:158 | Used by:Timeline |
Symbol 530 Graphic | Used by:531 | |
Symbol 531 MovieClip | Uses:530 | Used by:Timeline |
Symbol 532 Graphic | Used by:552 | |
Symbol 533 Text | Uses:505 | Used by:536 |
Symbol 534 Text | Uses:505 | Used by:536 |
Symbol 535 Graphic | Used by:536 539 542 545 548 551 | |
Symbol 536 Button | Uses:533 534 535 | Used by:552 |
Symbol 537 Text | Uses:505 | Used by:539 |
Symbol 538 Text | Uses:505 | Used by:539 |
Symbol 539 Button | Uses:537 538 535 | Used by:552 |
Symbol 540 Text | Uses:505 | Used by:542 |
Symbol 541 Text | Uses:505 | Used by:542 |
Symbol 542 Button | Uses:540 541 535 | Used by:552 |
Symbol 543 Text | Uses:505 | Used by:545 |
Symbol 544 Text | Uses:505 | Used by:545 |
Symbol 545 Button | Uses:543 544 535 | Used by:552 |
Symbol 546 Text | Uses:505 | Used by:548 |
Symbol 547 Text | Uses:505 | Used by:548 |
Symbol 548 Button | Uses:546 547 535 | Used by:552 |
Symbol 549 Text | Uses:505 | Used by:551 |
Symbol 550 Text | Uses:505 | Used by:551 |
Symbol 551 Button | Uses:549 550 535 | Used by:552 |
Symbol 552 MovieClip | Uses:532 536 539 542 545 548 551 | Used by:553 |
Symbol 553 MovieClip | Uses:552 | Used by:Timeline |
Symbol 554 Bitmap | Used by:555 | |
Symbol 555 Graphic | Uses:554 | Used by:Timeline |
Symbol 556 EditableText | Uses:100 | Used by:Timeline |
Symbol 557 Text | Uses:158 | Used by:Timeline |
Symbol 558 EditableText | Uses:100 | Used by:Timeline |
Symbol 559 MovieClip | Used by:817 Timeline | |
Symbol 560 Graphic | Uses:494 | Used by:Timeline |
Symbol 561 Text | Uses:158 | Used by:Timeline |
Symbol 562 Text | Uses:158 | Used by:Timeline |
Symbol 563 Graphic | Used by:Timeline | |
Symbol 564 Text | Uses:158 | Used by:Timeline |
Symbol 565 Text | Uses:158 | Used by:Timeline |
Symbol 566 Text | Uses:228 | Used by:Timeline |
Symbol 567 Graphic | Used by:Timeline | |
Symbol 568 Text | Uses:158 | Used by:Timeline |
Symbol 569 Text | Uses:158 | Used by:Timeline |
Symbol 570 Graphic | Used by:Timeline | |
Symbol 571 Text | Uses:158 | Used by:Timeline |
Symbol 572 Graphic | Used by:Timeline | |
Symbol 573 Graphic | Used by:576 579 | |
Symbol 574 Text | Uses:505 | Used by:576 |
Symbol 575 Text | Uses:505 | Used by:576 |
Symbol 576 MovieClip | Uses:573 574 575 | Used by:Timeline |
Symbol 577 Text | Uses:505 | Used by:579 |
Symbol 578 Text | Uses:505 | Used by:579 |
Symbol 579 MovieClip | Uses:573 577 578 | Used by:747 Timeline |
Symbol 580 Bitmap | Used by:581 | |
Symbol 581 Graphic | Uses:580 | Used by:596 |
Symbol 582 Bitmap | Used by:583 | |
Symbol 583 Graphic | Uses:582 | Used by:596 |
Symbol 584 Bitmap | Used by:585 | |
Symbol 585 Graphic | Uses:584 | Used by:596 |
Symbol 586 Bitmap | Used by:587 | |
Symbol 587 Graphic | Uses:586 | Used by:596 |
Symbol 588 Bitmap | Used by:589 | |
Symbol 589 Graphic | Uses:588 | Used by:596 |
Symbol 590 Bitmap | Used by:591 | |
Symbol 591 Graphic | Uses:590 | Used by:596 |
Symbol 592 Bitmap | Used by:593 | |
Symbol 593 Graphic | Uses:592 | Used by:596 |
Symbol 594 Bitmap | Used by:595 | |
Symbol 595 Graphic | Uses:594 | Used by:596 |
Symbol 596 MovieClip | Uses:581 583 585 587 589 591 593 595 | Used by:Timeline |
Symbol 597 EditableText | Uses:158 | Used by:Timeline |
Symbol 598 EditableText | Uses:158 | Used by:Timeline |
Symbol 599 Graphic | Uses:366 | Used by:Timeline |
Symbol 600 EditableText | Uses:158 | Used by:Timeline |
Symbol 601 EditableText | Uses:100 | Used by:Timeline |
Symbol 602 Bitmap | Used by:603 | |
Symbol 603 Graphic | Uses:602 | Used by:747 |
Symbol 604 Bitmap | Used by:605 | |
Symbol 605 Graphic | Uses:604 | Used by:606 |
Symbol 606 Button | Uses:605 | Used by:747 Timeline |
Symbol 607 Bitmap | Used by:608 | |
Symbol 608 Graphic | Uses:607 | Used by:609 |
Symbol 609 Button | Uses:608 | Used by:747 Timeline |
Symbol 610 Text | Uses:158 | Used by:747 |
Symbol 611 Text | Uses:228 | Used by:747 |
Symbol 612 Bitmap | Used by:613 614 | |
Symbol 613 Graphic | Uses:612 | Used by:616 |
Symbol 614 Graphic | Uses:612 | Used by:616 |
Symbol 615 Text | Uses:228 | Used by:616 620 624 |
Symbol 616 Button | Uses:613 614 615 | Used by:747 |
Symbol 617 Bitmap | Used by:618 619 | |
Symbol 618 Graphic | Uses:617 | Used by:620 624 |
Symbol 619 Graphic | Uses:617 | Used by:620 624 |
Symbol 620 Button | Uses:618 619 615 | Used by:747 |
Symbol 621 Text | Uses:158 | Used by:747 |
Symbol 622 Text | Uses:228 | Used by:747 |
Symbol 623 Text | Uses:158 | Used by:747 |
Symbol 624 Button | Uses:618 619 615 | Used by:747 |
Symbol 625 Text | Uses:158 228 | Used by:747 |
Symbol 626 Text | Uses:228 158 | Used by:747 |
Symbol 627 Text | Uses:228 | Used by:747 |
Symbol 628 Graphic | Uses:233 | Used by:631 |
Symbol 629 Graphic | Uses:233 | Used by:631 |
Symbol 630 Text | Uses:228 | Used by:631 |
Symbol 631 Button | Uses:628 629 630 | Used by:747 |
Symbol 632 Bitmap | Used by:633 634 | |
Symbol 633 Graphic | Uses:632 | Used by:636 |
Symbol 634 Graphic | Uses:632 | Used by:636 |
Symbol 635 Text | Uses:228 | Used by:636 |
Symbol 636 Button | Uses:633 634 635 | Used by:747 |
Symbol 637 Bitmap | Used by:638 639 | |
Symbol 638 Graphic | Uses:637 | Used by:641 |
Symbol 639 Graphic | Uses:637 | Used by:641 |
Symbol 640 Text | Uses:228 | Used by:641 |
Symbol 641 Button | Uses:638 639 640 | Used by:747 |
Symbol 642 Bitmap | Used by:643 644 | |
Symbol 643 Graphic | Uses:642 | Used by:646 |
Symbol 644 Graphic | Uses:642 | Used by:646 |
Symbol 645 Text | Uses:228 | Used by:646 |
Symbol 646 Button | Uses:643 644 645 | Used by:747 |
Symbol 647 Bitmap | Used by:648 649 | |
Symbol 648 Graphic | Uses:647 | Used by:651 |
Symbol 649 Graphic | Uses:647 | Used by:651 |
Symbol 650 Text | Uses:228 | Used by:651 |
Symbol 651 Button | Uses:648 649 650 | Used by:747 |
Symbol 652 Bitmap | Used by:653 654 | |
Symbol 653 Graphic | Uses:652 | Used by:656 |
Symbol 654 Graphic | Uses:652 | Used by:656 |
Symbol 655 Text | Uses:228 | Used by:656 |
Symbol 656 Button | Uses:653 654 655 | Used by:747 |
Symbol 657 Bitmap | Used by:658 659 | |
Symbol 658 Graphic | Uses:657 | Used by:661 |
Symbol 659 Graphic | Uses:657 | Used by:661 |
Symbol 660 Text | Uses:228 | Used by:661 |
Symbol 661 Button | Uses:658 659 660 | Used by:747 |
Symbol 662 Bitmap | Used by:663 664 | |
Symbol 663 Graphic | Uses:662 | Used by:666 |
Symbol 664 Graphic | Uses:662 | Used by:666 |
Symbol 665 Text | Uses:228 | Used by:666 |
Symbol 666 Button | Uses:663 664 665 | Used by:747 |
Symbol 667 Bitmap | Used by:668 669 | |
Symbol 668 Graphic | Uses:667 | Used by:671 |
Symbol 669 Graphic | Uses:667 | Used by:671 |
Symbol 670 Text | Uses:228 | Used by:671 |
Symbol 671 Button | Uses:668 669 670 | Used by:747 |
Symbol 672 Text | Uses:158 | Used by:747 |
Symbol 673 Text | Uses:228 | Used by:747 |
Symbol 674 Bitmap | Used by:675 | |
Symbol 675 Graphic | Uses:674 | Used by:747 |
Symbol 676 Text | Uses:228 | Used by:747 |
Symbol 677 Graphic | Used by:747 | |
Symbol 678 Text | Uses:228 | Used by:747 |
Symbol 679 Text | Uses:228 | Used by:747 |
Symbol 680 Text | Uses:228 | Used by:747 |
Symbol 681 Text | Uses:228 | Used by:747 |
Symbol 682 Text | Uses:228 | Used by:747 |
Symbol 683 Text | Uses:228 | Used by:747 |
Symbol 684 Text | Uses:158 | Used by:747 |
Symbol 685 Text | Uses:158 | Used by:747 |
Symbol 686 Text | Uses:228 | Used by:747 |
Symbol 687 Text | Uses:228 | Used by:747 |
Symbol 688 Text | Uses:158 | Used by:747 |
Symbol 689 Text | Uses:158 | Used by:747 |
Symbol 690 Text | Uses:228 | Used by:747 |
Symbol 691 Text | Uses:158 | Used by:747 |
Symbol 692 Text | Uses:228 | Used by:747 |
Symbol 693 Text | Uses:158 | Used by:747 |
Symbol 694 Text | Uses:228 | Used by:747 |
Symbol 695 Text | Uses:158 | Used by:747 |
Symbol 696 Text | Uses:158 228 | Used by:747 |
Symbol 697 Bitmap | Used by:698 | |
Symbol 698 Graphic | Uses:697 | Used by:747 |
Symbol 699 Text | Uses:228 158 | Used by:747 |
Symbol 700 Bitmap | Used by:703 | |
Symbol 701 Bitmap | Used by:703 | |
Symbol 702 Bitmap | Used by:703 | |
Symbol 703 Graphic | Uses:700 701 702 | Used by:747 |
Symbol 704 Text | Uses:228 | Used by:747 |
Symbol 705 Bitmap | Used by:706 | |
Symbol 706 Graphic | Uses:705 | Used by:747 |
Symbol 707 Text | Uses:158 | Used by:747 |
Symbol 708 Bitmap | Used by:710 | |
Symbol 709 Bitmap | Used by:710 | |
Symbol 710 Graphic | Uses:708 709 | Used by:747 |
Symbol 711 Text | Uses:158 | Used by:747 |
Symbol 712 Text | Uses:228 | Used by:747 |
Symbol 713 Graphic | Used by:747 | |
Symbol 714 Text | Uses:158 | Used by:747 |
Symbol 715 Graphic | Uses:306 303 327 324 318 321 309 315 300 312 | Used by:747 |
Symbol 716 Text | Uses:158 | Used by:747 |
Symbol 717 Text | Uses:228 | Used by:747 |
Symbol 718 Text | Uses:158 228 | Used by:747 |
Symbol 719 Text | Uses:228 158 | Used by:747 |
Symbol 720 Text | Uses:228 158 | Used by:747 |
Symbol 721 Text | Uses:158 | Used by:747 |
Symbol 722 Bitmap | Used by:723 | |
Symbol 723 Graphic | Uses:722 | Used by:747 |
Symbol 724 Text | Uses:158 | Used by:747 |
Symbol 725 Text | Uses:158 | Used by:747 |
Symbol 726 Text | Uses:228 | Used by:747 |
Symbol 727 Text | Uses:228 | Used by:747 |
Symbol 728 Bitmap | Used by:729 | |
Symbol 729 Graphic | Uses:728 | Used by:747 |
Symbol 730 Text | Uses:228 158 | Used by:747 |
Symbol 731 Text | Uses:228 158 | Used by:747 |
Symbol 732 Text | Uses:228 | Used by:747 |
Symbol 733 Text | Uses:158 228 | Used by:747 |
Symbol 734 Text | Uses:228 | Used by:747 |
Symbol 735 EditableText | Uses:158 | Used by:747 |
Symbol 736 Text | Uses:158 | Used by:747 |
Symbol 737 Text | Uses:158 228 | Used by:747 |
Symbol 738 Text | Uses:228 | Used by:747 |
Symbol 739 Graphic | Used by:740 | |
Symbol 740 MovieClip | Uses:739 | Used by:747 |
Symbol 741 Graphic | Used by:747 | |
Symbol 742 Text | Uses:228 | Used by:747 |
Symbol 743 Font | Used by:744 | |
Symbol 744 Text | Uses:228 158 743 | Used by:747 |
Symbol 745 Bitmap | Used by:746 | |
Symbol 746 Graphic | Uses:745 | Used by:747 966 |
Symbol 747 MovieClip | Uses:603 579 606 609 610 611 616 620 621 622 623 624 625 626 627 631 636 641 646 651 656 661 666 671 672 673 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 698 699 703 704 706 707 710 711 712 713 714 715 716 717 718 719 720 721 723 724 725 726 727 729 730 731 732 733 734 735 736 737 738 740 741 742 744 746 | Used by:Timeline |
Symbol 748 Text | Uses:158 | Used by:Timeline |
Symbol 749 Text | Uses:158 | Used by:Timeline |
Symbol 750 Graphic | Used by:Timeline | |
Symbol 751 Bitmap | Used by:752 | |
Symbol 752 Graphic | Uses:751 | Used by:Timeline |
Symbol 753 Bitmap | Used by:754 | |
Symbol 754 Graphic | Uses:753 | Used by:769 |
Symbol 755 EditableText | Uses:158 | Used by:769 |
Symbol 756 Bitmap | Used by:757 | |
Symbol 757 Graphic | Uses:756 | Used by:758 |
Symbol 758 Button | Uses:757 | Used by:769 |
Symbol 759 Graphic | Used by:768 | |
Symbol 760 Graphic | Used by:768 | |
Symbol 761 Graphic | Used by:768 | |
Symbol 762 Graphic | Used by:768 | |
Symbol 763 Graphic | Used by:768 | |
Symbol 764 Graphic | Used by:768 | |
Symbol 765 Graphic | Used by:768 | |
Symbol 766 Graphic | Used by:768 | |
Symbol 767 Graphic | Used by:768 | |
Symbol 768 MovieClip | Uses:65 759 760 761 762 763 764 765 766 767 | Used by:769 |
Symbol 769 MovieClip | Uses:754 755 758 768 | Used by:Timeline |
Symbol 770 EditableText | Uses:158 | Used by:Timeline |
Symbol 771 EditableText | Uses:158 | Used by:Timeline |
Symbol 772 Bitmap | Used by:773 | |
Symbol 773 Graphic | Uses:772 | Used by:776 |
Symbol 774 Bitmap | Used by:775 | |
Symbol 775 Graphic | Uses:774 | Used by:776 |
Symbol 776 Button | Uses:773 775 | Used by:Timeline |
Symbol 777 Bitmap | Used by:778 | |
Symbol 778 Graphic | Uses:777 | Used by:781 |
Symbol 779 Bitmap | Used by:780 | |
Symbol 780 Graphic | Uses:779 | Used by:781 |
Symbol 781 Button | Uses:778 780 | Used by:Timeline |
Symbol 782 Bitmap | Used by:783 | |
Symbol 783 Graphic | Uses:782 | Used by:786 |
Symbol 784 Bitmap | Used by:785 | |
Symbol 785 Graphic | Uses:784 | Used by:786 |
Symbol 786 Button | Uses:783 785 | Used by:Timeline |
Symbol 787 Bitmap | Used by:788 | |
Symbol 788 Graphic | Uses:787 | Used by:791 |
Symbol 789 Bitmap | Used by:790 | |
Symbol 790 Graphic | Uses:789 | Used by:791 |
Symbol 791 Button | Uses:788 790 | Used by:Timeline |
Symbol 792 EditableText | Uses:12 | Used by:Timeline |
Symbol 793 EditableText | Uses:158 | Used by:Timeline |
Symbol 794 Bitmap | Used by:795 | |
Symbol 795 Graphic | Uses:794 | Used by:817 |
Symbol 796 EditableText | Uses:228 | Used by:817 |
Symbol 797 EditableText | Uses:228 | Used by:817 |
Symbol 798 EditableText | Uses:228 | Used by:817 |
Symbol 799 EditableText | Uses:228 | Used by:817 |
Symbol 800 Bitmap | Used by:801 | |
Symbol 801 Graphic | Uses:800 | Used by:804 |
Symbol 802 Bitmap | Used by:803 | |
Symbol 803 Graphic | Uses:802 | Used by:804 |
Symbol 804 MovieClip | Uses:801 803 | Used by:817 |
Symbol 805 Bitmap | Used by:806 | |
Symbol 806 Graphic | Uses:805 | Used by:807 |
Symbol 807 MovieClip | Uses:806 | Used by:817 |
Symbol 808 Bitmap | Used by:809 | |
Symbol 809 Graphic | Uses:808 | Used by:812 |
Symbol 810 Bitmap | Used by:811 | |
Symbol 811 Graphic | Uses:810 | Used by:812 |
Symbol 812 MovieClip | Uses:809 811 | Used by:817 |
Symbol 813 Bitmap | Used by:814 | |
Symbol 814 Graphic | Uses:813 | Used by:815 |
Symbol 815 MovieClip | Uses:814 | Used by:817 |
Symbol 816 EditableText | Uses:228 | Used by:817 |
Symbol 817 MovieClip | Uses:795 796 797 559 798 799 804 807 812 815 816 | Used by:Timeline |
Symbol 818 Bitmap | Used by:819 | |
Symbol 819 Graphic | Uses:818 | Used by:820 |
Symbol 820 MovieClip | Uses:819 | Used by:Timeline |
Symbol 821 Bitmap | Used by:822 | |
Symbol 822 Graphic | Uses:821 | Used by:823 |
Symbol 823 MovieClip | Uses:822 | Used by:1063 Timeline |
Symbol 824 Bitmap | Used by:825 | |
Symbol 825 Graphic | Uses:824 | Used by:827 |
Symbol 826 EditableText | Uses:100 | Used by:827 |
Symbol 827 MovieClip | Uses:825 826 | Used by:Timeline |
Symbol 828 EditableText | Uses:228 | Used by:Timeline |
Symbol 829 EditableText | Uses:228 | Used by:Timeline |
Symbol 830 EditableText | Uses:228 | Used by:Timeline |
Symbol 831 EditableText | Uses:12 | Used by:Timeline |
Symbol 832 ShapeTweening | Used by:834 | |
Symbol 833 Graphic | Used by:834 | |
Symbol 834 MovieClip | Uses:832 833 | Used by:Timeline |
Symbol 835 EditableText | Uses:12 | Used by:Timeline |
Symbol 836 Bitmap | Used by:837 | |
Symbol 837 Graphic | Uses:836 | Used by:840 |
Symbol 838 Bitmap | Used by:839 | |
Symbol 839 Graphic | Uses:838 | Used by:840 |
Symbol 840 Button | Uses:837 839 | Used by:Timeline |
Symbol 841 Bitmap | Used by:842 | |
Symbol 842 Graphic | Uses:841 | Used by:845 |
Symbol 843 Bitmap | Used by:844 | |
Symbol 844 Graphic | Uses:843 | Used by:845 |
Symbol 845 Button | Uses:842 844 | Used by:Timeline |
Symbol 846 EditableText | Uses:158 | Used by:Timeline |
Symbol 847 Bitmap | Used by:848 | |
Symbol 848 Graphic | Uses:847 | Used by:849 |
Symbol 849 MovieClip | Uses:848 | Used by:Timeline |
Symbol 850 Bitmap | Used by:851 | |
Symbol 851 Graphic | Uses:850 | Used by:852 |
Symbol 852 MovieClip | Uses:851 | Used by:Timeline |
Symbol 853 Bitmap | Used by:854 | |
Symbol 854 Graphic | Uses:853 | Used by:857 |
Symbol 855 Bitmap | Used by:856 | |
Symbol 856 Graphic | Uses:855 | Used by:857 |
Symbol 857 MovieClip | Uses:854 856 | Used by:Timeline |
Symbol 858 Bitmap | Used by:859 | |
Symbol 859 Graphic | Uses:858 | Used by:Timeline |
Symbol 860 MovieClip | Used by:Timeline | |
Symbol 861 Graphic | Used by:862 864 | |
Symbol 862 MovieClip | Uses:861 | Used by:Timeline |
Symbol 863 MovieClip | Used by:Timeline | |
Symbol 864 MovieClip | Uses:861 | Used by:Timeline |
Symbol 865 Graphic | Used by:Timeline | |
Symbol 866 EditableText | Uses:158 | Used by:Timeline |
Symbol 867 EditableText | Uses:158 | Used by:Timeline |
Symbol 868 Text | Uses:228 | Used by:Timeline |
Symbol 869 Text | Uses:158 | Used by:Timeline |
Symbol 870 EditableText | Uses:228 | Used by:Timeline |
Symbol 871 EditableText | Uses:228 | Used by:Timeline |
Symbol 872 EditableText | Uses:228 | Used by:Timeline |
Symbol 873 EditableText | Uses:158 | Used by:Timeline |
Symbol 874 EditableText | Uses:228 | Used by:Timeline |
Symbol 875 Text | Uses:158 | Used by:Timeline |
Symbol 876 EditableText | Uses:228 | Used by:Timeline |
Symbol 877 EditableText | Uses:228 | Used by:Timeline |
Symbol 878 EditableText | Uses:228 | Used by:Timeline |
Symbol 879 EditableText | Uses:228 | Used by:Timeline |
Symbol 880 EditableText | Uses:158 | Used by:Timeline |
Symbol 881 Bitmap | Used by:882 | |
Symbol 882 Graphic | Uses:881 | Used by:885 |
Symbol 883 Bitmap | Used by:884 | |
Symbol 884 Graphic | Uses:883 | Used by:885 |
Symbol 885 MovieClip | Uses:882 884 | Used by:906 |
Symbol 886 Bitmap | Used by:887 | |
Symbol 887 Graphic | Uses:886 | Used by:890 |
Symbol 888 Bitmap | Used by:889 | |
Symbol 889 Graphic | Uses:888 | Used by:890 |
Symbol 890 MovieClip | Uses:887 889 | Used by:906 |
Symbol 891 Bitmap | Used by:892 | |
Symbol 892 Graphic | Uses:891 | Used by:895 |
Symbol 893 Bitmap | Used by:894 | |
Symbol 894 Graphic | Uses:893 | Used by:895 |
Symbol 895 MovieClip | Uses:892 894 | Used by:906 |
Symbol 896 Bitmap | Used by:897 | |
Symbol 897 Graphic | Uses:896 | Used by:900 |
Symbol 898 Bitmap | Used by:899 | |
Symbol 899 Graphic | Uses:898 | Used by:900 |
Symbol 900 MovieClip | Uses:897 899 | Used by:906 |
Symbol 901 Bitmap | Used by:902 | |
Symbol 902 Graphic | Uses:901 | Used by:905 |
Symbol 903 Bitmap | Used by:904 | |
Symbol 904 Graphic | Uses:903 | Used by:905 |
Symbol 905 MovieClip | Uses:902 904 | Used by:906 |
Symbol 906 MovieClip | Uses:885 890 895 900 905 | Used by:Timeline |
Symbol 907 Bitmap | Used by:908 | |
Symbol 908 Graphic | Uses:907 | Used by:911 |
Symbol 909 Bitmap | Used by:910 | |
Symbol 910 Graphic | Uses:909 | Used by:911 |
Symbol 911 MovieClip | Uses:908 910 | Used by:932 |
Symbol 912 Bitmap | Used by:913 | |
Symbol 913 Graphic | Uses:912 | Used by:916 |
Symbol 914 Bitmap | Used by:915 | |
Symbol 915 Graphic | Uses:914 | Used by:916 |
Symbol 916 MovieClip | Uses:913 915 | Used by:932 |
Symbol 917 Bitmap | Used by:918 | |
Symbol 918 Graphic | Uses:917 | Used by:921 |
Symbol 919 Bitmap | Used by:920 | |
Symbol 920 Graphic | Uses:919 | Used by:921 |
Symbol 921 MovieClip | Uses:918 920 | Used by:932 |
Symbol 922 Bitmap | Used by:923 | |
Symbol 923 Graphic | Uses:922 | Used by:926 |
Symbol 924 Bitmap | Used by:925 | |
Symbol 925 Graphic | Uses:924 | Used by:926 |
Symbol 926 MovieClip | Uses:923 925 | Used by:932 |
Symbol 927 Bitmap | Used by:928 | |
Symbol 928 Graphic | Uses:927 | Used by:931 |
Symbol 929 Bitmap | Used by:930 | |
Symbol 930 Graphic | Uses:929 | Used by:931 |
Symbol 931 MovieClip | Uses:928 930 | Used by:932 |
Symbol 932 MovieClip | Uses:911 916 921 926 931 | Used by:Timeline |
Symbol 933 EditableText | Uses:158 | Used by:Timeline |
Symbol 934 ShapeTweening | Used by:938 | |
Symbol 935 Font | Used by:936 | |
Symbol 936 Text | Uses:935 | Used by:938 |
Symbol 937 Graphic | Used by:938 | |
Symbol 938 MovieClip | Uses:934 936 937 | Used by:Timeline |
Symbol 939 Bitmap | Used by:940 | |
Symbol 940 Graphic | Uses:939 | Used by:951 |
Symbol 941 Bitmap | Used by:942 | |
Symbol 942 Graphic | Uses:941 | Used by:951 |
Symbol 943 Bitmap | Used by:944 | |
Symbol 944 Graphic | Uses:943 | Used by:951 |
Symbol 945 Bitmap | Used by:946 | |
Symbol 946 Graphic | Uses:945 | Used by:951 |
Symbol 947 Bitmap | Used by:948 | |
Symbol 948 Graphic | Uses:947 | Used by:951 |
Symbol 949 Bitmap | Used by:950 | |
Symbol 950 Graphic | Uses:949 | Used by:951 |
Symbol 951 MovieClip | Uses:940 942 944 946 948 950 | Used by:Timeline |
Symbol 952 Bitmap | Used by:953 | |
Symbol 953 Graphic | Uses:952 | Used by:956 |
Symbol 954 Bitmap | Used by:955 | |
Symbol 955 Graphic | Uses:954 | Used by:956 |
Symbol 956 Button | Uses:953 955 | Used by:Timeline |
Symbol 957 EditableText | Uses:158 | Used by:Timeline |
Symbol 958 Bitmap | Used by:959 960 961 967 968 969 970 971 972 973 974 975 976 977 978 979 980 | |
Symbol 959 Graphic | Uses:958 | Used by:962 981 |
Symbol 960 Graphic | Uses:958 | Used by:962 |
Symbol 961 Graphic | Uses:958 | Used by:962 |
Symbol 962 MovieClip | Uses:959 960 961 | Used by:Timeline |
Symbol 963 Graphic | Used by:Timeline | |
Symbol 964 Bitmap | Used by:965 | |
Symbol 965 Graphic | Uses:964 | Used by:966 |
Symbol 966 MovieClip | Uses:746 965 | Used by:Timeline |
Symbol 967 Graphic | Uses:958 | Used by:Timeline |
Symbol 968 Graphic | Uses:958 | Used by:981 |
Symbol 969 Graphic | Uses:958 | Used by:981 |
Symbol 970 Graphic | Uses:958 | Used by:981 |
Symbol 971 Graphic | Uses:958 | Used by:981 |
Symbol 972 Graphic | Uses:958 | Used by:981 |
Symbol 973 Graphic | Uses:958 | Used by:981 |
Symbol 974 Graphic | Uses:958 | Used by:981 |
Symbol 975 Graphic | Uses:958 | Used by:981 |
Symbol 976 Graphic | Uses:958 | Used by:981 |
Symbol 977 Graphic | Uses:958 | Used by:981 |
Symbol 978 Graphic | Uses:958 | Used by:981 |
Symbol 979 Graphic | Uses:958 | Used by:981 |
Symbol 980 Graphic | Uses:958 | Used by:981 |
Symbol 981 MovieClip | Uses:959 968 969 970 971 972 973 974 975 976 977 978 979 980 | Used by:Timeline |
Symbol 982 EditableText | Uses:228 | Used by:Timeline |
Symbol 983 Graphic | Used by:Timeline | |
Symbol 984 Bitmap | Used by:985 | |
Symbol 985 Graphic | Uses:984 | Used by:Timeline |
Symbol 986 Graphic | Used by:988 | |
Symbol 987 EditableText | Uses:100 | Used by:988 |
Symbol 988 MovieClip | Uses:986 987 | Used by:Timeline |
Symbol 989 Bitmap | Used by:990 | |
Symbol 990 Graphic | Uses:989 | Used by:993 |
Symbol 991 Bitmap | Used by:992 | |
Symbol 992 Graphic | Uses:991 | Used by:993 |
Symbol 993 Button | Uses:990 992 | Used by:Timeline |
Symbol 994 Bitmap | Used by:995 | |
Symbol 995 Graphic | Uses:994 | Used by:998 |
Symbol 996 Bitmap | Used by:997 | |
Symbol 997 Graphic | Uses:996 | Used by:998 |
Symbol 998 Button | Uses:995 997 | Used by:Timeline |
Symbol 999 Bitmap | Used by:1000 | |
Symbol 1000 Graphic | Uses:999 | Used by:1003 |
Symbol 1001 Bitmap | Used by:1002 | |
Symbol 1002 Graphic | Uses:1001 | Used by:1003 |
Symbol 1003 Button | Uses:1000 1002 | Used by:Timeline |
Symbol 1004 Bitmap | Used by:1005 | |
Symbol 1005 Graphic | Uses:1004 | Used by:1008 |
Symbol 1006 Bitmap | Used by:1007 | |
Symbol 1007 Graphic | Uses:1006 | Used by:1008 |
Symbol 1008 Button | Uses:1005 1007 | Used by:Timeline |
Symbol 1009 EditableText | Uses:100 | Used by:Timeline |
Symbol 1010 EditableText | Uses:100 | Used by:Timeline |
Symbol 1011 EditableText | Uses:100 | Used by:Timeline |
Symbol 1012 Bitmap | Used by:1013 | |
Symbol 1013 Graphic | Uses:1012 | Used by:1014 |
Symbol 1014 MovieClip | Uses:1013 | Used by:Timeline |
Symbol 1015 Graphic | Used by:1016 | |
Symbol 1016 MovieClip | Uses:1015 | Used by:Timeline |
Symbol 1017 EditableText | Uses:100 | Used by:Timeline |
Symbol 1018 EditableText | Uses:12 | Used by:Timeline |
Symbol 1019 Bitmap | Used by:1020 | |
Symbol 1020 Graphic | Uses:1019 | Used by:1021 |
Symbol 1021 MovieClip | Uses:1020 | Used by:Timeline |
Symbol 1022 Bitmap | Used by:1023 | |
Symbol 1023 Graphic | Uses:1022 | Used by:1024 |
Symbol 1024 MovieClip | Uses:1023 | Used by:Timeline |
Symbol 1028 Font | Used by:1029 | |
Symbol 1029 EditableText | Uses:1028 | Used by:1030 |
Symbol 1030 MovieClip [TextInput] | Uses:1029 398 395 | Used by:1031 |
Symbol 1031 MovieClip [ComboBase] | Uses:373 395 396 1030 | Used by:1039 |
Symbol 1032 MovieClip [DataProvider] | Used by:1037 | |
Symbol 1033 MovieClip [DataSelector] | Used by:1037 | |
Symbol 1034 MovieClip [SelectableRow] | Uses:395 373 | Used by:1037 |
Symbol 1035 MovieClip [View] | Uses:373 395 398 | Used by:1036 |
Symbol 1036 MovieClip [ScrollView] | Uses:373 403 402 1035 | Used by:1037 |
Symbol 1037 MovieClip [ScrollSelectList] | Uses:373 1032 1033 1034 1036 | Used by:1038 |
Symbol 1038 MovieClip [List] | Uses:373 1037 | Used by:1039 |
Symbol 1039 MovieClip [ComboBox] | Uses:373 1031 1038 96 | Used by:Timeline |
Symbol 1050 Bitmap | Used by:1051 | |
Symbol 1051 Graphic | Uses:1050 | Used by:1054 |
Symbol 1052 Bitmap | Used by:1053 | |
Symbol 1053 Graphic | Uses:1052 | Used by:1054 |
Symbol 1054 Button | Uses:1051 1053 | Used by:Timeline |
Symbol 1055 EditableText | Uses:228 | Used by:Timeline |
Symbol 1056 Bitmap | Used by:1057 | |
Symbol 1057 Graphic | Uses:1056 | Used by:1063 |
Symbol 1058 EditableText | Uses:158 | Used by:1063 |
Symbol 1059 EditableText | Uses:158 | Used by:1063 |
Symbol 1060 Bitmap | Used by:1061 | |
Symbol 1061 Graphic | Uses:1060 | Used by:1062 |
Symbol 1062 Button | Uses:1061 | Used by:1063 |
Symbol 1063 MovieClip | Uses:1057 1058 1059 404 1062 823 | Used by:Timeline |
Instance Names
"rayEffect" | Frame 1 | Symbol 221 MovieClip |
"horse_eye" | Frame 3 | Symbol 504 MovieClip |
"nameBox" | Frame 3 | Symbol 510 EditableText |
"passBox" | Frame 3 | Symbol 513 EditableText |
"enterBtn" | Frame 3 | Symbol 519 MovieClip |
"newaccBtn" | Frame 3 | Symbol 523 MovieClip |
"forgotpass" | Frame 3 | Symbol 528 Button |
"cover" | Frame 3 | Symbol 531 MovieClip |
"menuBox" | Frame 4 | Symbol 553 MovieClip |
"profile" | Frame 4 | Symbol 556 EditableText |
"errorMsg" | Frame 4 | Symbol 558 EditableText |
"viewMyPicture" | Frame 4 | Symbol 559 MovieClip |
"submit" | Frame 5 | Symbol 576 MovieClip |
"back" | Frame 5 | Symbol 579 MovieClip |
"deckPicture" | Frame 5 | Symbol 596 MovieClip |
"username" | Frame 5 | Symbol 597 EditableText |
"pass" | Frame 5 | Symbol 598 EditableText |
"descriptionTextField" | Frame 5 | Symbol 600 EditableText |
"deckListTextField" | Frame 5 | Symbol 601 EditableText |
"howToPlay" | Frame 6 | Symbol 747 MovieClip |
"waitingBattle" | Frame 7 | Symbol 769 MovieClip |
"privateChatTab8" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"privateChatTab7" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"msgBox" | Frame 7 | Symbol 770 EditableText |
"gameChat" | Frame 7 | Symbol 771 EditableText |
"chatboxSb" | Frame 7 | Symbol 404 MovieClip [UIScrollBar] |
"mainMenuLobby" | Frame 7 | Symbol 776 Button |
"accountSetup" | Frame 7 | Symbol 781 Button |
"tradeCards" | Frame 7 | Symbol 786 Button |
"logout" | Frame 7 | Symbol 791 Button |
"playersList" | Frame 7 | Symbol 793 EditableText |
"chatboxSb2" | Frame 7 | Symbol 404 MovieClip [UIScrollBar] |
"clanListTab" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"viewMyPicture" | Frame 7 | Symbol 559 MovieClip |
"playerViewer" | Frame 7 | Symbol 817 MovieClip |
"randomMatch" | Frame 7 | Symbol 820 MovieClip |
"sendButton" | Frame 7 | Symbol 823 MovieClip |
"privateChatTab6" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"privateChatTab5" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"privateChatTab4" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"privateChatTab3" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"privateChatTab2" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"privateChatTab1" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"privateChatTab0" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"tradeChatTab" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"lobbyChatTab" | Frame 7 | Symbol 827 MovieClip |
"friendsListTab" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"lobbyListTab" | Frame 7 | Symbol 827 MovieClip |
"closeTab" | Frame 7 | Symbol 208 MovieClip [closeTab] |
"deckCardsListTab" | Frame 7 | Symbol 212 MovieClip [friendTab] |
"decksListTab" | Frame 7 | Symbol 827 MovieClip |
"displayClan" | Frame 7 | Symbol 828 EditableText |
"displayAccType" | Frame 7 | Symbol 830 EditableText |
"experienceBar" | Frame 7 | Symbol 834 MovieClip |
"clanList" | Frame 7 | Symbol 840 Button |
"tournaments" | Frame 7 | Symbol 845 Button |
"chatboxSb3" | Frame 7 | Symbol 404 MovieClip [UIScrollBar] |
"cardsList" | Frame 7 | Symbol 846 EditableText |
"setAsDefault" | Frame 7 | Symbol 849 MovieClip |
"cardManager" | Frame 7 | Symbol 852 MovieClip |
"soundButton" | Frame 7 | Symbol 857 MovieClip |
"myBackground" | Frame 8 | Symbol 860 MovieClip |
"myPlayfield" | Frame 8 | Symbol 862 MovieClip |
"opBackground" | Frame 8 | Symbol 863 MovieClip |
"classDock" | Frame 8 | Symbol 864 MovieClip |
"gameChatSb4" | Frame 8 | Symbol 404 MovieClip [UIScrollBar] |
"msgBox" | Frame 8 | Symbol 880 EditableText |
"myPhases" | Frame 8 | Symbol 906 MovieClip |
"opPhases" | Frame 8 | Symbol 932 MovieClip |
"timer" | Frame 8 | Symbol 938 MovieClip |
"myLifeObj" | Frame 8 | Symbol 951 MovieClip |
"opLifeObj" | Frame 8 | Symbol 951 MovieClip |
"surrender" | Frame 8 | Symbol 956 Button |
"logout" | Frame 8 | Symbol 791 Button |
"tradeCards" | Frame 8 | Symbol 786 Button |
"accountSetup" | Frame 8 | Symbol 781 Button |
"viewMyPicture" | Frame 8 | Symbol 559 MovieClip |
"viewOpPicture" | Frame 8 | Symbol 559 MovieClip |
"gameChat" | Frame 8 | Symbol 957 EditableText |
"opClassDock" | Frame 8 | Symbol 962 MovieClip |
"graveyard" | Frame 8 | Symbol 205 MovieClip [graveyard] |
"helpButton" | Frame 8 | Symbol 966 MovieClip |
"gameChatTab" | Frame 8 | Symbol 827 MovieClip |
"opHandViewer" | Frame 8 | Symbol 981 MovieClip |
"loadingCardText" | Frame 8 | Symbol 982 EditableText |
"warningText" | Frame 9 | Symbol 988 MovieClip |
"newDeck" | Frame 9 | Symbol 993 Button |
"loadDeck" | Frame 9 | Symbol 998 Button |
"saveDeck" | Frame 9 | Symbol 1003 Button |
"deleteDeck" | Frame 9 | Symbol 1008 Button |
"renameButton" | Frame 9 | Symbol 1014 MovieClip |
"setDefaultButton" | Frame 9 | Symbol 849 MovieClip |
"deckNameBG" | Frame 9 | Symbol 1016 MovieClip |
"deckNameInput" | Frame 9 | Symbol 1017 EditableText |
"buttonPrevious" | Frame 9 | Symbol 609 Button |
"buttonNext" | Frame 9 | Symbol 606 Button |
"mainMenuManager" | Frame 9 | Symbol 776 Button |
"hFilter" | Frame 9 | Symbol 314 MovieClip [h] |
"avFilter" | Frame 9 | Symbol 305 MovieClip [av] |
"aFilter" | Frame 9 | Symbol 302 MovieClip [a] |
"pFilter" | Frame 9 | Symbol 323 MovieClip [p] |
"mFilter" | Frame 9 | Symbol 320 MovieClip [m] |
"sFilter" | Frame 9 | Symbol 326 MovieClip [s] |
"wFilter" | Frame 9 | Symbol 329 MovieClip [w] |
"kFilter" | Frame 9 | Symbol 317 MovieClip [k] |
"gFilter" | Frame 9 | Symbol 311 MovieClip [g] |
"filterButton" | Frame 9 | Symbol 1021 MovieClip |
"removeCardButton" | Frame 9 | Symbol 1024 MovieClip |
"cardListBox" | Frame 9 | Symbol 1039 MovieClip [ComboBox] |
"backToLobby" | Frame 9 | Symbol 1054 Button |
"pageDisplay" | Frame 9 | Symbol 1055 EditableText |
"tradeChatTab" | Frame 9 | Symbol 1063 MovieClip |
"dfs" | Symbol 87 MovieClip [BtnDownArrow] Frame 1 | Symbol 39 MovieClip [ScrollTrack] |
"dfs" | Symbol 88 MovieClip [BtnUpArrow] Frame 1 | Symbol 39 MovieClip [ScrollTrack] |
"dfs" | Symbol 93 MovieClip [ComboDownArrowDisabled] Frame 1 | Symbol 92 MovieClip [ComboDownArrowUp] |
"nameShad" | Symbol 104 MovieClip [textFields] Frame 1 | Symbol 97 EditableText |
"name" | Symbol 104 MovieClip [textFields] Frame 1 | Symbol 98 EditableText |
"textAndStory" | Symbol 104 MovieClip [textFields] Frame 1 | Symbol 99 EditableText |
"typeAndSub" | Symbol 104 MovieClip [textFields] Frame 1 | Symbol 101 EditableText |
"powerAndResist" | Symbol 104 MovieClip [textFields] Frame 1 | Symbol 102 EditableText |
"artist" | Symbol 104 MovieClip [textFields] Frame 1 | Symbol 103 EditableText |
"loadingMsg" | Symbol 154 MovieClip [viewCard] Frame 1 | Symbol 108 EditableText |
"loadingMsg" | Symbol 154 MovieClip [viewCard] Frame 10 | Symbol 127 EditableText |
"warningTxt" | Symbol 163 MovieClip [warningBox] Frame 1 | Symbol 159 EditableText |
"warningOk" | Symbol 163 MovieClip [warningBox] Frame 1 | Symbol 162 Button |
"tabName" | Symbol 212 MovieClip [friendTab] Frame 1 | Symbol 211 EditableText |
"ray0" | Symbol 221 MovieClip Frame 1 | Symbol 220 MovieClip |
"cardSelected" | Symbol 271 MovieClip [card] Frame 1 | Symbol 232 MovieClip [cardSelected] |
"dragBox" | Symbol 276 MovieClip [bonusCards] Frame 1 | Symbol 227 Button |
"pickCard1" | Symbol 276 MovieClip [bonusCards] Frame 1 | Symbol 271 MovieClip [card] |
"pickCard2" | Symbol 276 MovieClip [bonusCards] Frame 1 | Symbol 271 MovieClip [card] |
"pickCard3" | Symbol 276 MovieClip [bonusCards] Frame 1 | Symbol 271 MovieClip [card] |
"pickCard4" | Symbol 276 MovieClip [bonusCards] Frame 1 | Symbol 271 MovieClip [card] |
"pickCard5" | Symbol 276 MovieClip [bonusCards] Frame 1 | Symbol 271 MovieClip [card] |
"saveBonus" | Symbol 276 MovieClip [bonusCards] Frame 1 | Symbol 275 Button |
"textBox" | Symbol 336 MovieClip Frame 1 | Symbol 335 EditableText |
"dragBox" | Symbol 337 MovieClip [attackResponse] Frame 7 | Symbol 227 Button |
"cancel" | Symbol 337 MovieClip [attackResponse] Frame 7 | Symbol 336 MovieClip |
"attack" | Symbol 337 MovieClip [attackResponse] Frame 7 | Symbol 336 MovieClip |
"dragBox" | Symbol 340 MovieClip [defenseResponse] Frame 7 | Symbol 227 Button |
"cancel" | Symbol 340 MovieClip [defenseResponse] Frame 7 | Symbol 336 MovieClip |
"ability" | Symbol 340 MovieClip [defenseResponse] Frame 7 | Symbol 336 MovieClip |
"counterAttack" | Symbol 340 MovieClip [defenseResponse] Frame 7 | Symbol 336 MovieClip |
"blockAttack" | Symbol 340 MovieClip [defenseResponse] Frame 7 | Symbol 336 MovieClip |
"textBox" | Symbol 345 MovieClip Frame 1 | Symbol 344 EditableText |
"dragBox" | Symbol 346 MovieClip [okCancelResponse] Frame 7 | Symbol 227 Button |
"ok" | Symbol 346 MovieClip [okCancelResponse] Frame 7 | Symbol 345 MovieClip |
"cancel" | Symbol 346 MovieClip [okCancelResponse] Frame 7 | Symbol 345 MovieClip |
"dragBox" | Symbol 348 MovieClip [okResponse] Frame 7 | Symbol 227 Button |
"cancel" | Symbol 348 MovieClip [okResponse] Frame 7 | Symbol 336 MovieClip |
"dragBox" | Symbol 350 MovieClip [waitingResponse] Frame 7 | Symbol 227 Button |
"hit" | Symbol 363 MovieClip [cardManager] Frame 1 | Symbol 352 MovieClip |
"addCard" | Symbol 363 MovieClip [cardManager] Frame 1 | Symbol 355 MovieClip |
"removeCard" | Symbol 363 MovieClip [cardManager] Frame 1 | Symbol 357 Button |
"deck" | Symbol 363 MovieClip [cardManager] Frame 1 | Symbol 358 EditableText |
"circle" | Symbol 363 MovieClip [cardManager] Frame 1 | Symbol 360 MovieClip |
"quantity" | Symbol 363 MovieClip [cardManager] Frame 1 | Symbol 361 EditableText |
"b" | Symbol 378 MovieClip [SimpleButtonDown] Frame 1 | Symbol 375 MovieClip [BrdrShdw] |
"face" | Symbol 378 MovieClip [SimpleButtonDown] Frame 1 | Symbol 377 MovieClip [BrdrFace] |
"b" | Symbol 383 MovieClip [SimpleButtonIn] Frame 1 | Symbol 380 MovieClip [BrdrBlk] |
"it" | Symbol 383 MovieClip [SimpleButtonIn] Frame 1 | Symbol 382 MovieClip [BrdrHilght] |
"g" | Symbol 383 MovieClip [SimpleButtonIn] Frame 1 | Symbol 375 MovieClip [BrdrShdw] |
"face" | Symbol 383 MovieClip [SimpleButtonIn] Frame 1 | Symbol 377 MovieClip [BrdrFace] |
"ob" | Symbol 384 MovieClip [SimpleButtonUp] Frame 1 | Symbol 380 MovieClip [BrdrBlk] |
"ol" | Symbol 384 MovieClip [SimpleButtonUp] Frame 1 | Symbol 377 MovieClip [BrdrFace] |
"ib" | Symbol 384 MovieClip [SimpleButtonUp] Frame 1 | Symbol 375 MovieClip [BrdrShdw] |
"il" | Symbol 384 MovieClip [SimpleButtonUp] Frame 1 | Symbol 382 MovieClip [BrdrHilght] |
"face" | Symbol 384 MovieClip [SimpleButtonUp] Frame 1 | Symbol 377 MovieClip [BrdrFace] |
"boundingBox_mc" | Symbol 392 MovieClip [FocusRect] Frame 1 | Symbol 373 MovieClip [BoundingBox] |
"tabCapture" | Symbol 393 MovieClip [FocusManager] Frame 1 | Symbol 390 Button |
"boundingBox_mc" | Symbol 396 MovieClip [SimpleButton] Frame 1 | Symbol 373 MovieClip [BoundingBox] |
"boundingBox_mc" | Symbol 400 MovieClip [Button] Frame 1 | Symbol 373 MovieClip [BoundingBox] |
"boundingBox_mc" | Symbol 402 MovieClip [VScrollBar] Frame 1 | Symbol 373 MovieClip [BoundingBox] |
"boundingBox_mc" | Symbol 403 MovieClip [HScrollBar] Frame 1 | Symbol 373 MovieClip [BoundingBox] |
"boundingBox_mc" | Symbol 404 MovieClip [UIScrollBar] Frame 1 | Symbol 373 MovieClip [BoundingBox] |
"chatboxSb5" | Symbol 439 MovieClip [deckList] Frame 1 | Symbol 404 MovieClip [UIScrollBar] |
"deckListTextField" | Symbol 439 MovieClip [deckList] Frame 1 | Symbol 431 EditableText |
"loadDeckButton" | Symbol 439 MovieClip [deckList] Frame 1 | Symbol 435 Button |
"cancelButton" | Symbol 439 MovieClip [deckList] Frame 1 | Symbol 438 Button |
"pageNum" | Symbol 443 MovieClip [pageTab] Frame 1 | Symbol 442 EditableText |
"removedCard" | Symbol 446 MovieClip [removeCardAnimation] Frame 1 | Symbol 444 EditableText |
"removedCard" | Symbol 446 MovieClip [removeCardAnimation] Frame 20 | Symbol 445 EditableText |
"savingTxt" | Symbol 448 MovieClip [saveDeckBox] Frame 1 | Symbol 447 EditableText |
"saveNewDeckButton" | Symbol 455 MovieClip [saveNewDeckBox] Frame 1 | Symbol 451 Button |
"deckNameInput" | Symbol 455 MovieClip [saveNewDeckBox] Frame 1 | Symbol 454 EditableText |
"cancelButton" | Symbol 455 MovieClip [saveNewDeckBox] Frame 1 | Symbol 438 Button |
"ok" | Symbol 460 MovieClip [okCancelResponseBlack] Frame 1 | Symbol 457 Button |
"cancel" | Symbol 460 MovieClip [okCancelResponseBlack] Frame 1 | Symbol 457 Button |
"windowText" | Symbol 460 MovieClip [okCancelResponseBlack] Frame 1 | Symbol 459 EditableText |
"phaseText" | Symbol 462 MovieClip [phaseAnnounce] Frame 1 | Symbol 461 EditableText |
"cardList" | Symbol 552 MovieClip Frame 1 | Symbol 536 Button |
"tradeLogin" | Symbol 552 MovieClip Frame 1 | Symbol 539 Button |
"guideBook" | Symbol 552 MovieClip Frame 1 | Symbol 542 Button |
"managerLogin" | Symbol 552 MovieClip Frame 1 | Symbol 545 Button |
"lobbyLogin" | Symbol 552 MovieClip Frame 1 | Symbol 548 Button |
"logoutLogin" | Symbol 552 MovieClip Frame 1 | Symbol 551 Button |
"menuBoxAnimation" | Symbol 553 MovieClip Frame 1 | Symbol 552 MovieClip |
"backGuideBook" | Symbol 747 MovieClip Frame 1 | Symbol 579 MovieClip |
"nextBook" | Symbol 747 MovieClip Frame 1 | Symbol 606 Button |
"prevBook" | Symbol 747 MovieClip Frame 1 | Symbol 609 Button |
"loadingCardText" | Symbol 747 MovieClip Frame 10 | Symbol 735 EditableText |
"displayText" | Symbol 769 MovieClip Frame 1 | Symbol 755 EditableText |
"cancelBtn" | Symbol 769 MovieClip Frame 1 | Symbol 758 Button |
"waitingBattleAnimation" | Symbol 769 MovieClip Frame 1 | Symbol 768 MovieClip |
"viewPlayerName" | Symbol 817 MovieClip Frame 1 | Symbol 796 EditableText |
"viewPlayerLevel" | Symbol 817 MovieClip Frame 1 | Symbol 797 EditableText |
"viewPlayerPicture" | Symbol 817 MovieClip Frame 1 | Symbol 559 MovieClip |
"viewPlayerClan" | Symbol 817 MovieClip Frame 1 | Symbol 798 EditableText |
"viewPlayerAcc" | Symbol 817 MovieClip Frame 1 | Symbol 799 EditableText |
"addToFriends" | Symbol 817 MovieClip Frame 1 | Symbol 804 MovieClip |
"chat" | Symbol 817 MovieClip Frame 1 | Symbol 807 MovieClip |
"block" | Symbol 817 MovieClip Frame 1 | Symbol 812 MovieClip |
"challengePlayer" | Symbol 817 MovieClip Frame 1 | Symbol 815 MovieClip |
"viewPlayerRanking" | Symbol 817 MovieClip Frame 1 | Symbol 816 EditableText |
"tabName" | Symbol 827 MovieClip Frame 1 | Symbol 826 EditableText |
"drawPhase" | Symbol 906 MovieClip Frame 1 | Symbol 885 MovieClip |
"equipPhase" | Symbol 906 MovieClip Frame 1 | Symbol 890 MovieClip |
"spellPhase" | Symbol 906 MovieClip Frame 1 | Symbol 895 MovieClip |
"attackPhase" | Symbol 906 MovieClip Frame 1 | Symbol 900 MovieClip |
"endPhase" | Symbol 906 MovieClip Frame 1 | Symbol 905 MovieClip |
"drawPhase" | Symbol 932 MovieClip Frame 1 | Symbol 911 MovieClip |
"equipPhase" | Symbol 932 MovieClip Frame 1 | Symbol 916 MovieClip |
"spellPhase" | Symbol 932 MovieClip Frame 1 | Symbol 921 MovieClip |
"attackPhase" | Symbol 932 MovieClip Frame 1 | Symbol 926 MovieClip |
"endPhase" | Symbol 932 MovieClip Frame 1 | Symbol 931 MovieClip |
"label" | Symbol 1030 MovieClip [TextInput] Frame 1 | Symbol 1029 EditableText |
"boundingBox_mc" | Symbol 1031 MovieClip [ComboBase] Frame 1 | Symbol 373 MovieClip [BoundingBox] |
"boundingBox_mc" | Symbol 1035 MovieClip [View] Frame 1 | Symbol 373 MovieClip [BoundingBox] |
"boundingBox_mc" | Symbol 1036 MovieClip [ScrollView] Frame 1 | Symbol 373 MovieClip [BoundingBox] |
"boundingBox_mc" | Symbol 1038 MovieClip [List] Frame 1 | Symbol 373 MovieClip [BoundingBox] |
"boundingBox_mc" | Symbol 1039 MovieClip [ComboBox] Frame 1 | Symbol 373 MovieClip [BoundingBox] |
"msgBox" | Symbol 1063 MovieClip Frame 1 | Symbol 1058 EditableText |
"gameChat" | Symbol 1063 MovieClip Frame 1 | Symbol 1059 EditableText |
"gameChatSb4" | Symbol 1063 MovieClip Frame 1 | Symbol 404 MovieClip [UIScrollBar] |
"tradeTabBtn" | Symbol 1063 MovieClip Frame 1 | Symbol 1062 Button |
"sendButton" | Symbol 1063 MovieClip Frame 1 | Symbol 823 MovieClip |
"gameChatSb4" | Symbol 1063 MovieClip Frame 2 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 3 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 4 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 5 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 6 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 7 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 8 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 9 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 10 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 11 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 12 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 13 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 14 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 15 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 16 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 17 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 18 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 19 | Symbol 404 MovieClip [UIScrollBar] |
"gameChatSb4" | Symbol 1063 MovieClip Frame 20 | Symbol 404 MovieClip [UIScrollBar] |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access network only, Metadata not present, AS1/AS2. |
Protect (24) | Timeline Frame 1 | 31 bytes "..$1$iU$WWNXrbB/ly5kD8F6NLHwz.." |
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "privateMessage.mp3" |
ExportAssets (56) | Timeline Frame 1 | Symbol 11 as "sparkle_mc" |
ExportAssets (56) | Timeline Frame 1 | Symbol 14 as "morphIntoToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 16 as "untappableToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 18 as "unblockableToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 20 as "removeToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 22 as "instantEquipToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 24 as "instantEffectToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 26 as "fastStrikeToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 28 as "doubleSpellToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 30 as "doubleAbilityToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 32 as "attackEffectToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 34 as "attackCountsToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 36 as "rangedToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 39 as "ScrollTrack" |
ExportAssets (56) | Timeline Frame 1 | Symbol 42 as "ScrollDownArrowDisabled" |
ExportAssets (56) | Timeline Frame 1 | Symbol 43 as "ScrollDownArrowDown" |
ExportAssets (56) | Timeline Frame 1 | Symbol 46 as "ScrollThemeColor1" |
ExportAssets (56) | Timeline Frame 1 | Symbol 50 as "ScrollDownArrowOver" |
ExportAssets (56) | Timeline Frame 1 | Symbol 51 as "ScrollDownArrowUp" |
ExportAssets (56) | Timeline Frame 1 | Symbol 57 as "ScrollThumbBottomDisabled" |
ExportAssets (56) | Timeline Frame 1 | Symbol 59 as "ThumbThemeColor1" |
ExportAssets (56) | Timeline Frame 1 | Symbol 60 as "ScrollThumbBottomDown" |
ExportAssets (56) | Timeline Frame 1 | Symbol 61 as "ScrollThumbBottomOver" |
ExportAssets (56) | Timeline Frame 1 | Symbol 62 as "ScrollThumbBottomUp" |
ExportAssets (56) | Timeline Frame 1 | Symbol 64 as "ScrollThumbGripDisabled" |
ExportAssets (56) | Timeline Frame 1 | Symbol 66 as "ThumbThemeColor2" |
ExportAssets (56) | Timeline Frame 1 | Symbol 67 as "ScrollThumbGripDown" |
ExportAssets (56) | Timeline Frame 1 | Symbol 68 as "ScrollThumbGripOver" |
ExportAssets (56) | Timeline Frame 1 | Symbol 69 as "ScrollThumbGripUp" |
ExportAssets (56) | Timeline Frame 1 | Symbol 71 as "ScrollThumbMiddleDisabled" |
ExportAssets (56) | Timeline Frame 1 | Symbol 72 as "ScrollThumbMiddleDown" |
ExportAssets (56) | Timeline Frame 1 | Symbol 76 as "ScrollThumbMiddleOver" |
ExportAssets (56) | Timeline Frame 1 | Symbol 77 as "ScrollThumbMiddleUp" |
ExportAssets (56) | Timeline Frame 1 | Symbol 78 as "ScrollThumbTopDisabled" |
ExportAssets (56) | Timeline Frame 1 | Symbol 79 as "ScrollThumbTopDown" |
ExportAssets (56) | Timeline Frame 1 | Symbol 80 as "ScrollThumbTopOver" |
ExportAssets (56) | Timeline Frame 1 | Symbol 81 as "ScrollThumbTopUp" |
ExportAssets (56) | Timeline Frame 1 | Symbol 82 as "ScrollTrackDisabled" |
ExportAssets (56) | Timeline Frame 1 | Symbol 83 as "ScrollUpArrowDisabled" |
ExportAssets (56) | Timeline Frame 1 | Symbol 84 as "ScrollUpArrowDown" |
ExportAssets (56) | Timeline Frame 1 | Symbol 85 as "ScrollUpArrowOver" |
ExportAssets (56) | Timeline Frame 1 | Symbol 86 as "ScrollUpArrowUp" |
ExportAssets (56) | Timeline Frame 1 | Symbol 87 as "BtnDownArrow" |
ExportAssets (56) | Timeline Frame 1 | Symbol 88 as "BtnUpArrow" |
ExportAssets (56) | Timeline Frame 1 | Symbol 89 as "VScrollBarAssets" |
ExportAssets (56) | Timeline Frame 1 | Symbol 90 as "ScrollBarAssets" |
ExportAssets (56) | Timeline Frame 1 | Symbol 91 as "HScrollBarAssets" |
ExportAssets (56) | Timeline Frame 1 | Symbol 92 as "ComboDownArrowUp" |
ExportAssets (56) | Timeline Frame 1 | Symbol 93 as "ComboDownArrowDisabled" |
ExportAssets (56) | Timeline Frame 1 | Symbol 94 as "ComboDownArrowDown" |
ExportAssets (56) | Timeline Frame 1 | Symbol 95 as "ComboDownArrowOver" |
ExportAssets (56) | Timeline Frame 1 | Symbol 96 as "ComboAssets" |
ExportAssets (56) | Timeline Frame 1 | Symbol 104 as "textFields" |
ExportAssets (56) | Timeline Frame 1 | Symbol 154 as "viewCard" |
ExportAssets (56) | Timeline Frame 1 | Symbol 163 as "warningBox" |
ExportAssets (56) | Timeline Frame 1 | Symbol 182 as "rarityClip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 187 as "boxClip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 190 as "chatIcon" |
ExportAssets (56) | Timeline Frame 1 | Symbol 193 as "battleIcon" |
ExportAssets (56) | Timeline Frame 1 | Symbol 196 as "offlineIcon" |
ExportAssets (56) | Timeline Frame 1 | Symbol 199 as "blockIcon" |
ExportAssets (56) | Timeline Frame 1 | Symbol 202 as "managerIcon" |
ExportAssets (56) | Timeline Frame 1 | Symbol 205 as "graveyard" |
ExportAssets (56) | Timeline Frame 1 | Symbol 208 as "closeTab" |
ExportAssets (56) | Timeline Frame 1 | Symbol 212 as "friendTab" |
ExportAssets (56) | Timeline Frame 1 | Symbol 214 as "flames" |
ExportAssets (56) | Timeline Frame 1 | Symbol 417 as "__Packages.mx.skins.ColoredSkinElement" |
ExportAssets (56) | Timeline Frame 1 | Symbol 368 as "__Packages.mx.core.UIObject" |
ExportAssets (56) | Timeline Frame 1 | Symbol 405 as "__Packages.mx.skins.SkinElement" |
ExportAssets (56) | Timeline Frame 1 | Symbol 406 as "__Packages.mx.styles.CSSTextStyles" |
ExportAssets (56) | Timeline Frame 1 | Symbol 408 as "__Packages.mx.styles.CSSStyleDeclaration" |
ExportAssets (56) | Timeline Frame 1 | Symbol 407 as "__Packages.mx.styles.StyleManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 369 as "__Packages.mx.core.UIComponent" |
ExportAssets (56) | Timeline Frame 1 | Symbol 409 as "__Packages.mx.controls.SimpleButton" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1025 as "__Packages.mx.controls.listclasses.DataSelector" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1026 as "__Packages.mx.controls.ComboBase" |
ExportAssets (56) | Timeline Frame 1 | Symbol 410 as "__Packages.mx.skins.Border" |
ExportAssets (56) | Timeline Frame 1 | Symbol 427 as "__Packages.mx.skins.RectBorder" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1040 as "__Packages.mx.controls.TextInput" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1027 as "__Packages.mx.controls.ComboBox" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1041 as "__Packages.mx.managers.PopUpManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 420 as "__Packages.mx.managers.DepthManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 421 as "__Packages.mx.managers.SystemManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 415 as "__Packages.mx.events.EventDispatcher" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1042 as "__Packages.mx.core.View" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1043 as "__Packages.mx.core.ExternalContent" |
ExportAssets (56) | Timeline Frame 1 | Symbol 416 as "__Packages.mx.events.UIEventDispatcher" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1044 as "__Packages.mx.core.ScrollView" |
ExportAssets (56) | Timeline Frame 1 | Symbol 370 as "__Packages.mx.controls.scrollClasses.ScrollBar" |
ExportAssets (56) | Timeline Frame 1 | Symbol 411 as "__Packages.mx.skins.CustomBorder" |
ExportAssets (56) | Timeline Frame 1 | Symbol 412 as "__Packages.mx.controls.scrollClasses.ScrollThumb" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1045 as "__Packages.mx.controls.listclasses.DataProvider" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1046 as "__Packages.mx.controls.listclasses.ScrollSelectList" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1047 as "__Packages.mx.controls.List" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1048 as "__Packages.mx.effects.Tween" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1064 as "__Packages.it.gotoandplay.smartfoxserver.SmartFoxClient" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1065 as "__Packages.it.gotoandplay.smartfoxserver.ObjectSerializer" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1066 as "__Packages.it.gotoandplay.smartfoxserver.http.HttpConnection" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1067 as "__Packages.it.gotoandplay.smartfoxserver.http.LoaderFactory" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1068 as "__Packages.it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1069 as "__Packages.it.gotoandplay.smartfoxserver.http.RawProtocolCodec" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1070 as "__Packages.mx.utils.Delegate" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1071 as "__Packages.it.gotoandplay.smartfoxserver.Room" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1072 as "__Packages.it.gotoandplay.smartfoxserver.User" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1073 as "__Packages.it.gotoandplay.smartfoxserver.JSON" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1074 as "__Packages.ToolTip" |
ExportAssets (56) | Timeline Frame 1 | Symbol 371 as "__Packages.mx.controls.UIScrollBar" |
ExportAssets (56) | Timeline Frame 1 | Symbol 413 as "__Packages.mx.controls.VScrollBar" |
ExportAssets (56) | Timeline Frame 1 | Symbol 414 as "__Packages.mx.controls.Button" |
ExportAssets (56) | Timeline Frame 1 | Symbol 418 as "__Packages.mx.core.ext.UIObjectExtensions" |
ExportAssets (56) | Timeline Frame 1 | Symbol 419 as "__Packages.mx.skins.halo.Defaults" |
ExportAssets (56) | Timeline Frame 1 | Symbol 422 as "__Packages.mx.managers.FocusManager" |
ExportAssets (56) | Timeline Frame 1 | Symbol 423 as "__Packages.mx.skins.halo.FocusRect" |
ExportAssets (56) | Timeline Frame 1 | Symbol 424 as "__Packages.mx.managers.OverlappedWindows" |
ExportAssets (56) | Timeline Frame 1 | Symbol 425 as "__Packages.mx.styles.CSSSetStyle" |
ExportAssets (56) | Timeline Frame 1 | Symbol 426 as "__Packages.mx.core.ext.UIComponentExtensions" |
ExportAssets (56) | Timeline Frame 1 | Symbol 428 as "__Packages.mx.skins.halo.RectBorder" |
ExportAssets (56) | Timeline Frame 1 | Symbol 429 as "__Packages.mx.skins.halo.ButtonSkin" |
ExportAssets (56) | Timeline Frame 1 | Symbol 430 as "__Packages.mx.controls.HScrollBar" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1049 as "__Packages.mx.controls.listclasses.SelectableRow" |
ExportAssets (56) | Timeline Frame 2 | Symbol 232 as "cardSelected" |
ExportAssets (56) | Timeline Frame 2 | Symbol 271 as "card" |
ExportAssets (56) | Timeline Frame 2 | Symbol 276 as "bonusCards" |
ExportAssets (56) | Timeline Frame 2 | Symbol 281 as "sparklesEffect" |
ExportAssets (56) | Timeline Frame 2 | Symbol 284 as "lose_animation" |
ExportAssets (56) | Timeline Frame 2 | Symbol 289 as "infoBox" |
ExportAssets (56) | Timeline Frame 2 | Symbol 292 as "gain_animation" |
ExportAssets (56) | Timeline Frame 2 | Symbol 296 as "fade_control" |
ExportAssets (56) | Timeline Frame 2 | Symbol 299 as "countsBox" |
ExportAssets (56) | Timeline Frame 2 | Symbol 302 as "a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 305 as "av" |
ExportAssets (56) | Timeline Frame 2 | Symbol 308 as "e" |
ExportAssets (56) | Timeline Frame 2 | Symbol 311 as "g" |
ExportAssets (56) | Timeline Frame 2 | Symbol 314 as "h" |
ExportAssets (56) | Timeline Frame 2 | Symbol 317 as "k" |
ExportAssets (56) | Timeline Frame 2 | Symbol 320 as "m" |
ExportAssets (56) | Timeline Frame 2 | Symbol 323 as "p" |
ExportAssets (56) | Timeline Frame 2 | Symbol 326 as "s" |
ExportAssets (56) | Timeline Frame 2 | Symbol 329 as "w" |
ExportAssets (56) | Timeline Frame 2 | Symbol 337 as "attackResponse" |
ExportAssets (56) | Timeline Frame 2 | Symbol 340 as "defenseResponse" |
ExportAssets (56) | Timeline Frame 2 | Symbol 346 as "okCancelResponse" |
ExportAssets (56) | Timeline Frame 2 | Symbol 348 as "okResponse" |
ExportAssets (56) | Timeline Frame 2 | Symbol 350 as "waitingResponse" |
ExportAssets (56) | Timeline Frame 2 | Symbol 363 as "cardManager" |
ExportAssets (56) | Timeline Frame 2 | Symbol 373 as "BoundingBox" |
ExportAssets (56) | Timeline Frame 2 | Symbol 375 as "BrdrShdw" |
ExportAssets (56) | Timeline Frame 2 | Symbol 377 as "BrdrFace" |
ExportAssets (56) | Timeline Frame 2 | Symbol 378 as "SimpleButtonDown" |
ExportAssets (56) | Timeline Frame 2 | Symbol 380 as "BrdrBlk" |
ExportAssets (56) | Timeline Frame 2 | Symbol 382 as "BrdrHilght" |
ExportAssets (56) | Timeline Frame 2 | Symbol 383 as "SimpleButtonIn" |
ExportAssets (56) | Timeline Frame 2 | Symbol 384 as "SimpleButtonUp" |
ExportAssets (56) | Timeline Frame 2 | Symbol 385 as "Defaults" |
ExportAssets (56) | Timeline Frame 2 | Symbol 386 as "UIObjectExtensions" |
ExportAssets (56) | Timeline Frame 2 | Symbol 387 as "UIObject" |
ExportAssets (56) | Timeline Frame 2 | Symbol 392 as "FocusRect" |
ExportAssets (56) | Timeline Frame 2 | Symbol 393 as "FocusManager" |
ExportAssets (56) | Timeline Frame 2 | Symbol 394 as "UIComponentExtensions" |
ExportAssets (56) | Timeline Frame 2 | Symbol 395 as "UIComponent" |
ExportAssets (56) | Timeline Frame 2 | Symbol 396 as "SimpleButton" |
ExportAssets (56) | Timeline Frame 2 | Symbol 397 as "Border" |
ExportAssets (56) | Timeline Frame 2 | Symbol 398 as "RectBorder" |
ExportAssets (56) | Timeline Frame 2 | Symbol 399 as "ButtonSkin" |
ExportAssets (56) | Timeline Frame 2 | Symbol 400 as "Button" |
ExportAssets (56) | Timeline Frame 2 | Symbol 401 as "CustomBorder" |
ExportAssets (56) | Timeline Frame 2 | Symbol 402 as "VScrollBar" |
ExportAssets (56) | Timeline Frame 2 | Symbol 403 as "HScrollBar" |
ExportAssets (56) | Timeline Frame 2 | Symbol 404 as "UIScrollBar" |
ExportAssets (56) | Timeline Frame 2 | Symbol 439 as "deckList" |
ExportAssets (56) | Timeline Frame 2 | Symbol 443 as "pageTab" |
ExportAssets (56) | Timeline Frame 2 | Symbol 446 as "removeCardAnimation" |
ExportAssets (56) | Timeline Frame 2 | Symbol 448 as "saveDeckBox" |
ExportAssets (56) | Timeline Frame 2 | Symbol 455 as "saveNewDeckBox" |
ExportAssets (56) | Timeline Frame 2 | Symbol 460 as "okCancelResponseBlack" |
ExportAssets (56) | Timeline Frame 2 | Symbol 462 as "phaseAnnounce" |
ExportAssets (56) | Timeline Frame 2 | Symbol 464 as "posModIcon" |
ExportAssets (56) | Timeline Frame 2 | Symbol 466 as "negModIcon" |
ExportAssets (56) | Timeline Frame 2 | Symbol 473 as "helpArrow" |
ExportAssets (56) | Timeline Frame 2 | Symbol 474 as "battle.mp3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 475 as "battlestart.au" |
ExportAssets (56) | Timeline Frame 2 | Symbol 476 as "cardflip.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 477 as "challenge.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 478 as "levelup.wav" |
ExportAssets (56) | Timeline Frame 2 | Symbol 479 as "lobby.mp3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 480 as "login.mp3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 481 as "lose.au" |
ExportAssets (56) | Timeline Frame 2 | Symbol 482 as "manager.mp3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 483 as "mouseover.au" |
ExportAssets (56) | Timeline Frame 2 | Symbol 484 as "myturn.au" |
ExportAssets (56) | Timeline Frame 2 | Symbol 485 as "opaction.au" |
ExportAssets (56) | Timeline Frame 2 | Symbol 486 as "phase.au" |
ExportAssets (56) | Timeline Frame 2 | Symbol 487 as "win.au" |
ExportAssets (56) | Timeline Frame 2 | Symbol 488 as "battle2.mp3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 493 as "damageColorEffect" |
ExportAssets (56) | Timeline Frame 9 | Symbol 1030 as "TextInput" |
ExportAssets (56) | Timeline Frame 9 | Symbol 1031 as "ComboBase" |
ExportAssets (56) | Timeline Frame 9 | Symbol 1032 as "DataProvider" |
ExportAssets (56) | Timeline Frame 9 | Symbol 1033 as "DataSelector" |
ExportAssets (56) | Timeline Frame 9 | Symbol 1034 as "SelectableRow" |
ExportAssets (56) | Timeline Frame 9 | Symbol 1035 as "View" |
ExportAssets (56) | Timeline Frame 9 | Symbol 1036 as "ScrollView" |
ExportAssets (56) | Timeline Frame 9 | Symbol 1037 as "ScrollSelectList" |
ExportAssets (56) | Timeline Frame 9 | Symbol 1038 as "List" |
ExportAssets (56) | Timeline Frame 9 | Symbol 1039 as "ComboBox" |
Labels
"loading" | Frame 1 |
"global_conn" | Frame 2 |
"global_funcs" | Frame 2 |
"objects" | Frame 2 |
"login" | Frame 3 |
"profile" | Frame 4 |
"signin" | Frame 5 |
"guidebook" | Frame 6 |
"lobby_menu" | Frame 7 |
"lobby_conn" | Frame 7 |
"card_core" | Frame 7 |
"lobby" | Frame 7 |
"game_menu" | Frame 8 |
"game_conn" | Frame 8 |
"game_core" | Frame 8 |
"game" | Frame 8 |
"manager_menu" | Frame 9 |
"manager_conn" | Frame 9 |
"manager" | Frame 9 |
"_classhunter" | Symbol 154 MovieClip [viewCard] Frame 2 |
"_classknight" | Symbol 154 MovieClip [viewCard] Frame 3 |
"_classpaladin" | Symbol 154 MovieClip [viewCard] Frame 4 |
"_classsorcerer" | Symbol 154 MovieClip [viewCard] Frame 5 |
"_subclassassassin" | Symbol 154 MovieClip [viewCard] Frame 6 |
"_subclassgladiator" | Symbol 154 MovieClip [viewCard] Frame 7 |
"_subclassmonk" | Symbol 154 MovieClip [viewCard] Frame 8 |
"_subclasswizard" | Symbol 154 MovieClip [viewCard] Frame 9 |
"ability_attack" | Symbol 154 MovieClip [viewCard] Frame 10 |
"ability_defense" | Symbol 154 MovieClip [viewCard] Frame 11 |
"ability_usage" | Symbol 154 MovieClip [viewCard] Frame 12 |
"armor" | Symbol 154 MovieClip [viewCard] Frame 13 |
"artifact_amulet" | Symbol 154 MovieClip [viewCard] Frame 14 |
"artifact_item" | Symbol 154 MovieClip [viewCard] Frame 15 |
"artifact_item2" | Symbol 154 MovieClip [viewCard] Frame 16 |
"artifact_shield" | Symbol 154 MovieClip [viewCard] Frame 17 |
"artifact_shield2" | Symbol 154 MovieClip [viewCard] Frame 18 |
"artifact_weapon" | Symbol 154 MovieClip [viewCard] Frame 19 |
"artifact_weapon2" | Symbol 154 MovieClip [viewCard] Frame 20 |
"spell_attack" | Symbol 154 MovieClip [viewCard] Frame 21 |
"spell_defense" | Symbol 154 MovieClip [viewCard] Frame 22 |
"spell_usage" | Symbol 154 MovieClip [viewCard] Frame 23 |
"_classhunter" | Symbol 271 MovieClip [card] Frame 1 |
"_classknight" | Symbol 271 MovieClip [card] Frame 2 |
"_classpaladin" | Symbol 271 MovieClip [card] Frame 3 |
"_classsorcerer" | Symbol 271 MovieClip [card] Frame 4 |
"_subclassassassin" | Symbol 271 MovieClip [card] Frame 5 |
"_subclassgladiator" | Symbol 271 MovieClip [card] Frame 6 |
"_subclassmonk" | Symbol 271 MovieClip [card] Frame 7 |
"_subclasswizard" | Symbol 271 MovieClip [card] Frame 8 |
"ability_attack" | Symbol 271 MovieClip [card] Frame 9 |
"ability_defense" | Symbol 271 MovieClip [card] Frame 10 |
"ability_usage" | Symbol 271 MovieClip [card] Frame 11 |
"armor" | Symbol 271 MovieClip [card] Frame 12 |
"artifact_item" | Symbol 271 MovieClip [card] Frame 13 |
"artifact_shield" | Symbol 271 MovieClip [card] Frame 14 |
"artifact_weapon" | Symbol 271 MovieClip [card] Frame 15 |
"spell_attack" | Symbol 271 MovieClip [card] Frame 16 |
"spell_defense" | Symbol 271 MovieClip [card] Frame 17 |
"spell_usage" | Symbol 271 MovieClip [card] Frame 18 |
"artifact_amulet" | Symbol 271 MovieClip [card] Frame 19 |
"_classhunter" | Symbol 363 MovieClip [cardManager] Frame 1 |
"_classknight" | Symbol 363 MovieClip [cardManager] Frame 2 |
"_classpaladin" | Symbol 363 MovieClip [cardManager] Frame 3 |
"_classsorcerer" | Symbol 363 MovieClip [cardManager] Frame 4 |
"_subclassassassin" | Symbol 363 MovieClip [cardManager] Frame 5 |
"_subclassgladiator" | Symbol 363 MovieClip [cardManager] Frame 6 |
"_subclassmonk" | Symbol 363 MovieClip [cardManager] Frame 7 |
"_subclasswizard" | Symbol 363 MovieClip [cardManager] Frame 8 |
"ability_attack" | Symbol 363 MovieClip [cardManager] Frame 9 |
"ability_defense" | Symbol 363 MovieClip [cardManager] Frame 10 |
"ability_usage" | Symbol 363 MovieClip [cardManager] Frame 11 |
"armor" | Symbol 363 MovieClip [cardManager] Frame 12 |
"artifact_item" | Symbol 363 MovieClip [cardManager] Frame 13 |
"artifact_shield" | Symbol 363 MovieClip [cardManager] Frame 14 |
"artifact_weapon" | Symbol 363 MovieClip [cardManager] Frame 15 |
"spell_attack" | Symbol 363 MovieClip [cardManager] Frame 16 |
"spell_defense" | Symbol 363 MovieClip [cardManager] Frame 17 |
"spell_usage" | Symbol 363 MovieClip [cardManager] Frame 18 |
"artifact_amulet" | Symbol 363 MovieClip [cardManager] Frame 19 |
Dynamic Text Variables
points | Symbol 282 EditableText | "" |
points | Symbol 283 EditableText | "" |
_parent.powerCount | Symbol 287 EditableText | "" |
_parent.resistenceCount | Symbol 288 EditableText | "" |
points | Symbol 290 EditableText | "" |
points | Symbol 291 EditableText | "" |
_parent.attackCounts | Symbol 298 EditableText | "" |
windowText | Symbol 342 EditableText | "" |
windowText | Symbol 347 EditableText | "" |
windowText | Symbol 349 EditableText | "" |
versionDisplay | Symbol 496 EditableText | "" |
newsData | Symbol 507 EditableText | "<p align="left"><font face="Arial" size="10" color="#000000" letterSpacing="0.000000" kerning="0">Loading news...</font></p>" |
newsData | Symbol 508 EditableText | "<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading news...</font></p>" |
_root.myName | Symbol 510 EditableText | "" |
_root.password | Symbol 513 EditableText | "" |
loginMsg | Symbol 529 EditableText | "" |
_root.myLevel | Symbol 792 EditableText | "" |
_root.myName | Symbol 829 EditableText | "" |
_root.ranking | Symbol 831 EditableText | "" |
_root.totalXp | Symbol 835 EditableText | "" |
_root.myName | Symbol 866 EditableText | "" |
_root.myLevel | Symbol 867 EditableText | "" |
_root.myLife | Symbol 870 EditableText | "" |
_root.myDeck | Symbol 871 EditableText | "" |
_root.myDiscard | Symbol 872 EditableText | "" |
_root.opLevel | Symbol 873 EditableText | "" |
_root.myHand | Symbol 874 EditableText | "" |
_root.opLife | Symbol 876 EditableText | "" |
_root.opDeck | Symbol 877 EditableText | "" |
_root.opDiscard | Symbol 878 EditableText | "" |
_root.opHand | Symbol 879 EditableText | "" |
_root.opName | Symbol 933 EditableText | "" |
_root.warning | Symbol 987 EditableText | "" |
totalCards | Symbol 1009 EditableText | "" |
cardsInDeck | Symbol 1010 EditableText | "" |
classesInDeck | Symbol 1011 EditableText | "" |
loadingMsg | Symbol 1018 EditableText | "" |
|