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

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

Ederon Online Card Game.swf

This is the info page for
Flash #39321

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


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

Loading...

Loading
Image

<p align="left"><font face="Verdana" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Save</font></p>

<p align="left"><font face="Verdana" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Save as:</font></p>

<p align="left"><font face="Verdana" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Cancel</font></p>

Saving Deck...

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

<p align="right"></p>

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

<p align="left"><font face="Verdana" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Select a Deck</font></p>

<p align="left"><font face="Verdana" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Load</font></p>

+

-

/

Attack Phase

Response to Action

Defense Response

Congratulations! You got bonus cards!

Choose 2 cards to add to your
collection:

Save

Save

<p align="center"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">OK</font></p>

<p align="center"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">CANCEL</font></p>

<p align="center"></p>

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

OK

Loading...

Username

Username

Password

Password

Login

Login

New Account

New Account

<p align="center"><font face="Verdana" size="11" color="#000000" letterSpacing="0.000000" kerning="0">Forgot Username or Password?</font></p>

<p align="center"><font face="Verdana" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Forgot Username or Password?</font></p>

<p align="center"><font face="Verdana" size="11" color="#000000" letterSpacing="0.000000" kerning="0">Forgot Username or Password?</font></p>

<p align="center"><font face="Verdana" size="11" color="#ffff99" letterSpacing="0.000000" kerning="0">Forgot Username or Password?</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>

Ederon.com

Ederon.com

<p align="right"><font face="Knights Quest" size="10" color="#ffffff" letterSpacing="3.000000" kerning="0"><a href="http://jasonengle.deviantart.com/" target = "_blank">Art work by Jason Engle</a></font></p>

<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="center"></p>

<p align="center"></p>

Logout

Logout

Trade Cards

Trade Cards

How To Play

How To Play

Card Manager

Card Manager

Lobby

Lobby

<p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Username:</font></p>

<p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Password:</font></p>

<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="0">Starting Deck</font></p>

<p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Starting Deck</font></p>

<p align="center"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Choose one of the pre-defined decks below to start with your account. You can upgrade your account and <sbr />start making your own deck at anytime from your account manager.</font></p>

<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="0">Create your account</font></p>

<p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Create your account</font></p>

<p align="left"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Registration to Ederon is free! We do insist that you abide by the rules and policies detailed below.</font></p><p align="left"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">* Users with pre-defined beginner decks are automatically removed if inactive for more then 7 days.</font></p><p align="left"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">* Users with pre-defined beginner decks are limited to go as high as level 5 in the game.</font></p><p align="left"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">* Users caught trying any kind of cheat in this game can end by having their account removed by the administrators.</font></p>

Submit

Submit

Back

Back

<p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- Ranged Attacks</b></font></p><p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- Defensive Spells</b></font></p>

<p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- Fast Melee Attacks</b></font></p><p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- Retaliation Abilities</b></font></p>

<p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- Weapon Destruction</b></font></p><p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- Huge Meele Attacks</b></font></p>

<p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- Healing Spells</b></font></p><p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- Offensive Spells</b></font></p>

Basically, Ederon is a card game that you can play against other people online. In the game, you represent one warrior and fight
against your opponent that also represent a warrior. During the battle, you will be able to use several equipments, abilities and spells
that are in your deck. This is the basic battle screen:

<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">1 - 11</font></p>

Complicated? Don't worry. It is easier than it looks.
Now, the game basically works with turns. Each turn you will have the chance to attack your opponent using any
weapon that you might have in your playfield or by using an ability or spell from your hand. During the opponents
turn, you will be able to block attacks with defense items that you might have (like armors or shields or even
weapons) and/or using defense abilities/spells. You win the game by reducing your opponent's life points to 0.

<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">2 - 11</font></p>

Ederon has a vast collection of cards and it is constantly getting new cards. This is what a card looks like:

<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">3 - 11</font></p>

There are only 5 kinds of cards in Ederon. Each kind 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.

Items - There are many types of
items in the game. With the exception
of amulets, each one requires 1 or 2
hands to be used. If you have a 1
handed item on playfield, you can
hold another item. If it is a weapon or
a shield you can hold only one of
each type in your hands.

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 items, abilities and
spells are used directly from your
hand and discarded afterwards.
There are 3 different types of
abilities/spells. You will find more
information about each type and
the diference between them on the
next pages.

<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">4 - 11</font></p>

Your turn is separeted by 5 different Phases. On each phase you are able to play a card or make 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
On this phase you are able to remove any item that you currently have in your playfield, and also play either an item, class
card or a usage ability. No matter what card you play on this phase, the system automatically skips to the next phase, so if
you have to remove any card from the playfield, do it before you play any a card. If you don't have a weapon on the
playfield or if you just played a weapon card, the system will jump to the spell phase, otherwise it will engage the attack
phase. Read more about that on the next page. If you don't have any item to play or just don't want to play anything, just
click on the icon highlighted on the Phase Indicator.

Attack Phase
On this phase, if you have any weapon on the playfield you will be asked if you want to attack your opponent with that
weapon. If you choose to attack, your opponent may choose how he/she would like to block your attack. Read more about
how the attack solving works on the next page of this tutorial.

Ability/Spell Phase
On this phase you can play an attack spell/ability or a usage spell/ability. Be aware that any time you play an ability or spell
in your turn your opponent can counter/reduce damage or even counter the attack by attacking back with certain defense
spells/abilities.

Discard Phase
If you have 7 or more cards at the end of your turn, discard them until you have 6 in your hand. Discard each of them by
dragging the selected one from your hand to the graveyard symbol on the playfield.

<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">5 - 11</font></p>

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:

<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">6 - 11</font></p>

Each class has different combination of cards or styles. They are symbolized acording to their initials and color codes:
Hunter
Assassin
Knight
Gladiator
Paladin
Monk
Sorcerer
Wizard
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.
To know more about each class, visit the Class Page on www.ederon.com.

<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">7 - 11</font></p>

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 point, 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.

<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">8 - 11</font></p>

Options to block a weapon attack
Defensive response can vary according to what item is blocking or defense abilities/spells the defender might use.

Weapon blocking weapon attack: The attack is completely absorbed by the blocking weapon. The defender can only use this
option if he/she has a weapon on the playfield.
Shield blocking weapon attack: The attack is reduced, but not completely absorbed. if the shield do not reduce all the attack, the
remind of it goes to the armor. If the defender is not wearing armor, it goes to his life points. The defender can only use this option
if he has a shield on the playfield.
Spell/Ability blocking weapon attack: When the defender chooses to use a defensive spell or ability, the attack can vary according
to that card 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 blocking weapon attack:When the defender is wearing armor, any damage that he/she would take will go to the armor
instead. The damage dealt to the armor is also not completely absorbed. If the damage taken is higher then the armor defense,
the remainder of the attack goes to the defender's life point.
Defense abilities/spells against attack or usage abilities/spells
Defense abilities or spells can be used to interrupt any usage ability/spell or attack ability/spell. There are many types of defenses,
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, otherwise the game won't let you use it.

<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">9 - 11</font></p>

During the game you might see and even get in your collection some cards with special effects. Most of the effects are well
explained, but some effects are just marked on the card on bold. These are the effects:
Attack Counts: When a weapon card have this, it means that this card can only attack a certain amount of times. Once there are
no more attack counts, it is removed from the playfield automatically. There are some abilities or spells that can some times add
extra attack counts to certain cards. If you use cards like that always remember to also use those kind of spell/abilities
Remove Item: Some cards have an extra effect when they are manually removed by the user. When you see this indication, when
you remove the card during your equip phase, the card will trigger the effect described.
Double Ability: You will find this usually on Monk cards. This means that you can use this card plus an extra attack ability on that
same turn.
Fast Strike: If a weapon has "Fast Strike" on it, it means you can attack with it in the same turn you played it. Most of the
weapons for knights have the fast strike ability.
Untappable: You don't have to tap the weapon to attack in your attack phase. Usefull in several situations like a weapon-to-
weapon combat where you can attack and block with the same weapon.
Attack Effect: Effect that happens when the weapon attacks. Even if the weapon get blocks, the effect will be triggered.

<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">10- 11</font></p>

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 in a light red, otherwise it will just come back to its original spot.

<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">11- 11</font></p>

<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="0">How to Play</font></p>

<p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">How to Play</font></p>

Vs

Vs

Ending game...

Ending game...

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

<p align="left"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Players in the lobby</b></font></p>

Lobby

1

2

3

4

5

6

1

2

3

4

5

6

<p align="left"><font face="Arial" size="12" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading players...</font></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>

?

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

ActionScript [AS1/AS2]

Frame 1
function __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); } MochiAd.showPreloaderAd({id:"3fd86b4a15d80dc2", res:"640x480"}); __com_mochibot__("70a4af53", this, 10301, true);
Frame 2
function 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 sendChatMsg() { if ((smartfox.amIModerator && (msgBox.text.substring(0, 18) == "/kickSelectedUser ")) && (_root.viewOpID)) { msg = msgBox.text.substring(msgBox.text.indexOf(" ") + 1); var _local2 = {}; _local2.id = _root.viewOpID; _local2.msg = msg; smartfox.sendXtMessage("$dmn", "kick", _local2); msgBox.text = ""; msg = ""; } else if (smartfox.amIModerator && (msgBox.text.substring(0, 9) == "/roomMsg ")) { msg = msgBox.text.substring(msgBox.text.indexOf(" ") + 1); smartfox.sendModeratorMessage(msg, it.gotoandplay.smartfoxserver.SmartFoxClient.MODMSG_TO_ROOM, smartfox.activeRoomId); msgBox.text = ""; msg = ""; } else if (smartfox.amIModerator && (msgBox.text.substring(0, 9) == "/zoneMsg ")) { msg = msgBox.text.substring(msgBox.text.indexOf(" ") + 1); smartfox.sendModeratorMessage(msg, it.gotoandplay.smartfoxserver.SmartFoxClient.MODMSG_TO_ZONE); msgBox.text = ""; msg = ""; } else if (msgBox.text.substring(0, 5) == "/help") { playSounds = true; autoMsg(helpText); msgBox.text = ""; } else if (msgBox.text.substring(0, 13) == "/autohelp off") { autoHelp = true; autoMsg("Auto Help Off."); msgBox.text = ""; } else if (msgBox.text.substring(0, 12) == "/autohelp on") { autoHelp = true; autoMsg("Auto Help On."); msgBox.text = ""; } else if (msgBox.text.substring(0, 12) == "/soundfx off") { if (intervalVal) { clearInterval(intervalVal); } playSounds = false; autoMsg("Sound Effects Off."); msgBox.text = ""; } else if (msgBox.text.substring(0, 11) == "/soundfx on") { playSounds = true; autoMsg("Sounds Effects On."); msgBox.text = ""; } else if (msgBox.text.substring(0, 10) == "/music off") { if (playMusic) { if (intervalVal) { clearInterval(intervalVal); } playMusic = false; loadedSong.stop(); } autoMsg("Music Off."); msgBox.text = ""; } else if (msgBox.text.substring(0, 9) == "/music on") { if (!playMusic) { playMusic = true; loadedSong.start(); intervalVal = setInterval(loopSong, 1); } autoMsg("Music On."); msgBox.text = ""; } else if (msgBox.text.substring(0, 1) == "/") { autoMsg("Unknown Command."); msgBox.text = ""; } else if ((((((((((msgBox.text != "") && (msgBox.text != " ")) && (msgBox.text != " ")) && (msgBox.text.toLowerCase() != "fuck")) && (msgBox.text.toLowerCase() != "fuk")) && (msgBox.text.toLowerCase() != "shit")) && (msgBox.text.toLowerCase() != "ass")) && (msgBox.text.toLowerCase() != "fucker")) && (msgBox.text.toLowerCase() != "nigga")) && (msgBox.text.toLowerCase() != "niga")) { smartfox.sendPublicMessage(msgBox.text); msgBox.text = ""; } else { msgBox.text = ""; } } System.security.loadPolicyFile("xmlsocket://216.55.137.18:9339"); var ip = "216.55.137.18"; var port = 9339; var zone = "Game Server"; 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(mainMenuRoomID); }; smartfox.onJoinRoomError = function (error) { smartfox.disconnect(); gotoAndStop ("login"); }; smartfox.onJoinRoom = function (roomObj) { if (roomObj.isGame()) { onEnterFrame = function () { if (lobby_music.getVolume() > 0) { lobby_music.setVolume(lobby_music.getVolume() - 4); } else { if (intervalVal) { clearInterval(intervalVal); } lobby_music.stop(); lobby_music.setVolume(100); delete loadedSong; delete this.onEnterFrame; } }; if (playSounds) { battlestart.start(); } gameChat.htmlText = gameChat.htmlText + "<font color='#00FF99'>>> Starting game...</font>"; gameChat.scroll = gameChat.maxscroll; _root.myGameId = this.playerId; gotoGame(); } else if (roomObj.getId() == managerRoomID) { gameChat.htmlText = gameChat.htmlText + "<b><font color='#33CCFF'>>> You are now on Card Manager Chat</font></b>"; gameChat.scroll = gameChat.maxscroll; } else if (roomObj.getId() == mainMenuRoomID) { var _local8 = new Object(); _local8.picture = _root.myPicture; _local8.level = _root.myLevel; _local8.accType = _root.accType; if (_root.mod) { _local8.mod = 1; } smartfox.setUserVariables(_local8); delete horse_eye.onEnterFrame; if (!lobbyLogin) { gotoAndStop ("animation"); } } else if (roomObj.getId() == lobbyRoomID) { gameChat.htmlText = ""; modList = ""; advList = ""; begList = ""; if (_root.clearVarsLobby) { gameChat.htmlText = gameChat.htmlText + "<b><font color='#33CCFF'>>> Welcome back!</font></b>"; slotList = new Array(); slotList.push({name:_root.gameSlotNumber, val:"0:1", persistent:true}); smartfox.setRoomVariables(slotList, lobbyRoomID, false); delete _root.gameSlotNumber; delete _root.clearVarsLobby; } else { gameChat.htmlText = gameChat.htmlText + "<font color='#33CCFF'><b>>> Welcome to Ederon Card Game!</b></font>"; } if (_root.accType == "beginner") { gameChat.htmlText = gameChat.htmlText + (("<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>"); } helpText = "Available commands:<br>/soundfx [on|off]: toggles sound effects<br>/music [on|off]: toggles music<br>/help: display this message"; if (smartfox.amIModerator) { helpText = helpText + "<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."; } autoMsg(helpText); if (_root.lobbyAnnounce) { gameChat.htmlText = gameChat.htmlText + (("<b><font color='#FF6666'>" + _root.lobbyAnnounce) + "</font></b>"); } gameChat.scroll = gameChat.maxscroll; var _local6 = roomObj.getUserList(); _local6.sort(1); playersList.htmlText = ""; for (var _local9 in _local6) { var _local3 = _local6[_local9]; var _local5 = _local3.isModerator(); var _local4 = _local3.getVariables(); if (_local5 || (_local4.mod == 1)) { modList = ((((modList + "<a href='asfunction:viewPlayerDetails,") + _local3.getId()) + "'><font color='#00FFFF'>") + _local3.getName()) + "</font></a><br>"; } else if (_local4.accType == "advanced") { advList = ((((advList + "<a href='asfunction:viewPlayerDetails,") + _local3.getId()) + "'><font color='#FFCC66'>") + _local3.getName()) + "</font></a><br>"; } else { begList = ((((begList + "<a href='asfunction:viewPlayerDetails,") + _local3.getId()) + "'>") + _local3.getName()) + "</a><br>"; } } playersList.htmlText = (modList + advList) + begList; num = 1; while (num <= 15) { rVar = roomObj.getVariable(num); if (rVar) { updateSlot(num, rVar); } num++; } activateRooms(_root.currentpage); _root.totalusers = roomObj.getUserCount(); } }; smartfox.onRoomVariablesUpdate = function (roomObj, changedVars) { if (smartfox.activeRoomId == _root.lobbyRoomID) { num = 1; while (num <= 90) { upNum = num - (_root.currentpage * 15); if (changedVars[num]) { updateSlot(upNum, roomObj.getVariable(num)); } num++; } } gameRoomObj = smartfox.getRoom(gameSlotNumber); numOfPlayers = gameRoomObj.getUserCount(); if (_root.joinedUserGame && (numOfPlayers < 2)) { smartfox.joinRoom(gameSlotNumber); delete _root.joinedUserGame; } else if (_root.joinedUserGame) { delete _root.joinedUserGame; delete _root.roomClicked; delete _root.gameSlotNumber; } }; smartfox.onUserCountChange = function (roomObj) { if (smartfox.activeRoomId == _root.lobbyRoomID) { if ((roomObj.getId() >= ((_root.currentpage * 15) + 1)) && (roomObj.getId() <= ((_root.currentpage * 15) + 15))) { roomToUpdate = roomObj.getId() - (_root.currentpage * 15); lobbyRoom = smartfox.getRoom(_root.lobbyRoomID); rVar = lobbyRoom.getVariable(roomObj.getId()); updateSlot(roomToUpdate, rVar); } } }; smartfox.onConnectionLost = function () { if (numCardsLoaded) { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } delete myManagerCards; } clearGameVariables(); delete _root.mod; gotoAndStop ("login"); }; smartfox.onUserLeaveRoom = function (fromRoom, usrId, userName) { if (fromRoom == _root.lobbyRoomID) { roomObj = smartfox.getRoom(fromRoom); _root.totalusers = roomObj.getUserCount(); 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("<a href", 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; } playersList.htmlText = (modList + advList) + begList; } else if (fromRoom == _root.managerRoomID) { gameChat.htmlText = gameChat.htmlText + (("<font color='#FFCC66'>" + userName) + " has left the chat.</font>"); gameChat.scroll = gameChat.maxscroll; } else { if (timer) { resetAndStopTimer(); } autoMsg(opName + " left the game."); if ((!_root.gameisOver) && (_root.opName)) { gameOver("win"); } } }; smartfox.onUserEnterRoom = function (fromRoom, user) { if (fromRoom == _root.lobbyRoomID) { var _local5 = user.isModerator(); var _local3 = user.getVariables(); if (_local5 || (_local3.mod == 1)) { modList = (((("<a href='asfunction:viewPlayerDetails," + user.getId()) + "'><font color='#00FFFF'>") + user.getName()) + "</font></a><br>") + modList; } else if (_local3.accType == "advanced") { advList = (((("<a href='asfunction:viewPlayerDetails," + user.getId()) + "'><font color='#FFCC66'>") + user.getName()) + "</font></a><br>") + advList; } else { begList = (((("<a href='asfunction:viewPlayerDetails," + user.getId()) + "'>") + user.getName()) + "</a><br>") + begList; } playersList.htmlText = (modList + advList) + begList; roomObj = smartfox.getRoom(fromRoom); _root.totalusers = roomObj.getUserCount(); } else if (fromRoom == _root.managerRoomID) { gameChat.htmlText = gameChat.htmlText + (("<font color='#FFCC66'>" + user.getName()) + " has joined the chat.</font>"); gameChat.scroll = gameChat.maxscroll; } }; smartfox.onPublicMessage = function (msg, user) { msg = findAndReplace(msg, "&", "&amp;"); msg = findAndReplace(msg, "<", "&lt;"); msg = findAndReplace(msg, ">", "&gt;"); var _local4 = user.isModerator(); var _local3 = user.getVariables(); if (_local4 || (_local3.mod == 1)) { gameChat.htmlText = gameChat.htmlText + (((("<font color='#00FFFF'><b>[ " + user.getName()) + " ]:</b> ") + msg) + "</font>"); } else if (_local3.accType == "advanced") { gameChat.htmlText = gameChat.htmlText + (((("<font color='#FFFFCC'><b>[ " + user.getName()) + " ]:</b> ") + msg) + "</font>"); } else { gameChat.htmlText = gameChat.htmlText + ((("<b>[ " + user.getName()) + " ]:</b> ") + msg); } gameChat.scroll = gameChat.maxscroll; }; smartfox.onAdminMessage = function (msg) { gameChat.htmlText = gameChat.htmlText + (("<font color='#FF6666'><b>" + msg) + "</b></font>"); gameChat.scroll = gameChat.maxscroll; }; smartfox.onModeratorMessage = function (msg) { gameChat.htmlText = gameChat.htmlText + (("<font color='#FF6666'><b>" + msg) + "</b></font>"); gameChat.scroll = gameChat.maxscroll; }; 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 validateString(str) { validation = true; if ((((((((((((((((((((((((((((((((((((str.length < 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 == "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") { 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") { if (numCardsLoaded) { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } delete myManagerCards; } smartFox.joinRoom(mainMenuRoomID); gotoAndStop ("animation"); } else if (from == "menuFromLobby") { smartFox.joinRoom(mainMenuRoomID); gotoAndStop ("animation"); } 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 - 90)) { loadedSong.stop(); loadedSong.start(0.05); } } function autoMsg(msg) { gameChat.htmlText = gameChat.htmlText + (("<font color='#FFCC66'>" + msg) + "</font>"); gameChat.scroll = gameChat.maxscroll; } 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; playSounds = true; playMusic = true; version = 235; versionDisplay = "v 2.35a"; var movieLoader = new MovieClipLoader(); System.useCodepage = true; fscommand ("showmenu", false); fscommand ("allowscale", false); fscommand ("fullscreen", false); MENU = new ContextMenu(); MENU.hideBuiltInItems(); _root.menu = MENU; webpage = "http://www.ederon.com"; lobbyRoomID = 91; managerRoomID = 92; mainMenuRoomID = 93; confirmBoxXpos = 250; confirmBoxYpos = 250; confirmBoxDepth = 5000; 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.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") && (Selection.getFocus() != "_level0.saveNewDeckBox.deckNameInput")) && (Selection.getFocus() != "_level0.deckNameInput")) && (!okCancelResponseBlack)) { Selection.setFocus(msgBox); } if ((((Selection.getFocus() == "_level0.msgBox") && (Key.isDown(13))) && (!antiSpam)) && (!_root.inGame)) { sendChatMsg(); 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(); } } 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("game.mp3"); var login_music = new Sound(); login_music.attachSound("login.mp3"); var animation_music = new Sound(); animation_music.attachSound("animation.wav"); var mouseover = new Sound(); mouseover.attachSound("mouseover.au"); var battlestart = new Sound(); battlestart.attachSound("battlestart.au"); var intro = new Sound(); intro.attachSound("intro.au"); 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"); gotoAndStop ("login");
Frame 3
function sendLogin() { mouseover.start(); cover._visible = true; loginData.load((((((((_root.webpage + "/game/loadUserInfo.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..."; } 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; } 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 and get the latest version!"; conError = true; } else if (this.dbLogin == "custom") { loginMsg = this.customMsg; conError = true; } else { if (this.mod) { _root.mod = true; } _root.myName = this.username; if (this.boosters) { _root.boosters = true; } _root.noDeck = this.noDeck; _root.idUser = this.idUser; _root.myLevel = this.level; _root.myPicture = this.picture; _root.experience = this.experience; _root.managerName = this.managerName; _root.accType = this.accType; if (this.lobbyAnnounce) { _root.lobbyAnnounce = this.lobbyAnnounce; } onEnterFrame = function () { if (login_music.getVolume() > 0) { login_music.setVolume(login_music.getVolume() - 4); } else { login_music.stop(); login_music.setVolume(100); delete this.onEnterFrame; } }; _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() - 4); } else { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = login_music; if (playMusic) { loadedSong.start(0, 9999); } delete this.onEnterFrame; } };
Frame 4
antiSpam = false; welcomemsg.htmlText = ("Welcome to Ederon Online Card Game <b>" + _root.myName) + "</b>!<br>"; if (_root.boosters) { welcomemsg.htmlText = ((welcomemsg.htmlText + "<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>"; } animationButtonsMenu.lobbyLogin.onRelease = function () { if (noDeck) { errorMsg.htmlText = "You don't have a default deck yet! Go to the card manager to make a deck."; } else { gotoAndStop ("lobby"); } }; animationButtonsMenu.managerLogin.onRelease = function () { gotoAndStop ("manager"); }; animationButtonsMenu.tradeLogin.onRelease = function () { openPage("trade/tradeMarket.asp"); }; animationButtonsMenu.howToPlay.onRelease = function () { gotoAndStop ("howtoplay"); }; animationButtonsMenu.logoutLogin.onRelease = function () { smartfox.disconnect(); }; if (smartfox.activeRoomId != mainMenuRoomID) { smartfox.joinRoom(mainMenuRoomID); } loadedSong.stop(); loadedSong = animation_music; if (intervalVal) { clearInterval(intervalVal); } if (playMusic) { loadedSong.start(0, 9999); }
Frame 5
deck1.gotoAndStop(1); deck2.gotoAndStop(1); deck3.gotoAndStop(1); deck4.gotoAndStop(1); website = "http://www.ederon.com"; var sendSubmit = new LoadVars(); var submitedData = new LoadVars(); var CPMStarURL = new LoadVars(); sendSubmit.deck = 0; submitedData.onLoad = function (success) { warningBox.warningOk._alpha = 100; warningBox.warningOk.enabled = true; savingErrorMsg = ""; if (!success) { savingError = true; savingErrorMsg = savingErrorMsg + "- Server Unavaliable.\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; }; deck1.onRelease = function () { deck1.gotoAndStop(1); deck2.gotoAndStop(2); deck3.gotoAndStop(2); deck4.gotoAndStop(2); sendSubmit.deck = 4; }; deck2.onRelease = function () { deck1.gotoAndStop(2); deck2.gotoAndStop(1); deck3.gotoAndStop(2); deck4.gotoAndStop(2); sendSubmit.deck = 1; }; deck3.onRelease = function () { deck1.gotoAndStop(2); deck2.gotoAndStop(2); deck3.gotoAndStop(1); deck4.gotoAndStop(2); sendSubmit.deck = 3; }; deck4.onRelease = function () { deck1.gotoAndStop(2); deck2.gotoAndStop(2); deck3.gotoAndStop(2); deck4.gotoAndStop(1); sendSubmit.deck = 2; }; submit.onRelease = function () { warningMsg = ""; if ((username.text.length < 3) || (!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.sendAndLoad((website + "/account/signIn.asp?rn=") + random(10000), submitedData, "POST"); } delete warningError; }; back.onRelease = function () { gotoAndStop ("login"); };
Frame 6
howToPlay.gotoAndStop(1); howToPlay.prevHowTo.onRelease = function () { this._parent.gotoAndStop(this._parent._currentframe - 1); }; howToPlay.nextHowTo.onRelease = function () { this._parent.gotoAndStop(this._parent._currentframe + 1); }; howToPlay.backHowTo.onRelease = function () { _root.gotoAndStop("animation"); }; onEnterFrame = function () { if (animation_music.getVolume() > 0) { animation_music.setVolume(animation_music.getVolume() - 4); } else { animation_music.stop(); animation_music.setVolume(100); delete this.onEnterFrame; } };
Frame 7
accountSetup.onRelease = function () { openPage("account/editAccount.asp"); }; trade.onRelease = function () { openPage("trade/tradeMarket.asp"); }; mainMenuLobby.onRelease = function () { okCancelResponseBlackBox("menuFromLobby"); }; logout.onRelease = function () { okCancelResponseBlackBox("logoutFromLobby"); }; function viewClickedCard(cardObj) { if (viewCard) { viewCard.removeMovieClip(); } if (cardObj.model) { _root.attachMovie("viewCard", "viewCard", _root.viewCardDepth); _root.viewCard._x = 452; _root.viewCard._y = 102; 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); } } 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.textAndStory.htmlText = viewCard.textAndStory; 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; } if (viewCard.textFields.name.length >= 15) { var _local3 = new TextFormat(); _local3.size = 10; if (card.textFields.name.length >= 16) { _local3.size = 9; } viewCard.textFields.name.setTextFormat(_local3); viewCard.textFields.nameShad.setTextFormat(_local3); } if (viewCard.textFields.textAndStory.text.substring(0, 3) == "[9]") { viewCard.textFields.textAndStory.htmlText = viewCard.textFields.textAndStory.text.substr(3); var _local3 = new TextFormat(); _local3.size = 9; viewCard.textFields.textAndStory.setTextFormat(_local3); } } 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); _root.viewCard._x = 452; _root.viewCard._y = 102; movieLoader.loadClip("viewCard.swf", "viewCard"); } } function viewPlayerDetails(passedID) { _root.initialmsg = ""; roomObj = smartfox.getRoom(_root.lobbyRoomID); viewUser = roomObj.getUser(Number(passedID)); var _local3 = viewUser.isModerator(); var _local2 = viewUser.getVariables(); _root.viewOpID = passedID; _root.viewOpName = viewUser.getName(); (condition ? (trueExpression) : (falseExpression)); _root.viewOpLevel = ((_local2.level == undefined) ? "" : (_local2.level)); if (_local3) { _root.viewOpAccType = "MODERATOR"; } else { _root.viewOpAccType = ((_local2.accType == undefined) ? "" : (_local2.accType.toUpperCase())); } viewOpPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _local2.picture, viewOpPicture.pictureClip); viewOpPicture.pictureClip._x = 0; viewOpPicture.pictureClip._y = 0; } function sendSlot(slotNum, user, slotVal, setGame) { slotList = new Array(); if (setGame) { slotList.push({name:slotNum, val:(user + ":") + slotVal, persistent:true, priv:true}); } else { slotList.push({name:slotNum, val:(user + ":") + slotVal, persistent:true}); } smartfox.setRoomVariables(slotList, _root.lobbyRoomID); } function updateSlot(num, slot) { ppos = slot.indexOf(":", 0); userOnId = slot.substr(0, ppos); slotVal = slot.substring(ppos + 1); gameRoomObj = smartfox.getRoom((_root.currentpage * 15) + num); numOfPlayers = gameRoomObj.getUserCount(); if ((slotVal == "1") || (!slotVal)) { if (numOfPlayers == 0) { eval ("game" + num).gotoAndStop(1); } else if ((numOfPlayers == 1) && (gameSlotNumber != gameRoomObj.getId())) { eval ("game" + num).slotTxt = "Ending Game..."; eval ("game" + num).gotoAndStop(4); } else { eval ("game" + num).slotTxt = "Starting Game..."; eval ("game" + num).gotoAndStop(4); } if (_root.myId == userOnId) { _root.roomClicked = false; } } else if (slotVal == "2") { eval ("game" + num).gotoAndStop(2); roomObj = smartfox.getRoom(_root.lobbyRoomID); user = roomObj.getUser(Number(userOnId)); var uVars = user.getVariables(); eval ("game" + num).userOnId = user.getId(); eval ("game" + num).userOnName = user.getName(); eval ("game" + num).userOnLevel = "Level " + uVars.level; eval ("game" + num).topInfo = user.getName(); eval ("game" + num).slotTxt = "Join Game"; if (_root.myId == user.getId()) { _root.roomClicked = false; } } else { eval ("game" + num).gotoAndStop(3); user1 = userOnId; user2 = slotVal; eval ("game" + num).userOnId = 0; eval ("game" + num).userOnName = ""; eval ("game" + num).slotTxt = "Game in Progress"; eval ("game" + num).p1Name = user1; eval ("game" + num).p2Name = user2; if (_root.actualSlot == ((_root.currentpage * 15) + num)) { smartfox.joinRoom((_root.currentpage * 15) + num); _root.gameSlotNumber = (_root.currentpage * 15) + num; _root.actualSlot = 0; } } } function activateRooms() { _root.roomsActivated = true; num = 1; while (num <= 15) { eval ("game" + num).onEnterFrame = function () { if (this._currentframe == 1) { this.create_game.onRelease = function () { if (!_root.roomClicked) { if (playSounds) { mouseover.start(); } _root.roomClicked = true; if (_root.actualSlot != 0) { _root.sendSlot(_root.actualSlot, _root.myId, 1); } _root.actualSlot = (_root.currentpage * 15) + Number(this._parent._name.substr(4, 2)); _root.sendSlot(_root.actualSlot, _root.myId, 2); } }; } else if (this._currentframe == 2) { this.join_game.onRelease = function () { if (!_root.roomClicked) { if (playSounds) { mouseover.start(); } _root.roomClicked = true; if (_root.actualSlot == ((_root.currentpage * 15) + Number(this._parent._name.substr(4, 2)))) { _root.sendSlot(_root.actualSlot, _root.myId, 1); _root.actualSlot = 0; } else if (this._parent.userOnName != _root.myName) { if (_root.actualSlot != 0) { _root.sendSlot(_root.actualSlot, _root.myId, 1); } _root.opName = this._parent.userOnName; _root.gameSlotNumber = (_root.currentpage * 15) + Number(this._parent._name.substr(4, 2)); _root.sendSlot(_root.gameSlotNumber, _root.myName, _root.opName, true); _root.joinedUserGame = true; } } }; } }; num++; } } function gotoGame() { startTime = getTimer() / 1000; game1.onEnterFrame = function () { delay = getTimer() / 1000; if (startTime <= (delay - 3)) { _root.roomClicked = false; delete this.onEnterFrame; gotoAndStop ("game"); } }; } currentpage = 0; actualSlot = 0; roomClicked = false; antiSpam = false; if (viewOpID) { delete viewOpID; } if (viewOpName) { delete viewOpName; } if (viewOpLevel) { delete viewOpLevel; } if (viewOpAccType) { delete viewOpAccType; } initialmsg = "Click on a player to see his/her status."; if (viewOpPicture.pictureClip) { viewOpPicture.pictureClip.removeMovieClip(); } 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 (_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; num = 1; while (num <= 15) { eval ("game" + num).gotoAndStop(1); num++; } pages.gotoAndStop(1); nextpage.onRelease = function () { if ((_root.currentpage <= 4) && (_root.roomsActivated)) { if (playSounds) { mouseover.start(); } pages.gotoAndStop(pages._currentframe + 1); _root.currentpage++; roomObj = smartfox.getRoom(_root.lobbyRoomID); num = 1; while (num <= 15) { roomNum = (_root.currentpage * 15) + num; rVar = roomObj.getVariable(roomNum); updateSlot(num, rVar); num++; } } }; previouspage.onRelease = function () { if ((_root.currentpage >= 1) && (_root.roomsActivated)) { if (playSounds) { mouseover.start(); } pages.gotoAndStop(pages._currentframe - 1); _root.currentpage--; roomObj = smartfox.getRoom(_root.lobbyRoomID); num = 1; while (num <= 15) { roomNum = (_root.currentpage * 15) + num; rVar = roomObj.getVariable(roomNum); updateSlot(num, rVar); num++; } } }; buy_boosters.onRelease = function () { openPage("shopping/upgradeSetup.asp"); }; onEnterFrame = function () { if (loadedSong.getVolume() > 0) { loadedSong.setVolume(loadedSong.getVolume() - 4); } else if (playMusic) { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = lobby_music; loadedSong.start(); intervalVal = setInterval(loopSong, 1); delete this.onEnterFrame; } }; if (smartfox.activeRoomId != lobbyRoomID) { smartfox.joinRoom(lobbyRoomID); }
Instance of Symbol 423 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 423 MovieClip [UIScrollBar] "chatboxSb2" in Frame 7
//component parameters onClipEvent (construct) { _targetInstanceName = "playersList"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Frame 8
function loadLobby() { clearGameVariables(); _root.clearVarsLobby = true; gotoAndStop ("lobby"); } account_setup.onRelease = function () { openPage("account/editAccount.asp"); }; trade.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"); } }; 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) { 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 sendPhase(phase, cardObj, action) { var _local2 = {}; _local2.type = "phase"; _local2.phase = phase; if (_root.oldMyDeck != _root.myDeck) { _local2.opDeck = _root.myDeck; _root.oldMyDeck = _root.myDeck; } if (_root.oldMyHand != _root.myHand) { _local2.opHand = _root.myHand; _root.oldMyHand = _root.myHand; } if (_root.oldMyLife != _root.myLife) { _local2.opLife = _root.myLife; _root.oldMyLife = _root.myLife; } if (_root.oldMyDiscard != _root.myDiscard) { _local2.opDiscard = _root.myDiscard; _root.oldMyDiscard = _root.myDiscard; } if (action == "playCard") { _local2.idCard = Number(cardObj.idCard); _local2.name = cardObj.name; _local2.model = cardObj.model; _local2.frame = cardObj._currentframe; _local2.picture = cardObj.picture; _local2.posNumber = cardObj.posNumber; _local2.power = cardObj.powerCount; _local2.tapped = cardObj.tapped; _local2.resistence = cardObj.resistenceCount; _local2.attackCounts = cardObj.attackCounts; _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.playfunc1 = cardObj.playfunc1; _local2.playfunc2 = cardObj.playfunc2; _local2.playfunc3 = cardObj.playfunc3; _local2.playfunc4 = cardObj.playfunc4; _local2.playfunc5 = cardObj.playfunc5; _local2.playfunc6 = cardObj.playfunc6; _local2.attackedbyfunc1 = cardObj.attackedbyfunc1; _local2.attackedbyfunc2 = cardObj.attackedbyfunc2; _local2.attackfunc1 = cardObj.attackfunc1; _local2.attackfunc2 = cardObj.attackfunc2; _local2.attackblockfunc1 = cardObj.attackblockfunc1; _local2.attackblockfunc2 = cardObj.attackblockfunc2; _local2.itemblockfunc1 = cardObj.itemblockfunc1; _local2.itemblockfunc2 = cardObj.itemblockfunc2; _local2.opdrawfunc1 = cardObj.opdrawfunc1; _local2.opdrawfunc2 = cardObj.opdrawfunc2; _local2.opdiscardfunc1 = cardObj.opdiscardfunc1; _local2.opdiscardfunc2 = cardObj.opdiscardfunc2; 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; } } if (testCardUpdates(_root.weaponCardObj)) { if (_root.weaponCardObj.attackCounts) { _local2.newWeaponAC = _root.weaponCardObj.attackCounts; } _local2.newWeaponPow = _root.weaponCardObj.powerCount; _local2.newWeaponRes = _root.weaponCardObj.resistenceCount; _local2.weaponPos = _root.weaponCardObj.posNumber; } if (testCardUpdates(_root.shieldCardObj)) { _local2.newShieldPow = _root.shieldCardObj.powerCount; _local2.newShieldRes = _root.shieldCardObj.resistenceCount; _local2.shieldPos = _root.shieldCardObj.posNumber; } if (testCardUpdates(_root.armorCardObj)) { _local2.newArmorPow = _root.armorCardObj.powerCount; _local2.newArmorRes = _root.armorCardObj.resistenceCount; _local2.armorPos = _root.armorCardObj.posNumber; } smartfox.sendObject(_local2); } function sendPlayCard(cardObj) { var _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.powerCount; _local1.tapped = cardObj.tapped; _local1.resistence = cardObj.resistenceCount; _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.opdrawfunc1 = cardObj.opdrawfunc1; _local1.opdrawfunc2 = cardObj.opdrawfunc2; _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 _local2 = {}; _local2.type = "statsUpdate"; if (_root.oldMyDeck != _root.myDeck) { _local2.opDeck = _root.myDeck; _root.oldMyDeck = _root.myDeck; } if (_root.oldMyHand != _root.myHand) { _local2.opHand = _root.myHand; _root.oldMyHand = _root.myHand; } if (_root.oldMyLife != _root.myLife) { _local2.opLife = _root.myLife; _root.oldMyLife = _root.myLife; } if (_root.oldMyDiscard != _root.myDiscard) { _local2.opDiscard = _root.myDiscard; _root.oldMyDiscard = _root.myDiscard; } if (testCardUpdates(_root.weaponCardObj)) { if (_root.weaponCardObj.attackCounts) { _local2.newWeaponAC = _root.weaponCardObj.attackCounts; } _local2.newWeaponPow = _root.weaponCardObj.powerCount; _local2.newWeaponRes = _root.weaponCardObj.resistenceCount; _local2.weaponPos = _root.weaponCardObj.posNumber; } if (testCardUpdates(_root.shieldCardObj)) { _local2.newShieldPow = _root.shieldCardObj.powerCount; _local2.newShieldRes = _root.shieldCardObj.resistenceCount; _local2.shieldPos = _root.shieldCardObj.posNumber; } if (testCardUpdates(_root.armorCardObj)) { _local2.newArmorPow = _root.armorCardObj.powerCount; _local2.newArmorRes = _root.armorCardObj.resistenceCount; _local2.armorPos = _root.armorCardObj.posNumber; } smartfox.sendObject(_local2); } function sendRemoveCard(cardObj, funcTrigger, destroyedByOp) { var _local2 = {}; _local2.type = "removeCard"; _local2.posNumber = cardObj.posNumber; if (destroyedByOp) { _local2.destroyfunc1 = cardObj.destroyfunc1; _local2.destroyfunc2 = cardObj.destroyfunc2; } else { _local2.removefunc1 = cardObj.removefunc1; _local2.removefunc2 = cardObj.removefunc2; _local2.removefunc3 = cardObj.removefunc3; } if (testCardUpdates(_root.weaponCardObj)) { if (_root.weaponCardObj.attackCounts) { _local2.newWeaponAC = _root.weaponCardObj.attackCounts; } _local2.newWeaponPow = _root.weaponCardObj.powerCount; _local2.newWeaponRes = _root.weaponCardObj.resistenceCount; _local2.weaponPos = _root.weaponCardObj.posNumber; } if (testCardUpdates(_root.shieldCardObj)) { _local2.newShieldPow = _root.shieldCardObj.powerCount; _local2.newShieldRes = _root.shieldCardObj.resistenceCount; _local2.shieldPos = _root.shieldCardObj.posNumber; } if (testCardUpdates(_root.armorCardObj)) { _local2.newArmorPow = _root.armorCardObj.powerCount; _local2.newArmorRes = _root.armorCardObj.resistenceCount; _local2.armorPos = _root.armorCardObj.posNumber; } if (_root.oldMyHand != _root.myHand) { _local2.opHand = _root.myHand; _root.oldMyHand = _root.myHand; } if (_root.oldMyLife != _root.myLife) { _local2.opLife = _root.myLife; _root.oldMyLife = _root.myLife; } if (_root.oldMyDiscard != _root.myDiscard) { _local2.opDiscard = _root.myDiscard; _root.oldMyDiscard = _root.myDiscard; } if (funcTrigger) { _local2.noAnimation = true; } smartfox.sendObject(_local2); } function sendDiscardCard(cardObj) { var _local2 = {}; _local2.type = "discardCard"; if (testCardUpdates(_root.weaponCardObj)) { if (_root.weaponCardObj.attackCounts) { _local2.newWeaponAC = _root.weaponCardObj.attackCounts; } _local2.newWeaponPow = _root.weaponCardObj.powerCount; _local2.newWeaponRes = _root.weaponCardObj.resistenceCount; _local2.weaponPos = _root.weaponCardObj.posNumber; } if (testCardUpdates(_root.shieldCardObj)) { _local2.newShieldPow = _root.shieldCardObj.powerCount; _local2.newShieldRes = _root.shieldCardObj.resistenceCount; _local2.shieldPos = _root.shieldCardObj.posNumber; } if (testCardUpdates(_root.armorCardObj)) { _local2.newArmorPow = _root.armorCardObj.powerCount; _local2.newArmorRes = _root.armorCardObj.resistenceCount; _local2.armorPos = _root.armorCardObj.posNumber; } if (_root.oldMyHand != _root.myHand) { _local2.opHand = _root.myHand; _root.oldMyHand = _root.myHand; } if (_root.oldMyLife != _root.myLife) { _local2.opLife = _root.myLife; _root.oldMyLife = _root.myLife; } if (_root.oldMyDiscard != _root.myDiscard) { _local2.opDiscard = _root.myDiscard; _root.oldMyDiscard = _root.myDiscard; } smartfox.sendObject(_local2); } function sendAttack(cardObj) { var _local1 = {}; _local1.type = "attack"; _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"; if (_root.oldMyLife != _root.myLife) { _local2.opLife = _root.myLife; _root.oldMyLife = _root.myLife; } if (cardObj) { _local2.pNum = cardObj.posNumber; _local2.rCount = cardObj.resistenceCount; } 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"; if (_root.oldMyLife != _root.myLife) { _local2.opLife = _root.myLife; _root.oldMyLife = _root.myLife; } if (_root.armorCardObj) { _local2.armorRes = _root.armorCardObj.resistenceCount; } resetAndStopTimer(); smartfox.sendObject(_local2); } function sendSolveAbilityAb() { var _local2 = {}; _local2.type = "solveAbilityAb"; if (_root.oldMyLife != _root.myLife) { _local2.opLife = _root.myLife; _root.oldMyLife = _root.myLife; } if (_root.armorCardObj) { _local2.armorRes = _root.armorCardObj.resistenceCount; } smartfox.sendObject(_local2); } function sendSolveAbilityDef() { var _local2 = {}; _local2.type = "solveAbilityDef"; if (_root.oldMyLife != _root.myLife) { _local2.opLife = _root.myLife; _root.oldMyLife = _root.myLife; } 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.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; 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.opDiscard = _root.myDiscard; 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); } } smartfox.onObjectReceived = function (objRes) { switch (objRes.type) { case "phase" : if (objRes.untap != undefined) { untap(eval ("opCard" + objRes.untap)); } 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.idCard != undefined) { createOpCardObj(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.picture, objRes.posNumber, objRes.power, objRes.resistence, 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.opdrawfunc1, objRes.opdrawfunc2, 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.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); } } if (objRes.phase == "opTurn") { if (opTimerStarted) { opTimerStarted = false; stopOpTimer(); } phaseChange("drawPhase", "my"); } else { if (!opTimerStarted) { opTimerStarted = true; startOpTimer(); } phaseChange(objRes.phase, "op"); } break; case "playCard" : if (objRes.idCard != undefined) { createOpCardObj(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.picture, objRes.posNumber, objRes.power, objRes.resistence, 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.opdrawfunc1, objRes.opdrawfunc2, 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.damage != undefined) && (!_root.weaponCardObj.imuneToCounter)) { artifactBlock(_root.weaponCardObj, objRes.damage); } if (objRes.rCount != undefined) { updateOpCard(eval ("opCard" + objRes.pNum), objRes.rCount); } 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.attackCounts <= 0) && (_root.weaponCardObj.attackCounts != undefined)) { removeCard(_root.weaponCardObj); } if (objRes.opLife != undefined) { setOpLife(objRes.opLife); } _root.waitingResponse.removeMovieClip(); if (!_root.gameisOver) { _root.weaponCardObj.attacking = false; startTimer(); phaseChange("spellPhase", "my"); } break; case "ability" : if (objRes.opHand != undefined) { _root.opHand = objRes.opHand; } 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.opHand != undefined) { testOpHand(objRes.opHand); } if (objRes.armorRes != undefined) { updateOpCard(opCard3, objRes.armorRes); } solveMyFunctions(eval ("myCard" + tablePos[6].idCard)); _root.waitingResponse.removeMovieClip(); if (objRes.opLife != undefined) { setOpLife(objRes.opLife); } sendStatsUpdate(); if ((!_root.gameisOver) && (_root.myLife <= 0)) { _root.gameisOver = true; } if (!_root.gameisOver) { startTimer(); if (!eval ("myCard" + tablePos[6].idCard).instantEffect) { if ((_root.currentPhase == "equipPhase") && (_root.weaponCardObj)) { 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" : if (objRes.opHand != undefined) { testOpHand(objRes.opHand); } 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" : if (objRes.opHand != undefined) { testOpHand(objRes.opHand); } 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)); if (objRes.opLife != undefined) { setOpLife(objRes.opLife); } sendStatsUpdate(); 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); if (objRes.opLife != undefined) { setOpLife(objRes.opLife); } sendStatsUpdate(); _root.waitingResponse.removeMovieClip(); break; case "removeCard" : removeOpCard(objRes.posNumber, objRes.removefunc1, objRes.removefunc2, objRes.removefunc3, objRes.destroyfunc1, objRes.destroyfunc2, objRes.noAnimation); 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); } } if (objRes.opHand != undefined) { testOpHand(objRes.opHand); } if (objRes.opDiscard != undefined) { _root.opDiscard = objRes.opDiscard; } if (objRes.opLife != undefined) { setOpLife(objRes.opLife); } sendStatsUpdate(); break; case "discardCard" : 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); } } if (objRes.opHand != undefined) { testOpHand(objRes.opHand); } if (objRes.opDiscard != undefined) { _root.opDiscard = objRes.opDiscard; } if (objRes.opLife != undefined) { setOpLife(objRes.opLife); } 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(); 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" : 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); } } if (objRes.opHand != undefined) { testOpHand(objRes.opHand); } if (objRes.opDiscard != undefined) { _root.opDiscard = objRes.opDiscard; } if (objRes.opLife != undefined) { setOpLife(objRes.opLife); } if ((!_root.gameisOver) && (_root.waitingOpRes == "counter")) { startTimer(); if (!eval ("myCard" + tablePos[6].idCard).instantEffect) { if ((_root.currentPhase == "equipPhase") && (_root.weaponCardObj)) { 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 = ""; } break; case "gameover" : if (objRes.res == "lose") { gameOver("win"); } else if (objRes.res == "win") { gameOver("lose"); } else if (objRes.res == "draw") { gameOver("draw"); } break; case "newDefeatedStatus" : _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); } _root.myLevel = objRes.newLvl; saveStatsOver("lose"); break; case "player2" : _root.opName = objRes.opName; _root.opLevel = objRes.opLevel; _root.opPicture = objRes.opPicture; _root.opId = objRes.opId; setOpLife(objRes.opLife); _root.opHand = objRes.opHand; _root.opDeck = objRes.opDeck; _root.opDiscard = objRes.opDiscard; loadOpPicture(); players = new Array(1, 2); shuffle(players); if (players[0] == _root.myGameId) { startGame("player2"); } else { startGame("player1"); } break; case "player1" : _root.opName = objRes.opName; _root.opLevel = objRes.opLevel; _root.opPicture = objRes.opPicture; _root.opId = objRes.opId; setOpLife(objRes.opLife); _root.opHand = objRes.opHand; _root.opDeck = objRes.opDeck; _root.opDiscard = objRes.opDiscard; loadOpPicture(); sendJoinGameTo("player2"); 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++; } } 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; gameisOver = false; doubleActionUsed = false; doubleAction = false; antiSpam = false; desperationSong = false; if (inGame) { delete inGame; } if (gameisOver) { delete gameisOver; } if (cardViewNumber) { delete cardViewNumber; } if (opCountdown) { clearInterval(opCountdown); delete opCountdown; } if (countdown) { clearInterval(countdown); delete 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 (saveStats) { delete saveStats.onLoad; delete saveStats; } if (saveBonusCheck) { delete saveBonusCheck; } 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 (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 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 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); if ((_root.myLife <= 0) && (_root.opLife <= 0)) { gameOver("draw"); sendGameOver("draw"); } else if (_root.opLife <= 0) { 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 = 250; bonusCards._y = 250; 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); } saveBonusCheck.load((((((((_root.webpage + "/game/saveBonus.asp?idUser=") + _root.idUser) + "&card1=") + pickedCards[0]) + "&card2=") + pickedCards[1]) + "&rn=") + random(10000)); 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.gameisOver)) && (_root.inGame)) { if ((_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 { saveStats.load((((((_root.webpage + "/game/saveStats.asp?idUser=") + _root.idUser) + "&idLoser=") + _root.opId) + "&rn=") + random(10000)); waitingResponseBox("Saving data. Please wait..."); } } else if (((res == "lose") && (!_root.gameisOver)) && (timer)) { waitingResponseBox("Loading data. Please wait..."); } else if ((res == "draw") && (!_root.gameisOver)) { saveStatsOver("draw"); } _root.gameisOver = true; } 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) { 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(); }; } }; } } function colorize(obj, color) { colorBg = new Color(obj); colorBg.setTransform(color); } function uncolorize(obj) { colorBg = new Color(obj); colorBg.setTransform(uncolor); } function randomize() { return(Math.floor(Math.random() * 3) - 1); } function shuffle(targetArray) { targetArray.sort(randomize); } function waitingResponseBox(msg) { if (timer) { pauseTimer(); } _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 readTestLimitationFunctions(cardObj, func) { cannotUse = false; 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(")")); } if (nameOfFunc == "limitation") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((((param1 == "knight") && (classPos[0].subtype != "Knight")) && (classPos[1].subtype != "Knight")) && (classPos[2].subtype != "Knight")) { cannotUse = true; } if ((((param1 == "gladiator") && (classPos[0].subtype != "Gladiator")) && (classPos[1].subtype != "Gladiator")) && (classPos[2].subtype != "Gladiator")) { cannotUse = true; } if ((((param1 == "sorcerer") && (classPos[0].subtype != "Sorcerer")) && (classPos[1].subtype != "Sorcerer")) && (classPos[2].subtype != "Sorcerer")) { cannotUse = true; } if ((((param1 == "wizard") && (classPos[0].subtype != "Wizard")) && (classPos[1].subtype != "Wizard")) && (classPos[2].subtype != "Wizard")) { cannotUse = true; } if ((((param1 == "hunter") && (classPos[0].subtype != "Hunter")) && (classPos[1].subtype != "Hunter")) && (classPos[2].subtype != "Hunter")) { cannotUse = true; } if ((((param1 == "assassin") && (classPos[0].subtype != "Assassin")) && (classPos[1].subtype != "Assassin")) && (classPos[2].subtype != "Assassin")) { cannotUse = true; } if ((((param1 == "paladin") && (classPos[0].subtype != "Paladin")) && (classPos[1].subtype != "Paladin")) && (classPos[2].subtype != "Paladin")) { cannotUse = true; } if ((((param1 == "monk") && (classPos[0].subtype != "Monk")) && (classPos[1].subtype != "Monk")) && (classPos[2].subtype != "Monk")) { cannotUse = true; } if ((param1 == "no weapon") && (_root.weaponCardObj)) { cannotUse = true; } if ((param1 == "weapon") && (!_root.weaponCardObj)) { cannotUse = true; } if ((param1 == "no shield") && (_root.shieldCardObj)) { cannotUse = true; } if ((param1 == "shield") && (!_root.shieldCardObj)) { cannotUse = true; } if ((param1 == "no armor") && (_root.armorCardObj)) { cannotUse = true; } if ((param1 == "armor") && (!_root.armorCardObj)) { cannotUse = true; } if ((param1 == "no items") && (((_root.armorCardObj || (tablePos[8].used)) || (_root.weaponCardObj)) || (_root.shieldCardObj))) { cannotUse = true; } if ((param1 == "-deck") && (_root.myDeck > Number(param2))) { cannotUse = true; } if ((param1 == "+deck") && (_root.myDeck < Number(param2))) { cannotUse = true; } if ((param1 == "-hand") && (_root.myHand > Number(param2))) { cannotUse = true; } if ((param1 == "+hand") && (_root.myHand < Number(param2))) { cannotUse = true; } if ((param1 == "hand>op") && (_root.myHand <= _root.opHand)) { cannotUse = true; } if ((param1 == "hand<op") && (_root.myHand >= _root.opHand)) { cannotUse = true; } if ((param1 == "-life") && (_root.myLife > Number(param2))) { cannotUse = true; } if ((param1 == "+life") && (_root.myLife < Number(param2))) { cannotUse = true; } if ((param1 == "life>op") && (_root.myLife <= _root.opLife)) { cannotUse = true; } if ((param1 == "life<op") && (_root.myLife >= _root.opLife)) { cannotUse = true; } if ((param1 == "op weapon") && ((opCard2._currentframe != 15) && (opCard4._currentframe != 15))) { cannotUse = true; } if ((param1 == "no op weapon") && ((opCard2._currentframe == 15) || (opCard4._currentframe == 15))) { cannotUse = true; } if ((param1 == "op tapped weapon") && ((((opCard2._currentframe != 15) && (opCard4._currentframe != 15)) || ((opCard2._currentframe == 15) && (!opCard2.tapped))) || ((opCard4._currentframe == 15) && (!opCard4.tapped)))) { cannotUse = true; } if ((param1 == "untapped weapon") && ((!_root.weaponCardObj) || (_root.weaponCardObj.tapped))) { cannotUse = true; } if (((param1 == "book") && (_root.itemCardObj1.subtype != "Book")) && (_root.itemCardObj2.subtype != "Book")) { cannotUse = true; } if (((param1 == "orb") && (_root.itemCardObj1.subtype != "Orb")) && (_root.itemCardObj2.subtype != "Orb")) { cannotUse = true; } if (((param1 == "flask") && (_root.itemCardObj1.subtype != "Flask")) && (_root.itemCardObj2.subtype != "Flask")) { cannotUse = true; } if ((((((((param1 == "wand") || (param1 == "dark wand")) || (param1 == "light wand")) || (param1 == "bow")) || (param1 == "crossbow")) || (param1 == "sword")) || (param1 == "axe")) || (param1 == "mace")) { if (!_root.weaponCardObj) { cannotUse = true; } else if (param1 == "wand") { if (subtype.indexOf("wand") == -1) { cannotUse = true; } } else if (param1 != 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.power; cardObj.powerAdded = 0; } if (cardObj.resistenceAdded > 0) { cardObj.resistenceCount = cardObj.resistence; cardObj.resistenceAdded = 0; } } 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.opWeaponCardObj.unblockable)) { 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.opWeaponCardObj.unblockable)) { 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 < 13) { if (((eval ("myCard" + handPos[i].idCard).model == "ability_defense") && (_root.cannotUseDefenseAbilities == 0)) || ((eval ("myCard" + handPos[i].idCard).model == "spell_defense") && (_root.cannotUseDefenseSpells == 0))) { activate = true; break; } i++; } if (activate) { this.ability.onRelease = function () { abilityResponseBox("defense"); _root.defenseResponse.removeMovieClip(); }; delete activate; } else { colorize(this.ability, disabledColor); } 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(); }; } }; } 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 (_root.cannotAttack > 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; 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 () { 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 () { uncolorize(this); }; eval ("myCard" + idCard).onDragOver = function () { 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); } colorize(this, overCardColor); }; eval ("myCard" + idCard).onRollOut = function () { if ((this.model == "armor") && (this.currentPos == "tablePos")) { this.swapDepths(this.oldDepth_mo); } 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"; if (eval ("myCards.subtype" + idCard) == "Usage") { eval ("myCard" + idCard).phaseUsage2 = "equipPhase"; } } else { eval ("myCard" + idCard).phaseUsage = "opAction"; } } else { eval ("myCard" + idCard).phaseUsage = "equipPhase"; } 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 () { uncolorize(this); }; opCard7.onDragOver = function () { colorize(this, overCardColor); }; opCard7.onRollOver = function () { colorize(this, overCardColor); }; opCard7.onRollOut = function () { uncolorize(this); }; opCard7._x = tablePos[7].xPos; opCard7._y = tablePos[7].yPos; } function createOpCardObj(idCard, cardName, model, frame, picture, posNumber, power, resistence, attackCounts, tapped, type, subtype, textFunc, artist, collection, rarity, playfunc1, playfunc2, playfunc3, playfunc4, playfunc5, playfunc6, attackedbyfunc1, attackedbyfunc2, attackfunc1, attackfunc2, attackblockfunc1, attackblockfunc2, itemblockfunc1, itemblockfunc2, opdrawfunc1, opdrawfunc2, 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; } 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).opdrawfunc1 = opdrawfunc1; eval ("opCard" + posNumber).opdrawfunc2 = opdrawfunc2; 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 () { uncolorize(this); }; eval ("opCard" + posNumber).onDragOver = function () { colorize(this, overCardColor); }; eval ("opCard" + posNumber).onRollOver = function () { if (playSounds) { mouseover.start(); } if (this.posNumber == 3) { this.oldDepth_mo = this.getDepth(); this.swapDepths(250); } colorize(this, overCardColor); }; eval ("opCard" + posNumber).onRollOut = function () { if (this.posNumber == 3) { this.swapDepths(this.oldDepth_mo); } 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).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 = power; eval ("opCard" + posNumber).resistenceCount = resistence; } 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 >= 550) { stopOpTimer(); gameOver("win"); sendGameOver("win"); } } timer.opTimer = 0; opCountdown = setInterval(updateOpTimer, 350); } function stopOpTimer() { timer.opTimer = 0; clearInterval(opCountdown); } function startTimer(speed) { function updateTimer() { timer.gotoAndStop(timer._currentframe + 1); if (timer._currentframe >= 240) { pauseTimer(); gameOver("lose"); sendGameOver("lose"); } } if (speed == "fast") { countdown = setInterval(updateTimer, 220); } else { countdown = setInterval(updateTimer, 350); } } function pauseTimer() { clearInterval(countdown); } function resetAndStopTimer() { timer.gotoAndStop(1); 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 ((((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(); } }; 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") { if (_root.myLife > 0) { if (_root.skipDrawPhase == 0) { drawCards(1); } if (!_root.weaponCardObj.doesNotUntap) { untap(_root.weaponCardObj); } if (!_root.gameisOver) { if (playSounds) { myturn.start(); } phaseChange("equipPhase", "my"); autoMsg("Your turn."); sendPhase(phase, _root.weaponCardObj); } } } else if (phase == "endPhase") { if (_root.weaponCardObj) { removeTurnModifier(_root.weaponCardObj); } if (_root.shieldCardObj) { removeTurnModifier(_root.shieldCardObj); } if (_root.armorCardObj) { removeTurnModifier(_root.armorCardObj); } if (_root.skipDrawPhase > 0) { _root.skipDrawPhase--; } 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.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.cannotAttack > 0) { _root.cannotAttack--; } if (_root.cannotBlock > 0) { _root.cannotBlock--; } 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.cannotUseDefenseAbilities > 0) { _root.cannotUseDefenseAbilities--; } if (_root.cannotUseDefenseSpells > 0) { _root.cannotUseDefenseSpells--; } 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.doubleActionUsed) { _root.doubleActionUsed = false; } _root.myLastDamage = 0; _root.attackBlocked = false; if (_root.myHand > _root.myMaxHand) { _root.cardsToDiscard = _root.myHand - _root.myMaxHand; waitingDiscardBox(_root.cardsToDiscard); if (cardObj) { sendPhase(phase, cardObj, "playCard"); } else { sendPhase(phase); } } else { resetAndStopTimer(); phaseChange("drawPhase", "op"); autoMsg(opName + "'s turn."); if (cardObj) { sendPhase("opTurn", cardObj, "playCard"); } else { sendPhase("opTurn"); } } } else if (phase == "attackPhase") { attackResponseBox(); if (cardObj) { sendPhase(phase, cardObj, "playCard"); } else { sendPhase(phase); } } else { if ((phase == "equipPhase") && (_root.myLife > 0)) { startTimer(); } if (cardObj) { sendPhase(phase, cardObj, "playCard"); } else { sendPhase(phase); } eval ("myPhases." + phase).useHandCursor = true; eval ("myPhases." + phase).onRelease = function () { switch (this._name) { case "equipPhase" : if (_root.weaponCardObj && (!_root.weaponCardObj.tapped)) { phaseChange("attackPhase", "my"); } else { phaseChange("spellPhase", "my"); } break; case "spellPhase" : phaseChange("endPhase", "my"); } }; } } } }; if ((_root.currentPlayerTurn == "my") && (phase != "endPhase")) { eval ("myPhases." + _root.currentPhase).useHandCursor = false; } _root.currentPhase = phase; _root.currentPlayerTurn = player; } function discardCard(cardObj) { arrangeHand(cardObj); cardObj._alpha = 0; _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(); 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.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(); } }; } 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) { sendRemoveCard(cardObj, funcTrigger, destroyedByOp); if (!funcTrigger) { colorize(cardObj, overCardColor); cardObj.fadeStart = Math.round(getTimer() / 10); cardObj.onEnterFrame = function () { fadeEnd = Math.round(getTimer() / 10) - this.fadeStart; cardObj._alpha = 100 - fadeEnd; if (fadeEnd >= 100) { uncolorize(this); delete this.fadeStart; delete fadeEnd; delete this.onEnterFrame; fadeOutCard(cardObj, funcTrigger); } }; } else { fadeOutCard(cardObj, funcTrigger); } if (cardObj.posNumber != 6) { cardObj.resistenceCount = 0; } } function fadeOutCard(cardObj, funcTrigger) { if (funcTrigger) { solveRemoveFunctions(cardObj); } addModifiers(_root.weaponCardObj); addModifiers(_root.shieldCardObj); addModifiers(_root.armorCardObj); untap(cardObj); pos = cardObj.posNumber; cardObj._alpha = 0; cardObj.powerCount = cardObj.power; cardObj.resistenceCount = cardObj.resistence; 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); removeMovieClip("temp_" + cardObj._name); cardObj.removeMovieClip(); } function removeOpCard(posNumber, removefunc1, removefunc2, removefunc3, destroyfunc1, destroyfunc2, noAnimation) { eval ("opCard" + posNumber).idCard = 0; if (!noAnimation) { if (eval ("opCard" + posNumber).resistenceCount < 0) { eval ("opCard" + posNumber).resistenceCount = 0; } 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); } readOpFunctions(removefunc1); readOpFunctions(removefunc2); readOpFunctions(removefunc3); readOpFunctions(destroyfunc1); readOpFunctions(destroyfunc2); } 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); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, abilityTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_Ability); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, abilityTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_Ability); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, abilityTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_Ability); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, abilityTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_Ability); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, abilityTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_Ability); 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); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, darkSpellTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_DarkSpell); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, darkSpellTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_DarkSpell); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, darkSpellTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_DarkSpell); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, darkSpellTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_DarkSpell); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, darkSpellTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_DarkSpell); 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); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, lightSpellTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_LightSpell); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, lightSpellTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_LightSpell); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, lightSpellTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_LightSpell); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, lightSpellTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_LightSpell); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, lightSpellTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_LightSpell); 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); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, natureSpellTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_NatureSpell); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, natureSpellTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_NatureSpell); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, natureSpellTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_NatureSpell); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, natureSpellTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_NatureSpell); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, natureSpellTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_NatureSpell); 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; } } 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; 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); } else { phaseChange("endPhase", "my", cardObj); } delete stayPut; } else { 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 (_root.weaponCardObj && ((cardObj != _root.weaponCardObj) || (cardObj.fastStrike == true))) { phaseChange("attackPhase", "my", cardObj); } else { phaseChange("spellPhase", "my", cardObj); } } else { if ((cardObj == _root.weaponCardObj) && (!cardObj.fastStrike)) { _root.cannotAttack++; } sendPlayCard(cardObj); } } } function useAbility(cardObj, from) { arrangeHand(cardObj); 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") { if (_root.currentPhase == "attackPhase") { sendCounterAbility(cardObj, "attack"); } else { sendCounterAbility(cardObj, "ability"); } } else { addModifiers(cardObj); sendAbility(cardObj); } } function clickCard() { 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)) { 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)) { uncolorize(obj); delete obj.colored; if (_root.currentOver == obj) { delete _root.currentOver; } if (_root.currentBelow) { delete _root.currentBelow; } } } 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 == "myBackground") && ((this.type == "Class") || (this.type == "Subclass"))) && (_root.currentClass == "Average")) { playCardTable(this, tablePos[1], 1); _root.currentClass = this.subtype; } else if ((this.currentPos == "tablePos") && ((this.type == "Class") || (this.type == "Subclass"))) { sendRemoveCard(this, true); returnClassCard(this); } else if (_root.currentOver._name == "myBackground") { 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); } } if (this.currentPos == _root.originalPos) { this._x = _root.currentCardXpos; this._y = _root.currentCardYpos; this.swapDepths(this.oldDepth); } } 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); } } clearGameVariables(); inGame = true; gameChat.htmlText = ""; z = 0; w = 0; i = 0; xPos = 0; yPos = 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 = 13; 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; cannotEquipWeapon = 0; cannotEquipArmor = 0; cannotEquipShield = 0; cannotEquipAmulet = 0; cannotEquipItem = 0; cannotAttack = 0; cannotBlock = 0; cannotUseAbilities = 0; cannotUseUsageAbilities = 0; cannotUseAttackAbilities = 0; cannotUseDefenseAbilities = 0; cannotUseSpells = 0; cannotUseUsageSpells = 0; cannotUseAttackSpells = 0; cannotUseDefenseSpells = 0; abilityTurnPower = 0; darkSpellTurnPower = 0; lightSpellTurnPower = 0; natureSpellTurnPower = 0; instantClassChangeHunter = 0; instantClassChangeAssassin = 0; instantClassChangeKnight = 0; instantClassChangeGladiator = 0; instantClassChangeSorcerer = 0; instantClassChangeWizard = 0; instantClassChangePaladin = 0; instantClassChangeMonk = 0; handDepth = 10; classDepth = 50; playfieldDepth = 200; opPlayfieldDepth = 100; discardDepth = 300; 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; handPos = new Array(); z = 0; while (z < _root.maxHandCards) { if ((z >= 0) && (z < 7)) { xPos = 68 + (52 * z); yPos = 300; } else { xPos = 78 + (52 * (z - 7)); yPos = 310; } 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 = 120; yPos = 175; break; case 2 : xPos = 220; yPos = 180; break; case 3 : xPos = 275; yPos = 170; break; case 4 : xPos = 330; yPos = 180; break; case 5 : xPos = 130; yPos = 190; break; case 6 : xPos = 190; yPos = 120; break; case 7 : xPos = 250; yPos = 100; break; case 8 : xPos = 275; yPos = 195; } tablePos.push(new multiDim(0, "", "", false, _root.playfieldDepth + z, xPos, yPos)); opTablePos.push(new multiDim(0, "", "", false, _root.opPlayfieldDepth + z, xPos, yPos - 130)); z++; } classPos = new Array(); classPos.push(new multiDim(0, "", "", false, _root.classDepth + 1, 10, 167)); classPos.push(new multiDim(0, "", "", false, _root.classDepth + 2, 10, 187)); classPos.push(new multiDim(0, "", "", false, _root.classDepth + 3, 10, 207)); 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; var saveStats = new LoadVars(); saveStats.onLoad = function (success) { if (success) { _root.waitingResponse.removeMovieClip(); sendDefeatedStatus(this.opLevel, this.opXp, this.opXpLost); _root.experience = this.experience; autoMsg(("You gained " + this.xpGained) + " experience points"); if (this.level > _root.myLevel) { autoMsg((("You advanced from level " + _root.myLevel) + " to level ") + this.level); } if (this.bonus) { if (playSounds) { intro.start(); } openBonus(this.idCard1, this.picture1, this.model1, this.idCard2, this.picture2, this.model2, this.idCard3, this.picture3, this.model3, this.idCard4, this.picture4, this.model4, this.idCard5, this.picture5, this.model5); } _root.myLevel = this.level; saveStatsOver("win"); } }; var saveBonusCheck = new LoadVars(); saveBonusCheck.onLoad = function (success) { if (success) { _root.waitingResponse.removeMovieClip(); saveStatsOver("win"); } }; helpButton.onRelease = function () { if (currentPlayerTurn == "my") { switch (currentPhase) { case "equipPhase" : if (currentClass == "Average") { classHelp.swapDepths(_root.getNextHighestDepth()); classHelp.play(); } else if (((!armorCardObj) && (!weaponCardObj)) && (!shieldCardObj)) { handHelp.swapDepths(_root.getNextHighestDepth()); handHelp.play(); equipHelp.swapDepths(_root.getNextHighestDepth()); equipHelp.play(); } else { equipHelp.swapDepths(_root.getNextHighestDepth()); equipHelp.play(); discardHelp.swapDepths(_root.getNextHighestDepth()); discardHelp.play(); } break; case "spellPhase" : spellHelp.swapDepths(_root.getNextHighestDepth()); spellHelp.play(); break; case "endPhase" : if (!waitingDiscard) { break; } discardHelp.swapDepths(_root.getNextHighestDepth()); discardHelp.play(); } } else { opFieldHelp.swapDepths(_root.getNextHighestDepth()); opFieldHelp.play(); } }; var mouseListener = new Object(); mouseListener.onMouseMove = function () { if (_root.dragging._alpha == 100) { trace(_root.dragging.handleType); 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 (((((((_root.currentPhase == _root.dragging.phaseUsage) || (_root.currentPhase == _root.dragging.phaseUsage2)) && (_root.currentPlayerTurn == "my")) && (_root.originalPos != "tablePos")) || ((_root.dragging.phaseUsage == "opAction") && (_root.currentPlayerTurn == "op"))) && (checkClasses(_root.dragging))) && (!testLimitation(_root.dragging))) { if ((((_root.waitingOpRes != "counter") && (!eval ("myCard" + tablePos[6].idCard))) && (myPhases.spellPhase.enabled || (myPhases.equipPhase.enabled))) && (((_root.dragging.model == "ability_usage") && (cannotUseUsageAbilities == 0)) || ((_root.dragging.model == "spell_usage") && (cannotUseUsageSpells == 0)))) { draggingOver(myBackground); } else if ((((_root.waitingOpRes != "counter") && (!eval ("myCard" + tablePos[6].idCard))) && (myPhases.spellPhase.enabled)) && (((_root.dragging.model == "ability_attack") && (cannotUseAttackAbilities == 0)) || ((_root.dragging.model == "spell_attack") && (cannotUseAttackSpells == 0)))) { draggingOver(myBackground); } else if ((_root.abilityResponse && (!opCard7.uncounterable)) && (((_root.dragging.model == "ability_defense") && (cannotUseDefenseAbilities == 0)) || ((_root.dragging.model == "spell_defense") && (cannotUseDefenseSpells == 0)))) { draggingOver(myBackground); } if (_root.dragging.type == "Artifact") { if (((_root.dragging.model == "artifact_amulet") && (!tablePos[8].used)) && (_root.cannotEquipAmulet == 0)) { draggingOver(myBackground); } else if (_root.dragging.handleType == 1) { if ((((_root.dragging.model == "artifact_weapon") && (!_root.weaponCardObj)) && (_root.cannotEquipWeapon == 0)) && ((!tablePos[2].used) || (!tablePos[4].used))) { draggingOver(myBackground); } else if ((((_root.dragging.model == "artifact_shield") && (!_root.shieldCardObj)) && (_root.cannotEquipShield == 0)) && ((!tablePos[2].used) || (!tablePos[4].used))) { draggingOver(myBackground); } else if (((_root.dragging.model == "artifact_item") && (_root.cannotEquipItem == 0)) && ((!tablePos[2].used) || (!tablePos[4].used))) { draggingOver(myBackground); } } else if (((_root.dragging.model == "artifact_weapon") && (_root.cannotEquipWeapon == 0)) && ((!tablePos[2].used) && (!tablePos[4].used))) { draggingOver(myBackground); } else if (((_root.dragging.model == "artifact_shield") && (_root.cannotEquipShield == 0)) && ((!tablePos[2].used) && (!tablePos[4].used))) { draggingOver(myBackground); } else if (((_root.dragging.model == "artifact_item") && (_root.cannotEquipItem == 0)) && ((!tablePos[2].used) && (!tablePos[4].used))) { draggingOver(myBackground); } } else if (((_root.dragging.type == "Armor") && (!tablePos[3].used)) && (_root.cannotEquipArmor == 0)) { draggingOver(myBackground); } else if ((cannotChangeClass == 0) && ((_root.dragging.type == "Class") || (_root.dragging.type == "Subclass"))) { draggingOver(myBackground); draggingOver(classCardsHolder); } } 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(classCardsHolder); } }; var myCards = new LoadVars(); myCards.onLoad = function (success) { if (success) { loadedSong = game_music; if (playMusic) { loadedSong.start(); intervalVal = setInterval(loopSong, 1); } setMyLife(maxLife, true); myDeck = 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]); } z++; } shuffle(deckOrder); shuffle(deckOrder); shuffle(deckOrder); drawCards(5); if (_root.myGameId == 2) { sendJoinGameTo("player1"); } else if (!_root.opHand) { autoMsg("Waiting for opponent..."); } autoMsg("If you don't know what to do during the game you may click on the \"?\" button at anytime."); } 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) { autoMsg("You have no more cards in your deck."); gameOver("lose"); sendGameOver("lose"); return; } w = 0; while (w < _root.maxHandCards) { 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++; } 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) { hitBack = _root.armorCardObj.powerCount + shieldPower; } else { hitBack = _root.armorCardObj.powerCount; } if (_root.armorCardObj.resistenceCount <= 0) { solveDestroyFunctions(_root.armorCardObj); if (attackPhase) { sendSolveAttack(hitBack); } removeCard(_root.armorCardObj); } else if (attackPhase) { sendSolveAttack(hitBack, _root.armorCardObj); } } else { hitBack = shieldPower; newLife = _root.myLife - damage; setMyLife(newLife); if (attackPhase) { sendSolveAttack(hitBack); } } delete hitBack; } 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") { 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 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.currentPlayerTurn == "op") { if (_root.skipDrawPhase < Number(param1)) { _root.skipDrawPhase = Number(param1); } } else if (_root.skipDrawPhase <= Number(param1)) { _root.skipDrawPhase = Number(param1) + 1; } } 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) { 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); _root.currentClass = cardObjTemp.subtype; } } if (nameOfFunc == "unableToBlock") { if (_root.cannotBlock <= Number(param1)) { _root.cannotBlock = Number(param1) + 1; } } if (nameOfFunc == "changeMaxLife") { _root.maxLife = _root.maxLife + Number(param1); if (_root.myLife > _root.maxLife) { loseLife(_root.myLife - _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 == "unableToAttack") { if ((_root.currentPhase == "equipPhase") || (_root.currentPlayerTurn == "op")) { if (_root.cannotAttack < Number(param1)) { _root.cannotAttack = Number(param1); } } else if (_root.cannotAttack <= Number(param1)) { _root.cannotAttack = Number(param1) + 1; } } if (nameOfFunc == "unableToDefenseSpells") { if (_root.cannotUseDefenseSpells <= Number(param1)) { _root.cannotUseDefenseSpells = Number(param1) + 1; } } if (nameOfFunc == "unableToUsageSpells") { if ((_root.currentPhase == "equipPhase") || (_root.currentPlayerTurn == "op")) { if (_root.cannotUseUsageSpells < Number(param1)) { _root.cannotUseUsageSpells = Number(param1); } } else if (_root.cannotUseUsageSpells <= Number(param1)) { _root.cannotUseUsageSpells = Number(param1) + 1; } } if (nameOfFunc == "unableToAttackSpells") { if ((_root.currentPhase == "equipPhase") || (_root.currentPlayerTurn == "op")) { if (_root.cannotUseAttackSpells < Number(param1)) { _root.cannotUseAttackSpells = Number(param1); } } else if (_root.cannotUseAttackSpells <= Number(param1)) { _root.cannotUseAttackSpells = Number(param1) + 1; } } if (nameOfFunc == "unableToDefenseAbilities") { if (_root.cannotUseDefenseAbilities <= Number(param1)) { _root.cannotUseDefenseAbilities = Number(param1) + 1; } } if (nameOfFunc == "unableToUsageAbilities") { if ((_root.currentPhase == "equipPhase") || (_root.currentPlayerTurn == "op")) { if (_root.cannotUseUsageAbilities < Number(param1)) { _root.cannotUseUsageAbilities = Number(param1); } } else if (_root.cannotUseUsageAbilities <= Number(param1)) { _root.cannotUseUsageAbilities = Number(param1) + 1; } } if (nameOfFunc == "unableToAttackAbilities") { if ((_root.currentPhase == "equipPhase") || (_root.currentPlayerTurn == "op")) { if (_root.cannotUseAttackAbilities < Number(param1)) { _root.cannotUseAttackAbilities = Number(param1); } } else if (_root.cannotUseAttackAbilities <= Number(param1)) { _root.cannotUseAttackAbilities = Number(param1) + 1; } } 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 == "handToDeck") { if (param2 == "random") { z = 0; while (z < Number(param1)) { cardToDeck = new Array(_root.myHand); t = 0; while (t < _root.myHand) { cardToDeck[t] = t; t++; } shuffle(cardToDeck); arrangeHand(eval ("myCard" + handPos[cardToDeck[0]].idCard)); _root.deckOrder.push(eval ("myCard" + handPos[cardToDeck[0]].idCard).idCard); delete eval ("myCard" + handPos[cardToDeck[0]].idCard); delete cardToDeck; z++; } } } if (nameOfFunc == "returnToHand") { } if (nameOfFunc == "graveToHand") { z = 0; while (z < Number(param1)) { 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++; } } if (nameOfFunc == "graveToDeck") { z = 0; while (z < Number(param1)) { if (_root.myDiscard > 0) { _root.myDiscard--; _root.myDeck++; if (param2 == "bottom") { _root.deckOrder.push(_root.discardPileArray.shift()); } else if ((param2 == "top") || (!param2)) { _root.deckOrder.push(_root.discardPileArray.pop()); } else if (param2 == "random") { discardPileTemp = _root.discardPileArray.copy(); shuffle(discardPileTemp); _root.deckOrder.push(_root.discardPileTemp.pop()); delete discardPileTemp; } } z++; } } if (nameOfFunc == "gainLife") { gainLife(Number(param1)); } if (nameOfFunc == "loseLife") { if (param2 == "true") { bodyBlock(Number(param1), true); } else { bodyBlock(Number(param1)); } } if (nameOfFunc == "discardCards") { if (param2 == "random") { z = 0; while (z < Number(param1)) { 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++; } } } 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.cannotAttack = _root.cannotAttack + 99999; } else if ((param1 == "attack") && (param2 == "true")) { _root.cannotAttack = _root.cannotAttack - 99999; if (_root.cannotAttack < 0) { _root.cannotAttack = 0; } } if ((param1 == "block") && (param2 == "false")) { _root.cannotBlock = _root.cannotBlock + 99999; } else if ((param1 == "block") && (param2 == "true")) { _root.cannotBlock = _root.cannotBlock - 99999; if (_root.cannotBlock < 0) { _root.cannotBlock = 0; } } if ((param1 == "spells") && (param2 == "false")) { _root.cannotUseUsageSpells = _root.cannotUseUsageSpells + 99999; _root.cannotUseAttackSpells = _root.cannotUseAttackSpells + 99999; _root.cannotUseDefenseSpells = _root.cannotUseDefenseSpells + 99999; } else if ((param1 == "spells") && (param2 == "true")) { _root.cannotUseUsageSpells = _root.cannotUseUsageSpells - 99999; _root.cannotUseAttackSpells = _root.cannotUseAttackSpells - 99999; _root.cannotUseDefenseSpells = _root.cannotUseDefenseSpells - 99999; if (_root.cannotUseUsageSpells < 0) { _root.cannotUseUsageSpells = 0; } if (_root.cannotUseAttackSpells < 0) { _root.cannotUseAttackSpells = 0; } if (_root.cannotUseDefenseSpells < 0) { _root.cannotUseDefenseSpells = 0; } } if ((param1 == "abilities") && (param2 == "false")) { _root.cannotUseUsageAbilities = _root.cannotUseUsageAbilities + 99999; _root.cannotUseAttackAbilities = _root.cannotUseAttackAbilities + 99999; _root.cannotUseDefenseAbilities = _root.cannotUseDefenseAbilities + 99999; } else if ((param1 == "abilities") && (param2 == "true")) { _root.cannotUseUsageAbilities = _root.cannotUseUsageAbilities - 99999; _root.cannotUseAttackAbilities = _root.cannotUseAttackAbilities - 99999; _root.cannotUseDefenseAbilities = _root.cannotUseDefenseAbilities - 99999; if (_root.cannotUseUsageAbilities < 0) { _root.cannotUseUsageAbilities = 0; } if (_root.cannotUseAttackAbilities < 0) { _root.cannotUseAttackAbilities = 0; } if (_root.cannotUseDefenseAbilities < 0) { _root.cannotUseDefenseAbilities = 0; } } if ((param1 == "usage abilities") && (param2 == "false")) { _root.cannotUseUsageAbilities = _root.cannotUseUsageAbilities + 99999; } else if ((param1 == "usage abilities") && (param2 == "true")) { _root.cannotUseUsageAbilities = _root.cannotUseUsageAbilities - 99999; if (_root.cannotUseUsageAbilities < 0) { _root.cannotUseUsageAbilities = 0; } } if ((param1 == "attack abilities") && (param2 == "false")) { _root.cannotUseAttackAbilities = _root.cannotUseAttackAbilities + 99999; } else if ((param1 == "attack abilities") && (param2 == "true")) { _root.cannotUseAttackAbilities = _root.cannotUseAttackAbilities - 99999; if (_root.cannotUseAttackAbilities < 0) { _root.cannotUseAttackAbilities = 0; } } if ((param1 == "defense abilities") && (param2 == "false")) { _root.cannotUseDefenseAbilities = _root.cannotUseDefenseAbilities + 99999; } else if ((param1 == "defense abilities") && (param2 == "true")) { _root.cannotUseDefenseAbilities = _root.cannotUseDefenseAbilities - 99999; if (_root.cannotUseDefenseAbilities < 0) { _root.cannotUseDefenseAbilities = 0; } } if ((param1 == "usage spells") && (param2 == "false")) { _root.cannotUseUsageSpells = _root.cannotUseUsageSpells + 99999; } else if ((param1 == "usage spells") && (param2 == "true")) { _root.cannotUseUsageSpells = _root.cannotUseUsageSpells - 99999; if (_root.cannotUseUsageSpells < 0) { _root.cannotUseUsageSpells = 0; } } if ((param1 == "attack spells") && (param2 == "false")) { _root.cannotUseAttackSpells = _root.cannotUseAttackSpells + 99999; } else if ((param1 == "attack spells") && (param2 == "true")) { _root.cannotUseAttackSpells = _root.cannotUseAttackSpells - 99999; if (_root.cannotUseAttackSpells < 0) { _root.cannotUseAttackSpells = 0; } } if ((param1 == "defense spells") && (param2 == "false")) { _root.cannotUseDefenseSpells = _root.cannotUseDefenseSpells + 99999; } else if ((param1 == "defense spells") && (param2 == "true")) { _root.cannotUseDefenseSpells = _root.cannotUseDefenseSpells - 99999; if (_root.cannotUseDefenseSpells < 0) { _root.cannotUseDefenseSpells = 0; } } } if (nameOfFunc == "double") { if (!_root.doubleActionUsed) { _root.doubleAction = true; _root.doubleActionUsed = true; } } if (nameOfFunc == "untapTurnWeapon") { _root.weaponCardObj.untapable = true; _root.weaponCardObj.untapTurnLimit = true; } if (nameOfFunc == "untapWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((((param1 == "wand") && (subtype.indexOf("wand") != -1)) || (subtype == param1)) || (!param1)) { untapOk = true; } if (_root.weaponCardObj && (untapOk)) { untap(_root.weaponCardObj); } delete untapOk; } if (nameOfFunc == "tapWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param1 == "wand") && (subtype.indexOf("wand") != -1)) { tapOk = true; } if (_root.weaponCardObj && (((subtype == param1) || (!param1)) || (tapOk))) { tap(_root.weaponCardObj); } delete tapOk; } if (nameOfFunc == "untappable") { cardObj.untapable = true; } if (nameOfFunc == "addAttackCounts") { 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") { 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; } } 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 (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if ((!param2) || (subtype == param2)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { if ((param1 == "set opweapon") && (_root.opWeaponCardObj)) { newPowerAdded = cardObjTemp.powerCount - _root.opWeaponCardObj.powerCount; 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 = Number(param1); } else if (param2 == "dark spell") { darkSpellTurnPower = Number(param1); } else if (param2 == "light spell") { lightSpellTurnPower = Number(param1); } else if (param2 == "nature spell") { natureSpellTurnPower = Number(param1); } else if (param2 == "all spells") { darkSpellTurnPower = Number(param1); lightSpellTurnPower = Number(param1); 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 == "armor") { if (_root.armorCardObj) { cardObjTemp = _root.armorCardObj; } } else if ((!param2) || (subtype == param2)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { if ((param1 == "set opweapon") && (_root.opWeaponCardObj)) { if (_root.opWeaponCardObj.resistenceCount < cardObjTemp.resistenceCount) { newResAdded = _root.opWeaponCardObj.resistenceCount - cardObjTemp.resistenceCount; } else { newResAdded = cardObjTemp.resistenceCount - _root.opWeaponCardObj.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); } 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.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); } } } delete type; delete subtype; delete cardObjTemp; delete damage; delete nameOfFunc; delete param1; delete param2; } function changeAttackFunction(func, modNum) { 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 (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") { if (opCard2._currentframe == 15) { hit = opCard2.powerCount; } else if (opCard4._currentframe == 15) { hit = opCard4.powerCount; } } 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") { 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); } 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); } if (cardObj.playfunc2) { readOpFunctions(cardObj.playfunc2); } if (cardObj.playfunc3) { readOpFunctions(cardObj.playfunc3); } if (cardObj.playfunc4) { readOpFunctions(cardObj.playfunc4); } if (cardObj.playfunc5) { readOpFunctions(cardObj.playfunc5); } if (cardObj.playfunc6) { readOpFunctions(cardObj.playfunc6); } } 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 readOpFunctions(func) { 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)); } } 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 == "returnOpClass") { if (_root.classCardObj) { sendRemoveCard(_root.classCardObj); returnClassCard(_root.classCardObj); } } if (nameOfFunc == "tapOpWeapon") { tap(_root.weaponCardObj); } if (nameOfFunc == "opCannotChangeClass") { _root.cannotChangeClass = Number(param1); } if (nameOfFunc == "opMustAttack") { _root.mustAttack = Number(param1); } if (nameOfFunc == "changeOpMaxLife") { _root.maxLife = _root.maxLife + Number(param1); if (_root.myLife > _root.maxLife) { loseLife(_root.myLife - _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") { z = 0; while (z < Number(param1)) { 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++; } } } 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.currentPlayerTurn == "op") { if (_root.skipDrawPhase < Number(param1)) { _root.skipDrawPhase = Number(param1); } } else if (_root.skipDrawPhase <= Number(param1)) { _root.skipDrawPhase = Number(param1) + 1; } } if (nameOfFunc == "opCannotAttack") { if ((_root.currentPhase == "equipPhase") || (_root.currentPlayerTurn == "op")) { if (_root.cannotAttack < Number(param1)) { _root.cannotAttack = Number(param1); } } else if (_root.cannotAttack <= Number(param1)) { _root.cannotAttack = Number(param1) + 1; } } if (nameOfFunc == "opCannotBlock") { if ((_root.currentPhase == "equipPhase") && (_root.currentPlayerTurn == "op")) { if (_root.cannotBlock <= Number(param1)) { _root.cannotBlock = Number(param1); } } else if (_root.cannotBlock <= Number(param1)) { _root.cannotBlock = Number(param1) + 1; } } if (nameOfFunc == "opCannotDefenseSpell") { if ((_root.currentPhase == "equipPhase") && (_root.currentPlayerTurn == "op")) { if (_root.cannotUseDefenseSpells <= Number(param1)) { _root.cannotUseDefenseSpells = Number(param1); } } else if (_root.cannotUseDefenseSpells <= Number(param1)) { _root.cannotUseDefenseSpells = Number(param1) + 1; } } if (nameOfFunc == "opCannotAttackSpell") { if (((_root.currentPhase == "equipPhase") || (_root.currentPhase == "attackPhase")) || (_root.currentPlayerTurn == "op")) { if (_root.cannotUseAttackSpells < Number(param1)) { _root.cannotUseAttackSpells = Number(param1); } } else if (_root.cannotUseAttackSpells <= Number(param1)) { _root.cannotUseAttackSpells = Number(param1) + 1; } } if (nameOfFunc == "opCannotUsageSpell") { if (((_root.currentPhase == "equipPhase") || (_root.currentPhase == "attackPhase")) || (_root.currentPlayerTurn == "op")) { if (_root.cannotUseUsageSpells < Number(param1)) { _root.cannotUseUsageSpells = Number(param1); } } else if (_root.cannotUseUsageSpells <= Number(param1)) { _root.cannotUseUsageSpells = Number(param1) + 1; } } if (nameOfFunc == "opCannotDefenseAbility") { if ((_root.currentPhase == "equipPhase") && (_root.currentPlayerTurn == "op")) { if (_root.cannotUseDefenseAbilities <= Number(param1)) { _root.cannotUseDefenseAbilities = Number(param1); } } else if (_root.cannotUseDefenseAbilities <= Number(param1)) { _root.cannotUseDefenseAbilities = Number(param1) + 1; } } if (nameOfFunc == "opCannotAttackAbility") { if (((_root.currentPhase == "equipPhase") || (_root.currentPhase == "attackPhase")) || (_root.currentPlayerTurn == "op")) { if (_root.cannotUseAttackAbilities < Number(param1)) { _root.cannotUseAttackAbilities = Number(param1); } } else if (_root.cannotUseAttackAbilities <= Number(param1)) { _root.cannotUseAttackAbilities = Number(param1) + 1; } } if (nameOfFunc == "opCannotUsageAbility") { if (((_root.currentPhase == "equipPhase") || (_root.currentPhase == "attackPhase")) || (_root.currentPlayerTurn == "op")) { if (_root.cannotUseUsageAbilities < Number(param1)) { _root.cannotUseUsageAbilities = Number(param1); } } else if (_root.cannotUseUsageAbilities <= Number(param1)) { _root.cannotUseUsageAbilities = Number(param1) + 1; } } 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; } 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); classHelp.helpTextVar = "You are currently as Average Class. In order to play a card that requires a class, you must play that class card first."; classHelp.stop(); discardHelp.helpTextVar = "To discard a card, just drag it here. You can also discard items from your playfield during your equip phase."; discardHelp.stop(); handHelp.helpTextVar = "These are the cards in your hand. In order to play them, you must be in the right phase with the right class card."; handHelp.stop(); opFieldHelp.helpTextVar = "Its your opponent's turn. You can see what they are doing on this side of the screen."; opFieldHelp.stop(); equipHelp.helpTextVar = "You are in your equip phase. If you can't play a card or just want to skip it, click on this icon."; equipHelp.stop(); spellHelp.helpTextVar = "You are in your spell/ability phase. If you can't play a card or just want to skip it, click on this icon."; spellHelp.stop(); resetAndStopTimer(); autoMsg("Loading cards..."); myCards.load((_root.webpage + "/game/loadDeck.asp?userId=") + _root.idUser); Selection.setFocus(msgBox);
Instance of Symbol 423 MovieClip [UIScrollBar] "gameChatSb" in Frame 8
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Frame 9
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.attachMovie("deckList", "deckList", _root.confirmBoxDepth + 1); deckList._x = 319; deckList._y = 210; deckList.attachMovie("comboBox", "comboBx", _root.confirmBoxDepth + 2); deckList.comboBx._x = -48; deckList.comboBx._y = -15; deckList.comboBx._xscale = 115; deckList.comboBx.setStyle("backgroundColor", 0); deckList.comboBx.setStyle("borderStyle", "none"); deckList.comboBx.setStyle("color", 16777215); deckList.comboBx.setStyle("selectionColor", "none"); deckList.comboBx.setStyle("rollOverColor", "none"); deckList.comboBx.setStyle("textRollOverColor", 16763904); deckList.comboBx.setStyle("textSelectedColor", 16763904); deckList.comboBx.dataProvider = _root.deckNameList; deckList.loadDeckButton.onRelease = function () { if (deckList.comboBx.selectedItem != "[Select a Deck]") { _root.loadedDeck = deckList.comboBx.selectedItem; okCancelResponseBlackBox("loadFromManager"); this._parent.removeMovieClip(); } }; deckList.cancelButton.onRelease = function () { this._parent.removeMovieClip(); }; } }; newDeck.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { okCancelResponseBlackBox("newFromManager"); } }; deleteDeck.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { if (deckName) { okCancelResponseBlackBox("deleteFromManager"); } } }; tradeManager.onRelease = function () { openPage("trade/tradeMarket.asp"); }; mainMenuManager.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { okCancelResponseBlackBox("menuFromManager"); } }; logoutManager.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { okCancelResponseBlackBox("logoutFromManager"); } }; i = 0; h = 1; w = 1; currentPage = 0; loop = 0; cardNum = 0; totalCards = 0; cardsInDeck = 0; classesInDeck = 0; numCardsLoaded = 0; imagesLoaded = 0; if (loadString) { delete loadString; } if (myManagerCards) { delete myManagerCards; } if (mclistener) { delete mclistener; } loadingMsg = "Loading cards..."; var myManagerCards = new LoadVars(); myManagerCards.onLoad = function (success) { if (success) { i = 0; h = 1; w = 1; imagesLoaded = 0; currentPage = 0; numCardsLoaded = 0; loop = 0; cardNum = this.cardNum; totalCards = this.totalCards; cardsInDeck = this.cardsInDeck; classesInDeck = this.classesInDeck; deckName = this.deckName; lastPageCards = cardNum % 24; if (lastPageCards == 0) { lastPageCards = 24; } deckNameList = this.deckNameList.split(","); sendDeck.deckArray = Array(); if (deckName) { sendDeck.deckArray = this.deckArray.split(","); } 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; if (!deckName) { deckNameInput.text = ""; deckNameInput.type = "dynamic"; deckNameInput.selectable = false; renameButton.enabled = false; renameButton._alpha = 0; renameButton.renameTxt.text = ""; setDefaultButton.enabled = false; deckNameBG._alpha = 0; setDefaultButton.defaultTxt.text = ""; setDefaultButton._alpha = 0; } else { deckNameInput.text = deckName; deckNameInput.type = "input"; deckNameInput.selectable = true; renameButton.enabled = true; renameButton._alpha = 100; renameButton.renameTxt.text = "Rename"; setDefaultButton.enabled = true; deckNameBG._alpha = 100; setDefaultButton.gotoAndStop(1); setDefaultButton.defaultTxt.text = "Set as Default"; setDefaultButton._alpha = 100; } if (myManagerCards.defaultDeck) { if (_root.noDeck) { delete _root.noDeck; } setDefaultButton.enabled = false; setDefaultButton.gotoAndStop(2); setDefaultButton.defaultTxt.text = "Default Deck"; } } else { _root.loadingMsg = "Server Unavaliable"; } }; var sendDeck = new LoadVars(); var saveDeckURL = new LoadVars(); saveDeckURL.onLoad = function (success) { if (success) { _root.deckNameInput.text = _root.deckName; if (_root.deckNameList.indexOf(_root.deckName) == -1) { _root.deckNameList.push(_root.deckName); } deckNameInput.type = "input"; deckNameInput.selectable = true; renameButton.enabled = true; renameButton._alpha = 100; renameButton.renameTxt.text = "Rename"; if (this.defaultDeck) { myManagerCards.defaultDeck = true; } if (!myManagerCards.defaultDeck) { setDefaultButton.enabled = true; setDefaultButton._alpha = 100; setDefaultButton.gotoAndStop(1); setDefaultButton.defaultTxt.text = "Set as Default"; } else { if (_root.noDeck) { delete _root.noDeck; } setDefaultButton.enabled = false; setDefaultButton._alpha = 100; setDefaultButton.gotoAndStop(2); setDefaultButton.defaultTxt.text = "Default Deck"; } 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) { setDefaultButton.enabled = true; } renameButton.enabled = true; _root.deckNameList[deckNameList.indexOf(_root.deckName)] = deckNameInput.text; _root.deckName = deckNameInput.text; renameButton.renameTxt.text = "Rename"; } }; var setDefaultURL = new LoadVars(); setDefaultURL.onLoad = function (success) { if (success) { if (_root.noDeck) { delete _root.noDeck; } renameButton.enabled = true; setDefaultButton.gotoAndStop(2); setDefaultButton.defaultTxt.text = "Default Deck"; } }; var deleteDeckURL = new LoadVars(); deleteDeckURL.onLoad = function (success) { if (success) { if (myManagerCards.defaultDeck) { _root.noDeck = true; } deleteDeckBox.removeMovieClip(); reloadCardManager("new"); } }; if (!loadString) { myManagerCards.load((((webpage + "/managerFiles/loadMyCards.asp?idUser=") + idUser) + "&loadedDeck=default&rn=") + random(10000)); } function colorize(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.attachMovie("cardInfo", "cardInfo", 999999); cardInfo._x = 320; cardInfo._y = 220; cardInfo.cardName.text = obj.cardName; cardInfo.textFunc.htmlText = obj.textFunc; cardInfo.textFunc.autoSize = true; if (obj.textFunc.substring(0, 3) == "[9]") { cardInfo.textFunc.htmlText = obj.textFunc.substr(3); } cardInfo.typeAndSub.text = obj.typeAndSub; if (obj.powAndRes != "0/0") { cardInfo.powAndRes.text = obj.powAndRes; } if (Number(obj.handle) > 0) { cardInfo.handle.text = "Handle: " + obj.handle; } actualLoc = 1; location_x = -56; location_y = -42; 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 uncolorize(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 () { uncolorize(this._parent); }; eval ("card" + cardPos).hit.onDragOver = function () { colorize(this._parent, overCardColor); }; eval ("card" + cardPos).hit.onRollOver = function () { colorize(this._parent, overCardColor); }; eval ("card" + cardPos).hit.onRollOut = function () { uncolorize(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 (cardObj.idCard <= 9) { cardObj.deck.text = deck + 1; myManagerCards["deck" + cardObj.idPos] = deck + 1; sendDeck.deckArray.push(cardObj.idMyCards[deck]); classesInDeck++; } else if (cardsInDeck >= 60) { 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]); break; } i--; } cardObj.deck.text = deck + 1; myManagerCards["deck" + cardObj.idPos] = deck + 1; cardsInDeck++; } } } function removeDeckCard(cardObj) { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { deck = Number(cardObj.deck.text); if ((deck > 0) && (cardObj.idCard <= 9)) { cardObj.deck.text = deck - 1; myManagerCards["deck" + cardObj.idPos] = deck - 1; classesInDeck--; i = 0; while (i <= (cardObj.idMyCards.length - 1)) { if (sendDeck.deckArray.indexOf(cardObj.idMyCards[i]) != -1) { sendDeck.deckArray.splice(sendDeck.deckArray.indexOf(cardObj.idMyCards[i]), 1); break; } i++; } } else if (deck > 0) { cardObj.deck.text = deck - 1; myManagerCards["deck" + cardObj.idPos] = deck - 1; cardsInDeck--; i = cardObj.idMyCards.length - 1; while (i >= 0) { if (sendDeck.deckArray.indexOf(cardObj.idMyCards[i]) != -1) { sendDeck.deckArray.splice(sendDeck.deckArray.indexOf(cardObj.idMyCards[i]), 1); break; } i--; } } } } function deleteDeckLoaded() { _root.attachMovie("deleteDeckBox", "deleteDeckBox", _root.confirmBoxDepth + 1); deleteDeckBox._x = 319; deleteDeckBox._y = 210; 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) { if (deck == "new") { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } _root.loadString = (((webpage + "/managerFiles/loadMyCards.asp?idUser=") + idUser) + "&rn=") + random(10000); } else if (deck == "load") { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } _root.loadString = (((((webpage + "/managerFiles/loadMyCards.asp?idUser=") + idUser) + "&loadedDeck=") + _root.loadedDeck) + "&rn=") + random(10000); } for (var dataLoaded in myManagerCards) { if (dataLoaded != "onLoad") { delete myManagerCards[dataLoaded]; } } for (var dataLoaded in sendDeck) { if (dataLoaded != "onLoad") { delete sendDeck[dataLoaded]; } } myManagerCards.load(loadString); loadingMsg = "Loading cards..."; } var mclistener = new Object(); mclistener.onLoadComplete = function (pic) { if ((pic._name = "pictureClip")) { _root.imagesLoaded++; if (_root.imagesLoaded >= (loop - 1)) { _root.loadingMsg = ""; if (_root.cardNum <= 24) { buttonPrevious.enabled = false; buttonNext.enabled = false; _root.numCardsLoaded = _root.cardNum; } else { 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); } } }; buttonNext.onRelease = function () { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { _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; buttonPrevious.enabled = false; buttonNext.enabled = false; } }; buttonPrevious.onRelease = function () { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { _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; 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 == "") { renameButton.renameTxt.text = "Saving..."; renameDeckURL.load((((((((((webpage + "/managerFiles/renameDeck.asp?idUser=") + idUser) + "&oldName=") + _root.deckName) + "&newName=") + deckNameInput.text) + "&defaultDeck=") + myManagerCards.defaultDeck) + "&rn=") + random(10000)); renameButton.enabled = false; setDefaultButton.enabled = false; } }; setDefaultButton.onRelease = function () { if (loadingMsg == "") { setDefaultButton.defaultTxt.text = "Saving..."; setDefaultURL.load((((((webpage + "/managerFiles/defaultDeck.asp?idUser=") + idUser) + "&deckName=") + _root.deckName) + "&rn=") + random(10000)); renameButton.enabled = false; setDefaultButton.enabled = false; } }; buttonPrevious.enabled = false; buttonNext.enabled = false; warningText.stop(); setDefaultButton.stop(); onEnterFrame = function () { if (loadedSong.getVolume() > 0) { loadedSong.setVolume(loadedSong.getVolume() - 4); } else if (playMusic) { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = lobby_music; loadedSong.start(); intervalVal = setInterval(loopSong, 1); delete this.onEnterFrame; } }; if (smartfox.activeRoomId != managerRoomID) { smartfox.joinRoom(managerRoomID); }
Instance of Symbol 423 MovieClip [UIScrollBar] "chatboxSb" in Frame 9
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 71 MovieClip [viewCard] Frame 1
stop();
Symbol 122 MovieClip [cardInfo] Frame 60
stop();
Symbol 230 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 243 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 250 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 271 MovieClip [BtnDownArrow] Frame 1
#initclip 80 Object.registerClass("BtnDownArrow", mx.controls.SimpleButton); #endinitclip
Symbol 272 MovieClip [BtnUpArrow] Frame 1
#initclip 79 Object.registerClass("BtnUpArrow", mx.controls.SimpleButton); #endinitclip
Symbol 335 MovieClip [DataProvider] Frame 1
#initclip 50 Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider); #endinitclip stop();
Symbol 336 MovieClip [DataSelector] Frame 1
#initclip 51 Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector); #endinitclip stop();
Symbol 337 MovieClip [Defaults] Frame 1
#initclip 52 Object.registerClass("Defaults", mx.skins.halo.Defaults); #endinitclip
Symbol 338 MovieClip [UIObjectExtensions] Frame 1
#initclip 53 Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions); #endinitclip
Symbol 339 MovieClip [UIObject] Frame 1
#initclip 54 Object.registerClass("UIObject", mx.core.UIObject); #endinitclip stop();
Symbol 342 Button
on (keyPress "<Tab>") { this.tabHandler(); }
Symbol 343 MovieClip Frame 1
#initclip 55 Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } #endinitclip
Symbol 344 MovieClip [FocusRect] Frame 1
#initclip 56 Object.registerClass("FocusRect", mx.skins.halo.FocusRect); #endinitclip
Symbol 345 MovieClip [FocusManager] Frame 1
#initclip 57 Object.registerClass("FocusManager", mx.managers.FocusManager); #endinitclip stop();
Symbol 346 MovieClip [UIComponentExtensions] Frame 1
#initclip 58 Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions); #endinitclip
Symbol 347 MovieClip [UIComponent] Frame 1
#initclip 59 Object.registerClass("UIComponent", mx.core.UIComponent); #endinitclip stop();
Symbol 348 MovieClip [SelectableRow] Frame 1
#initclip 60 Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow); #endinitclip stop();
Symbol 350 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 352 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 355 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 357 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 360 MovieClip [SimpleButton] Frame 1
#initclip 61 Object.registerClass("SimpleButton", mx.controls.SimpleButton); #endinitclip stop();
Symbol 361 MovieClip [Border] Frame 1
#initclip 62 Object.registerClass("Border", mx.skins.Border); #endinitclip stop();
Symbol 362 MovieClip [RectBorder] Frame 1
#initclip 63 mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass("RectBorder", mx.skins.halo.RectBorder); #endinitclip stop();
Symbol 363 MovieClip [ButtonSkin] Frame 1
#initclip 64 Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin); #endinitclip
Symbol 364 MovieClip [Button] Frame 1
#initclip 65 Object.registerClass("Button", mx.controls.Button); #endinitclip stop();
Instance of Symbol 360 MovieClip [SimpleButton] in Symbol 364 MovieClip [Button] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 365 MovieClip [CustomBorder] Frame 1
#initclip 66 Object.registerClass("CustomBorder", mx.skins.CustomBorder); mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder); #endinitclip
Symbol 366 MovieClip [HScrollBar] Frame 1
#initclip 67 Object.registerClass("HScrollBar", mx.controls.HScrollBar); #endinitclip stop();
Instance of Symbol 364 MovieClip [Button] in Symbol 366 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 360 MovieClip [SimpleButton] in Symbol 366 MovieClip [HScrollBar] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 367 MovieClip [VScrollBar] Frame 1
#initclip 68 Object.registerClass("VScrollBar", mx.controls.VScrollBar); #endinitclip stop();
Instance of Symbol 364 MovieClip [Button] in Symbol 367 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 360 MovieClip [SimpleButton] in Symbol 367 MovieClip [VScrollBar] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 368 MovieClip [View] Frame 1
#initclip 69 Object.registerClass("View", mx.core.View); #endinitclip stop();
Symbol 369 MovieClip [ScrollView] Frame 1
#initclip 70 Object.registerClass("ScrollView", mx.core.ScrollView); #endinitclip stop();
Instance of Symbol 366 MovieClip [HScrollBar] in Symbol 369 MovieClip [ScrollView] Frame 2
//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 367 MovieClip [VScrollBar] in Symbol 369 MovieClip [ScrollView] Frame 2
//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 370 MovieClip [ScrollSelectList] Frame 1
#initclip 71 Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList); #endinitclip stop();
Symbol 371 MovieClip [List] Frame 1
#initclip 72 Object.registerClass("List", mx.controls.List); #endinitclip stop();
Symbol 405 MovieClip [TextInput] Frame 1
#initclip 73 Object.registerClass("TextInput", mx.controls.TextInput); #endinitclip stop();
Symbol 406 MovieClip [ComboBase] Frame 1
#initclip 74 mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype); Object.registerClass("ComboBase", mx.controls.ComboBase); #endinitclip stop();
Instance of Symbol 360 MovieClip [SimpleButton] in Symbol 406 MovieClip [ComboBase] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 405 MovieClip [TextInput] in Symbol 406 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 413 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 75 Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton); #endinitclip
Symbol 415 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 418 MovieClip [ComboAssets] Frame 1
#initclip 76 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); }; #endinitclip
Symbol 419 MovieClip [ComboBox] Frame 1
#initclip 77 Object.registerClass("ComboBox", mx.controls.ComboBox); #endinitclip stop();
Instance of Symbol 371 MovieClip [List] in Symbol 419 MovieClip [ComboBox] Frame 2
//component parameters onClipEvent (initialize) { multipleSelection = false; rowHeight = 20; }
Symbol 423 MovieClip [UIScrollBar] Frame 1
#initclip 78 Object.registerClass("UIScrollBar", mx.controls.UIScrollBar); #endinitclip stop();
Instance of Symbol 367 MovieClip [VScrollBar] in Symbol 423 MovieClip [UIScrollBar] Frame 2
//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 366 MovieClip [HScrollBar] in Symbol 423 MovieClip [UIScrollBar] Frame 2
//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 387 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class 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 940 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd { function MochiAd () { } static function getVersion() { return("1.5"); } static function showPreloaderAd(options) { var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }}; options = _parseOptions(options, _local27); var clip = options.clip; var _local23 = 11000; var _local26 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local14 = _getRes(options); var _local4 = _local14[0]; var _local13 = _local14[1]; mc._x = _local4 * 0.5; mc._y = _local13 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk._x = _local4 * -0.5; chk._y = _local13 * -0.5; var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4); _local7._x = 10; _local7._y = _local13 - 20; var _local22 = options.color; delete options.color; var _local19 = options.background; delete options.background; var _local24 = options.outline; delete options.outline; var _local5 = _local7.createEmptyMovieClip("_outline", 1); _local5.beginFill(_local19); _local5.moveTo(0, 0); _local5.lineTo(_local4 - 20, 0); _local5.lineTo(_local4 - 20, 10); _local5.lineTo(0, 10); _local5.lineTo(0, 0); _local5.endFill(); var _local3 = _local7.createEmptyMovieClip("_inside", 2); _local3.beginFill(_local22); _local3.moveTo(0, 0); _local3.lineTo(_local4 - 20, 0); _local3.lineTo(_local4 - 20, 10); _local3.lineTo(0, 10); _local3.lineTo(0, 0); _local3.endFill(); _local3._xscale = 0; var _local6 = _local7.createEmptyMovieClip("_outline", 3); _local6.lineStyle(0, _local24, 100); _local6.moveTo(0, 0); _local6.lineTo(_local4 - 20, 0); _local6.lineTo(_local4 - 20, 10); _local6.lineTo(0, 10); _local6.lineTo(0, 0); chk.ad_msec = _local23; chk.ad_timeout = _local26; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.adLoaded = function (width, height) { }; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = msec; }; chk.onEnterFrame = function () { var _local6 = this._parent._parent; var _local12 = this._parent._mochiad_ctr; var _local5 = getTimer() - this.started; var _local3 = false; var _local4 = _local6.getBytesTotal(); var _local8 = _local6.getBytesLoaded(); var _local10 = (100 * _local8) / _local4; var _local11 = (100 * _local5) / chk.ad_msec; var _local9 = this._mochiad_bar._inside; var _local2 = Math.min(100, Math.min(_local10 || 0, _local11)); _local2 = Math.max(this.last_pcnt, _local2); this.last_pcnt = _local2; _local9._xscale = _local2; if (!chk.showing) { var _local7 = _local12.getBytesTotal(); if ((_local7 > 0) || (typeof(_local7) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (_local5 > chk.ad_timeout) { _local3 = true; } } if (_local5 > chk.ad_msec) { _local3 = true; } if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; } static function showTimedAd(options) { var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }}; options = _parseOptions(options, _local13); var clip = options.clip; var _local10 = 11000; var _local12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local5 = _getRes(options); var _local14 = _local5[0]; var _local11 = _local5[1]; mc._x = _local14 * 0.5; mc._y = _local11 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_msec = _local10; chk.ad_timeout = _local12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = msec - 250; }; chk.onEnterFrame = function () { var _local5 = this._parent._mochiad_ctr; var _local4 = getTimer() - this.started; var _local2 = false; if (!chk.showing) { var _local3 = _local5.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (_local4 > chk.ad_timeout) { _local2 = true; } } if (_local4 > chk.ad_msec) { _local2 = true; } if (_local2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; } static function _allowDomains(server) { var _local1 = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(_local1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(_local1); } } return(_local1); } static function _loadCommunicator(options) { var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"}; options = _parseOptions(options, _local25); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var _local18 = options.clip; var _local20 = "_mochiad_com_" + options.id; if (!_isNetworkAvailable()) { return(null); } if (_local18[_local20]) { return(_local18[_local20].lc); } var _local21 = options.com_server + options.id; _allowDomains(_local21); delete options.id; delete options.com_server; var _local24 = options.depth; delete options.depth; var _local17 = _local18.createEmptyMovieClip(_local20, _local24); var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1); for (var _local15 in options) { _local11[_local15] = options[_local15]; } var _local6 = new LocalConnection(); var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local6.mc = _local17; _local6.name = _local16; _local6.allowDomain = function (d) { return(true); }; _local6.allowInsecureDomain = _local6.allowDomain; _local6.connect(_local16); _local17.lc = _local6; _local11.lc = _local16; _local6._id = 0; _local6._queue = []; _local6.rpcResult = function (cb) { cb = parseInt(cb); var _local4 = this._callbacks[cb]; if (!_local4) { return(undefined); } delete this._callbacks[cb]; var _local5 = []; var _local3 = 2; while (_local3 < _local4.length) { _local5.push(_local4[_local3]); _local3++; } _local3 = 1; while (_local3 < arguments.length) { _local5.push(arguments[_local3]); _local3++; } var _local6 = _local4[1]; var _local7 = _local4[0]; if (_local7 && (typeof(_local6) == "string")) { _local6 = _local7[_local6]; } if (_local6) { _local6.apply(_local7, _local5); } }; _local6._didConnect = function (endpoint) { this._endpoint = endpoint; var _local4 = this._queue; delete this._queue; var _local5 = this.doSend; var _local2 = 0; while (_local2 < _local4.length) { var _local3 = _local4[_local2]; _local5.apply(this, _local3); _local2++; } }; _local6.doSend = function (args, cbobj, cbfn) { if (this._endpoint == null) { var _local4 = []; var _local3 = 0; while (_local3 < arguments.length) { _local4.push(arguments[_local3]); _local3++; } this._queue.push(_local4); return(undefined); } this._id = this._id + 1; var _local5 = this._id; if ((cbfn === undefined) || (cbfn === null)) { cbfn = cbobj; } this._callbacks[_local5] = [cbobj, cbfn]; var _local7 = new LocalConnection(); var _local9 = _local7.send(this._endpoint, "rpc", _local5, args); }; _local6._callbacks = {}; _local6._callbacks[0] = [_local6, "_didConnect"]; _local11.st = getTimer(); _local11.loadMovie(_local21 + ".swf", "POST"); return(_local6); } static function fetchHighScores(options, callbackObj, callbackMethod) { var _local1 = _loadCommunicator({id:options.id}); if (!_local1) { return(false); } var _local4 = ["fetchHighScores", options]; _local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod); return(true); } static function sendHighScore(options, callbackObj, callbackMethod) { var _local1 = _loadCommunicator({id:options.id}); if (!_local1) { return(false); } var _local4 = ["sendHighScore", options]; _local1.doSend(["sendHighScore", options], callbackObj, callbackMethod); return(true); } static function load(options) { var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = _parseOptions(options, _local13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var _local7 = options.clip; if (!_isNetworkAvailable()) { return(null); } if (_local7._mochiad_loaded) { return(null); } var _local12 = options.depth; delete options.depth; var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12); var _local11 = _getRes(options); options.res = (_local11[0] + "x") + _local11[1]; options.server = options.server + options.id; delete options.id; _local7._mochiad_loaded = true; var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1); for (var _local8 in options) { _local4[_local8] = options[_local8]; } if (_local7._url.indexOf("http") != 0) { options.no_page = true; } var _local10 = _local4.server; delete _local4.server; var _local14 = _allowDomains(_local10); _local6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var _local5 = new LocalConnection(); var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local5.mc = _local6; _local5.name = _local9; _local5.hostname = _local14; _local5.allowDomain = function (d) { return(true); }; _local5.allowInsecureDomain = _local5.allowDomain; _local5.connect(_local9); _local6.lc = _local5; _local4.lc = _local9; _local4.st = getTimer(); _local4.loadMovie(_local10 + ".swf", "POST"); return(_local6); } static function unload(clip) { if (typeof(clip) == "undefined") { clip = _root; } if (clip.clip && (clip.clip._mochiad)) { clip = clip.clip; } if (!clip._mochiad) { return(false); } clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return(true); } static function _isNetworkAvailable() { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); } static function _getRes(options) { var _local3 = options.clip.getBounds(); var _local2 = 0; var _local1 = 0; if (typeof(options.res) != "undefined") { var _local4 = options.res.split("x"); _local2 = parseFloat(_local4[0]); _local1 = parseFloat(_local4[1]); } else { _local2 = _local3.xMax - _local3.xMin; _local1 = _local3.yMax - _local3.yMin; } if ((_local2 == 0) || (_local1 == 0)) { _local2 = Stage.width; _local1 = Stage.height; } return([_local2, _local1]); } static function _parseOptions(options, defaults) { var _local4 = {}; for (var _local8 in defaults) { _local4[_local8] = defaults[_local8]; } if (options) { for (var _local8 in options) { _local4[_local8] = options[_local8]; } } if (_root.mochiad_options) { var _local5 = _root.mochiad_options.split("&"); var _local2 = 0; while (_local2 < _local5.length) { var _local3 = _local5[_local2].split("="); _local4[unescape(_local3[0])] = unescape(_local3[1]); _local2++; } } return(_local4); } }
Symbol 325 MovieClip [__Packages.mx.core.UIObject] Frame 0
class 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.126"; 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 372 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class 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 373 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class 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 375 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class 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 374 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class 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 326 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class 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.126"; 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 381 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class 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.126"; 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 941 MovieClip [__Packages.it.gotoandplay.smartfoxserver.SmartFoxClient] Frame 0
class it.gotoandplay.smartfoxserver.SmartFoxClient extends XMLSocket { var objRef, os, isConnected, debug, arrayTags, messageHandlers, onConnect, onData, onXML, onClose, roomList, buddyList, buddyVars, activeRoomId, myUserId, myUserName, playerId, changingRoom, amIModerator, onBuddyList, t1, ipAddress, onConnection, onConnectionLost, portNumber, 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}; messageHandlers = new Object(); onConnect = connectionEstablished; onData = gotData; onXML = xmlReceived; onClose = connectionClosed; setupMessageHandlers(); } function initialize() { roomList = {}; buddyList = []; buddyVars = []; activeRoomId = null; myUserId = null; myUserName = ""; playerId = null; changingRoom = false; amIModerator = false; } function getVersion() { return((((majVersion + ".") + minVersion) + ".") + subVersion); } function connected() { return(isConnected); } function setupMessageHandlers() { addMessageHandler("sys", handleSysMessages); addMessageHandler("xt", handleExtensionMessages); } function addMessageHandler(handlerId, handlerMethod) { if (messageHandlers[handlerId] == undefined) { messageHandlers[handlerId] = new Object(); messageHandlers[handlerId].handleMessage = handlerMethod; } else { trace(("Warning: [" + handlerId) + "] handler could not be created. A handler with this name already exist!"); } } function isModerator() { return(amIModerator); } function handleSysMessages(xmlObj, scope) { var _local10 = xmlObj.attributes.action; var _local17 = xmlObj.attributes.r; if (_local10 == "apiOK") { scope.isConnected = true; scope.onConnection(true); } else if (_local10 == "apiKO") { scope.onConnection(false); trace("--------------------------------------------------------"); trace(" WARNING! The API you are using are not compatible with "); trace(" the SmartFoxServer instance you're trying to connect to"); trace("--------------------------------------------------------"); } else if (_local10 == "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 (_local10 == "logKO") { var _local54 = xmlObj.login.attributes.e; scope.onLogin({success:false, name:"", error:_local54}); } else if (_local10 == "logout") { scope.initialize(); scope.onLogout(); } else if (_local10 == "rmList") { var _local9 = xmlObj.rmList.rmList; scope.roomList = new Array(); for (var _local37 in _local9) { var _local6 = _local9[_local37].attributes.id; var _local2 = _local9[_local37].attributes; var _local4 = _local2.id; var _local19 = _local9[_local37].n.value; var _local20 = Number(_local2.maxu); var _local21 = Number(_local2.maxs); var _local58 = (_local2.temp ? true : false); var _local47 = (_local2.game ? true : false); var _local27 = (_local2.priv ? true : false); var _local28 = Number(_local2.ucnt); var _local22 = Number(_local2.scnt); var _local63 = (_local2.lmb ? true : false); scope.roomList[_local6] = new it.gotoandplay.smartfoxserver.Room(_local4, _local19, _local20, _local21, _local58, _local47, _local27); scope.roomList[_local6].userCount = _local28; scope.roomList[_local6].specCount = _local22; scope.roomList[_local6].setIsLimbo(_local63); var _local3 = _local9[_local37].vars.vars; var _local33 = 0; while (_local33 < _local3.length) { var _local25 = _local3[_local33].attributes.n; var _local11 = _local3[_local33].attributes.t; var _local24 = _local3[_local33].value; var _local12; if (_local11 == "b") { _local12 = Boolean; } else if (_local11 == "n") { _local12 = Number; } else if (_local11 == "s") { _local12 = String; } else if (_local11 == "x") { _local12 = function (x) { return(null); }; } scope.roomList[_local6].variables[_local25] = _local12(_local24); _local33++; } } scope.onRoomListUpdate(scope.roomList); } else if (_local10 == "joinOK") { var _local42 = xmlObj.uLs.attributes.r; var _local7 = xmlObj.uLs.uLs; var _local15 = xmlObj.vars.vars; scope.activeRoomId = Number(_local42); var _local43 = scope.roomList[_local42]; _local43.userList = new Object(); scope.playerId = xmlObj.pid.attributes.id; _local43.setMyPlayerIndex(xmlObj.pid.attributes.id); _local43.variables = new Object(); var _local33 = 0; while (_local33 < _local15.length) { var _local25 = _local15[_local33].attributes.n; var _local11 = _local15[_local33].attributes.t; var _local24 = _local15[_local33].value; if (_local11 == "b") { var _local12 = Boolean; } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } else if (_local11 == "x") { var _local12 = function (x) { return(null); }; } _local43.variables[_local25] = _local12(_local24); _local33++; } var _local64 = 0; var _local51 = 0; var _local37 = 0; while (_local37 < _local7.length) { var _local19 = _local7[_local37].n.value; var _local4 = _local7[_local37].attributes.i; var _local55 = _local7[_local37].attributes.m; var _local67 = _local7[_local37].attributes.s; var _local44 = _local7[_local37].attributes.p; _local43.userList[_local4] = new it.gotoandplay.smartfoxserver.User(_local4, _local19); _local43.userList[_local4].isMod = ((_local55 == "1") ? true : false); _local43.userList[_local4].isSpec = ((_local67 == "1") ? true : false); _local43.userList[_local4].pid = ((_local44 == undefined) ? -1 : _local44); if (_local43.isGame() && (_local67 == "1")) { _local51++; } else { _local64++; } var _local13 = _local7[_local37].vars.vars; _local43.userList[_local4].variables = {}; var _local35 = _local43.userList[_local4].variables; _local33 = 0; while (_local33 < _local13.length) { var _local25 = _local13[_local33].attributes.n; var _local11 = _local13[_local33].attributes.t; var _local24 = _local13[_local33].value; if (_local11 == "b") { var _local12 = Boolean; } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } else if (_local11 == "x") { var _local12 = function (x) { return(null); }; } _local35[_local25] = _local12(_local24); _local33++; } _local37++; } _local43.userCount = _local64; _local43.specCount = _local51; scope.changingRoom = false; scope.onJoinRoom(scope.roomList[_local42]); } else if (_local10 == "joinKO") { scope.changingRoom = false; var _local57 = xmlObj.error.attributes.msg; scope.onJoinRoomError(_local57); } else if (_local10 == "uER") { var _local61 = xmlObj.u.attributes.i; var _local56 = xmlObj.u.n.value; var _local55 = xmlObj.u.attributes.m; var _local67 = xmlObj.u.attributes.s; var _local44 = xmlObj.u.attributes.p; var _local43 = scope.roomList[_local17]; _local43.userList[_local61] = new it.gotoandplay.smartfoxserver.User(_local61, _local56); _local43.userList[_local61].isMod = ((_local55 == "1") ? true : false); _local43.userList[_local61].isSpec = ((_local67 == "1") ? true : false); _local43.userList[_local61].pid = ((_local44 == undefined) ? -1 : _local44); if (_local43.isGame() && (_local67 == "1")) { _local43.specCount++; } else { _local43.userCount++; } var _local13 = xmlObj.u.vars.vars; _local43.userList[_local61].variables = {}; var _local35 = _local43.userList[_local61].variables; var _local33 = 0; while (_local33 < _local13.length) { var _local25 = _local13[_local33].attributes.n; var _local11 = _local13[_local33].attributes.t; var _local24 = _local13[_local33].value; if (_local11 == "b") { var _local12 = Boolean; } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } else if (_local11 == "x") { var _local12 = function (x) { return(null); }; } _local35[_local25] = _local12(_local24); _local33++; } scope.onUserEnterRoom(_local17, _local43.userList[_local61]); } else if (_local10 == "userGone") { var _local61 = xmlObj.user.attributes.id; var _local43 = scope.roomList[_local17]; var _local56 = _local43.userList[_local61].name; var _local67 = _local43.userList[_local61].isSpec; delete _local43.userList[_local61]; if (_local43.isGame() && _local67) { _local43.specCount--; } else { _local43.userCount--; } scope.onUserLeaveRoom(_local17, _local61, _local56); } else if (_local10 == "pubMsg") { var _local61 = xmlObj.user.attributes.id; var _local40 = xmlObj.txt.value; _local40 = scope.os.decodeEntities(_local40.toString()); scope.onPublicMessage(_local40.toString(), scope.roomList[_local17].userList[_local61], _local17); } else if (_local10 == "prvMsg") { var _local61 = xmlObj.user.attributes.id; var _local40 = xmlObj.txt.value; _local40 = scope.os.decodeEntities(_local40); scope.onPrivateMessage(_local40.toString(), scope.roomList[_local17].userList[_local61], _local61, _local17); } else if (_local10 == "dmnMsg") { var _local61 = xmlObj.user.attributes.id; var _local40 = xmlObj.txt.value; _local40 = scope.os.decodeEntities(_local40); scope.onAdminMessage(_local40.toString(), scope.roomList[_local17].userList[_local61]); } else if (_local10 == "modMsg") { var _local61 = xmlObj.user.attributes.id; var _local40 = xmlObj.txt.value; _local40 = scope.os.decodeEntities(_local40); scope.onModeratorMessage(_local40.toString(), scope.roomList[_local17].userList[_local61]); } else if (_local10 == "dataObj") { var _local65 = xmlObj.user.attributes.id; var _local52 = xmlObj.dataObj.value; var _local53 = scope.os.deserialize(_local52); scope.onObjectReceived(_local53, scope.roomList[_local17].userList[_local65]); } else if (_local10 == "uVarsUpdate") { var _local61 = xmlObj.user.attributes.id; var _local14 = xmlObj.vars.vars; var _local29 = scope.roomList[_local17].userList[_local61]; if (_local29.variables == undefined) { _local29.variables = {}; } var _local30 = []; var _local33 = 0; while (_local33 < _local14.length) { var _local25 = _local14[_local33].attributes.n; var _local11 = _local14[_local33].attributes.t; var _local24 = _local14[_local33].value; _local30.push(_local25); _local30[_local25] = true; if (_local11 == "x") { delete _local29.variables[_local25]; } else { if (_local11 == "b") { var _local12 = Boolean; } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } _local29.variables[_local25] = _local12(_local24); } _local33++; } scope.onUserVariablesUpdate(_local29, _local30); } else if (_local10 == "rVarsUpdate") { var _local14 = xmlObj.vars.vars; var _local43 = scope.roomList[_local17]; var _local30 = []; if (_local43.variables == undefined) { _local43.variables = new Object(); } var _local33 = 0; while (_local33 < _local14.length) { var _local25 = _local14[_local33].attributes.n; var _local11 = _local14[_local33].attributes.t; var _local24 = _local14[_local33].value; _local30.push(_local25); _local30[_local25] = true; if (_local11 == "x") { delete _local43.variables[_local25]; } else { if (_local11 == "b") { var _local12 = Boolean; } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } _local43.variables[_local25] = _local12(_local24); } _local33++; } scope.onRoomVariablesUpdate(_local43, _local30); } else if (_local10 == "createRmKO") { var _local54 = xmlObj.room.attributes.e; scope.onCreateRoomError(_local54); } else if (_local10 == "uCount") { var _local64 = xmlObj.attributes.u; var _local51 = xmlObj.attributes.s; var _local38 = scope.roomList[_local17]; _local38.userCount = Number(_local64); _local38.specCount = Number(_local51); scope.onUserCountChange(_local38); } else if (_local10 == "roomAdd") { var _local34 = xmlObj.rm.attributes; var _local45 = _local34.id; var _local59 = xmlObj.rm.name.value; var _local66 = Number(_local34.max); var _local50 = Number(_local34.spec); var _local58 = (_local34.temp ? true : false); var _local47 = (_local34.game ? true : false); var _local60 = (_local34.priv ? true : false); var _local63 = (_local34.limbo ? true : false); var _local32 = new it.gotoandplay.smartfoxserver.Room(_local45, _local59, _local66, _local50, _local58, _local47, _local60); _local32.setIsLimbo(_local63); scope.roomList[_local45] = _local32; var _local14 = xmlObj.rm.vars.vars; _local32.variables = new Object(); var _local33 = 0; while (_local33 < _local14.length) { var _local25 = _local14[_local33].attributes.n; var _local11 = _local14[_local33].attributes.t; var _local24 = _local14[_local33].value; if (_local11 == "b") { var _local12 = Boolean; } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } _local32.variables[_local25] = _local12(_local24); _local33++; } scope.onRoomAdded(_local32); } else if (_local10 == "roomDel") { var _local46 = xmlObj.rm.attributes.id; var _local48 = scope.roomList[_local46]; delete scope.roomList[_local46]; scope.onRoomDeleted(_local48); } else if (_local10 == "leaveRoom") { var _local68 = xmlObj.rm.attributes.id; scope.onRoomLeft(_local68); } else if (_local10 == "roundTripRes") { scope.t2 = getTimer(); scope.onRoundTripResponse(scope.t2 - scope.t1); } else if (_local10 == "swSpec") { var _local39 = Number(xmlObj.pid.attributes.id); var _local41 = Number(xmlObj.pid.attributes.u); if (_local39 > 0) { scope.roomList[_local17].userCount++; scope.roomList[_local17].specCount--; } if (!isNaN(_local41)) { var _local43 = scope.roomList[_local17]; _local43.userList[_local41].pid = _local39; _local43.userList[_local41].isSpec = false; } else { scope.playerId = _local39; scope.onSpectatorSwitched(scope.playerId > 0, scope.playerId, scope.roomList[_local17]); } } else if (_local10 == "bList") { var _local8 = xmlObj.bList.bList; if (_local8 == undefined) { scope.onBuddyListError(xmlObj.err.value); return(undefined); } var _local37 = 0; while (_local37 < _local8.length) { var _local31 = {}; _local31.isOnline = ((_local8[_local37].attributes.s == "1") ? true : false); _local31.name = _local8[_local37].n.value; _local31.id = _local8[_local37].attributes.i; _local31.variables = {}; var _local18 = _local8[_local37].vs.vs; for (var _local33 in _local18) { var _local26 = _local18[_local33].attributes.n; var _local23 = _local18[_local33].value; _local31.variables[_local26] = _local23; } scope.buddyList.push(_local31); _local37++; } scope.onBuddyList(scope.buddyList); } else if (_local10 == "bUpd") { var _local36 = xmlObj.b; if (_local36 == undefined) { scope.onBuddyListError(xmlObj.err.value); return(undefined); } var _local31 = {}; _local31.name = _local36.n.value; _local31.id = _local36.attributes.i; _local31.isOnline = ((_local36.attributes.s == "1") ? true : false); _local31.variables = {}; var _local18 = _local36.vs.vs; for (var _local37 in _local18) { var _local26 = _local18[_local37].attributes.n; var _local23 = _local18[_local37].value; _local31.variables[_local26] = _local23; } var _local37 = 0; while (_local37 < scope.buddyList.length) { if (scope.buddyList[_local37].name == _local31.name) { scope.buddyList[_local37] = _local31; break; } _local37++; } scope.onBuddyListUpdate(_local31); } else if (_local10 == "bAdd") { var _local36 = xmlObj.b; var _local31 = {}; _local31.name = _local36.n.value; _local31.id = _local36.attributes.i; _local31.isOnline = ((_local36.attributes.s == "1") ? true : false); _local31.variables = {}; var _local18 = _local36.vs.vs; for (var _local37 in _local18) { var _local26 = _local18[_local37].attributes.n; var _local23 = _local18[_local37].value; _local31.variables[_local26] = _local23; } scope.buddyList.push(_local31); scope.onBuddyList(scope.buddyList); } else if (_local10 == "roomB") { var _local62 = xmlObj.br.attributes.r; var _local16 = _local62.toString().split(","); for (var _local37 in _local16) { _local16[_local37] = Number(_local16[_local37]); } scope.onBuddyRoom(_local16); } else if (_local10 == "rndK") { var _local49 = xmlObj.k.value; scope.onRandomKey(_local49); } } function handleExtensionMessages(dataObj, scope, type) { 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) { trace("Error in sending JSON message."); trace((((((ex.name + " : ") + ex.message) + " : ") + ex.at) + " : ") + ex.text); } } } } function dumpObj(obj, depth) { if (depth == undefined) { depth = 0; } if (debug) { if (depth == 0) { trace("+-----------------------------------------------+"); trace("+ Object Dump +"); trace("+-----------------------------------------------+"); } 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) + " )"); trace(_local3); } else { dumpObj(_local4, depth + 1); } } } } function login(zone, nick, pass) { var _local3 = {t:"sys"}; var _local2 = ((((("<login z='" + zone) + "'><nick><![CDATA[") + nick) + "]]></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; } else { trace("SmartFoxError: requested room to join does not exist!"); } } } function sendPublicMessage(msg, roomId) { if (roomId == undefined) { roomId = activeRoomId; } var _local2 = {t:"sys"}; var _local3 = ("<txt><![CDATA[" + os.encodeEntities(msg)) + "]]></txt>"; send(_local2, "pubMsg", roomId, _local3); } function sendPrivateMessage(msg, userId, roomId) { if (roomId == undefined) { roomId = activeRoomId; } var _local2 = {t:"sys"}; var _local3 = ((("<txt rcp='" + userId) + "'><![CDATA[") + os.encodeEntities(msg)) + "]]></txt>"; send(_local2, "prvMsg", roomId, _local3); } function sendModeratorMessage(msg, type, id) { var _local2 = {t:"sys"}; var _local3 = ((((("<txt t='" + type) + "' id='") + id) + "'><![CDATA[") + os.encodeEntities(msg)) + "]]></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 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(varObj) { var _local6 = {t:"sys"}; var _local4 = "<vars>"; for (var _local5 in varObj) { var _local2 = varObj[_local5]; if (buddyVars[_local5] != _local2) { buddyVars[_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]; trace(newline); trace("-------------------------------------"); trace(((" > Room: (" + _local5) + ") - ") + _local2.getName()); trace("isTemp: " + _local2.isTemp()); trace("isGame: " + _local2.isGame()); trace("isPriv: " + _local2.isPrivate()); trace((("Users: " + _local2.getUserCount()) + " / ") + _local2.getMaxUsers()); trace("Variables: "); for (var _local4 in _local2.variables) { trace((("\t" + _local4) + " = ") + _local2.getVariable(_local4)); } trace("\rUserList: "); var _local3 = _local2.getUserList(); for (var _local4 in _local3) { trace((("\t" + _local3[_local4].getId()) + " > ") + _local3[_local4].getName()); } } } function createRoom(roomObj, rId) { var _local9 = ((rId == undefined) ? (activeRoomId) : (rId)); 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) + "]]></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", _local9, _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(varObj, 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 < varObj.length) { _local4 = _local4 + getXmlRoomVariable(varObj[_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 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) { trace(("[Sending]: " + _local3) + newline); } 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) { trace((((((("[UPLOAD]: http://" + ipAddress) + ":") + port) + "/default/Upload.py?id=") + id) + "&nick=") + nick); } } function getUploadPath() { return(((("http://" + ipAddress) + ":") + httpPort) + "/default/uploads/"); } function sendString(message) { if (debug) { trace(("[Sending]: " + message) + newline); } super.send(message); } function sendJson(message) { if (debug) { trace(("[Sending - json]: " + message) + newline); } 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) { var _local3 = {t:"sys"}; var _local2 = ((("<ver v='" + majVersion.toString()) + minVersion.toString()) + subVersion.toString()) + "' />"; send(_local3, "verChk", 0, _local2); } else { onConnection(false); } } function connectionClosed() { isConnected = false; onConnectionLost(); } function connect(serverIp, serverPort) { if (!isConnected) { ipAddress = serverIp; portNumber = serverPort; super.connect(serverIp, serverPort); } else { trace((("WARNING! You're already connected to -> " + ipAddress) + ":") + portNumber); } } function disconnect() { close(); isConnected = false; onConnectionLost(); } function xmlReceived(message) { var _local2 = new Object(); message2Object(message.childNodes, _local2); if (debug) { trace("[Received]: " + message); } var _local3 = _local2.msg.attributes.t; messageHandlers[_local3].handleMessage(_local2.msg.body, this, "xml"); } function strReceived(message) { var _local2 = message.substr(1, message.length - 2).split(rawProtocolSeparator); if (debug) { trace("[Received - Str]: " + message); } 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) { trace("[Received - json]: " + message); } 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")) { _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>"); } 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"; var httpPort = 8080; var majVersion = 1; var minVersion = 4; var subVersion = 0; var rawProtocolSeparator = "%"; }
Symbol 942 MovieClip [__Packages.it.gotoandplay.smartfoxserver.ObjectSerializer] Frame 0
class 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[">"] = "&gt;"; ascTab["<"] = "&lt;"; ascTab["&"] = "&amp;"; ascTab["'"] = "&apos;"; ascTab["\""] = "&quot;"; ascTabRev = []; ascTabRev["&gt;"] = ">"; ascTabRev["&lt;"] = "<"; ascTabRev["&amp;"] = "&"; ascTabRev["&apos;"] = "'"; ascTabRev["&quot;"] = "\""; 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 _local5; var _local4; var _local3; var _local8; var _local2 = 0; _local7 = ""; while (_local2 < st.length) { _local5 = st.charAt(_local2); if (_local5 == "&") { _local4 = _local5; do { _local2++; _local3 = st.charAt(_local2); _local4 = _local4 + _local3; } while (_local3 != ";"); _local8 = ascTabRev[_local4]; if (_local8 != undefined) { _local7 = _local7 + _local8; } else { _local7 = _local7 + String.fromCharCode(getCharCode(_local4)); } } else { _local7 = _local7 + _local5; } _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 943 MovieClip [__Packages.it.gotoandplay.smartfoxserver.Room] Frame 0
class 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 944 MovieClip [__Packages.it.gotoandplay.smartfoxserver.User] Frame 0
class 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 945 MovieClip [__Packages.it.gotoandplay.smartfoxserver.JSON] Frame 0
class 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 324 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0
class 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 _local4 = function (Void) { return(this["get" + p]()); }; if (setter) { _local2 = function (val) { this["set" + p](val); }; } obj.addProperty(propName, _local4, _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 327 MovieClip [__Packages.mx.core.View] Frame 0
class 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 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.126"; var className = "View"; static var childNameBase = "_child"; var hasBeenLayedOut = false; var _loadExternalClass = "UIComponent"; }
Symbol 328 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class 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 _local5 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth); if ((__hScrollPolicy == "on") || ((_local5 < colCount) && (__hScrollPolicy == "auto"))) { if ((hScroller == undefined) || (specialHScrollCase)) { delete specialHScrollCase; hScroller = createObject("HScrollBar", "hSB", 1001); hScroller.__set__lineScrollSize(20); hScroller.scrollHandler = scrollProxy; hScroller.__set__scrollPosition(__hPosition); scrollAreaChanged = true; } if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local5)) || (scrollAreaChanged)) { hScroller.setScrollProperties(_local5, 0, colCount - _local5); viewableColumns = _local5; numberOfCols = colCount; columnWidth = colWidth; } } else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) { hScroller.removeMovieClip(); delete hScroller; scrollAreaChanged = true; } if (heightPadding == undefined) { heightPadding = 0; } var _local4 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight); var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0; if ((__vScrollPolicy == "on") || ((_local4 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) { if (vScroller == undefined) { vScroller = createObject("VScrollBar", "vSB", 1002); vScroller.scrollHandler = scrollProxy; vScroller.__set__scrollPosition(__vPosition); scrollAreaChanged = true; rowH = 0; } if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local4 + oldRndUp))) || (scrollAreaChanged)) { vScroller.setScrollProperties(_local4, 0, (rwCount - _local4) + _local8); viewableRows = _local4; 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 = 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.126"; 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 329 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class 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 330 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0
class 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) { trace("Cannot add an item past the end of the DataProvider"); 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 331 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0
class 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 332 MovieClip [__Packages.mx.controls.List] Frame 0
class 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(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(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.126"; var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1}; var scrollDepth = 1; var __vScrollPolicy = "on"; var autoHScrollAble = false; }
Symbol 376 MovieClip [__Packages.mx.skins.Border] Frame 0
class 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 377 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class 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.126"; var className = "RectBorder"; var borderStyleName = "borderStyle"; var borderColorName = "borderColor"; var shadowColorName = "shadowColor"; var highlightColorName = "highlightColor"; var buttonColorName = "buttonColor"; var backgroundColorName = "backgroundColor"; }
Symbol 378 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class 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 _local6 = "down"; if (depthFlag == kBottom) { _local6 = "up"; } var _local5; if (_local3[_local2] != undefined) { _local5 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local6); } var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj); if (_local5 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local5, _local3, _local6); } 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 _local6 = "down"; if (depthFlag == kBottom) { _local6 = "up"; } var _local5; if (_local3[_local2] != undefined) { _local5 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local6); } var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj); if (_local5 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local5, _local3, _local6); } 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(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 _local2 = targetDepth; var _local1 = targetDepth; if (direction == "down") { while (depthTable[_local1] != undefined) { _local1--; } return(_local1); } while (depthTable[_local2] != undefined) { _local2++; } return(_local2); } 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 379 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class 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 380 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class 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 382 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class 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.126"; 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 383 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class 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 384 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class 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 385 MovieClip [__Packages.mx.effects.Tween] Frame 0
class 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 386 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0
class 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 388 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class 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 389 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class 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 390 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class 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 391 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class 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 392 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class 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 393 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class 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 394 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class 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 395 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class 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 396 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class 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 397 MovieClip [__Packages.mx.controls.Button] Frame 0
class 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 398 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class 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 399 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class 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 400 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class 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 401 MovieClip [__Packages.mx.controls.ComboBase] Frame 0
class 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.126"; 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 402 MovieClip [__Packages.mx.controls.ComboBox] Frame 0
class 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.126"; 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 420 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class 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.126"; 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 421 MovieClip [__Packages.mx.managers.PopUpManager] Frame 0
class 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.126"; static var mixins = undefined; }
Symbol 422 MovieClip [__Packages.mx.controls.UIScrollBar] Frame 0
class 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 546 MovieClip Frame 30
stop();
Symbol 868 MovieClip Frame 5
helpText.text = helpTextVar;
Symbol 868 MovieClip Frame 175
helpText.text = "";
Symbol 868 MovieClip Frame 180
_root.warning = ""; stop();
Symbol 871 MovieClip Frame 5
helpText.text = helpTextVar;
Symbol 871 MovieClip Frame 175
helpText.text = "";
Symbol 871 MovieClip Frame 180
_root.warning = ""; stop();
Symbol 874 MovieClip Frame 5
helpText.text = helpTextVar;
Symbol 874 MovieClip Frame 175
helpText.text = "";
Symbol 874 MovieClip Frame 180
_root.warning = ""; stop();
Symbol 882 MovieClip Frame 60
_root.warning = ""; stop();

Library Items

Symbol 1 Sound [win.au]
Symbol 2 Sound [phase.au]
Symbol 3 Sound [opaction.au]
Symbol 4 Sound [myturn.au]
Symbol 5 Sound [mouseover.au]
Symbol 6 Sound [lose.au]
Symbol 7 Sound [login.mp3]
Symbol 8 Sound [lobby.mp3]
Symbol 9 Sound [intro.au]
Symbol 10 Sound [game.mp3]
Symbol 11 Sound [battlestart.au]
Symbol 12 Sound [animation.wav]
Symbol 13 FontUsed by:14 15 16 19 20 25 44 132 134 189 192 195 196 198 200 203 206 280 281 283 284 745 752 753 754 755 756 876 914 917 923
Symbol 14 EditableTextUses:13Used by:21
Symbol 15 EditableTextUses:13Used by:21
Symbol 16 EditableTextUses:13Used by:21
Symbol 17 FontUsed by:18 75 77 79 80 83 117 118 119 120 121 123 124 136 139 178 181 182 183 446 447 448 449 457 458 526 527 746 747 748 749 750 751 867 870 873 881 908 909 910 911 912 922
Symbol 18 EditableTextUses:17Used by:21
Symbol 19 EditableTextUses:13Used by:21
Symbol 20 EditableTextUses:13Used by:21
Symbol 21 MovieClip [textFields]Uses:14 15 16 18 19 20
Symbol 22 GraphicUsed by:71 176 215
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:71
Symbol 25 EditableTextUses:13Used by:71
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:71
Symbol 28 BitmapUsed by:29
Symbol 29 GraphicUses:28Used by:71
Symbol 30 BitmapUsed by:31
Symbol 31 GraphicUses:30Used by:71
Symbol 32 BitmapUsed by:33
Symbol 33 GraphicUses:32Used by:71
Symbol 34 BitmapUsed by:35
Symbol 35 GraphicUses:34Used by:71
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:71
Symbol 38 BitmapUsed by:39
Symbol 39 GraphicUses:38Used by:71
Symbol 40 BitmapUsed by:41
Symbol 41 GraphicUses:40Used by:71
Symbol 42 BitmapUsed by:43
Symbol 43 GraphicUses:42Used by:71
Symbol 44 EditableTextUses:13Used by:71
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:71
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:71
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:71
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:71
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:71
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:71
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:71
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:71
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61Used by:71
Symbol 63 BitmapUsed by:64
Symbol 64 GraphicUses:63Used by:71
Symbol 65 BitmapUsed by:66
Symbol 66 GraphicUses:65Used by:71
Symbol 67 BitmapUsed by:68
Symbol 68 GraphicUses:67Used by:71
Symbol 69 BitmapUsed by:70
Symbol 70 GraphicUses:69Used by:71
Symbol 71 MovieClip [viewCard]Uses:22 24 25 27 29 31 33 35 37 39 41 43 44 46 48 50 52 54 56 58 60 62 64 66 68 70
Symbol 72 GraphicUsed by:73
Symbol 73 ButtonUses:72Used by:82 84 126
Symbol 74 GraphicUsed by:76 81 125
Symbol 75 EditableTextUses:17Used by:76
Symbol 76 ButtonUses:74 75Used by:82
Symbol 77 EditableTextUses:17Used by:82
Symbol 78 GraphicUsed by:82
Symbol 79 EditableTextUses:17Used by:82
Symbol 80 EditableTextUses:17Used by:81
Symbol 81 ButtonUses:74 80Used by:82 126
Symbol 82 MovieClip [saveNewDeckBox]Uses:73 76 77 78 79 81
Symbol 83 EditableTextUses:17Used by:84
Symbol 84 MovieClip [saveDeckBox]Uses:73 83
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:87
Symbol 87 MovieClip [a]Uses:86
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:90
Symbol 90 MovieClip [av]Uses:89
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:93
Symbol 93 MovieClip [g]Uses:92
Symbol 94 BitmapUsed by:95
Symbol 95 GraphicUses:94Used by:96
Symbol 96 MovieClip [h]Uses:95
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:99
Symbol 99 MovieClip [k]Uses:98
Symbol 100 BitmapUsed by:101
Symbol 101 GraphicUses:100Used by:102
Symbol 102 MovieClip [m]Uses:101
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:105
Symbol 105 MovieClip [p]Uses:104
Symbol 106 BitmapUsed by:107
Symbol 107 GraphicUses:106Used by:108
Symbol 108 MovieClip [s]Uses:107
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:111
Symbol 111 MovieClip [w]Uses:110
Symbol 112 BitmapUsed by:113
Symbol 113 GraphicUses:112Used by:114
Symbol 114 MovieClip [e]Uses:113
Symbol 115 GraphicUsed by:116
Symbol 116 MovieClipUses:115Used by:122
Symbol 117 EditableTextUses:17Used by:122
Symbol 118 EditableTextUses:17Used by:122
Symbol 119 EditableTextUses:17Used by:122
Symbol 120 EditableTextUses:17Used by:122
Symbol 121 EditableTextUses:17Used by:122
Symbol 122 MovieClip [cardInfo]Uses:116 117 118 119 120 121
Symbol 123 EditableTextUses:17Used by:126
Symbol 124 EditableTextUses:17Used by:125
Symbol 125 ButtonUses:74 124Used by:126
Symbol 126 MovieClip [deckList]Uses:73 123 125 81
Symbol 127 BitmapUsed by:128
Symbol 128 GraphicUses:127Used by:176 215
Symbol 129 GraphicUsed by:130
Symbol 130 MovieClipUses:129Used by:176
Symbol 131 GraphicUsed by:133 135 176
Symbol 132 TextUses:13Used by:133
Symbol 133 MovieClipUses:131 132Used by:176
Symbol 134 TextUses:13Used by:135
Symbol 135 ButtonUses:131 134Used by:176
Symbol 136 EditableTextUses:17Used by:176
Symbol 137 GraphicUsed by:138
Symbol 138 MovieClipUses:137Used by:176
Symbol 139 EditableTextUses:17Used by:176
Symbol 140 BitmapUsed by:141
Symbol 141 GraphicUses:140Used by:176 215
Symbol 142 BitmapUsed by:143
Symbol 143 GraphicUses:142Used by:176 215
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:176 215
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:176 215
Symbol 148 BitmapUsed by:149
Symbol 149 GraphicUses:148Used by:176 215
Symbol 150 BitmapUsed by:151
Symbol 151 GraphicUses:150Used by:176 215
Symbol 152 BitmapUsed by:153
Symbol 153 GraphicUses:152Used by:176 215
Symbol 154 BitmapUsed by:155
Symbol 155 GraphicUses:154Used by:176 215
Symbol 156 BitmapUsed by:157
Symbol 157 GraphicUses:156Used by:176 215
Symbol 158 BitmapUsed by:159
Symbol 159 GraphicUses:158Used by:176 215
Symbol 160 BitmapUsed by:161
Symbol 161 GraphicUses:160Used by:176 215
Symbol 162 BitmapUsed by:163
Symbol 163 GraphicUses:162Used by:176 215
Symbol 164 BitmapUsed by:165
Symbol 165 GraphicUses:164Used by:176 215
Symbol 166 BitmapUsed by:167
Symbol 167 GraphicUses:166Used by:176 215
Symbol 168 BitmapUsed by:169
Symbol 169 GraphicUses:168Used by:176 215
Symbol 170 BitmapUsed by:171
Symbol 171 GraphicUses:170Used by:176 215
Symbol 172 BitmapUsed by:173
Symbol 173 GraphicUses:172Used by:176 215
Symbol 174 BitmapUsed by:175
Symbol 175 GraphicUses:174Used by:176 215
Symbol 176 MovieClip [cardManager]Uses:22 128 130 131 133 135 136 138 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173 175
Symbol 177 GraphicUsed by:179
Symbol 178 EditableTextUses:17Used by:179
Symbol 179 MovieClip [countsBox]Uses:177 178
Symbol 180 GraphicUsed by:184
Symbol 181 TextUses:17Used by:184
Symbol 182 EditableTextUses:17Used by:184
Symbol 183 EditableTextUses:17Used by:184
Symbol 184 MovieClip [infoBox]Uses:180 181 182 183
Symbol 185 BitmapUsed by:186 205
Symbol 186 GraphicUses:185Used by:194 197 202 204
Symbol 187 GraphicUsed by:188
Symbol 188 ButtonUses:187Used by:194 197 202 204 207 220
Symbol 189 TextUses:13Used by:194
Symbol 190 BitmapUsed by:191 199
Symbol 191 GraphicUses:190Used by:193
Symbol 192 EditableTextUses:13Used by:193
Symbol 193 MovieClipUses:191 192Used by:194 204 207
Symbol 194 MovieClip [attackResponse]Uses:186 188 189 193
Symbol 195 TextUses:13Used by:197 202 204
Symbol 196 EditableTextUses:13Used by:197
Symbol 197 MovieClip [waitingResponse]Uses:186 188 195 196
Symbol 198 EditableTextUses:13Used by:202
Symbol 199 GraphicUses:190Used by:201
Symbol 200 EditableTextUses:13Used by:201
Symbol 201 MovieClipUses:199 200Used by:202
Symbol 202 MovieClip [okCancelResponse]Uses:186 188 195 198 201
Symbol 203 EditableTextUses:13Used by:204
Symbol 204 MovieClip [okResponse]Uses:186 188 195 193 203
Symbol 205 GraphicUses:185Used by:207
Symbol 206 TextUses:13Used by:207
Symbol 207 MovieClip [defenseResponse]Uses:205 188 206 193
Symbol 208 BitmapUsed by:209
Symbol 209 GraphicUses:208Used by:220
Symbol 210 FontUsed by:211 212 217 218 585 586 587 588 613 614 615 616 626 629 632 635 638 646 660 661 663 666 668 690 698 699 700 701 702 703 704 705 707 708 712 713 734 735 736 737 738 741 768 770 771 772 774 776 777 778 779
Symbol 211 TextUses:210Used by:220
Symbol 212 TextUses:210Used by:220
Symbol 213 GraphicUsed by:214
Symbol 214 MovieClip [cardSelected]Uses:213Used by:215
Symbol 215 MovieClip [card]Uses:214 22 128 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173 175Used by:220
Symbol 216 GraphicUsed by:219
Symbol 217 TextUses:210Used by:219
Symbol 218 TextUses:210Used by:219
Symbol 219 ButtonUses:216 217 218Used by:220
Symbol 220 MovieClip [bonusCards]Uses:209 188 211 212 215 219
Symbol 221 GraphicUsed by:223 255 256 257 260 261 266
Symbol 222 GraphicUsed by:223 255 256 260 261 266
Symbol 223 MovieClip [ScrollTrack]Uses:221 222Used by:226 227 234 235 267 268 269 270 271 272
Symbol 224 BitmapUsed by:225
Symbol 225 GraphicUses:224Used by:226 227 234 235 267 268 269 270
Symbol 226 MovieClip [ScrollDownArrowDisabled]Uses:223 225Used by:273 274 275
Symbol 227 MovieClip [ScrollDownArrowDown]Uses:223 225Used by:273 274 275
Symbol 228 GraphicUsed by:234
Symbol 229 GraphicUsed by:230
Symbol 230 MovieClip [ScrollThemeColor1]Uses:229Used by:234
Symbol 231 GraphicUsed by:234
Symbol 232 GraphicUsed by:234
Symbol 233 GraphicUsed by:234
Symbol 234 MovieClip [ScrollDownArrowOver]Uses:223 228 230 231 232 233 225Used by:273 274 275
Symbol 235 MovieClip [ScrollDownArrowUp]Uses:223 225Used by:273 274 275
Symbol 236 GraphicUsed by:241 244 245 246 262 263 264 265
Symbol 237 GraphicUsed by:241 244 245 246 262 263 264 265
Symbol 238 GraphicUsed by:241 244 245 246 262 263 264 265
Symbol 239 BitmapUsed by:240
Symbol 240 GraphicUses:239Used by:241 244 245 246 262 263 264 265
Symbol 241 MovieClip [ScrollThumbBottomDisabled]Uses:236 237 238 240Used by:273 274 275
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClip [ThumbThemeColor1]Uses:242Used by:244 245 263 264
Symbol 244 MovieClip [ScrollThumbBottomDown]Uses:236 243 237 238 240Used by:273 274 275
Symbol 245 MovieClip [ScrollThumbBottomOver]Uses:236 243 237 238 240Used by:273 274 275
Symbol 246 MovieClip [ScrollThumbBottomUp]Uses:236 237 238 240Used by:273 274 275
Symbol 247 GraphicUsed by:248 251 252 253
Symbol 248 MovieClip [ScrollThumbGripDisabled]Uses:247Used by:273 274 275
Symbol 249 GraphicUsed by:250
Symbol 250 MovieClip [ThumbThemeColor2]Uses:249Used by:251 252 255 256 260
Symbol 251 MovieClip [ScrollThumbGripDown]Uses:250 247Used by:273 274 275
Symbol 252 MovieClip [ScrollThumbGripOver]Uses:250 247Used by:273 274 275
Symbol 253 MovieClip [ScrollThumbGripUp]Uses:247Used by:273 274 275
Symbol 254 GraphicUsed by:255 256 260 261
Symbol 255 MovieClip [ScrollThumbMiddleDisabled]Uses:221 254 250 222Used by:273 274 275
Symbol 256 MovieClip [ScrollThumbMiddleDown]Uses:221 250 254 222Used by:273 274 275
Symbol 257 MovieClipUses:221Used by:260
Symbol 258 GraphicUsed by:259
Symbol 259 MovieClipUses:258Used by:260
Symbol 260 MovieClip [ScrollThumbMiddleOver]Uses:221 250 254 257 259 222Used by:273 274 275
Symbol 261 MovieClip [ScrollThumbMiddleUp]Uses:221 254 222Used by:273 274 275
Symbol 262 MovieClip [ScrollThumbTopDisabled]Uses:236 237 238 240Used by:273 274 275
Symbol 263 MovieClip [ScrollThumbTopDown]Uses:236 243 237 238 240Used by:273 274 275
Symbol 264 MovieClip [ScrollThumbTopOver]Uses:236 243 237 238 240Used by:273 274 275
Symbol 265 MovieClip [ScrollThumbTopUp]Uses:236 237 238 240Used by:273 274 275
Symbol 266 MovieClip [ScrollTrackDisabled]Uses:221 222Used by:273 274 275
Symbol 267 MovieClip [ScrollUpArrowDisabled]Uses:223 225Used by:273 274 275
Symbol 268 MovieClip [ScrollUpArrowDown]Uses:223 225Used by:273 274 275
Symbol 269 MovieClip [ScrollUpArrowOver]Uses:223 225Used by:273 274 275
Symbol 270 MovieClip [ScrollUpArrowUp]Uses:223 225Used by:273 274 275
Symbol 271 MovieClip [BtnDownArrow]Uses:223Used by:273 274 275
Symbol 272 MovieClip [BtnUpArrow]Uses:223Used by:273 274 275
Symbol 273 MovieClip [VScrollBarAssets]Uses:226 227 234 235 241 244 245 246 248 251 252 253 255 256 260 261 262 263 264 265 266 267 268 269 270 271 272
Symbol 274 MovieClip [ScrollBarAssets]Uses:226 227 234 235 241 244 245 246 248 251 252 253 255 256 260 261 262 263 264 265 266 267 268 269 270 271 272Used by:366 367
Symbol 275 MovieClip [HScrollBarAssets]Uses:226 227 234 235 241 244 245 246 248 251 252 253 255 256 260 261 262 263 264 265 266 267 268 269 270 272 271
Symbol 276 GraphicUsed by:279
Symbol 277 ShapeTweeningUsed by:279
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClip [fade_control]Uses:276 277 278
Symbol 280 EditableTextUses:13Used by:282
Symbol 281 EditableTextUses:13Used by:282
Symbol 282 MovieClip [lose_animation]Uses:280 281
Symbol 283 EditableTextUses:13Used by:285
Symbol 284 EditableTextUses:13Used by:285
Symbol 285 MovieClip [gain_animation]Uses:283 284
Symbol 286 GraphicUsed by:287
Symbol 287 ButtonUses:286Used by:296 300
Symbol 288 GraphicUsed by:289 300
Symbol 289 ButtonUses:288Used by:296
Symbol 290 GraphicUsed by:291 299
Symbol 291 ButtonUses:290Used by:296
Symbol 292 FontUsed by:293 294 295 297 298 430 431 435 452 455 456 548 549 551 552 553 555 556 558 583 584 602 603 606 607 610 611 612 613 614 615 616 622 623 626 629 632 635 638 641 642 645 646 657 660 661 662 663 666 667 668 669 670 671 673 674 686 687 691 692 693 694 710 711 740 743 763 766 767 769 773 775 786 841 865
Symbol 293 EditableTextUses:292Used by:296
Symbol 294 EditableTextUses:292Used by:296
Symbol 295 EditableTextUses:292Used by:296
Symbol 296 MovieClip [okCancelResponseBlack]Uses:287 289 291 293 294 295
Symbol 297 EditableTextUses:292Used by:300
Symbol 298 TextUses:292Used by:299
Symbol 299 ButtonUses:290 298Used by:300
Symbol 300 MovieClip [warningBox]Uses:287 288 297 299
Symbol 301 BitmapUsed by:302
Symbol 302 GraphicUses:301Used by:313
Symbol 303 BitmapUsed by:304
Symbol 304 GraphicUses:303Used by:313
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:313
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:313
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:309Used by:313
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:313
Symbol 313 MovieClip [rarityClip]Uses:302 304 306 308 310 312
Symbol 314 BitmapUsed by:315
Symbol 315 GraphicUses:314Used by:318
Symbol 316 BitmapUsed by:317
Symbol 317 GraphicUses:316Used by:318
Symbol 318 MovieClip [boxClip]Uses:315 317
Symbol 319 BitmapUsed by:320
Symbol 320 GraphicUses:319Used by:321
Symbol 321 MovieClip [graveyard]Uses:320Used by:Timeline
Symbol 322 GraphicUsed by:323
Symbol 323 MovieClip [flames]Uses:322Used by:Timeline
Symbol 333 GraphicUsed by:334
Symbol 334 MovieClip [BoundingBox]Uses:333Used by:344 348 360 364 366 367 368 369 370 371 406 419 423
Symbol 335 MovieClip [DataProvider]Used by:370
Symbol 336 MovieClip [DataSelector]Used by:370
Symbol 337 MovieClip [Defaults]Used by:339
Symbol 338 MovieClip [UIObjectExtensions]Used by:339
Symbol 339 MovieClip [UIObject]Uses:337 338Used by:345 347 361
Symbol 340 GraphicUsed by:342
Symbol 341 GraphicUsed by:342
Symbol 342 ButtonUses:340 341Used by:345
Symbol 343 MovieClipUsed by:345
Symbol 344 MovieClip [FocusRect]Uses:334Used by:345
Symbol 345 MovieClip [FocusManager]Uses:342 343 344 339Used by:347
Symbol 346 MovieClip [UIComponentExtensions]Used by:347
Symbol 347 MovieClip [UIComponent]Uses:339 345 346Used by:348 360 368 405 406
Symbol 348 MovieClip [SelectableRow]Uses:347 334Used by:370
Symbol 349 GraphicUsed by:350
Symbol 350 MovieClip [BrdrShdw]Uses:349Used by:353 358 359
Symbol 351 GraphicUsed by:352
Symbol 352 MovieClip [BrdrFace]Uses:351Used by:353 358 359
Symbol 353 MovieClip [SimpleButtonDown]Uses:350 352Used by:360
Symbol 354 GraphicUsed by:355
Symbol 355 MovieClip [BrdrBlk]Uses:354Used by:358 359
Symbol 356 GraphicUsed by:357
Symbol 357 MovieClip [BrdrHilght]Uses:356Used by:358 359
Symbol 358 MovieClip [SimpleButtonIn]Uses:355 357 350 352Used by:360
Symbol 359 MovieClip [SimpleButtonUp]Uses:355 352 350 357Used by:360
Symbol 360 MovieClip [SimpleButton]Uses:334 353 358 359 347Used by:364 366 367 406
Symbol 361 MovieClip [Border]Uses:339Used by:362 364
Symbol 362 MovieClip [RectBorder]Uses:361Used by:364 368 405
Symbol 363 MovieClip [ButtonSkin]Used by:364
Symbol 364 MovieClip [Button]Uses:334 360 361 362 363Used by:366 367
Symbol 365 MovieClip [CustomBorder]Used by:366 367
Symbol 366 MovieClip [HScrollBar]Uses:334 364 360 365 274Used by:369 423
Symbol 367 MovieClip [VScrollBar]Uses:334 364 360 365 274Used by:369 423
Symbol 368 MovieClip [View]Uses:334 347 362Used by:369
Symbol 369 MovieClip [ScrollView]Uses:334 366 367 368Used by:370
Symbol 370 MovieClip [ScrollSelectList]Uses:334 335 336 348 369Used by:371
Symbol 371 MovieClip [List]Uses:334 370Used by:419
Symbol 403 FontUsed by:404
Symbol 404 EditableTextUses:403Used by:405
Symbol 405 MovieClip [TextInput]Uses:404 362 347Used by:406
Symbol 406 MovieClip [ComboBase]Uses:334 347 360 405Used by:419
Symbol 407 GraphicUsed by:412 416 417
Symbol 408 GraphicUsed by:409
Symbol 409 MovieClipUses:408Used by:412 416 417
Symbol 410 GraphicUsed by:412 416 417
Symbol 411 GraphicUsed by:412 416 417
Symbol 412 MovieClip [ComboDownArrowUp]Uses:407 409 410 411Used by:413 418
Symbol 413 MovieClip [ComboDownArrowDisabled]Uses:412Used by:418
Symbol 414 GraphicUsed by:415
Symbol 415 MovieClip [ComboThemeColor1]Uses:414Used by:416 417
Symbol 416 MovieClip [ComboDownArrowDown]Uses:407 415 409 410 411Used by:418
Symbol 417 MovieClip [ComboDownArrowOver]Uses:407 415 409 410 411Used by:418
Symbol 418 MovieClip [ComboAssets]Uses:413 416 417 412Used by:419
Symbol 419 MovieClip [ComboBox]Uses:334 406 371 418
Symbol 423 MovieClip [UIScrollBar]Uses:334 367 366Used by:Timeline
Symbol 424 BitmapUsed by:425
Symbol 425 GraphicUses:424Used by:Timeline
Symbol 426 FontUsed by:427 465 466
Symbol 427 TextUses:426Used by:Timeline
Symbol 387 MovieClip [__Packages.mx.skins.ColoredSkinElement]
Symbol 940 MovieClip [__Packages.MochiAd]
Symbol 325 MovieClip [__Packages.mx.core.UIObject]
Symbol 372 MovieClip [__Packages.mx.skins.SkinElement]
Symbol 373 MovieClip [__Packages.mx.styles.CSSTextStyles]
Symbol 375 MovieClip [__Packages.mx.styles.CSSStyleDeclaration]
Symbol 374 MovieClip [__Packages.mx.styles.StyleManager]
Symbol 326 MovieClip [__Packages.mx.core.UIComponent]
Symbol 381 MovieClip [__Packages.mx.controls.SimpleButton]
Symbol 941 MovieClip [__Packages.it.gotoandplay.smartfoxserver.SmartFoxClient]
Symbol 942 MovieClip [__Packages.it.gotoandplay.smartfoxserver.ObjectSerializer]
Symbol 943 MovieClip [__Packages.it.gotoandplay.smartfoxserver.Room]
Symbol 944 MovieClip [__Packages.it.gotoandplay.smartfoxserver.User]
Symbol 945 MovieClip [__Packages.it.gotoandplay.smartfoxserver.JSON]
Symbol 324 MovieClip [__Packages.mx.controls.listclasses.DataSelector]
Symbol 327 MovieClip [__Packages.mx.core.View]
Symbol 328 MovieClip [__Packages.mx.core.ScrollView]
Symbol 329 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 330 MovieClip [__Packages.mx.controls.listclasses.DataProvider]
Symbol 331 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList]
Symbol 332 MovieClip [__Packages.mx.controls.List]
Symbol 376 MovieClip [__Packages.mx.skins.Border]
Symbol 377 MovieClip [__Packages.mx.skins.RectBorder]
Symbol 378 MovieClip [__Packages.mx.managers.DepthManager]
Symbol 379 MovieClip [__Packages.mx.events.UIEventDispatcher]
Symbol 380 MovieClip [__Packages.mx.core.ExternalContent]
Symbol 382 MovieClip [__Packages.mx.skins.CustomBorder]
Symbol 383 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb]
Symbol 384 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar]
Symbol 385 MovieClip [__Packages.mx.effects.Tween]
Symbol 386 MovieClip [__Packages.mx.controls.listclasses.SelectableRow]
Symbol 388 MovieClip [__Packages.mx.core.ext.UIObjectExtensions]
Symbol 389 MovieClip [__Packages.mx.skins.halo.Defaults]
Symbol 390 MovieClip [__Packages.mx.managers.SystemManager]
Symbol 391 MovieClip [__Packages.mx.managers.FocusManager]
Symbol 392 MovieClip [__Packages.mx.skins.halo.FocusRect]
Symbol 393 MovieClip [__Packages.mx.managers.OverlappedWindows]
Symbol 394 MovieClip [__Packages.mx.styles.CSSSetStyle]
Symbol 395 MovieClip [__Packages.mx.core.ext.UIComponentExtensions]
Symbol 396 MovieClip [__Packages.mx.controls.HScrollBar]
Symbol 397 MovieClip [__Packages.mx.controls.Button]
Symbol 398 MovieClip [__Packages.mx.skins.halo.RectBorder]
Symbol 399 MovieClip [__Packages.mx.skins.halo.ButtonSkin]
Symbol 400 MovieClip [__Packages.mx.controls.VScrollBar]
Symbol 401 MovieClip [__Packages.mx.controls.ComboBase]
Symbol 402 MovieClip [__Packages.mx.controls.ComboBox]
Symbol 420 MovieClip [__Packages.mx.controls.TextInput]
Symbol 421 MovieClip [__Packages.mx.managers.PopUpManager]
Symbol 422 MovieClip [__Packages.mx.controls.UIScrollBar]
Symbol 428 BitmapUsed by:429 547
Symbol 429 GraphicUses:428Used by:Timeline
Symbol 430 EditableTextUses:292Used by:Timeline
Symbol 431 EditableTextUses:292Used by:Timeline
Symbol 432 FontUsed by:433 434 436 437 439 440 443 444 465 466 529 530 533 534 537 538 540 541 543 544 561 562 564 565
Symbol 433 TextUses:432Used by:Timeline
Symbol 434 TextUses:432Used by:Timeline
Symbol 435 EditableTextUses:292Used by:Timeline
Symbol 436 TextUses:432Used by:Timeline
Symbol 437 TextUses:432Used by:Timeline
Symbol 438 GraphicUsed by:441 545
Symbol 439 TextUses:432Used by:441
Symbol 440 TextUses:432Used by:441
Symbol 441 MovieClipUses:438 439 440Used by:Timeline
Symbol 442 GraphicUsed by:445
Symbol 443 TextUses:432Used by:445
Symbol 444 TextUses:432Used by:445
Symbol 445 MovieClipUses:442 443 444Used by:Timeline
Symbol 446 EditableTextUses:17Used by:451
Symbol 447 EditableTextUses:17Used by:451
Symbol 448 EditableTextUses:17Used by:451
Symbol 449 EditableTextUses:17Used by:451
Symbol 450 GraphicUsed by:451
Symbol 451 ButtonUses:446 447 448 449 450Used by:Timeline
Symbol 452 EditableTextUses:292Used by:Timeline
Symbol 453 GraphicUsed by:454
Symbol 454 MovieClipUses:453Used by:Timeline
Symbol 455 EditableTextUses:292Used by:Timeline
Symbol 456 EditableTextUses:292Used by:Timeline
Symbol 457 TextUses:17Used by:460
Symbol 458 TextUses:17Used by:460
Symbol 459 GraphicUsed by:460
Symbol 460 ButtonUses:457 458 459Used by:Timeline
Symbol 461 GraphicUsed by:464
Symbol 462 ShapeTweeningUsed by:464
Symbol 463 ShapeTweeningUsed by:464
Symbol 464 MovieClipUses:461 462 463Used by:Timeline
Symbol 465 EditableTextUses:426 432Used by:Timeline
Symbol 466 EditableTextUses:426 432Used by:Timeline
Symbol 467 GraphicUsed by:525
Symbol 468 GraphicUsed by:525
Symbol 469 GraphicUsed by:470
Symbol 470 MovieClipUses:469Used by:525
Symbol 471 GraphicUsed by:525
Symbol 472 GraphicUsed by:525
Symbol 473 GraphicUsed by:525
Symbol 474 GraphicUsed by:525
Symbol 475 GraphicUsed by:525
Symbol 476 GraphicUsed by:525
Symbol 477 GraphicUsed by:525
Symbol 478 GraphicUsed by:525
Symbol 479 GraphicUsed by:525
Symbol 480 GraphicUsed by:525
Symbol 481 GraphicUsed by:482
Symbol 482 MovieClipUses:481Used by:525
Symbol 483 GraphicUsed by:484
Symbol 484 MovieClipUses:483Used by:525
Symbol 485 GraphicUsed by:486
Symbol 486 MovieClipUses:485Used by:525
Symbol 487 GraphicUsed by:488
Symbol 488 MovieClipUses:487Used by:525
Symbol 489 GraphicUsed by:525
Symbol 490 GraphicUsed by:491
Symbol 491 MovieClipUses:490Used by:525
Symbol 492 GraphicUsed by:493
Symbol 493 MovieClipUses:492Used by:525
Symbol 494 GraphicUsed by:495
Symbol 495 MovieClipUses:494Used by:525
Symbol 496 GraphicUsed by:525
Symbol 497 GraphicUsed by:525
Symbol 498 GraphicUsed by:499
Symbol 499 MovieClipUses:498Used by:525
Symbol 500 GraphicUsed by:501
Symbol 501 MovieClipUses:500Used by:525
Symbol 502 GraphicUsed by:503
Symbol 503 MovieClipUses:502Used by:525
Symbol 504 GraphicUsed by:507
Symbol 505 GraphicUsed by:507
Symbol 506 GraphicUsed by:507
Symbol 507 MovieClipUses:504 505 506Used by:525
Symbol 508 GraphicUsed by:509
Symbol 509 MovieClipUses:508Used by:525
Symbol 510 GraphicUsed by:511
Symbol 511 MovieClipUses:510Used by:525
Symbol 512 GraphicUsed by:525
Symbol 513 GraphicUsed by:525
Symbol 514 GraphicUsed by:515
Symbol 515 MovieClipUses:514Used by:525
Symbol 516 GraphicUsed by:517
Symbol 517 MovieClipUses:516Used by:525
Symbol 518 GraphicUsed by:525
Symbol 519 GraphicUsed by:525
Symbol 520 GraphicUsed by:521
Symbol 521 MovieClipUses:520Used by:525
Symbol 522 GraphicUsed by:525
Symbol 523 GraphicUsed by:525
Symbol 524 GraphicUsed by:525
Symbol 525 MovieClipUses:467 468 470 471 472 473 474 475 476 477 478 479 480 482 484 486 488 489 491 493 495 496 497 499 501 503 507 509 511 512 513 515 517 518 519 521 522 523 524Used by:Timeline
Symbol 526 EditableTextUses:17Used by:Timeline
Symbol 527 EditableTextUses:17Used by:Timeline
Symbol 528 GraphicUsed by:531
Symbol 529 TextUses:432Used by:531
Symbol 530 TextUses:432Used by:531
Symbol 531 MovieClipUses:528 529 530Used by:546
Symbol 532 GraphicUsed by:535
Symbol 533 TextUses:432Used by:535
Symbol 534 TextUses:432Used by:535
Symbol 535 MovieClipUses:532 533 534Used by:546
Symbol 536 GraphicUsed by:539 542
Symbol 537 TextUses:432Used by:539
Symbol 538 TextUses:432Used by:539
Symbol 539 MovieClipUses:536 537 538Used by:546
Symbol 540 TextUses:432Used by:542
Symbol 541 TextUses:432Used by:542
Symbol 542 MovieClipUses:536 540 541Used by:546
Symbol 543 TextUses:432Used by:545
Symbol 544 TextUses:432Used by:545
Symbol 545 MovieClipUses:438 543 544Used by:546
Symbol 546 MovieClipUses:531 535 539 542 545Used by:Timeline
Symbol 547 GraphicUses:428Used by:Timeline
Symbol 548 EditableTextUses:292Used by:Timeline
Symbol 549 EditableTextUses:292Used by:Timeline
Symbol 550 GraphicUsed by:Timeline
Symbol 551 EditableTextUses:292Used by:Timeline
Symbol 552 EditableTextUses:292Used by:Timeline
Symbol 553 EditableTextUses:292Used by:Timeline
Symbol 554 GraphicUsed by:Timeline
Symbol 555 EditableTextUses:292Used by:Timeline
Symbol 556 EditableTextUses:292Used by:Timeline
Symbol 557 GraphicUsed by:Timeline
Symbol 558 EditableTextUses:292Used by:Timeline
Symbol 559 GraphicUsed by:Timeline
Symbol 560 GraphicUsed by:563 566
Symbol 561 TextUses:432Used by:563
Symbol 562 TextUses:432Used by:563
Symbol 563 MovieClipUses:560 561 562Used by:Timeline
Symbol 564 TextUses:432Used by:566
Symbol 565 TextUses:432Used by:566
Symbol 566 MovieClipUses:560 564 565Used by:672  Timeline
Symbol 567 BitmapUsed by:568 569
Symbol 568 GraphicUses:567Used by:570
Symbol 569 GraphicUses:567Used by:570
Symbol 570 MovieClipUses:568 569Used by:Timeline
Symbol 571 BitmapUsed by:572 573
Symbol 572 GraphicUses:571Used by:574
Symbol 573 GraphicUses:571Used by:574
Symbol 574 MovieClipUses:572 573Used by:Timeline
Symbol 575 BitmapUsed by:576 577
Symbol 576 GraphicUses:575Used by:578
Symbol 577 GraphicUses:575Used by:578
Symbol 578 MovieClipUses:576 577Used by:Timeline
Symbol 579 BitmapUsed by:580 581
Symbol 580 GraphicUses:579Used by:582
Symbol 581 GraphicUses:579Used by:582
Symbol 582 MovieClipUses:580 581Used by:Timeline
Symbol 583 EditableTextUses:292Used by:Timeline
Symbol 584 EditableTextUses:292Used by:Timeline
Symbol 585 EditableTextUses:210Used by:Timeline
Symbol 586 EditableTextUses:210Used by:Timeline
Symbol 587 EditableTextUses:210Used by:Timeline
Symbol 588 EditableTextUses:210Used by:Timeline
Symbol 589 GraphicUsed by:672
Symbol 590 BitmapUsed by:591
Symbol 591 GraphicUses:590Used by:594
Symbol 592 BitmapUsed by:593
Symbol 593 GraphicUses:592Used by:594
Symbol 594 ButtonUses:591 593Used by:672  Timeline
Symbol 595 BitmapUsed by:596
Symbol 596 GraphicUses:595Used by:599
Symbol 597 BitmapUsed by:598
Symbol 598 GraphicUses:597Used by:599
Symbol 599 ButtonUses:596 598Used by:672  Timeline
Symbol 600 BitmapUsed by:601
Symbol 601 GraphicUses:600Used by:672
Symbol 602 TextUses:292Used by:672
Symbol 603 EditableTextUses:292Used by:672
Symbol 604 BitmapUsed by:605
Symbol 605 GraphicUses:604Used by:672
Symbol 606 TextUses:292Used by:672
Symbol 607 EditableTextUses:292Used by:672
Symbol 608 BitmapUsed by:609
Symbol 609 GraphicUses:608Used by:672
Symbol 610 TextUses:292Used by:672
Symbol 611 EditableTextUses:292Used by:672
Symbol 612 TextUses:292Used by:672
Symbol 613 TextUses:210 292Used by:672
Symbol 614 TextUses:210 292Used by:672
Symbol 615 TextUses:210 292Used by:672
Symbol 616 TextUses:210 292Used by:672
Symbol 617 BitmapUsed by:621
Symbol 618 BitmapUsed by:621
Symbol 619 BitmapUsed by:621
Symbol 620 BitmapUsed by:621
Symbol 621 GraphicUses:617 618 619 620Used by:672
Symbol 622 EditableTextUses:292Used by:672
Symbol 623 TextUses:292Used by:672
Symbol 624 BitmapUsed by:625
Symbol 625 GraphicUses:624Used by:672
Symbol 626 TextUses:210 292Used by:672
Symbol 627 BitmapUsed by:628
Symbol 628 GraphicUses:627Used by:672
Symbol 629 TextUses:210 292Used by:672
Symbol 630 BitmapUsed by:631
Symbol 631 GraphicUses:630Used by:672
Symbol 632 TextUses:210 292Used by:672
Symbol 633 BitmapUsed by:634
Symbol 634 GraphicUses:633Used by:672
Symbol 635 TextUses:210 292Used by:672
Symbol 636 BitmapUsed by:637
Symbol 637 GraphicUses:636Used by:672
Symbol 638 TextUses:210 292Used by:672
Symbol 639 BitmapUsed by:640
Symbol 640 GraphicUses:639Used by:672
Symbol 641 EditableTextUses:292Used by:672
Symbol 642 TextUses:292Used by:672
Symbol 643 BitmapUsed by:644
Symbol 644 GraphicUses:643Used by:672
Symbol 645 EditableTextUses:292Used by:672
Symbol 646 TextUses:292 210Used by:672
Symbol 647 BitmapUsed by:656
Symbol 648 BitmapUsed by:656
Symbol 649 BitmapUsed by:656
Symbol 650 BitmapUsed by:656
Symbol 651 BitmapUsed by:656
Symbol 652 BitmapUsed by:656
Symbol 653 BitmapUsed by:656
Symbol 654 BitmapUsed by:656
Symbol 655 BitmapUsed by:656
Symbol 656 GraphicUses:647 648 649 650 651 652 653 654 655Used by:672
Symbol 657 EditableTextUses:292Used by:672
Symbol 658 BitmapUsed by:659
Symbol 659 GraphicUses:658Used by:672
Symbol 660 TextUses:210 292Used by:672
Symbol 661 TextUses:210 292Used by:672
Symbol 662 EditableTextUses:292Used by:672
Symbol 663 TextUses:210 292Used by:672
Symbol 664 BitmapUsed by:665
Symbol 665 GraphicUses:664Used by:672
Symbol 666 TextUses:292 210Used by:672
Symbol 667 EditableTextUses:292Used by:672
Symbol 668 TextUses:292 210Used by:672
Symbol 669 EditableTextUses:292Used by:672
Symbol 670 TextUses:292Used by:672
Symbol 671 EditableTextUses:292Used by:672
Symbol 672 MovieClipUses:589 566 594 599 601 602 603 605 606 607 609 610 611 612 613 614 615 616 621 622 623 625 626 628 629 631 632 634 635 637 638 640 641 642 644 645 646 656 657 659 660 661 662 663 665 666 667 668 669 670 671Used by:Timeline
Symbol 673 EditableTextUses:292Used by:Timeline
Symbol 674 EditableTextUses:292Used by:Timeline
Symbol 675 GraphicUsed by:Timeline
Symbol 676 BitmapUsed by:677
Symbol 677 GraphicUses:676Used by:Timeline
Symbol 678 BitmapUsed by:679
Symbol 679 GraphicUses:678Used by:682
Symbol 680 BitmapUsed by:681
Symbol 681 GraphicUses:680Used by:682
Symbol 682 ButtonUses:679 681Used by:709
Symbol 683 BitmapUsed by:685 689 697
Symbol 684 BitmapUsed by:685
Symbol 685 GraphicUses:683 684Used by:695
Symbol 686 EditableTextUses:292Used by:695
Symbol 687 EditableTextUses:292Used by:695
Symbol 688 BitmapUsed by:689
Symbol 689 GraphicUses:683 688Used by:695
Symbol 690 EditableTextUses:210Used by:695
Symbol 691 EditableTextUses:292Used by:695
Symbol 692 EditableTextUses:292Used by:695
Symbol 693 EditableTextUses:292Used by:695
Symbol 694 EditableTextUses:292Used by:695
Symbol 695 ButtonUses:685 686 687 689 690 691 692 693 694Used by:709
Symbol 696 BitmapUsed by:697
Symbol 697 GraphicUses:683 696Used by:706 709
Symbol 698 EditableTextUses:210Used by:706
Symbol 699 EditableTextUses:210Used by:706
Symbol 700 EditableTextUses:210Used by:706
Symbol 701 EditableTextUses:210Used by:706
Symbol 702 TextUses:210Used by:706
Symbol 703 TextUses:210Used by:706
Symbol 704 EditableTextUses:210Used by:706
Symbol 705 EditableTextUses:210Used by:706
Symbol 706 ButtonUses:697 698 699 700 701 702 703 704 705Used by:709
Symbol 707 EditableTextUses:210Used by:709
Symbol 708 EditableTextUses:210Used by:709
Symbol 709 MovieClipUses:682 695 706 697 707 708Used by:Timeline
Symbol 710 EditableTextUses:292Used by:Timeline
Symbol 711 EditableTextUses:292Used by:Timeline
Symbol 712 EditableTextUses:210Used by:Timeline
Symbol 713 EditableTextUses:210Used by:Timeline
Symbol 714 BitmapUsed by:715
Symbol 715 GraphicUses:714Used by:718
Symbol 716 BitmapUsed by:717
Symbol 717 GraphicUses:716Used by:718
Symbol 718 ButtonUses:715 717Used by:Timeline
Symbol 719 BitmapUsed by:720
Symbol 720 GraphicUses:719Used by:723
Symbol 721 BitmapUsed by:722
Symbol 722 GraphicUses:721Used by:723
Symbol 723 ButtonUses:720 722Used by:Timeline
Symbol 724 BitmapUsed by:725
Symbol 725 GraphicUses:724Used by:728
Symbol 726 BitmapUsed by:727
Symbol 727 GraphicUses:726Used by:728
Symbol 728 ButtonUses:725 727Used by:Timeline
Symbol 729 BitmapUsed by:730
Symbol 730 GraphicUses:729Used by:733
Symbol 731 BitmapUsed by:732
Symbol 732 GraphicUses:731Used by:733
Symbol 733 ButtonUses:730 732Used by:Timeline
Symbol 734 EditableTextUses:210Used by:Timeline
Symbol 735 EditableTextUses:210Used by:Timeline
Symbol 736 EditableTextUses:210Used by:Timeline
Symbol 737 EditableTextUses:210Used by:Timeline
Symbol 738 EditableTextUses:210Used by:Timeline
Symbol 739 MovieClipUsed by:Timeline
Symbol 740 EditableTextUses:292Used by:Timeline
Symbol 741 EditableTextUses:210Used by:Timeline
Symbol 742 GraphicUsed by:Timeline
Symbol 743 TextUses:292Used by:Timeline
Symbol 744 GraphicUsed by:757
Symbol 745 TextUses:13Used by:757
Symbol 746 TextUses:17Used by:757
Symbol 747 TextUses:17Used by:757
Symbol 748 TextUses:17Used by:757
Symbol 749 TextUses:17Used by:757
Symbol 750 TextUses:17Used by:757
Symbol 751 TextUses:17Used by:757
Symbol 752 TextUses:13Used by:757
Symbol 753 TextUses:13Used by:757
Symbol 754 TextUses:13Used by:757
Symbol 755 TextUses:13Used by:757
Symbol 756 TextUses:13Used by:757
Symbol 757 MovieClipUses:744 745 746 747 748 749 750 751 752 753 754 755 756Used by:Timeline
Symbol 758 BitmapUsed by:759
Symbol 759 GraphicUses:758Used by:762
Symbol 760 BitmapUsed by:761
Symbol 761 GraphicUses:760Used by:762
Symbol 762 MovieClipUses:759 761Used by:Timeline
Symbol 763 EditableTextUses:292Used by:Timeline
Symbol 764 BitmapUsed by:765
Symbol 765 GraphicUses:764Used by:Timeline
Symbol 766 EditableTextUses:292Used by:Timeline
Symbol 767 EditableTextUses:292Used by:Timeline
Symbol 768 TextUses:210Used by:Timeline
Symbol 769 TextUses:292Used by:Timeline
Symbol 770 EditableTextUses:210Used by:Timeline
Symbol 771 EditableTextUses:210Used by:Timeline
Symbol 772 EditableTextUses:210Used by:Timeline
Symbol 773 EditableTextUses:292Used by:Timeline
Symbol 774 EditableTextUses:210Used by:Timeline
Symbol 775 TextUses:292Used by:Timeline
Symbol 776 EditableTextUses:210Used by:Timeline
Symbol 777 EditableTextUses:210Used by:Timeline
Symbol 778 EditableTextUses:210Used by:Timeline
Symbol 779 EditableTextUses:210Used by:Timeline
Symbol 780 BitmapUsed by:781
Symbol 781 GraphicUses:780Used by:782
Symbol 782 MovieClipUses:781Used by:Timeline
Symbol 783 BitmapUsed by:784
Symbol 784 GraphicUses:783Used by:785
Symbol 785 MovieClipUses:784Used by:Timeline
Symbol 786 EditableTextUses:292Used by:Timeline
Symbol 787 GraphicUsed by:788
Symbol 788 MovieClipUses:787Used by:Timeline
Symbol 789 BitmapUsed by:790
Symbol 790 GraphicUses:789Used by:793
Symbol 791 BitmapUsed by:792
Symbol 792 GraphicUses:791Used by:793
Symbol 793 MovieClipUses:790 792Used by:814
Symbol 794 BitmapUsed by:795
Symbol 795 GraphicUses:794Used by:798
Symbol 796 BitmapUsed by:797
Symbol 797 GraphicUses:796Used by:798
Symbol 798 MovieClipUses:795 797Used by:814
Symbol 799 BitmapUsed by:800
Symbol 800 GraphicUses:799Used by:803
Symbol 801 BitmapUsed by:802
Symbol 802 GraphicUses:801Used by:803
Symbol 803 MovieClipUses:800 802Used by:814
Symbol 804 BitmapUsed by:805
Symbol 805 GraphicUses:804Used by:808
Symbol 806 BitmapUsed by:807
Symbol 807 GraphicUses:806Used by:808
Symbol 808 MovieClipUses:805 807Used by:814
Symbol 809 BitmapUsed by:810
Symbol 810 GraphicUses:809Used by:813
Symbol 811 BitmapUsed by:812
Symbol 812 GraphicUses:811Used by:813
Symbol 813 MovieClipUses:810 812Used by:814
Symbol 814 MovieClipUses:793 798 803 808 813Used by:Timeline
Symbol 815 BitmapUsed by:816
Symbol 816 GraphicUses:815Used by:819
Symbol 817 BitmapUsed by:818
Symbol 818 GraphicUses:817Used by:819
Symbol 819 MovieClipUses:816 818Used by:840
Symbol 820 BitmapUsed by:821
Symbol 821 GraphicUses:820Used by:824
Symbol 822 BitmapUsed by:823
Symbol 823 GraphicUses:822Used by:824
Symbol 824 MovieClipUses:821 823Used by:840
Symbol 825 BitmapUsed by:826
Symbol 826 GraphicUses:825Used by:829
Symbol 827 BitmapUsed by:828
Symbol 828 GraphicUses:827Used by:829
Symbol 829 MovieClipUses:826 828Used by:840
Symbol 830 BitmapUsed by:831
Symbol 831 GraphicUses:830Used by:834
Symbol 832 BitmapUsed by:833
Symbol 833 GraphicUses:832Used by:834
Symbol 834 MovieClipUses:831 833Used by:840
Symbol 835 BitmapUsed by:836
Symbol 836 GraphicUses:835Used by:839
Symbol 837 BitmapUsed by:838
Symbol 838 GraphicUses:837Used by:839
Symbol 839 MovieClipUses:836 838Used by:840
Symbol 840 MovieClipUses:819 824 829 834 839Used by:Timeline
Symbol 841 EditableTextUses:292Used by:Timeline
Symbol 842 ShapeTweeningUsed by:846
Symbol 843 FontUsed by:844
Symbol 844 TextUses:843Used by:846
Symbol 845 GraphicUsed by:846
Symbol 846 MovieClipUses:842 844 845Used by:Timeline
Symbol 847 BitmapUsed by:848
Symbol 848 GraphicUses:847Used by:859
Symbol 849 BitmapUsed by:850
Symbol 850 GraphicUses:849Used by:859
Symbol 851 BitmapUsed by:852
Symbol 852 GraphicUses:851Used by:859
Symbol 853 BitmapUsed by:854
Symbol 854 GraphicUses:853Used by:859
Symbol 855 BitmapUsed by:856
Symbol 856 GraphicUses:855Used by:859
Symbol 857 BitmapUsed by:858
Symbol 858 GraphicUses:857Used by:859
Symbol 859 MovieClipUses:848 850 852 854 856 858Used by:Timeline
Symbol 860 BitmapUsed by:861
Symbol 861 GraphicUses:860Used by:864
Symbol 862 BitmapUsed by:863
Symbol 863 GraphicUses:862Used by:864
Symbol 864 ButtonUses:861 863Used by:Timeline
Symbol 865 EditableTextUses:292Used by:Timeline
Symbol 866 GraphicUsed by:868
Symbol 867 EditableTextUses:17Used by:868
Symbol 868 MovieClipUses:866 867Used by:Timeline
Symbol 869 GraphicUsed by:871
Symbol 870 EditableTextUses:17Used by:871
Symbol 871 MovieClipUses:869 870Used by:Timeline
Symbol 872 GraphicUsed by:874
Symbol 873 EditableTextUses:17Used by:874
Symbol 874 MovieClipUses:872 873Used by:Timeline
Symbol 875 GraphicUsed by:877
Symbol 876 TextUses:13Used by:877
Symbol 877 ButtonUses:875 876Used by:Timeline
Symbol 878 BitmapUsed by:879
Symbol 879 GraphicUses:878Used by:Timeline
Symbol 880 GraphicUsed by:882
Symbol 881 EditableTextUses:17Used by:882
Symbol 882 MovieClipUses:880 881Used by:Timeline
Symbol 883 BitmapUsed by:884
Symbol 884 GraphicUses:883Used by:887
Symbol 885 BitmapUsed by:886
Symbol 886 GraphicUses:885Used by:887
Symbol 887 ButtonUses:884 886Used by:Timeline
Symbol 888 BitmapUsed by:889
Symbol 889 GraphicUses:888Used by:892
Symbol 890 BitmapUsed by:891
Symbol 891 GraphicUses:890Used by:892
Symbol 892 ButtonUses:889 891Used by:Timeline
Symbol 893 BitmapUsed by:894
Symbol 894 GraphicUses:893Used by:897
Symbol 895 BitmapUsed by:896
Symbol 896 GraphicUses:895Used by:897
Symbol 897 ButtonUses:894 896Used by:Timeline
Symbol 898 BitmapUsed by:899
Symbol 899 GraphicUses:898Used by:902
Symbol 900 BitmapUsed by:901
Symbol 901 GraphicUses:900Used by:902
Symbol 902 ButtonUses:899 901Used by:Timeline
Symbol 903 BitmapUsed by:904
Symbol 904 GraphicUses:903Used by:907
Symbol 905 BitmapUsed by:906
Symbol 906 GraphicUses:905Used by:907
Symbol 907 ButtonUses:904 906Used by:Timeline
Symbol 908 EditableTextUses:17Used by:Timeline
Symbol 909 EditableTextUses:17Used by:Timeline
Symbol 910 EditableTextUses:17Used by:Timeline
Symbol 911 EditableTextUses:17Used by:Timeline
Symbol 912 EditableTextUses:17Used by:Timeline
Symbol 913 GraphicUsed by:915
Symbol 914 EditableTextUses:13Used by:915
Symbol 915 MovieClipUses:913 914Used by:Timeline
Symbol 916 GraphicUsed by:919
Symbol 917 EditableTextUses:13Used by:919
Symbol 918 GraphicUsed by:919
Symbol 919 MovieClipUses:916 917 918Used by:Timeline
Symbol 920 GraphicUsed by:921
Symbol 921 MovieClipUses:920Used by:Timeline
Symbol 922 EditableTextUses:17Used by:Timeline
Symbol 923 EditableTextUses:13Used by:Timeline
Symbol 924 BitmapUsed by:925
Symbol 925 GraphicUses:924Used by:926
Symbol 926 ButtonUses:925Used by:Timeline
Symbol 927 BitmapUsed by:928
Symbol 928 GraphicUses:927Used by:929
Symbol 929 ButtonUses:928Used by:Timeline
Symbol 930 BitmapUsed by:931
Symbol 931 GraphicUses:930Used by:934
Symbol 932 BitmapUsed by:933
Symbol 933 GraphicUses:932Used by:934
Symbol 934 ButtonUses:931 933Used by:Timeline
Symbol 935 BitmapUsed by:936
Symbol 936 GraphicUses:935Used by:939
Symbol 937 BitmapUsed by:938
Symbol 938 GraphicUses:937Used by:939
Symbol 939 ButtonUses:936 938Used by:Timeline

Instance Names

"nameBox"Frame 3Symbol 431 EditableText
"passBox"Frame 3Symbol 435 EditableText
"enterBtn"Frame 3Symbol 441 MovieClip
"newaccBtn"Frame 3Symbol 445 MovieClip
"forgotpass"Frame 3Symbol 451 Button
"cover"Frame 3Symbol 454 MovieClip
"horse_eye"Frame 3Symbol 464 MovieClip
"welcomemsg"Frame 4Symbol 526 EditableText
"errorMsg"Frame 4Symbol 527 EditableText
"animationButtonsMenu"Frame 4Symbol 546 MovieClip
"submit"Frame 5Symbol 563 MovieClip
"back"Frame 5Symbol 566 MovieClip
"deck1"Frame 5Symbol 570 MovieClip
"deck2"Frame 5Symbol 574 MovieClip
"deck3"Frame 5Symbol 578 MovieClip
"deck4"Frame 5Symbol 582 MovieClip
"username"Frame 5Symbol 583 EditableText
"pass"Frame 5Symbol 584 EditableText
"howToPlay"Frame 6Symbol 672 MovieClip
"game1"Frame 7Symbol 709 MovieClip
"game2"Frame 7Symbol 709 MovieClip
"game3"Frame 7Symbol 709 MovieClip
"game4"Frame 7Symbol 709 MovieClip
"game5"Frame 7Symbol 709 MovieClip
"game6"Frame 7Symbol 709 MovieClip
"game7"Frame 7Symbol 709 MovieClip
"game8"Frame 7Symbol 709 MovieClip
"game9"Frame 7Symbol 709 MovieClip
"game10"Frame 7Symbol 709 MovieClip
"game11"Frame 7Symbol 709 MovieClip
"game12"Frame 7Symbol 709 MovieClip
"game13"Frame 7Symbol 709 MovieClip
"game14"Frame 7Symbol 709 MovieClip
"game15"Frame 7Symbol 709 MovieClip
"msgBox"Frame 7Symbol 710 EditableText
"gameChat"Frame 7Symbol 711 EditableText
"chatboxSb"Frame 7Symbol 423 MovieClip [UIScrollBar]
"mainMenuLobby"Frame 7Symbol 718 Button
"accountSetup"Frame 7Symbol 723 Button
"trade"Frame 7Symbol 728 Button
"logout"Frame 7Symbol 733 Button
"viewOpPicture"Frame 7Symbol 739 MovieClip
"viewMyPicture"Frame 7Symbol 739 MovieClip
"previouspage"Frame 7Symbol 599 Button
"nextpage"Frame 7Symbol 594 Button
"pages"Frame 7Symbol 757 MovieClip
"buy_boosters"Frame 7Symbol 762 MovieClip
"playersList"Frame 7Symbol 763 EditableText
"chatboxSb2"Frame 7Symbol 423 MovieClip [UIScrollBar]
"gameChatSb"Frame 8Symbol 423 MovieClip [UIScrollBar]
"opBackground"Frame 8Symbol 782 MovieClip
"myBackground"Frame 8Symbol 785 MovieClip
"msgBox"Frame 8Symbol 786 EditableText
"graveyard"Frame 8Symbol 321 MovieClip [graveyard]
"classCardsHolder"Frame 8Symbol 788 MovieClip
"myPhases"Frame 8Symbol 814 MovieClip
"opPhases"Frame 8Symbol 840 MovieClip
"timer"Frame 8Symbol 846 MovieClip
"myLifeObj"Frame 8Symbol 859 MovieClip
"opLifeObj"Frame 8Symbol 859 MovieClip
"surrender"Frame 8Symbol 864 Button
"logout"Frame 8Symbol 733 Button
"buddy_list"Frame 8Symbol 728 Button
"viewMyPicture"Frame 8Symbol 739 MovieClip
"gameChat"Frame 8Symbol 865 EditableText
"classHelp"Frame 8Symbol 868 MovieClip
"discardHelp"Frame 8Symbol 871 MovieClip
"handHelp"Frame 8Symbol 874 MovieClip
"equipHelp"Frame 8Symbol 871 MovieClip
"spellHelp"Frame 8Symbol 871 MovieClip
"opFieldHelp"Frame 8Symbol 868 MovieClip
"helpButton"Frame 8Symbol 877 Button
"warningText"Frame 9Symbol 882 MovieClip
"newDeck"Frame 9Symbol 887 Button
"loadDeck"Frame 9Symbol 892 Button
"saveDeck"Frame 9Symbol 897 Button
"deleteDeck"Frame 9Symbol 902 Button
"tradeManager"Frame 9Symbol 907 Button
"msgBox"Frame 9Symbol 908 EditableText
"gameChat"Frame 9Symbol 909 EditableText
"chatboxSb"Frame 9Symbol 423 MovieClip [UIScrollBar]
"renameButton"Frame 9Symbol 915 MovieClip
"setDefaultButton"Frame 9Symbol 919 MovieClip
"deckNameBG"Frame 9Symbol 921 MovieClip
"deckNameInput"Frame 9Symbol 922 EditableText
"buttonPrevious"Frame 9Symbol 926 Button
"buttonNext"Frame 9Symbol 929 Button
"mainMenuManager"Frame 9Symbol 934 Button
"logoutManager"Frame 9Symbol 939 Button
"nameShad"Symbol 21 MovieClip [textFields] Frame 1Symbol 14 EditableText
"name"Symbol 21 MovieClip [textFields] Frame 1Symbol 15 EditableText
"textAndStory"Symbol 21 MovieClip [textFields] Frame 1Symbol 16 EditableText
"typeAndSub"Symbol 21 MovieClip [textFields] Frame 1Symbol 18 EditableText
"powerAndResist"Symbol 21 MovieClip [textFields] Frame 1Symbol 19 EditableText
"artist"Symbol 21 MovieClip [textFields] Frame 1Symbol 20 EditableText
"loadingMsg"Symbol 71 MovieClip [viewCard] Frame 1Symbol 25 EditableText
"loadingMsg"Symbol 71 MovieClip [viewCard] Frame 10Symbol 44 EditableText
"saveNewDeckButton"Symbol 82 MovieClip [saveNewDeckBox] Frame 1Symbol 76 Button
"deckNameInput"Symbol 82 MovieClip [saveNewDeckBox] Frame 1Symbol 79 EditableText
"cancelButton"Symbol 82 MovieClip [saveNewDeckBox] Frame 1Symbol 81 Button
"savingTxt"Symbol 84 MovieClip [saveDeckBox] Frame 1Symbol 83 EditableText
"cardInfoBG"Symbol 122 MovieClip [cardInfo] Frame 1Symbol 116 MovieClip
"textFunc"Symbol 122 MovieClip [cardInfo] Frame 1Symbol 117 EditableText
"typeAndSub"Symbol 122 MovieClip [cardInfo] Frame 1Symbol 118 EditableText
"cardName"Symbol 122 MovieClip [cardInfo] Frame 1Symbol 119 EditableText
"powAndRes"Symbol 122 MovieClip [cardInfo] Frame 1Symbol 120 EditableText
"handle"Symbol 122 MovieClip [cardInfo] Frame 1Symbol 121 EditableText
"loadDeckButton"Symbol 126 MovieClip [deckList] Frame 1Symbol 125 Button
"cancelButton"Symbol 126 MovieClip [deckList] Frame 1Symbol 81 Button
"hit"Symbol 176 MovieClip [cardManager] Frame 1Symbol 130 MovieClip
"addCard"Symbol 176 MovieClip [cardManager] Frame 1Symbol 133 MovieClip
"removeCard"Symbol 176 MovieClip [cardManager] Frame 1Symbol 135 Button
"deck"Symbol 176 MovieClip [cardManager] Frame 1Symbol 136 EditableText
"circle"Symbol 176 MovieClip [cardManager] Frame 1Symbol 138 MovieClip
"quantity"Symbol 176 MovieClip [cardManager] Frame 1Symbol 139 EditableText
"textBox"Symbol 193 MovieClip Frame 1Symbol 192 EditableText
"dragBox"Symbol 194 MovieClip [attackResponse] Frame 7Symbol 188 Button
"cancel"Symbol 194 MovieClip [attackResponse] Frame 7Symbol 193 MovieClip
"attack"Symbol 194 MovieClip [attackResponse] Frame 7Symbol 193 MovieClip
"dragBox"Symbol 197 MovieClip [waitingResponse] Frame 7Symbol 188 Button
"textBox"Symbol 201 MovieClip Frame 1Symbol 200 EditableText
"dragBox"Symbol 202 MovieClip [okCancelResponse] Frame 7Symbol 188 Button
"ok"Symbol 202 MovieClip [okCancelResponse] Frame 7Symbol 201 MovieClip
"cancel"Symbol 202 MovieClip [okCancelResponse] Frame 7Symbol 201 MovieClip
"dragBox"Symbol 204 MovieClip [okResponse] Frame 7Symbol 188 Button
"cancel"Symbol 204 MovieClip [okResponse] Frame 7Symbol 193 MovieClip
"dragBox"Symbol 207 MovieClip [defenseResponse] Frame 7Symbol 188 Button
"cancel"Symbol 207 MovieClip [defenseResponse] Frame 7Symbol 193 MovieClip
"ability"Symbol 207 MovieClip [defenseResponse] Frame 7Symbol 193 MovieClip
"counterAttack"Symbol 207 MovieClip [defenseResponse] Frame 7Symbol 193 MovieClip
"blockAttack"Symbol 207 MovieClip [defenseResponse] Frame 7Symbol 193 MovieClip
"cardSelected"Symbol 215 MovieClip [card] Frame 1Symbol 214 MovieClip [cardSelected]
"dragBox"Symbol 220 MovieClip [bonusCards] Frame 1Symbol 188 Button
"pickCard1"Symbol 220 MovieClip [bonusCards] Frame 1Symbol 215 MovieClip [card]
"pickCard2"Symbol 220 MovieClip [bonusCards] Frame 1Symbol 215 MovieClip [card]
"pickCard3"Symbol 220 MovieClip [bonusCards] Frame 1Symbol 215 MovieClip [card]
"pickCard4"Symbol 220 MovieClip [bonusCards] Frame 1Symbol 215 MovieClip [card]
"pickCard5"Symbol 220 MovieClip [bonusCards] Frame 1Symbol 215 MovieClip [card]
"saveBonus"Symbol 220 MovieClip [bonusCards] Frame 1Symbol 219 Button
"dfs"Symbol 271 MovieClip [BtnDownArrow] Frame 1Symbol 223 MovieClip [ScrollTrack]
"dfs"Symbol 272 MovieClip [BtnUpArrow] Frame 1Symbol 223 MovieClip [ScrollTrack]
"ok"Symbol 296 MovieClip [okCancelResponseBlack] Frame 1Symbol 291 Button
"cancel"Symbol 296 MovieClip [okCancelResponseBlack] Frame 1Symbol 291 Button
"windowText"Symbol 296 MovieClip [okCancelResponseBlack] Frame 1Symbol 295 EditableText
"warningTxt"Symbol 300 MovieClip [warningBox] Frame 1Symbol 297 EditableText
"warningOk"Symbol 300 MovieClip [warningBox] Frame 1Symbol 299 Button
"boundingBox_mc"Symbol 344 MovieClip [FocusRect] Frame 1Symbol 334 MovieClip [BoundingBox]
"tabCapture"Symbol 345 MovieClip [FocusManager] Frame 1Symbol 342 Button
"b"Symbol 353 MovieClip [SimpleButtonDown] Frame 1Symbol 350 MovieClip [BrdrShdw]
"face"Symbol 353 MovieClip [SimpleButtonDown] Frame 1Symbol 352 MovieClip [BrdrFace]
"b"Symbol 358 MovieClip [SimpleButtonIn] Frame 1Symbol 355 MovieClip [BrdrBlk]
"it"Symbol 358 MovieClip [SimpleButtonIn] Frame 1Symbol 357 MovieClip [BrdrHilght]
"g"Symbol 358 MovieClip [SimpleButtonIn] Frame 1Symbol 350 MovieClip [BrdrShdw]
"face"Symbol 358 MovieClip [SimpleButtonIn] Frame 1Symbol 352 MovieClip [BrdrFace]
"ob"Symbol 359 MovieClip [SimpleButtonUp] Frame 1Symbol 355 MovieClip [BrdrBlk]
"ol"Symbol 359 MovieClip [SimpleButtonUp] Frame 1Symbol 352 MovieClip [BrdrFace]
"ib"Symbol 359 MovieClip [SimpleButtonUp] Frame 1Symbol 350 MovieClip [BrdrShdw]
"il"Symbol 359 MovieClip [SimpleButtonUp] Frame 1Symbol 357 MovieClip [BrdrHilght]
"face"Symbol 359 MovieClip [SimpleButtonUp] Frame 1Symbol 352 MovieClip [BrdrFace]
"boundingBox_mc"Symbol 360 MovieClip [SimpleButton] Frame 1Symbol 334 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 364 MovieClip [Button] Frame 1Symbol 334 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 366 MovieClip [HScrollBar] Frame 1Symbol 334 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 367 MovieClip [VScrollBar] Frame 1Symbol 334 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 368 MovieClip [View] Frame 1Symbol 334 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 369 MovieClip [ScrollView] Frame 1Symbol 334 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 371 MovieClip [List] Frame 1Symbol 334 MovieClip [BoundingBox]
"label"Symbol 405 MovieClip [TextInput] Frame 1Symbol 404 EditableText
"boundingBox_mc"Symbol 406 MovieClip [ComboBase] Frame 1Symbol 334 MovieClip [BoundingBox]
"dfs"Symbol 413 MovieClip [ComboDownArrowDisabled] Frame 1Symbol 412 MovieClip [ComboDownArrowUp]
"boundingBox_mc"Symbol 419 MovieClip [ComboBox] Frame 1Symbol 334 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 423 MovieClip [UIScrollBar] Frame 1Symbol 334 MovieClip [BoundingBox]
"logoutLogin"Symbol 546 MovieClip Frame 1Symbol 531 MovieClip
"tradeLogin"Symbol 546 MovieClip Frame 1Symbol 535 MovieClip
"howToPlay"Symbol 546 MovieClip Frame 1Symbol 539 MovieClip
"managerLogin"Symbol 546 MovieClip Frame 1Symbol 542 MovieClip
"lobbyLogin"Symbol 546 MovieClip Frame 1Symbol 545 MovieClip
"backHowTo"Symbol 672 MovieClip Frame 1Symbol 566 MovieClip
"nextHowTo"Symbol 672 MovieClip Frame 1Symbol 594 Button
"prevHowTo"Symbol 672 MovieClip Frame 1Symbol 599 Button
"create_game"Symbol 709 MovieClip Frame 1Symbol 682 Button
"join_game"Symbol 709 MovieClip Frame 2Symbol 695 Button
"drawPhase"Symbol 814 MovieClip Frame 1Symbol 793 MovieClip
"equipPhase"Symbol 814 MovieClip Frame 1Symbol 798 MovieClip
"spellPhase"Symbol 814 MovieClip Frame 1Symbol 803 MovieClip
"attackPhase"Symbol 814 MovieClip Frame 1Symbol 808 MovieClip
"endPhase"Symbol 814 MovieClip Frame 1Symbol 813 MovieClip
"drawPhase"Symbol 840 MovieClip Frame 1Symbol 819 MovieClip
"equipPhase"Symbol 840 MovieClip Frame 1Symbol 824 MovieClip
"spellPhase"Symbol 840 MovieClip Frame 1Symbol 829 MovieClip
"attackPhase"Symbol 840 MovieClip Frame 1Symbol 834 MovieClip
"endPhase"Symbol 840 MovieClip Frame 1Symbol 839 MovieClip
"helpText"Symbol 868 MovieClip Frame 1Symbol 867 EditableText
"helpText"Symbol 871 MovieClip Frame 1Symbol 870 EditableText
"helpText"Symbol 874 MovieClip Frame 1Symbol 873 EditableText
"renameTxt"Symbol 915 MovieClip Frame 1Symbol 914 EditableText
"defaultTxt"Symbol 919 MovieClip Frame 1Symbol 917 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
Protect (24)Timeline Frame 131 bytes "..$1$Az$LHhVwBh2WflaMhCVgm6wH/."
ExportAssets (56)Timeline Frame 1Symbol 1 as "win.au"
ExportAssets (56)Timeline Frame 1Symbol 2 as "phase.au"
ExportAssets (56)Timeline Frame 1Symbol 3 as "opaction.au"
ExportAssets (56)Timeline Frame 1Symbol 4 as "myturn.au"
ExportAssets (56)Timeline Frame 1Symbol 5 as "mouseover.au"
ExportAssets (56)Timeline Frame 1Symbol 6 as "lose.au"
ExportAssets (56)Timeline Frame 1Symbol 7 as "login.mp3"
ExportAssets (56)Timeline Frame 1Symbol 8 as "lobby.mp3"
ExportAssets (56)Timeline Frame 1Symbol 9 as "intro.au"
ExportAssets (56)Timeline Frame 1Symbol 10 as "game.mp3"
ExportAssets (56)Timeline Frame 1Symbol 11 as "battlestart.au"
ExportAssets (56)Timeline Frame 1Symbol 12 as "animation.wav"
ExportAssets (56)Timeline Frame 1Symbol 21 as "textFields"
ExportAssets (56)Timeline Frame 1Symbol 71 as "viewCard"
ExportAssets (56)Timeline Frame 1Symbol 82 as "saveNewDeckBox"
ExportAssets (56)Timeline Frame 1Symbol 84 as "saveDeckBox"
ExportAssets (56)Timeline Frame 1Symbol 87 as "a"
ExportAssets (56)Timeline Frame 1Symbol 90 as "av"
ExportAssets (56)Timeline Frame 1Symbol 93 as "g"
ExportAssets (56)Timeline Frame 1Symbol 96 as "h"
ExportAssets (56)Timeline Frame 1Symbol 99 as "k"
ExportAssets (56)Timeline Frame 1Symbol 102 as "m"
ExportAssets (56)Timeline Frame 1Symbol 105 as "p"
ExportAssets (56)Timeline Frame 1Symbol 108 as "s"
ExportAssets (56)Timeline Frame 1Symbol 111 as "w"
ExportAssets (56)Timeline Frame 1Symbol 114 as "e"
ExportAssets (56)Timeline Frame 1Symbol 122 as "cardInfo"
ExportAssets (56)Timeline Frame 1Symbol 126 as "deckList"
ExportAssets (56)Timeline Frame 1Symbol 176 as "cardManager"
ExportAssets (56)Timeline Frame 1Symbol 179 as "countsBox"
ExportAssets (56)Timeline Frame 1Symbol 184 as "infoBox"
ExportAssets (56)Timeline Frame 1Symbol 194 as "attackResponse"
ExportAssets (56)Timeline Frame 1Symbol 197 as "waitingResponse"
ExportAssets (56)Timeline Frame 1Symbol 202 as "okCancelResponse"
ExportAssets (56)Timeline Frame 1Symbol 204 as "okResponse"
ExportAssets (56)Timeline Frame 1Symbol 207 as "defenseResponse"
ExportAssets (56)Timeline Frame 1Symbol 214 as "cardSelected"
ExportAssets (56)Timeline Frame 1Symbol 215 as "card"
ExportAssets (56)Timeline Frame 1Symbol 220 as "bonusCards"
ExportAssets (56)Timeline Frame 1Symbol 223 as "ScrollTrack"
ExportAssets (56)Timeline Frame 1Symbol 226 as "ScrollDownArrowDisabled"
ExportAssets (56)Timeline Frame 1Symbol 227 as "ScrollDownArrowDown"
ExportAssets (56)Timeline Frame 1Symbol 230 as "ScrollThemeColor1"
ExportAssets (56)Timeline Frame 1Symbol 234 as "ScrollDownArrowOver"
ExportAssets (56)Timeline Frame 1Symbol 235 as "ScrollDownArrowUp"
ExportAssets (56)Timeline Frame 1Symbol 241 as "ScrollThumbBottomDisabled"
ExportAssets (56)Timeline Frame 1Symbol 243 as "ThumbThemeColor1"
ExportAssets (56)Timeline Frame 1Symbol 244 as "ScrollThumbBottomDown"
ExportAssets (56)Timeline Frame 1Symbol 245 as "ScrollThumbBottomOver"
ExportAssets (56)Timeline Frame 1Symbol 246 as "ScrollThumbBottomUp"
ExportAssets (56)Timeline Frame 1Symbol 248 as "ScrollThumbGripDisabled"
ExportAssets (56)Timeline Frame 1Symbol 250 as "ThumbThemeColor2"
ExportAssets (56)Timeline Frame 1Symbol 251 as "ScrollThumbGripDown"
ExportAssets (56)Timeline Frame 1Symbol 252 as "ScrollThumbGripOver"
ExportAssets (56)Timeline Frame 1Symbol 253 as "ScrollThumbGripUp"
ExportAssets (56)Timeline Frame 1Symbol 255 as "ScrollThumbMiddleDisabled"
ExportAssets (56)Timeline Frame 1Symbol 256 as "ScrollThumbMiddleDown"
ExportAssets (56)Timeline Frame 1Symbol 260 as "ScrollThumbMiddleOver"
ExportAssets (56)Timeline Frame 1Symbol 261 as "ScrollThumbMiddleUp"
ExportAssets (56)Timeline Frame 1Symbol 262 as "ScrollThumbTopDisabled"
ExportAssets (56)Timeline Frame 1Symbol 263 as "ScrollThumbTopDown"
ExportAssets (56)Timeline Frame 1Symbol 264 as "ScrollThumbTopOver"
ExportAssets (56)Timeline Frame 1Symbol 265 as "ScrollThumbTopUp"
ExportAssets (56)Timeline Frame 1Symbol 266 as "ScrollTrackDisabled"
ExportAssets (56)Timeline Frame 1Symbol 267 as "ScrollUpArrowDisabled"
ExportAssets (56)Timeline Frame 1Symbol 268 as "ScrollUpArrowDown"
ExportAssets (56)Timeline Frame 1Symbol 269 as "ScrollUpArrowOver"
ExportAssets (56)Timeline Frame 1Symbol 270 as "ScrollUpArrowUp"
ExportAssets (56)Timeline Frame 1Symbol 271 as "BtnDownArrow"
ExportAssets (56)Timeline Frame 1Symbol 272 as "BtnUpArrow"
ExportAssets (56)Timeline Frame 1Symbol 273 as "VScrollBarAssets"
ExportAssets (56)Timeline Frame 1Symbol 274 as "ScrollBarAssets"
ExportAssets (56)Timeline Frame 1Symbol 275 as "HScrollBarAssets"
ExportAssets (56)Timeline Frame 1Symbol 279 as "fade_control"
ExportAssets (56)Timeline Frame 1Symbol 282 as "lose_animation"
ExportAssets (56)Timeline Frame 1Symbol 285 as "gain_animation"
ExportAssets (56)Timeline Frame 1Symbol 296 as "okCancelResponseBlack"
ExportAssets (56)Timeline Frame 1Symbol 300 as "warningBox"
ExportAssets (56)Timeline Frame 1Symbol 313 as "rarityClip"
ExportAssets (56)Timeline Frame 1Symbol 318 as "boxClip"
ExportAssets (56)Timeline Frame 1Symbol 321 as "graveyard"
ExportAssets (56)Timeline Frame 1Symbol 323 as "flames"
ExportAssets (56)Timeline Frame 1Symbol 334 as "BoundingBox"
ExportAssets (56)Timeline Frame 1Symbol 335 as "DataProvider"
ExportAssets (56)Timeline Frame 1Symbol 336 as "DataSelector"
ExportAssets (56)Timeline Frame 1Symbol 337 as "Defaults"
ExportAssets (56)Timeline Frame 1Symbol 338 as "UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 339 as "UIObject"
ExportAssets (56)Timeline Frame 1Symbol 344 as "FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 345 as "FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 346 as "UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 347 as "UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 348 as "SelectableRow"
ExportAssets (56)Timeline Frame 1Symbol 350 as "BrdrShdw"
ExportAssets (56)Timeline Frame 1Symbol 352 as "BrdrFace"
ExportAssets (56)Timeline Frame 1Symbol 353 as "SimpleButtonDown"
ExportAssets (56)Timeline Frame 1Symbol 355 as "BrdrBlk"
ExportAssets (56)Timeline Frame 1Symbol 357 as "BrdrHilght"
ExportAssets (56)Timeline Frame 1Symbol 358 as "SimpleButtonIn"
ExportAssets (56)Timeline Frame 1Symbol 359 as "SimpleButtonUp"
ExportAssets (56)Timeline Frame 1Symbol 360 as "SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 361 as "Border"
ExportAssets (56)Timeline Frame 1Symbol 362 as "RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 363 as "ButtonSkin"
ExportAssets (56)Timeline Frame 1Symbol 364 as "Button"
ExportAssets (56)Timeline Frame 1Symbol 365 as "CustomBorder"
ExportAssets (56)Timeline Frame 1Symbol 366 as "HScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 367 as "VScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 368 as "View"
ExportAssets (56)Timeline Frame 1Symbol 369 as "ScrollView"
ExportAssets (56)Timeline Frame 1Symbol 370 as "ScrollSelectList"
ExportAssets (56)Timeline Frame 1Symbol 371 as "List"
ExportAssets (56)Timeline Frame 1Symbol 405 as "TextInput"
ExportAssets (56)Timeline Frame 1Symbol 406 as "ComboBase"
ExportAssets (56)Timeline Frame 1Symbol 412 as "ComboDownArrowUp"
ExportAssets (56)Timeline Frame 1Symbol 413 as "ComboDownArrowDisabled"
ExportAssets (56)Timeline Frame 1Symbol 415 as "ComboThemeColor1"
ExportAssets (56)Timeline Frame 1Symbol 416 as "ComboDownArrowDown"
ExportAssets (56)Timeline Frame 1Symbol 417 as "ComboDownArrowOver"
ExportAssets (56)Timeline Frame 1Symbol 418 as "ComboAssets"
ExportAssets (56)Timeline Frame 1Symbol 419 as "ComboBox"
ExportAssets (56)Timeline Frame 1Symbol 423 as "UIScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 387 as "__Packages.mx.skins.ColoredSkinElement"
ExportAssets (56)Timeline Frame 1Symbol 940 as "__Packages.MochiAd"
ExportAssets (56)Timeline Frame 1Symbol 325 as "__Packages.mx.core.UIObject"
ExportAssets (56)Timeline Frame 1Symbol 372 as "__Packages.mx.skins.SkinElement"
ExportAssets (56)Timeline Frame 1Symbol 373 as "__Packages.mx.styles.CSSTextStyles"
ExportAssets (56)Timeline Frame 1Symbol 375 as "__Packages.mx.styles.CSSStyleDeclaration"
ExportAssets (56)Timeline Frame 1Symbol 374 as "__Packages.mx.styles.StyleManager"
ExportAssets (56)Timeline Frame 1Symbol 326 as "__Packages.mx.core.UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 381 as "__Packages.mx.controls.SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 941 as "__Packages.it.gotoandplay.smartfoxserver.SmartFoxClient"
ExportAssets (56)Timeline Frame 1Symbol 942 as "__Packages.it.gotoandplay.smartfoxserver.ObjectSerializer"
ExportAssets (56)Timeline Frame 1Symbol 943 as "__Packages.it.gotoandplay.smartfoxserver.Room"
ExportAssets (56)Timeline Frame 1Symbol 944 as "__Packages.it.gotoandplay.smartfoxserver.User"
ExportAssets (56)Timeline Frame 1Symbol 945 as "__Packages.it.gotoandplay.smartfoxserver.JSON"
ExportAssets (56)Timeline Frame 1Symbol 324 as "__Packages.mx.controls.listclasses.DataSelector"
ExportAssets (56)Timeline Frame 1Symbol 327 as "__Packages.mx.core.View"
ExportAssets (56)Timeline Frame 1Symbol 328 as "__Packages.mx.core.ScrollView"
ExportAssets (56)Timeline Frame 1Symbol 329 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 330 as "__Packages.mx.controls.listclasses.DataProvider"
ExportAssets (56)Timeline Frame 1Symbol 331 as "__Packages.mx.controls.listclasses.ScrollSelectList"
ExportAssets (56)Timeline Frame 1Symbol 332 as "__Packages.mx.controls.List"
ExportAssets (56)Timeline Frame 1Symbol 376 as "__Packages.mx.skins.Border"
ExportAssets (56)Timeline Frame 1Symbol 377 as "__Packages.mx.skins.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 378 as "__Packages.mx.managers.DepthManager"
ExportAssets (56)Timeline Frame 1Symbol 379 as "__Packages.mx.events.UIEventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 380 as "__Packages.mx.core.ExternalContent"
ExportAssets (56)Timeline Frame 1Symbol 382 as "__Packages.mx.skins.CustomBorder"
ExportAssets (56)Timeline Frame 1Symbol 383 as "__Packages.mx.controls.scrollClasses.ScrollThumb"
ExportAssets (56)Timeline Frame 1Symbol 384 as "__Packages.mx.controls.scrollClasses.ScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 385 as "__Packages.mx.effects.Tween"
ExportAssets (56)Timeline Frame 1Symbol 386 as "__Packages.mx.controls.listclasses.SelectableRow"
ExportAssets (56)Timeline Frame 1Symbol 388 as "__Packages.mx.core.ext.UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 389 as "__Packages.mx.skins.halo.Defaults"
ExportAssets (56)Timeline Frame 1Symbol 390 as "__Packages.mx.managers.SystemManager"
ExportAssets (56)Timeline Frame 1Symbol 391 as "__Packages.mx.managers.FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 392 as "__Packages.mx.skins.halo.FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 393 as "__Packages.mx.managers.OverlappedWindows"
ExportAssets (56)Timeline Frame 1Symbol 394 as "__Packages.mx.styles.CSSSetStyle"
ExportAssets (56)Timeline Frame 1Symbol 395 as "__Packages.mx.core.ext.UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 396 as "__Packages.mx.controls.HScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 397 as "__Packages.mx.controls.Button"
ExportAssets (56)Timeline Frame 1Symbol 398 as "__Packages.mx.skins.halo.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 399 as "__Packages.mx.skins.halo.ButtonSkin"
ExportAssets (56)Timeline Frame 1Symbol 400 as "__Packages.mx.controls.VScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 401 as "__Packages.mx.controls.ComboBase"
ExportAssets (56)Timeline Frame 1Symbol 402 as "__Packages.mx.controls.ComboBox"
ExportAssets (56)Timeline Frame 1Symbol 420 as "__Packages.mx.controls.TextInput"
ExportAssets (56)Timeline Frame 1Symbol 421 as "__Packages.mx.managers.PopUpManager"
ExportAssets (56)Timeline Frame 1Symbol 422 as "__Packages.mx.controls.UIScrollBar"

Labels

"mochiads"Frame 1
"global_conn"Frame 2
"global_funcs"Frame 2
"loading"Frame 2
"login"Frame 3
"animation"Frame 4
"signin"Frame 5
"howtoplay"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 71 MovieClip [viewCard] Frame 2
"_classknight"Symbol 71 MovieClip [viewCard] Frame 3
"_classpaladin"Symbol 71 MovieClip [viewCard] Frame 4
"_classsorcerer"Symbol 71 MovieClip [viewCard] Frame 5
"_subclassassassin"Symbol 71 MovieClip [viewCard] Frame 6
"_subclassgladiator"Symbol 71 MovieClip [viewCard] Frame 7
"_subclassmonk"Symbol 71 MovieClip [viewCard] Frame 8
"_subclasswizard"Symbol 71 MovieClip [viewCard] Frame 9
"ability_attack"Symbol 71 MovieClip [viewCard] Frame 10
"ability_defense"Symbol 71 MovieClip [viewCard] Frame 11
"ability_usage"Symbol 71 MovieClip [viewCard] Frame 12
"armor"Symbol 71 MovieClip [viewCard] Frame 13
"artifact_amulet"Symbol 71 MovieClip [viewCard] Frame 14
"artifact_item"Symbol 71 MovieClip [viewCard] Frame 15
"artifact_item2"Symbol 71 MovieClip [viewCard] Frame 16
"artifact_shield"Symbol 71 MovieClip [viewCard] Frame 17
"artifact_shield2"Symbol 71 MovieClip [viewCard] Frame 18
"artifact_weapon"Symbol 71 MovieClip [viewCard] Frame 19
"artifact_weapon2"Symbol 71 MovieClip [viewCard] Frame 20
"spell_attack"Symbol 71 MovieClip [viewCard] Frame 21
"spell_defense"Symbol 71 MovieClip [viewCard] Frame 22
"spell_usage"Symbol 71 MovieClip [viewCard] Frame 23
"_classhunter"Symbol 176 MovieClip [cardManager] Frame 1
"_classknight"Symbol 176 MovieClip [cardManager] Frame 2
"_classpaladin"Symbol 176 MovieClip [cardManager] Frame 3
"_classsorcerer"Symbol 176 MovieClip [cardManager] Frame 4
"_subclassassassin"Symbol 176 MovieClip [cardManager] Frame 5
"_subclassgladiator"Symbol 176 MovieClip [cardManager] Frame 6
"_subclassmonk"Symbol 176 MovieClip [cardManager] Frame 7
"_subclasswizard"Symbol 176 MovieClip [cardManager] Frame 8
"ability_attack"Symbol 176 MovieClip [cardManager] Frame 9
"ability_defense"Symbol 176 MovieClip [cardManager] Frame 10
"ability_usage"Symbol 176 MovieClip [cardManager] Frame 11
"armor"Symbol 176 MovieClip [cardManager] Frame 12
"artifact_item"Symbol 176 MovieClip [cardManager] Frame 13
"artifact_shield"Symbol 176 MovieClip [cardManager] Frame 14
"artifact_weapon"Symbol 176 MovieClip [cardManager] Frame 15
"spell_attack"Symbol 176 MovieClip [cardManager] Frame 16
"spell_defense"Symbol 176 MovieClip [cardManager] Frame 17
"spell_usage"Symbol 176 MovieClip [cardManager] Frame 18
"artifact_amulet"Symbol 176 MovieClip [cardManager] Frame 19
"_classhunter"Symbol 215 MovieClip [card] Frame 1
"_classknight"Symbol 215 MovieClip [card] Frame 2
"_classpaladin"Symbol 215 MovieClip [card] Frame 3
"_classsorcerer"Symbol 215 MovieClip [card] Frame 4
"_subclassassassin"Symbol 215 MovieClip [card] Frame 5
"_subclassgladiator"Symbol 215 MovieClip [card] Frame 6
"_subclassmonk"Symbol 215 MovieClip [card] Frame 7
"_subclasswizard"Symbol 215 MovieClip [card] Frame 8
"ability_attack"Symbol 215 MovieClip [card] Frame 9
"ability_defense"Symbol 215 MovieClip [card] Frame 10
"ability_usage"Symbol 215 MovieClip [card] Frame 11
"armor"Symbol 215 MovieClip [card] Frame 12
"artifact_item"Symbol 215 MovieClip [card] Frame 13
"artifact_shield"Symbol 215 MovieClip [card] Frame 14
"artifact_weapon"Symbol 215 MovieClip [card] Frame 15
"spell_attack"Symbol 215 MovieClip [card] Frame 16
"spell_defense"Symbol 215 MovieClip [card] Frame 17
"spell_usage"Symbol 215 MovieClip [card] Frame 18
"artifact_amulet"Symbol 215 MovieClip [card] Frame 19
"create"Symbol 709 MovieClip Frame 1
"join"Symbol 709 MovieClip Frame 2
"close"Symbol 709 MovieClip Frame 3
"end"Symbol 709 MovieClip Frame 4

Dynamic Text Variables

_parent.attackCountsSymbol 178 EditableText""
_parent.powerCountSymbol 182 EditableText""
_parent.resistenceCountSymbol 183 EditableText""
windowTextSymbol 196 EditableText""
windowTextSymbol 198 EditableText""
windowTextSymbol 203 EditableText""
pointsSymbol 280 EditableText""
pointsSymbol 281 EditableText""
pointsSymbol 283 EditableText""
pointsSymbol 284 EditableText""
loginMsgSymbol 430 EditableText""
_root.myNameSymbol 431 EditableText""
_root.passwordSymbol 435 EditableText""
versionDisplaySymbol 452 EditableText""
newsDataSymbol 455 EditableText"<p align="left"><font face="Arial" size="10" color="#000000" letterSpacing="0.000000" kerning="0">Loading news...</font></p>"
newsDataSymbol 456 EditableText"<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading news...</font></p>"
slotTxtSymbol 686 EditableText""
slotTxtSymbol 687 EditableText""
topInfoSymbol 690 EditableText""
userOnLevelSymbol 691 EditableText""
userOnLevelSymbol 692 EditableText""
slotTxtSymbol 693 EditableText""
slotTxtSymbol 694 EditableText""
slotTxtSymbol 698 EditableText""
slotTxtSymbol 699 EditableText""
p1NameSymbol 700 EditableText""
p1NameSymbol 701 EditableText""
p2NameSymbol 704 EditableText""
p2NameSymbol 705 EditableText""
slotTxtSymbol 707 EditableText"Ending game..."
slotTxtSymbol 708 EditableText"Ending game..."
totalusersSymbol 712 EditableText""
_root.myNameSymbol 734 EditableText""
_root.myLevelSymbol 735 EditableText""
_root.totalXpSymbol 736 EditableText""
_root.viewOpNameSymbol 737 EditableText""
_root.viewOpLevelSymbol 738 EditableText""
_root.initialmsgSymbol 740 EditableText""
_root.viewOpAccTypeSymbol 741 EditableText""
_root.myNameSymbol 766 EditableText""
_root.myLevelSymbol 767 EditableText""
_root.myLifeSymbol 770 EditableText""
_root.myDeckSymbol 771 EditableText""
_root.myDiscardSymbol 772 EditableText""
_root.opLevelSymbol 773 EditableText""
_root.myHandSymbol 774 EditableText""
_root.opLifeSymbol 776 EditableText""
_root.opDeckSymbol 777 EditableText""
_root.opDiscardSymbol 778 EditableText""
_root.opHandSymbol 779 EditableText""
_root.opNameSymbol 841 EditableText""
_root.warningSymbol 881 EditableText""
totalCardsSymbol 910 EditableText""
cardsInDeckSymbol 911 EditableText""
classesInDeckSymbol 912 EditableText""
loadingMsgSymbol 923 EditableText""




http://swfchan.com/8/39321/info.shtml
Created: 12/5 -2019 10:49:55 Last modified: 12/5 -2019 10:49:55 Server time: 22/12 -2024 20:30:10