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/95337360?noj=FRM95337360-22DC" width="1" height="1"></div>

Ederon - Phoenix Rising.swf

This is the info page for
Flash #61977

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


Text
<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Morph into</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Untappable</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Unblockable</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Rebuild</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Legacy</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Shattering</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Conjoined</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Retract</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Remove:</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Instant Equip</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Instant Effect</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Fast Strike</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Double Spell</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Double Ability</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Attack Effect:</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Attack Counts:</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>Ranged</b></font></p>

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

Loading...

Loading
Image

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

OK

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

Loading...

Congratulations! You got bonus cards!

Choose 3 cards to add to your
collection:

Save

/

Attack Phase

Defense Response

Response to Action

+

-

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

Select a Deck

Saving Deck...

Save as:

CANCEL

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

<Equip Phase>

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

ACHIEVEMENTS

RETURN TO MAIN MENU

Ederon.com

Ederon.com

<p align="left"><font face="Knights Quest" size="10" color="#ffffff" letterSpacing="3.000000" kerning="0"><a href="http://maestrorage.newgrounds.com/audio/" target = "_blank">Sound track by Selcuk Bor</a></font></p>

<p align="left"><font face="Arial" size="10" color="#000000" letterSpacing="0.000000" kerning="0">Loading news...</font></p>

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

USERNAME

Forgot Username or Password?

Forgot Username or Password?

Forgot Username or Password?

PASSWORD

<p align="left"><font face="Knights Quest" size="10" color="#ffffff" letterSpacing="3.000000" kerning="0"><a href="http://angeliq.deviantart.com/" target = "_blank">Design by Jovana Gašpar</a></font></p>

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

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

PROFILE

<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>

Starter Deck

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

Choose one of the pre-defined decks below to start with your account. You can upgrade your
account and start making your own deck at anytime from your account page.

Create your account

<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 caught trying any kind of cheat in this game can end by having their account removed by the administrators.</font></p><p align="left"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">* Bad behavior or swearing is not acceptable and can cause your account to be suspended or removed.</font></p><p align="left"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">* You get free cards when you level up, so get ready to kick some fools!</font></p>

Submit

Submit

Back

Back

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

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

Ederon is a card game that you can
play against other people world wide.
In the game, you represent one
warrior from one or more fight style
determined by your class, and fight
against other opponents with similar
variations onilne. During the battle,
you will be able to use several
equipments, abilities and spells that
are available in your deck. The game
is divided by turns, and wins who
takes the opponent's life points down
to zero. During the game, you will
realize that each turn is divided by 5
different phases, and knowing how to
manage these phases may be the
key to your victory. You can see to
your left how a basic battle screen
looks like:

Basics: Page 1

Click to enlarge

Complicated? Don't worry. It is
easier than it looks.
Now, as I said before, the game
basically works with turns. Each turn
you will be able to play an item from
your hand (such as weapons,
armors or shields), attack your
opponent using a weapon in your
playfield and/or by use a spell or
ability from your hand. During your
opponent's turn, you will be able to
block attacks with defensive items in
your playfield (armors, shields or
even weapons) and/or use defense
abilities/spells. As the game flows,
you will learn that each class  has its
potencial strengh. You might find
that the best tactic is to simply try
everything (view picture)

Basics: Page 2

As you probably already realized,
Ederon is a card game (really?).
And as any card game, the entire
strategy lies on how you build
your deck and how well you
manage to build combos. Ederon
has a vast collection of cards and
it's constantly releasing new
expansions.

There are basically 5 types of cards in
Ederon. Each type has a certain way and
phase to be used during the game:
Classes - There are 8 class cards in the
game. They are the ones that control the
game. Regular cards can only be played if
you're using one of the classes that the
card requires.
Artifacts - With the exception of amulets,
every artifact requires at least one free
hand to be played. You can see how many
hands an artifact uses by checking the
bottom right icon. Different then other
items, you cannot have more then one
weapon or one shield in the playfield.
Armor - Armors are the defensive part of
mostly every type of deck. No matter what
kind of attack you are receiving, the
damage always hits the armor first unless it
is otherwise specified.

Abilities and Spells - Different than armor
and artifacts, abilities and spells are used
directly from your hand and discarded
afterwards. There are 3 subtypes of
abilities/spells. You will find more
information about it later in this book.

Card Types: Page 3

Class

Artifact

Armor

Usage
Ability

Attack
Ability

Defense
Ability

Usage
Spell

Attack
Spell

Defense
Spell

Besides types, each card on
Ederon also consist of a subtype.
Ederon has a huge variaty of
subtypes. A subtype, in most
cases, will determine if the card
can or cannot be played during a
certain phase (such as spells or
abilities). On artifacts, a subtype
will determine if it is a weapon
(mace, sword, axe, bow,
crossbow), a shield or a random
usage item (such as flasks, books
and orbs). On armors, subtypes
will determine the material that
armor is made off. In most cases,
learning these subtypes will come
naturaly, so my best advice is to
not worry about that right now.

Card Types: Page 4

1

2

3

4

6

5

7

Card Name

Class Requirement

3

4

Type and Subtype

Power/Resistance

5

Card Descr.

6

Rarity

7

Hands to hold

Your turn is separeted by 5 different
Phases. On each phase you are able to
play a card or perform an action. This is
your Phase Indicator:
Draw phase
Every turn you automatically draw one
card from your deck. This action happens
automatically and you cannot avoid it. Be
aware that once you have no more cards
in your deck, the game is over and you
lose the match.
Equip Phase
In this phase you are able to remove any
item that you currently have in your
playfield, play other items from your hand,
swap classes or play an usage ability. If
you don't have any item to play or just
don't want to play anything, you may click
on the icon highlighted in the Phase
Indicator.

Attack Phase
If you have any weapon on the playfield
you will be asked if you want to attack
your opponent in this phase. If you choose
to, your opponent may choose how they
would like to block your attack. Read more
about attack phase on page 8.
Spell Phase
In this phase you can play an attack or
usage spell/ability from your hand if you're
able to. Be aware that any time you play
an ability or spell in your turn your
opponent can respond to using a defense
ability/spell.
Discard Phase
If you have 7 or more cards in your hand
at the end of your turn, You will be asked
to choose and discard them until you have
6. To discard, drag them from your hand
to the graveyard.

Phases: Page 5

Class cards are basically controls the
game. Most of the cards have class
limitations and they can only be

played if you have the currently class
the card ask for on the playfield.
There are 8 different classes:

Classes: Page 6

Each class has different combination of
cards or styles. They are symbolized
acording to their initials and colors:
Hunter
Assassin
Knight
Gladiator
Paladin
Monk
Sorcerer
Wizard
Every Class

For instance, sorcerers are better generally
on countering, so they have much more
ways to cancel an action done by the
opponent then a knight, that basically has
their specialty on weapons, shields and
armors.
You can only play a class card on your Equip
Phase, and once you do it you lose the entire
turn, so be careful when changing classes.
Besides the 8 classes you can choose, there
is also the Average Class (       ), also called
blank class. If you have no classes on the
playfield, you are currently on the Average
class. Every player starts the game on
average class. You don't lose any turn by
switching back from any class to Average.
You can have up to 3 class cards in your
deck plus the blank class, and there are
many ways you can combine them to defeat
your enemy. The best way to learn it is
simply trying out each one.

Classes: Page 7

To know more about each class, visit the Classes
Page at www.ederon.com.

Defense Response on Attack Phase
During this action, you can choose
between block using a shield (if you have
one), using your weapon (if you have one),
using a defense ability from your hand (if
you have one) or by just not blocking. If
you don't block the attack, the damage will
be stopped by your armor (if you have
one). Neither the armor, or the shield, can
absorb the damage completely, so if your
defense can't reduce the entire attack, you
will receive the rest of the damage points.

Attack solving
The attack solving system is actually
pretty simple. Every item has a certain
number of power points and resistance
points. Once the item has no more
resistance points, it is automatically
removed from the game. Items can lose
defense points either by defense
retaliation or by an ability/spell effect.

During an attack, the item that block the
attack loses the amount of resistance
from the weapon's power points, and if
the blocking item has power points, the
attacking weapon will also loses that
amount of points on it's resistance.
If the weapon states that it does not
receive defense retaliation, no matter
what the defender does, the weapon
does not lose any resistance points.

Power Points

Resistance Points

Attack Phase: Page 8

Options to block a weapon attack

Shield block: The attack is reduced, but
not completely absorbed. If the shield
doesn't reduce all the attack, the remind
goes to the armor or life points if they are
not wearing one. The defender can only
use this option if they have a shield on the
playfield.
Weapon block: The attack is completely
absorbed by the blocking weapon. The
defender can only use this option if they
have a weapon on the playfield.

Spell/Ability: This response effect can can
vary according to the spell/ability effect. If
after the effect there is still damage to be
taken, the damage goes to the armor. The
weapon or and shield from the defender do
not get in the way of this action.
Armor/Not Block: If defender is wearing
an armor, any damage that they would
receive goes to the armor instead. The
damage dealt to the armor is also not
completely absorbed.
Defense abilities/spells against usage
or attack abilities/spells
Defense abilities/spells can also be used to
interrupt usage or attack abilities/spells.
There are many variations, from simply
reducing damage to completely counter
the effect. To use it all you have to do is
drag it to the playfield when prompted.
Make sure you have the right class on the
playfield,

Attack Phase: Page 9

During the game you might see and
even get in your collection some
cards with special effects. These
effects are marked as bold and in
order to understand them, you can
mouse over the effect for a quick Tool
Tip.
These are the most common effects
you will find:
Attack Counts
Ranged
Remove Item
Double Ability
Instant Effect
Fast Strike
Untappable
Attack Effect

Special Effects: Page 10

Mouse over the bold statements
in the card below to read more
details about the effect:

Lets see what we've learned so far.
On the screen above you can see
where the cards and menus you
read about are located. Remember
that to zoom in on any card, just
click on it and it will open on the
card viewer. To play a card just
drag it to the screen. If you are able
to use the card, the screen will
highlight it leting you drag it to the
screen.
Ederon has a very intuitive Tool-Tip
system that will guide you though
most of the scenarios you
encounter so you will never get
stuck. You can turn it on/off by
clicking on this icon during the
game:
Be sure to ask players around and
visit our forum at www.ederon.com

Recap: Page 11

Have fun!

Sumary:
- Basics, page 1
- Basics, page 2
- Card Types, page 3
- Card Types, page 4
- Phases, page 5
- Classes, page 6
- Classes, page 7
- Attack Phase, page 8
- Attack Phase, page 9
- Special Effects, page 10
- Recap, page 11

How to Play

How to Play

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

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

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

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

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

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

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

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

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

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

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

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

NEXT >

< PREV

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>

AV

Page 1

<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); } System.useCodepage = true; fscommand ("showmenu", false); fscommand ("allowscale", false); fscommand ("fullscreen", false); MENU = new ContextMenu(); MENU.hideBuiltInItems(); _root.menu = MENU; stop(); __com_mochibot__("b2e2ad15", this, 10301, true);
Frame 3
function handleConnection(success) { if (success) { smartfox.login(_root.zone, _root.myName, ""); } else { _root.loginMsg = "Connection failed. Please check your internet settings."; loginInfo.loginInfoEffect.cover._visible = false; loginInfo.loginInfoEffect.nameBox.selectable = true; loginInfo.loginInfoEffect.passBox.selectable = true; loginInfo.loginInfoEffect.enterBtn.enabled = true; loginInfo.loginInfoEffect.newaccBtn.enabled = true; loginInfo.loginInfoEffect.enterBtn.useHandCursor = true; conError = false; } } function pingServer() { smartfox.roundTripBench(); } function sendChatMsg(msgBoxObj) { if ((smartfox.amIModerator && (msgBoxObj.text.substring(0, 18) == "/kickSelectedUser ")) && (_root.activeViewPlayerID)) { msg = msgBoxObj.text.substring(msgBoxObj.text.indexOf(" ") + 1); var dataObj = {}; dataObj.id = _root.activeViewPlayerID; dataObj.msg = msg; smartfox.sendXtMessage("$dmn", "kick", dataObj); msgBoxObj.text = ""; msg = ""; } else if ((smartfox.amIModerator && (msgBoxObj.text.substring(0, 17) == "/banSelectedUser ")) && (_root.activeViewPlayerID)) { msg = msgBoxObj.text.substring(msgBoxObj.text.indexOf(" ") + 1); var dataObj = {}; dataObj.id = _root.activeViewPlayerID; dataObj.msg = msg; smartfox.sendXtMessage("$dmn", "ban", dataObj); msgBoxObj.text = ""; msg = ""; } else if (smartfox.amIModerator && (msgBoxObj.text.substring(0, 9) == "/roomMsg ")) { msg = msgBoxObj.text.substring(msgBoxObj.text.indexOf(" ") + 1); smartfox.sendModeratorMessage(msg, it.gotoandplay.smartfoxserver.SmartFoxClient.MODMSG_TO_ROOM, smartfox.activeRoomId); msgBoxObj.text = ""; msg = ""; } else if (smartfox.amIModerator && (msgBoxObj.text.substring(0, 9) == "/zoneMsg ")) { msg = msgBoxObj.text.substring(msgBoxObj.text.indexOf(" ") + 1); smartfox.sendModeratorMessage(msg, it.gotoandplay.smartfoxserver.SmartFoxClient.MODMSG_TO_ZONE); msgBoxObj.text = ""; msg = ""; } else if (msgBoxObj.text.substring(0, 5) == "/help") { autoMsg(helpText, true); msgBoxObj.text = ""; } else if (msgBoxObj.text.substring(0, 5) == "/ping") { if (_root.myPing < 250) { pingMsg = "(Great)"; } else if (_root.myPing < 350) { pingMsg = "(Good)"; } else if (_root.myPing < 650) { pingMsg = "(Ok)"; } else { pingMsg = "(Poor)"; } autoMsg((("Latency: " + _root.myPing) + " milliseconds ") + pingMsg); msgBoxObj.text = ""; } else if (msgBoxObj.text.substring(0, 8) == "/soundfx") { if (playSounds) { playSounds = false; autoMsg("Sound Effects Off."); localSaves.data.soundsOff = true; localSaves.flush(); } else { playSounds = true; autoMsg("Sounds Effects On."); localSaves.data.soundsOff = false; localSaves.flush(); } msgBoxObj.text = ""; } else if (msgBoxObj.text.substring(0, 6) == "/music") { if (playMusic) { soundButton.gotoAndStop(2); playMusic = false; loadedSong.stop(); if (intervalVal) { clearInterval(intervalVal); } autoMsg("Music Off."); localSaves.data.musicOff = true; localSaves.flush(); } else { soundButton.gotoAndStop(1); playMusic = true; loadedSong.start(); intervalVal = setInterval(loopSong, 1); autoMsg("Music On."); localSaves.data.musicOff = false; localSaves.flush(); } msgBoxObj.text = ""; } else if (msgBoxObj.text.substring(0, 9) == "/autohelp") { if (!autoHelp) { autoHelp = true; autoMsg("Auto-Help On."); localSaves.data.autoHelpOff = false; localSaves.flush(); } else { autoHelp = false; autoMsg("Auto-Help Off."); localSaves.data.autoHelpOff = true; localSaves.flush(); } msgBoxObj.text = ""; } else if (msgBoxObj.text.substring(0, 1) == "/") { autoMsg("Unknown Command."); msgBoxObj.text = ""; } else if ((((((((((msgBoxObj.text != "") && (msgBoxObj.text != " ")) && (msgBoxObj.text != " ")) && (msgBoxObj.text.toLowerCase() != "fuck you")) && (msgBoxObj.text.toLowerCase() != "fuck")) && (msgBoxObj.text.toLowerCase() != "fucker")) && (msgBoxObj.text.toLowerCase() != "shit")) && (msgBoxObj.text.toLowerCase() != "ass")) && (msgBoxObj.text.toLowerCase() != "nigga")) && (msgBoxObj.text.toLowerCase() != "niga")) { _root.lastRoomSent = _root.selectedRoom; if ((_root.selectedRoom == 0) && _root.clan) { smartfox.sendPublicMessage(msgBoxObj.text, _root.clanRoomID); } else if ((_root.selectedRoom >= 0) && (_root.selectedRoom <= 8)) { if (_root.inLobby && (lobbyList.indexOf((">" + eval ("privateChatTab" + _root.selectedRoom).playerName) + "<") == -1)) { autoMsg("This player is offline or unavailable.", true); } else { smartfox.sendPrivateMessage(msgBoxObj.text, eval ("privateChatTab" + _root.selectedRoom).playerID, mainRoomID); msg = findAndReplace(msgBoxObj.text, "&", "&amp;"); msg = findAndReplace(msg, "<", "&lt;"); msg = findAndReplace(msg, ">", "&gt;"); privateChat[_root.selectedRoom] = privateChat[_root.selectedRoom] + (((("<font color='#BBBBFF'><b>[ " + _root.myName) + " ]:</b> ") + msg) + "</font><br>"); eval ("privateChatTab" + _root.selectedRoom).lineNumber++; lineCount = privateChat[eval ("privateChatTab" + _root.selectedRoom).roomID].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } privateChat[eval ("privateChatTab" + _root.selectedRoom).roomID] = lineCount.join("<br>"); delete lineCount; gameChat.htmlText = privateChat[_root.selectedRoom]; gameChat.scroll = gameChat.maxscroll; } } else if (((_root.selectedRoom == _root.tradeRoomID) && (_root.accType == "beginner")) && (_root.myLevel < 5)) { autoMsg("Beginner accounts must be at level 5 to trade cards.", true); } else { smartfox.sendPublicMessage(msgBoxObj.text, _root.selectedRoom); } msgBoxObj.text = ""; } else { msgBoxObj.text = ""; } } function testAchievement(ht, num) { switch (num) { case 1 : if ((gameType == "random") && (!achievObj.a1)) { getAchiev = true; } break; case 2 : if (((gameType == "random") && (achievObj.gameVars.itemsDestroyed >= 10)) && (!achievObj.a2)) { getAchiev = true; } break; case 3 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (achievObj.gameVars.totalClasses == 1)) && (!achievObj.a3)) { getAchiev = true; } break; case 4 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (achievObj.gameVars.totalClasses == 3)) && (!achievObj.a4)) { getAchiev = true; } break; case 5 : if ((gameType == "random") && (!achievObj.a5)) { getAchiev = true; } break; case 6 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (currentPlayerTurn == "op")) && (!achievObj.a6)) { getAchiev = true; } break; case 7 : if (((gameType == "random") && (achievObj.gameVars.totalTurnDamage >= 10)) && (!achievObj.a7)) { getAchiev = true; } break; case 8 : if (((gameType == "random") && (achievObj.gameVars.totalCardsPlayedTurn >= 5)) && (!achievObj.a8)) { getAchiev = true; } break; case 9 : if ((gameType == "random") && (!achievObj.a9)) { getAchiev = true; } break; case 14 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (achievObj.gameVars.commando)) && (!achievObj.a14)) { getAchiev = true; } break; case 15 : if (((myHand == 0) && (gameType == "random")) && (!achievObj.a15)) { getAchiev = true; } break; case 16 : if ((((myHand == 0) && (opHand == 0)) && (gameType == "random")) && (!achievObj.a16)) { getAchiev = true; } break; case 17 : if ((((myLife == 1) && (opLife == 1)) && (gameType == "random")) && (!achievObj.a17)) { getAchiev = true; } break; case 18 : if (((gameType == "random") && (achievObj.gameVars.demonWall >= 4)) && (!achievObj.a18)) { getAchiev = true; } break; case 19 : if (((gameType == "random") && (achievObj.gameVars.goldenWall >= 4)) && (!achievObj.a19)) { getAchiev = true; } break; case 20 : if ((gameType == "random") && (!achievObj.a20)) { getAchiev = true; } break; case 21 : if (((gameType == "random") && (achievObj.gameVars.totalCardsDrawTurn >= 10)) && (!achievObj.a21)) { getAchiev = true; } break; case 22 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (achievObj.gameVars.cardsDiscarded == 0)) && (!achievObj.a22)) { getAchiev = true; } break; case 23 : if (((gameType == "random") && (achievObj.gameVars.totalClassMorphTurn >= 2)) && (!achievObj.a23)) { getAchiev = true; } break; case 24 : if ((((gameType == "random") && (weaponCardObj.powerCount >= 9)) && (weaponCardObj.subtype == "Axe")) && (!achievObj.a24)) { getAchiev = true; } break; case 25 : if ((((gameType == "random") && (weaponCardObj.powerCount >= 9)) && (weaponCardObj.subtype == "Mace")) && (!achievObj.a25)) { getAchiev = true; } break; case 26 : if ((((gameType == "random") && (weaponCardObj.powerCount >= 9)) && (weaponCardObj.subtype == "Sword")) && (!achievObj.a26)) { getAchiev = true; } break; case 27 : if ((((gameType == "random") && (weaponCardObj.powerCount >= 11)) && ((weaponCardObj.subtype == "Bow") || (weaponCardObj.subtype == "Crossbow"))) && (!achievObj.a27)) { getAchiev = true; } break; case 28 : if ((((gameType == "random") && (weaponCardObj.powerCount >= 10)) && (weaponCardObj.subtype.indexOf("Wand") != -1)) && (!achievObj.a28)) { getAchiev = true; } break; case 29 : if ((gameType == "random") && (!achievObj.a29)) { getAchiev = true; } break; case 30 : if ((gameType == "random") && (!achievObj.a30)) { getAchiev = true; } break; case 31 : if ((((((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (weaponCardObj)) && (armorCardObj)) && (weaponCardObj.name == "Archangel's Sword")) && (armorCardObj.name == "Demon Armor")) && (!achievObj.a31)) { getAchiev = true; } break; case 32 : if (((((gameType == "random") && (achievObj.gameVars.apocalypsePlayed)) && (achievObj.gameVars.armageddonPlayed)) && (achievObj.gameVars.extinctionPlayed)) && (!achievObj.a32)) { getAchiev = true; } break; case 33 : if ((((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (achievObj.gameVars.natureSpellPlayed)) && (!achievObj.gameVars.playOnlyNatureSpellsCanceled)) && (!achievObj.a33)) { getAchiev = true; } break; case 34 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (opCard3)) && (!achievObj.a34)) { getAchiev = true; } break; case 35 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (myLife >= 20)) && (!achievObj.a35)) { getAchiev = true; } break; case 36 : if ((((((gameType == "random") && (weaponCardObj)) && (armorCardObj)) && (weaponCardObj.name == "Scythe")) && (armorCardObj.name == "Reaper Mail")) && (!achievObj.a36)) { getAchiev = true; } break; case 37 : if (((gameType == "random") && (achievObj.gameVars.risefromashesTwice)) && (!achievObj.a37)) { getAchiev = true; } break; case 38 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (myLife == 1)) && (!achievObj.a38)) { getAchiev = true; } break; case 39 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (myDeck <= 1)) && (!achievObj.a39)) { getAchiev = true; } break; case 45 : if (((gameType == "random") && (achievObj.gameVars.alphaCardsOnly)) && (!achievObj.a45)) { getAchiev = true; } break; case 46 : if ((((((gameType == "random") && (achievObj.gameVars.earthquakePlayed)) && (achievObj.gameVars.tsunamiPlayed)) && (achievObj.gameVars.rockslidePlayed)) && (achievObj.gameVars.avalanchePlayed)) && (!achievObj.a46)) { getAchiev = true; } break; case 49 : if ((gameType == "random") && (!achievObj.a49)) { getAchiev = true; } break; case 50 : if (((gameType == "random") && (!achievObj.gameVars.damageTaken)) && (!achievObj.a50)) { getAchiev = true; } break; case 56 : if ((gameType == "random") && (!achievObj.a56)) { getAchiev = true; } break; case 57 : if ((gameType == "random") && (!achievObj.a57)) { getAchiev = true; } break; case 58 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (!achievObj.gameVars.actionTakenBefore5)) && (!achievObj.a58)) { getAchiev = true; } break; case 59 : if ((((gameType == "random") && (weaponCardObj.attackCounts >= 8)) && (((weaponCardObj.subtype == "Bow") || (weaponCardObj.subtype == "Crossbow")) || (weaponCardObj.subtype.indexOf("Wand") != -1))) && (!achievObj.a59)) { getAchiev = true; } break; case 60 : if (((gameType == "random") && (achievObj.gameVars.totalClassMorphMatch >= 4)) && (!achievObj.a60)) { getAchiev = true; } break; case 61 : if ((gameType == "random") && (!achievObj.a61)) { getAchiev = true; } break; case 62 : if ((gameType == "random") && (!achievObj.a62)) { getAchiev = true; } break; case 63 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (!achievObj.gameVars.damageDelt)) && (!achievObj.a63)) { getAchiev = true; } break; case 64 : if (!achievObj.a64) { getAchiev = true; } break; case 65 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (achievObj.gameVars.deckTotal == 40)) && (!achievObj.a65)) { getAchiev = true; } break; case 66 : if ((gameType == "random") && (!achievObj.a66)) { getAchiev = true; } break; case 67 : if ((gameType == "random") && (!achievObj.a67)) { getAchiev = true; } break; case 68 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (!achievObj.gameVars.weaponPlayed)) && (!achievObj.a68)) { getAchiev = true; } break; case 69 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (!achievObj.gameVars.spellabilityPlayed)) && (!achievObj.a69)) { getAchiev = true; } break; case 70 : if ((gameType == "random") && (!achievObj.a70)) { getAchiev = true; } break; case 71 : if (((gameType == "random") && (achievObj.gameVars.restoreCount >= 7)) && (!achievObj.a71)) { getAchiev = true; } break; case 72 : if (((gameType == "random") && (achievObj.gameVars.cardsDiscarded >= 12)) && (!achievObj.a72)) { getAchiev = true; } break; case 73 : if ((gameType == "random") && (!achievObj.a73)) { getAchiev = true; } break; case 74 : if (((gameType == "random") && (achievObj.gameVars.retaliationDamage >= 12)) && (!achievObj.a74)) { getAchiev = true; } break; case 75 : if (((gameType == "random") && (achievObj.gameVars.totalClasses == 0)) && (!achievObj.a75)) { getAchiev = true; } break; case 78 : if ((gameType == "random") && (!achievObj.a78)) { getAchiev = true; } break; case 79 : if ((gameType == "random") && (!achievObj.a79)) { getAchiev = true; } break; case 80 : if ((gameType == "random") && (!achievObj.a80)) { getAchiev = true; } break; case 81 : if (((gameType == "random") && (achievObj.gameVars.eForEveryone >= 6)) && (!achievObj.a81)) { getAchiev = true; } break; case 82 : if ((((gameType == "random") && (opLife == 0)) && (achievObj.gameVars.finishHim)) && (!achievObj.a82)) { getAchiev = true; } break; case 83 : if ((gameType == "random") && (!achievObj.a83)) { getAchiev = true; } break; case 84 : if ((gameType == "random") && (!achievObj.a84)) { getAchiev = true; } break; case 85 : if (!achievObj.a85) { getAchiev = true; } break; case 87 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (achievObj.gameVars.turnCount >= 40)) && (!achievObj.a87)) { getAchiev = true; } break; case 88 : if (((((gameType == "random") && (opName)) && ((opLife == 0) || (opDeck == 0))) && (achievObj.gameVars.turnCount <= 6)) && (!achievObj.a88)) { getAchiev = true; } break; case 89 : if (((gameType == "random") && (_root.weaponCardObj.powerCount >= 15)) && (!achievObj.a89)) { getAchiev = true; } break; case 90 : if ((gameType == "random") && (!achievObj.a90)) { getAchiev = true; } break; case 91 : if (!achievObj.a91) { getAchiev = true; } break; case 92 : if (((gameType == "random") && (achievObj.gameVars.totalTurnDamage >= 20)) && (!achievObj.a92)) { getAchiev = true; } break; case 94 : if (achievObj.a94) { break; } getAchiev = true; } if ((ht && (getAchiev)) && (!_root.savingAchiev)) { savingAchiev = true; var _local2 = {}; _local2.acId = num; smartfox.sendXtMessage("saveAchiev", "saveData", _local2, "xml"); delete getAchiev; } else if ((ht && (getAchiev)) && (_root.savingAchiev)) { saveAchievQueue.push(num); } delete getAchiev; } System.security.loadPolicyFile("xmlsocket://216.55.137.18:9339"); var ip = "216.55.137.18"; var port = 9339; var zone = "Ederon Server 1"; System.security.allowDomain("*"); var smartfox = (new it.gotoandplay.smartfoxserver.SmartFoxClient()); smartfox.debug = false; smartfox.onConnection = handleConnection; smartfox.onLogin = function (resObj) { if (resObj.success) { _root.myId = smartfox.myUserId; } else { _root.loginMsg = resObj.error; loginInfo.loginInfoEffect.cover._visible = false; loginInfo.loginInfoEffect.nameBox.selectable = true; loginInfo.loginInfoEffect.passBox.selectable = true; loginInfo.loginInfoEffect.enterBtn.enabled = true; loginInfo.loginInfoEffect.newaccBtn.enabled = true; loginInfo.loginInfoEffect.enterBtn.useHandCursor = true; conError = false; smartfox.disconnect(); } }; smartfox.onRoomListUpdate = function (roomList) { smartfox.joinRoom(mainRoomID); _root.joiningRoom = "main"; }; smartfox.onRoomAdded = function (roomObj) { roomName = roomObj.getName(); if ((_root.creatingRoom == "clan") && (roomName == _root.clan)) { smartfox.joinRoom(roomObj.getId(), "", false, true); _root.joiningRoom = "clan"; } else if ((((roomName == ("random_" + smartfox.myUserId)) && (!_root.searchingGame)) && (_root.inLobby)) && (_root.gameType == "random")) { smartfox.joinRoom(roomObj.getId(), "", false, true); _root.joiningRoom = "game"; } else if (((roomName == ("challenge_" + smartfox.myUserId)) && (_root.inLobby)) && (_root.gameType == "challenge")) { smartfox.joinRoom(roomObj.getId(), "", false, true); _root.joiningRoom = "game"; } delete roomName; }; smartfox.onJoinRoomError = function (errorMsg) { if ((_root.joiningRoom == "clan") && (errorMsg != "User is already in this room!")) { _root.creatingRoom = "clan"; var _local2 = new Object(); _local2.name = _root.clan; _local2.password = ""; _local2.exitCurrentRoom = false; _local2.maxUsers = 10000; smartfox.createRoom(_local2); _root.joiningRoom = ""; } else if ((_root.joiningRoom == "game") && (_root.gameType == "random")) { _root.searchingGame = true; _root.timesSearched = 0; _root.timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } searchGameInterval = setInterval(searchGame, 1500); _root.joiningRoom = ""; } else if ((_root.joiningRoom == "game") && (_root.gameType == "challenge")) { waitingBattle.displayText.htmlText = "<font color='#FF6666'>No Response!</font>"; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.waitingBattleAnimation.stop(); } else if (_root.joiningRoom == "trade") { publicChat[tradeRoomID] = "<font color='#33CCFF'>You are now on trade chat.</font><br>"; tradeChatTab.tabName.htmlText = "<font color='#66FF99'>Trade</font>"; tradeChatTab._alpha = 100; tradeChatTab.enabled = true; tradeChatTab.lineNumber = 1; if (!_root.inManager) { if (_root.clan) { _root.creatingRoom = "clan"; var _local2 = new Object(); _local2.name = _root.clan; _local2.password = ""; _local2.exitCurrentRoom = false; _local2.maxUsers = 10000; smartfox.createRoom(_local2); } else { randomMatch._alpha = 100; randomMatch.enabled = true; uncolorize(cardManager); cardManager.enabled = true; } } else { tradeChatTab.gameChat.htmlText = publicChat[tradeRoomID]; tradeChatTab.gameChat.scroll = gameChat.maxscroll; } _root.joiningRoom = ""; } else { _root.joiningRoom = ""; } }; smartfox.onCreateRoomError = function (errorMsg) { if (_root.creatingRoom == "clan") { _root.joiningRoom = "clan"; var _local2 = smartfox.getRoom(_root.clan); smartfox.joinRoom(_local2.getId(), "", false, true); _root.creatingRoom = ""; } else if ((_root.creatingRoom == "game") && (_root.gameType == "random")) { _root.searchingGame = true; _root.timesSearched = 0; _root.timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } searchGameInterval = setInterval(searchGame, 1500); _root.creatingRoom = ""; } else if ((_root.creatingRoom == "game") && (_root.gameType == "challenge")) { waitingBattle.displayText.htmlText = "<font color='#FF6666'>No Response!</font>"; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.waitingBattleAnimation.stop(); } else { _root.creatingRoom = ""; } }; smartfox.onRoundTripResponse = function (elapsed) { totalPingTime = totalPingTime + (elapsed / 2); pingCount++; _root.myPing = Math.round(totalPingTime / pingCount); }; smartfox.onJoinRoom = function (roomObj) { if (roomObj.getId() == mainRoomID) { _root.totalPingTime = 0; _root.pingCount = 0; _root.joiningRoom = ""; smartfox.roundTripBench(); if (pingInterval != null) { clearInterval(pingInterval); } pingInterval = setInterval(pingServer, 30000); var _local9 = {}; _local9.u = _root.myName; _local9.p = _root.password; smartfox.sendXtMessage("loadInfo", "getData", _local9, "xml"); } else if (roomObj.getId() == lobbyRoomID) { var _local7 = new Object(); _local7.chatRoom = 1; _local7.opId = undefined; _local7.inGame = 0; smartfox.setUserVariables(_local7, mainRoomID); var _local10 = new Object(); _local10.chatRoom = 1; _local10.inGame = 0; smartfox.setBuddyVariables(_local10); if (_root.clearVarsLobby) { publicChat[lobbyRoomID] = "<b><font color='#33CCFF'>>> Welcome back!</font></b><br>"; randomMatch._alpha = 100; randomMatch.enabled = true; uncolorize(cardManager); cardManager.enabled = true; delete _root.clearVarsLobby; } else { publicChat[lobbyRoomID] = "<font color='#33CCFF'>Welcome to Ederon Trading Card Game!</font><br>"; } lobbyChatTab.lineNumber = 1; if (_root.accType == "beginner") { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (("<b><font color='#FF6600'>Support Ederon's ongoing maintanence and development by upgrading to an advanced account for a nominal one time fee! <a href='" + webpage) + "/shopping/upgradeSetup.asp' target='_blank'>CLICK HERE</a></font></b><br>"); lobbyChatTab.lineNumber++; } if (smartfox.amIModerator) { helpText = commandsList + "<br>/zoneMsg [msg]: Send a message to everyone online.<br>/roomMsg [msg]: Send a message to everyone in the room.<br>/kickSelectedUser [msg]: Kick selected user and send him a message.<br>/banSelectedUser [msg]: Ban selected user and send him a message."; } else { helpText = commandsList; } autoMsg("Type /help for avaliable commands."); if (_root.lobbyAnnounce) { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (("<b><font color='#FF6666'>" + _root.lobbyAnnounce) + "</font></b><br>"); } gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; var _local12 = smartfox.getRoom(mainRoomID); var _local5 = _local12.getUserList(); modListArray = new Array(); advListArray = new Array(); begListArray = new Array(); lobbyListArray = new Array(); _local5.sort(); modList = ""; advList = ""; begList = ""; clanList = ""; playersList.htmlText = ""; for (var _local11 in _local5) { var _local2 = _local5[_local11]; var _local4 = _local2.isModerator(); var _local3 = _local2.getVariables(); if ((_local3.chatRoom == 1) || (_local2.getId() == smartfox.myUserId)) { if (_local3.inGame == 1) { displayIcon = "<img src='battleIcon' width='12' height='11'>"; } else { displayIcon = "<img src='chatIcon' width='12' height='11'>"; } if (_local4) { modListArray.push(_local2.getName()); modList = modList + (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + _local2.getId()) + "'><font color='#00FFFF'>") + _local2.getName()) + "</font></a><br>"); } else if (_local3.accType == "advanced") { advListArray.push(_local2.getName()); advList = advList + (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + _local2.getId()) + "'><font color='#FFCC66'>") + _local2.getName()) + "</font></a><br>"); } else { begListArray.push(_local2.getName()); begList = begList + (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + _local2.getId()) + "'>") + _local2.getName()) + "</a><br>"); } if (_local3.clan == _root.clan) { clanList = clanList + (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + _local2.getId()) + "'><font color='#66FF99'>") + _local2.getName()) + "</font></a><br>"); } } } clanList.htmlText = clanList; lobbyList = (modList + advList) + begList; lobbyListArray = modListArray.concat(advListArray, begListArray); selectedList = "Lobby"; if (lobbyListArray.length > 100) { lineLocation = lobbyList.indexOf((">" + lobbyListArray[99]) + "<"); prevBR = lobbyList.lastIndexOf("<img ", lineLocation); nextBR = lobbyList.indexOf("<br>", lineLocation) + 4; lobbyListPage1 = lobbyList.substring(0, prevBR); lobbyListPage2 = lobbyList.substring(nextBR); playersList.htmlText = lobbyListPage1; lobbyNextPage._alpha = 100; lobbyNextPage.enabled = true; } else { playersList.htmlText = lobbyList; } if (friendsList == "") { smartfox.loadBuddyList(); } if (!alreadyOnTrade) { smartfox.joinRoom(tradeRoomID, "", false, true); _root.joiningRoom = "trade"; } else { _root.joiningRoom = ""; publicChat[tradeRoomID] = "<font color='#33CCFF'>You are now on trade chat.</font><br>"; tradeChatTab.tabName.htmlText = "<font color='#66FF99'>Trade</font>"; tradeChatTab._alpha = 100; tradeChatTab.enabled = true; tradeChatTab.lineNumber = 1; randomMatch._alpha = 100; randomMatch.enabled = true; uncolorize(cardManager); cardManager.enabled = true; if (_root.clan) { _root.creatingRoom = "clan"; var _local6 = new Object(); _local6.name = _root.clan; _local6.password = ""; _local6.exitCurrentRoom = false; _local6.maxUsers = 10000; smartfox.createRoom(_local6); } delete alreadyOnTrade; } } else if (roomObj.getId() == tradeRoomID) { _root.joiningRoom = ""; publicChat[tradeRoomID] = "<font color='#33CCFF'>You are now on trade chat.</font><br>"; tradeChatTab.tabName.htmlText = "<font color='#66FF99'>Trade</font>"; tradeChatTab._alpha = 100; tradeChatTab.enabled = true; tradeChatTab.lineNumber = 1; randomMatch._alpha = 100; randomMatch.enabled = true; uncolorize(cardManager); cardManager.enabled = true; if (!_root.inManager) { if (_root.clan) { _root.creatingRoom = "clan"; var _local6 = new Object(); _local6.name = _root.clan; _local6.password = ""; _local6.exitCurrentRoom = false; _local6.maxUsers = 10000; smartfox.createRoom(_local6); } } else { tradeChatTab.gameChat.htmlText = publicChat[tradeRoomID]; tradeChatTab.gameChat.scroll = gameChat.maxscroll; } } else if (roomObj.getName() == _root.clan) { _root.creatingRoom = ""; _root.joiningRoom = ""; privateChatTab0.privChatName = ((_root.clan.length > 5) ? (_root.clan.substr(0, 5) + "...") : (_root.clan)); privateChatTab0.playerName = _root.clan; privateChat[0] = ("<font color='#33CCFF'>You are now on " + _root.clan) + "'s chat.</font><br>"; privateChat[0] = privateChat[0] + (("<font color='#66FF99'>" + _root.clanWelcomeMsg) + "</font><br>"); privateChatTab0.tabName.htmlText = ("<font color='#66FF99'>" + privateChatTab0.privChatName) + "</font>"; privateChatTab0._alpha = 100; privateChatTab0.enabled = true; _root.clanRoomID = roomObj.getId(); } else if (roomObj.isGame()) { _root.gameRoomID = roomObj.getId(); if (_root.creatingRoom == "game") { _root.waitingPlayer = true; _root.timesWaited = 0; if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } waitingGameResponseInterval = setInterval(waitingGameResponse, 10000); } else { smartfox.leaveRoom(lobbyRoomID); if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } _root.myGameId = 1; gotoGame(); } _root.creatingRoom = ""; _root.joiningRoom = ""; } }; smartfox.onBuddyList = function (list) { offlineFriends = ""; onlineFriends = ""; blockedFriends = ""; friendsModList = ""; friendsAdvList = ""; friendsBegList = ""; displayIcon = ""; for (var _local3 in list) { if ((((_local3 != "search") && (_local3 != "copy")) && (_local3 != "indexOf")) && (_local3 != "lastIndexOf")) { if (blockUser == list[_local3].name) { smartfox.setBuddyBlockStatus(blockUser, true); if (list[_local3].id == _root.activeViewPlayerID) { uncolorize(playerViewer.block); playerViewer.block.gotoAndStop(2); playerViewer.block.enabled = true; } } if (list[_local3].isBlocked) { blockedFriends = (((("<img src='blockIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + list[_local3].name) + "'><font color='#FF3333'>") + list[_local3].name) + "</font></a><br>") + blockedFriends; } else if ((!list[_local3].isOnline) && (!list[_local3].isBlocked)) { offlineFriends = (((("<img src='offlineIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + list[_local3].name) + "'><font color='#AAAAAA'>") + list[_local3].name) + "</font></a><br>") + offlineFriends; } else if (list[_local3].isOnline && (!list[_local3].isBlocked)) { if (list[_local3].variables.inGame == 1) { displayIcon = "<img src='battleIcon' width='12' height='11'>"; } else if (list[_local3].variables.chatRoom == 1) { displayIcon = "<img src='chatIcon' width='12' height='11'>"; } else { displayIcon = "<img src='managerIcon' width='12' height='11'>"; } if (list[_local3].variables.$mod == 1) { friendsModList = (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + list[_local3].id) + "'><font color='#00FFFF'>") + list[_local3].name) + "</font></a><br>") + friendsModList; } else if (list[_local3].variables.$accType == "advanced") { friendsAdvList = (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + list[_local3].id) + "'><font color='#FFCC66'>") + list[_local3].name) + "</font></a><br>") + friendsAdvList; } else if (list[_local3].variables.$accType == "beginner") { friendsBegList = (((((displayIcon + "<a href='asfunction:viewPlayerDetails,") + list[_local3].id) + "'>") + list[_local3].name) + "</a><br>") + friendsBegList; } onlineFriends = (friendsModList + friendsAdvList) + friendsBegList; } } } blockUser = ""; friendsList = (onlineFriends + blockedFriends) + offlineFriends; if (selectedList == "Friends") { playersList.htmlText = friendsList; } }; smartfox.onBuddyListUpdate = function (buddy) { if (buddy.isOnline && (!buddy.isBlocked)) { if (offlineFriends.indexOf((">" + buddy.name) + "<") != -1) { lineLocation = offlineFriends.indexOf((">" + buddy.name) + "<"); prevBR = offlineFriends.lastIndexOf("<img ", lineLocation); nextBR = offlineFriends.indexOf("<br>", lineLocation) + 4; offlineFriends = offlineFriends.substring(0, prevBR) + offlineFriends.substring(nextBR); } if (onlineFriends.indexOf((">" + buddy.name) + "<") == -1) { if (buddy.variables.$mod == 1) { friendsModList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + buddy.id) + "'><font color='#00FFFF'>") + buddy.name) + "</font></a><br>") + friendsModList; } else if (buddy.variables.$accType == "advanced") { friendsAdvList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + buddy.id) + "'><font color='#FFCC66'>") + buddy.name) + "</font></a><br>") + friendsAdvList; } else if (buddy.variables.$accType == "beginner") { friendsBegList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + buddy.id) + "'>") + buddy.name) + "</a><br>") + friendsBegList; } onlineFriends = (friendsModList + friendsAdvList) + friendsBegList; friendsList = (onlineFriends + blockedFriends) + offlineFriends; if (unblockUser != buddy.name) { autoMsg(buddy.name + " has logged in."); } else { smartfox.removeBuddy(unblockUser); unblockUser = ""; } } else { if (buddy.variables.inGame == 1) { displayIcon = "<img src='battleIcon' width='12' height='11'>"; } else if (buddy.variables.chatRoom == 1) { displayIcon = "<img src='chatIcon' width='12' height='11'>"; } else { displayIcon = "<img src='managerIcon' width='12' height='11'>"; } if (friendsModList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsModList; } if (friendsAdvList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsAdvList; } if (friendsBegList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsBegList; } lineLocation = modifyList.indexOf((">" + buddy.name) + "<"); imgStart = modifyList.lastIndexOf("<img ", lineLocation); imgEnd = modifyList.lastIndexOf("'11'>", lineLocation) + 5; modifyList = (modifyList.substring(0, imgStart) + displayIcon) + modifyList.substring(imgEnd); if (friendsModList.indexOf((">" + buddy.name) + "<") > -1) { friendsModList = modifyList; } if (friendsAdvList.indexOf((">" + buddy.name) + "<") > -1) { friendsAdvList = modifyList; } if (friendsBegList.indexOf((">" + buddy.name) + "<") > -1) { friendsBegList = modifyList; } onlineFriends = (friendsModList + friendsAdvList) + friendsBegList; friendsList = (onlineFriends + blockedFriends) + offlineFriends; } } else if (!buddy.isBlocked) { if (onlineFriends.indexOf((">" + buddy.name) + "<") != -1) { if (friendsModList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsModList; } if (friendsAdvList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsAdvList; } if (friendsBegList.indexOf((">" + buddy.name) + "<") > -1) { modifyList = friendsBegList; } lineLocation = modifyList.indexOf((">" + buddy.name) + "<"); prevBR = modifyList.lastIndexOf("<img ", lineLocation); nextBR = modifyList.indexOf("<br>", lineLocation) + 4; modifyList = modifyList.substring(0, prevBR) + modifyList.substring(nextBR); if (friendsModList.indexOf((">" + buddy.name) + "<") > -1) { friendsModList = modifyList; } if (friendsAdvList.indexOf((">" + buddy.name) + "<") > -1) { friendsAdvList = modifyList; } if (friendsBegList.indexOf((">" + buddy.name) + "<") > -1) { friendsBegList = modifyList; } onlineFriends = (friendsModList + friendsAdvList) + friendsBegList; offlineFriends = (((("<img src='offlineIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + buddy.name) + "'><font color='#AAAAAA'>") + buddy.name) + "</font></a><br>") + offlineFriends; friendsList = (onlineFriends + blockedFriends) + offlineFriends; autoMsg(buddy.name + " has logged out."); } } if (selectedList == "Friends") { playersList.htmlText = friendsList; } }; smartfox.onBuddyListError = function (error) { autoMsg(error); }; smartfox.onConnectionLost = function () { if (numCardsLoaded) { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } z = 1; while (z <= totalPages) { eval ("pageTab" + z).removeMovieClip(); z++; } delete myManagerCards; } clearGameVariables(); smartfox.onObjectReceived = function () { }; n = 0; while (n <= 8) { privateChat[n] = ""; n++; } if (pingInterval != null) { clearInterval(pingInterval); } delete achievObj; delete inLobby; delete inManager; delete inGame; delete gameRoomID; gotoAndStop ("login"); }; smartfox.onUserVariablesUpdate = function (user, changedVars) { if (changedVars.inGame) { if (user.getVariable("inGame") == 1) { if (modList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = modList; } if (advList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = advList; } if (begList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = begList; } lineLocation = modifyList.indexOf((">" + user.getName()) + "<"); imgStart = modifyList.lastIndexOf("<img ", lineLocation); imgEnd = modifyList.lastIndexOf("'11'>", lineLocation) + 5; modifyList = (modifyList.substring(0, imgStart) + "<img src='battleIcon' width='12' height='11'>") + modifyList.substring(imgEnd); if (modList.indexOf((">" + user.getName()) + "<") > -1) { modList = modifyList; } if (advList.indexOf((">" + user.getName()) + "<") > -1) { advList = modifyList; } if (begList.indexOf((">" + user.getName()) + "<") > -1) { begList = modifyList; } lobbyList = (modList + advList) + begList; } else if (user.getVariable("inGame") != 1) { if (modList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = modList; } if (advList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = advList; } if (begList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = begList; } lineLocation = modifyList.indexOf((">" + user.getName()) + "<"); imgStart = modifyList.lastIndexOf("<img ", lineLocation); imgEnd = modifyList.lastIndexOf("'11'>", lineLocation) + 5; modifyList = (modifyList.substring(0, imgStart) + "<img src='chatIcon' width='12' height='11'>") + modifyList.substring(imgEnd); if (modList.indexOf((">" + user.getName()) + "<") > -1) { modList = modifyList; } if (advList.indexOf((">" + user.getName()) + "<") > -1) { advList = modifyList; } if (begList.indexOf((">" + user.getName()) + "<") > -1) { begList = modifyList; } lobbyList = (modList + advList) + begList; } } if (changedVars.chatRoom) { if ((user.getVariable("chatRoom") != 1) && (lobbyList.indexOf((">" + user.getName()) + "<") != 1)) { if (modList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = modList; modListArray.splice(modListArray.indexOf(userName), 1); } if (advList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = advList; advListArray.splice(modListArray.indexOf(userName), 1); } if (begList.indexOf((">" + user.getName()) + "<") > -1) { modifyList = begList; begListArray.splice(modListArray.indexOf(userName), 1); } lineLocation = modifyList.indexOf((">" + user.getName()) + "<"); prevBR = modifyList.lastIndexOf("<img ", lineLocation); nextBR = modifyList.indexOf("<br>", lineLocation) + 4; modifyList = modifyList.substring(0, prevBR) + modifyList.substring(nextBR); if (modList.indexOf((">" + user.getName()) + "<") > -1) { modList = modifyList; } if (advList.indexOf((">" + user.getName()) + "<") > -1) { advList = modifyList; } if (begList.indexOf((">" + user.getName()) + "<") > -1) { begList = modifyList; } lobbyList = (modList + advList) + begList; lobbyListArray = modListArray.concat(advListArray, begListArray); if (clanList.indexOf((">" + user.getName()) + "<") != -1) { lineLocation = clanList.indexOf((">" + user.getName()) + "<"); prevBR = clanList.lastIndexOf("<img ", lineLocation); nextBR = clanList.indexOf("<br>", lineLocation) + 4; clanList = clanList.substring(0, prevBR) + clanList.substring(nextBR); } } } if (selectedList == "Lobby") { if (lobbyListArray.length > 100) { lineLocation = lobbyList.indexOf((">" + lobbyListArray[99]) + "<"); prevBR = lobbyList.lastIndexOf("<img ", lineLocation); nextBR = lobbyList.indexOf("<br>", lineLocation) + 4; lobbyListPage1 = lobbyList.substring(0, prevBR); lobbyListPage2 = lobbyList.substring(nextBR); playersList.htmlText = _root["lobbyListPage" + lobbyCurPage]; } else { playersList.htmlText = lobbyList; } } }; smartfox.onUserLeaveRoom = function (fromRoom, userId, userName) { if (_root.activeViewPlayerID == userId) { playerViewer._alpha = 0; playerViewer.chat.enabled = false; playerViewer.addToFriends.enabled = false; playerViewer.block.enabled = false; playerViewer.challengePlayer.enabled = false; delete _root.activeViewPlayerID; } if (fromRoom == _root.mainRoomID) { if (lobbyList.indexOf((">" + userName) + "<") != -1) { if (modList.indexOf((">" + userName) + "<") > -1) { modifyList = modList; modListArray.splice(modListArray.indexOf(userName), 1); } if (advList.indexOf((">" + userName) + "<") > -1) { modifyList = advList; advListArray.splice(advListArray.indexOf(userName), 1); } if (begList.indexOf((">" + userName) + "<") > -1) { modifyList = begList; begListArray.splice(begListArray.indexOf(userName), 1); } lineLocation = modifyList.indexOf((">" + userName) + "<"); prevBR = modifyList.lastIndexOf("<img ", lineLocation); nextBR = modifyList.indexOf("<br>", lineLocation) + 4; modifyList = modifyList.substring(0, prevBR) + modifyList.substring(nextBR); if (modList.indexOf((">" + userName) + "<") > -1) { modList = modifyList; } if (advList.indexOf((">" + userName) + "<") > -1) { advList = modifyList; } if (begList.indexOf((">" + userName) + "<") > -1) { begList = modifyList; } lobbyList = (modList + advList) + begList; lobbyListArray = modListArray.concat(advListArray, begListArray); if (clanList.indexOf((">" + userName) + "<") != -1) { lineLocation = clanList.indexOf((">" + userName) + "<"); prevBR = clanList.lastIndexOf("<img ", lineLocation); nextBR = clanList.indexOf("<br>", lineLocation) + 4; clanList = clanList.substring(0, prevBR) + clanList.substring(nextBR); } } } else if (fromRoom == _root.gameRoomID) { if (timer) { resetAndStopTimer(); } if (opName && (loadedBackground)) { autoMsg(opName + " has left the game."); } if (((!gameisOver) && (opName)) && (loadedBackground)) { gameisOver = true; gameOver("win"); } else if (!loadedBackground) { delete opName; toTimer = 8; gameisOver = true; connectionTimeOut(); } } if (selectedList == "Lobby") { if (lobbyListArray.length > 100) { lineLocation = lobbyList.indexOf((">" + lobbyListArray[99]) + "<"); prevBR = lobbyList.lastIndexOf("<img ", lineLocation); nextBR = lobbyList.indexOf("<br>", lineLocation) + 4; lobbyListPage1 = lobbyList.substring(0, prevBR); lobbyListPage2 = lobbyList.substring(nextBR); playersList.htmlText = _root["lobbyListPage" + lobbyCurPage]; } else { lobbyPrevPage._alpha = 0; lobbyPrevPage.enabled = false; lobbyNextPage._alpha = 0; lobbyNextPage.enabled = false; playersList.htmlText = lobbyList; } } else if (selectedList == "Clan") { playersList.htmlText = clanList; } }; smartfox.onUserEnterRoom = function (fromRoom, user) { roomObj = smartfox.getRoom(fromRoom); if (fromRoom == _root.lobbyRoomID) { n = tabCheck; while (n <= 8) { if (user.getName() == eval ("privateChatTab" + n).playerName) { eval ("privateChatTab" + n).playerID = user.getId(); } n++; } if (lobbyList.indexOf((">" + user.getName()) + "<") == -1) { var isMod = user.isModerator(); var userVars = user.getVariables(); if (isMod) { modListArray.unshift(user.getName()); modList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + user.getId()) + "'><font color='#00FFFF'>") + user.getName()) + "</font></a><br>") + modList; } else if (userVars.accType == "advanced") { advListArray.unshift(user.getName()); advList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + user.getId()) + "'><font color='#FFCC66'>") + user.getName()) + "</font></a><br>") + advList; } else { begListArray.unshift(user.getName()); begList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + user.getId()) + "'>") + user.getName()) + "</a><br>") + begList; } if (userVars.clan == _root.clan) { clanList = (((("<img src='chatIcon' width='12' height='11'><a href='asfunction:viewPlayerDetails," + user.getId()) + "'><font color='#66FF99'>") + user.getName()) + "</font></a><br>") + clanList; } delete isMod; lobbyList = (modList + advList) + begList; lobbyListArray = modListArray.concat(advListArray, begListArray); } } else if (_root.gameRoomName == roomObj.getName()) { smartfox.leaveRoom(lobbyRoomID); if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } _root.myGameId = 2; gotoGame(); } if (selectedList == "Lobby") { if (lobbyListArray.length > 100) { lineLocation = lobbyList.indexOf((">" + lobbyListArray[99]) + "<"); prevBR = lobbyList.lastIndexOf("<img ", lineLocation); nextBR = lobbyList.indexOf("<br>", lineLocation) + 4; lobbyListPage1 = lobbyList.substring(0, prevBR); lobbyListPage2 = lobbyList.substring(nextBR); if (lobbyCurPage == 1) { lobbyPrevPage._alpha = 0; lobbyPrevPage.enabled = false; lobbyNextPage._alpha = 100; lobbyNextPage.enabled = true; } playersList.htmlText = _root["lobbyListPage" + lobbyCurPage]; } else { playersList.htmlText = lobbyList; } } else if (selectedList == "Clan") { playersList.htmlText = clanList; } }; smartfox.onPublicMessage = function (msg, user, roomId) { msg = findAndReplace(msg, "&", "&amp;"); msg = findAndReplace(msg, "<", "&lt;"); msg = findAndReplace(msg, ">", "&gt;"); var _local6 = user.isModerator(); var _local7 = user.getVariables(); var _local2 = Array(); if (roomId == clanRoomID) { privateChat[0] = privateChat[0] + (((("<font color='#66FF99'><b>[ " + user.getName()) + " ]:</b> ") + msg) + "</font><br>"); privateChatTab0.lineNumber++; _local2 = privateChat[0].split("<br>"); while (_local2.length > 40) { _local2.shift(); } privateChat[0] = _local2.join("<br>"); if (_root.selectedRoom == 0) { gameChat.htmlText = privateChat[0]; gameChat.scroll = gameChat.maxscroll; } else { privateChatTab0.tabName.htmlText = ("<font color='#66FF99'>" + privateChatTab0.privChatName) + "</font>"; } } else { if (_local6) { publicChat[roomId] = publicChat[roomId] + (((((("<font color='#00FFFF'><b><a href='asfunction:viewPlayerDetails," + user.getId()) + "'>[ ") + user.getName()) + " ]</a>:</b> ") + msg) + "</font><br>"); } else if (_local7.accType == "advanced") { publicChat[roomId] = publicChat[roomId] + (((((("<font color='#FFDD99'><b><a href='asfunction:viewPlayerDetails," + user.getId()) + "'>[ ") + user.getName()) + " ]</a>:</b> ") + msg) + "</font><br>"); } else { publicChat[roomId] = publicChat[roomId] + (((((("<b><a href='asfunction:viewPlayerDetails," + user.getId()) + "'>[ ") + user.getName()) + " ]</a>:</b> ") + msg) + "<br>"); } if (roomId == lobbyRoomID) { lobbyChatTab.lineNumber++; } else { tradeChatTab.lineNumber++; } _local2 = publicChat[roomId].split("<br>"); while (_local2.length > 40) { _local2.shift(); } publicChat[roomId] = _local2.join("<br>"); if (_root.selectedRoom == roomId) { if (_root.inManager) { tradeChatTab.gameChat.htmlText = publicChat[roomId]; tradeChatTab.gameChat.scroll = tradeChatTab.gameChat.maxscroll; } else { gameChat.htmlText = publicChat[roomId]; gameChat.scroll = gameChat.maxscroll; } } else if (roomId == lobbyRoomID) { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Lobby</font>"; } else if (roomId == tradeRoomID) { tradeChatTab.tabName.htmlText = "<font color='#66FF99'>Trade</font>"; } } }; smartfox.onPrivateMessage = function (msg, sender) { if (sender.getId() != smartfox.myUserId) { msg = findAndReplace(msg, "&", "&amp;"); msg = findAndReplace(msg, "<", "&lt;"); msg = findAndReplace(msg, ">", "&gt;"); var lineCount = Array(); if (msg == "/gameRequest") { if (_root.searchingGame) { _root.searchingGame = false; _root.timesSearched = 0; _root.timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } _root.creatingRoom = "game"; var room = new Object(); room.name = "random_" + sender.getId(); room.password = ""; room.isGame = true; room.exitCurrentRoom = false; room.maxUsers = 2; smartfox.createRoom(room); _root.gameRoomName = "random_" + sender.getId(); } else { smartfox.sendPrivateMessage("/denyRequest", sender.getId(), lobbyRoomID); } } else if (msg == "/denyRequest") { _root.searchingGame = true; _root.timesSearched = 0; _root.timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } searchGameInterval = setInterval(searchGame, 1500); } else if (msg == "/challengeRequest") { if ((_root.gameType != "") || (!_root.inLobby)) { smartfox.sendPrivateMessage("/unavailable", sender.getId(), lobbyRoomID); } else { if (playSounds) { challengeRequest.start(); } autoMsg(((((("<font color='#00FF99'>" + sender.getName()) + " has challenged you to a friendly match!</font> <font color='#00CCFF'><a href='asfunction:acceptChallenge,") + sender.getId()) + "'>&lt;Accept&gt;</a></font> <font color='#FF6666'><a href='asfunction:declineChallenge,") + sender.getId()) + "'>&lt;Decline&gt;</a></font>"); } } else if (msg == "/declineChallenge") { if (waitingBattle._alpha == 100) { if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } waitingBattle.displayText.htmlText = "<font color='#FF6666'>Challenge declined!</font>"; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.waitingBattleAnimation.stop(); } } else if (msg == "/cancelChallenge") { if (_root.inLobby) { var lineCount = Array(); lineCount = publicChat[lobbyRoomID].split("<br>"); challengeLine = lineCount.lastIndexOf(("<a href='asfunction:acceptChallenge," + sender.getId()) + "'>"); lineCount[challengeLine] = lineCount[challengeLine].substr(0, lineCount[challengeLine].lastIndexOf("<font color='#00CCFF'>")) + "Challenge Canceled.</font></font>"; publicChat[lobbyRoomID] = lineCount.join("<br>"); if (_root.selectedRoom == lobbyRoomID) { gameChat.htmlText = publicChat[lobbyRoomID]; } } } else if (msg == "/unavailable") { if (waitingBattle._alpha == 100) { waitingBattle.displayText.htmlText = "<font color='#FF6666'>Player unavailable.</font>"; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.waitingBattleAnimation.stop(); } } else { n = tabCheck; while (n <= 8) { if (eval ("privateChatTab" + n).playerName == sender.getName()) { privateChat[eval ("privateChatTab" + n).roomID] = privateChat[eval ("privateChatTab" + n).roomID] + (((("<font color='#BBBBFF'><b>[ " + sender.getName()) + " ]:</b> ") + msg) + "</font><br>"); eval ("privateChatTab" + n).lineNumber++; lineCount = privateChat[eval ("privateChatTab" + n).roomID].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } privateChat[eval ("privateChatTab" + n).roomID] = lineCount.join("<br>"); if ((eval ("privateChatTab" + _root.selectedRoom).playerName == sender.getName()) || ((sender.getId() == smartfox.myUserId) && (_root.lastRoomSent == _root.selectedRoom))) { gameChat.htmlText = privateChat[eval ("privateChatTab" + n).roomID]; gameChat.scroll = gameChat.maxscroll; } else { if (playSounds) { privateMessage.start(); } eval ("privateChatTab" + n).tabName.htmlText = ("<font color='#66FF99'>" + eval ("privateChatTab" + n).privChatName) + "</font>"; } break; } if (!eval ("privateChatTab" + n).enabled) { if (inGame) { if (n == 8) { setTabDistance(11, 35, 399); } else if (n == 7) { setTabDistance(11, 40, 399); } else if (n == 6) { setTabDistance(11, 45, 399); } else if (n == 5) { setTabDistance(11, 50, 399); } } if (playSounds) { privateMessage.start(); } eval ("privateChatTab" + n).lineNumber = 2; eval ("privateChatTab" + n)._alpha = 100; eval ("privateChatTab" + n).enabled = true; eval ("privateChatTab" + n).playerID = sender.getId(); eval ("privateChatTab" + n).playerName = sender.getName(); eval ("privateChatTab" + n).privChatName = ((sender.getName().length > 5) ? (sender.getName().substr(0, 5) + "...") : sender.getName()); eval ("privateChatTab" + n).tabName.htmlText = ("<font color='#66FF99'>" + eval ("privateChatTab" + n).privChatName) + "</font>"; privateChat[eval ("privateChatTab" + n).roomID] = ("<font color='#33CCFF'>Now talking to " + sender.getName()) + "</font><br>"; privateChat[eval ("privateChatTab" + n).roomID] = privateChat[eval ("privateChatTab" + n).roomID] + (((("<font color='#BBBBFF'><b>[ " + sender.getName()) + " ]:</b> ") + msg) + "</font><br>"); break; } if (n == 8) { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (((((("<font color='#BBBBFF'><b><a href='asfunction:viewPlayerDetails," + sender.getId()) + "'>[ ") + sender.getName()) + " ]</a>:</b> ") + msg) + "</font><br>"); if (_root.selectedRoom == lobbyRoomID) { gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Lobby</font>"; } } n++; } } delete lineCount; } }; smartfox.onAdminMessage = function (msg) { if (inLobby) { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (("<font color='#FF6666'>" + msg) + "</font><br>"); if (selectedRoom == lobbyRoomID) { gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Lobby</font>"; } } else if (inGame) { publicChat[gameRoomID] = publicChat[gameRoomID] + (("<font color='#FF6666'>" + msg) + "</font><br>"); if (selectedRoom == gameRoomID) { gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Game</font>"; } } }; smartfox.onModeratorMessage = function (msg) { if (inLobby) { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (("<font color='#FF6666'>" + msg) + "</font><br>"); if (selectedRoom == lobbyRoomID) { gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Lobby</font>"; } } else if (inGame) { publicChat[gameRoomID] = publicChat[gameRoomID] + (("<font color='#FF6666'>" + msg) + "</font><br>"); if (selectedRoom == gameRoomID) { gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Game</font>"; } } }; smartfox.onExtensionResponse = function (resObj, type) { if (resObj._cmd == "loadInfo") { if (!resObj.db[0].error) { _root.myDecksLoaded = false; if (resObj.db[0].boosters) { _root.boosters = true; } _root.defaultDeck = resObj.db[0].defaultDeck; _root.idUser = resObj.db[0].idUser; _root.myLevel = resObj.db[0].level; _root.ranking = resObj.db[0].ranking; _root.xpNeeded = resObj.db[0].xpN; _root.myPicture = resObj.db[0].picture; _root.experience = resObj.db[0].experience; _root.clanWelcomeMsg = resObj.db[0].clanWelcomeMsg; _root.clan = resObj.db[0].clan; _root.clanRankName = resObj.db[0].clanRankName; _root.accType = resObj.db[0].accType; _root.achievs = resObj.db[0].achievs.split(","); if (!achievs) { _root.achievs = new Array(); } for (var ac in _root.achievs) { achievObj["a" + achievs[ac]] = true; } if (resObj.db[0].a52) { displayAchiev(52); achievObj.a52 = true; } if (resObj.db[0].a53) { displayAchiev(53); achievObj.a53 = true; } if (resObj.db[0].a54) { displayAchiev(54); achievObj.a54 = true; } if (resObj.db[0].a55) { displayAchiev(55); achievObj.a55 = true; } if (resObj.db[0].a76) { displayAchiev(76); achievObj.a76 = true; } if (resObj.db[0].a77) { displayAchiev(77); achievObj.a77 = true; } delete horse_eye.onEnterFrame; if (!lobbyLogin) { gotoAndStop ("profile"); } } else { _root.loginMsg = "Connection failed. Please check your internet settings."; loginInfo.loginInfoEffect.cover._visible = false; loginInfo.loginInfoEffect.nameBox.selectable = true; loginInfo.loginInfoEffect.passBox.selectable = true; loginInfo.loginInfoEffect.enterBtn.enabled = true; loginInfo.loginInfoEffect.newaccBtn.enabled = true; loginInfo.loginInfoEffect.enterBtn.useHandCursor = true; conError = false; smartfox.disconnect(); } } if (resObj._cmd == "saveStats") { if (resObj.db[0].a10) { displayAchiev(10); achievObj.a10 = true; } if (resObj.db[0].a11) { displayAchiev(11); achievObj.a11 = true; } if (resObj.db[0].a12) { displayAchiev(12); achievObj.a12 = true; } if (resObj.db[0].a13) { displayAchiev(13); achievObj.a13 = true; } if (resObj.db[0].a40) { displayAchiev(40); achievObj.a40 = true; } if (resObj.db[0].a41) { displayAchiev(41); achievObj.a41 = true; } if (resObj.db[0].a42) { displayAchiev(42); achievObj.a42 = true; } if (resObj.db[0].a43) { displayAchiev(43); achievObj.a43 = true; } if (resObj.db[0].a44) { displayAchiev(44); achievObj.a44 = true; } if (resObj.db[0].a51) { displayAchiev(51); achievObj.a51 = true; } _root.waitingResponse.removeMovieClip(); sendDefeatedStatus(resObj.db[0].opLvl, resObj.db[0].opXp, resObj.db[0].opXpN, resObj.db[0].opXpLost); _root.experience = resObj.db[0].xp; autoMsg(("You gained " + resObj.db[0].xpGained) + " experience points"); if (resObj.db[0].lvl > _root.myLevel) { autoMsg((("You advanced from level " + _root.myLevel) + " to level ") + resObj.db[0].lvl); var bVars = new Object(); bVars.$level = Number(resObj.db[0].lvl); smartfox.setBuddyVariables(bVars); var uVars = new Object(); uVars.level = Number(resObj.db[0].lvl); smartfox.setUserVariables(uVars, mainRoomID); delete bVars; delete uVars; } if (resObj.db[0].bonus) { openBonus(resObj.db[0].idCard1, resObj.db[0].picture1, resObj.db[0].model1, resObj.db[0].idCard2, resObj.db[0].picture2, resObj.db[0].model2, resObj.db[0].idCard3, resObj.db[0].picture3, resObj.db[0].model3, resObj.db[0].idCard4, resObj.db[0].picture4, resObj.db[0].model4, resObj.db[0].idCard5, resObj.db[0].picture5, resObj.db[0].model5); } _root.myLevel = resObj.db[0].lvl; _root.xpNeeded = resObj.db[0].xpN; _root.totalXp = (_root.experience + "/") + _root.xpNeeded; saveStatsOver("win"); } else if (resObj._cmd == "saveBonus") { _root.waitingResponse.removeMovieClip(); saveStatsOver("win"); } else if (resObj._cmd == "saveAchiev") { displayAchiev(resObj.aNum); achievObj["a" + resObj.aNum] = true; if (saveAchievQueue.length > 0) { nextAchiev = saveAchievQueue.shift(); while (achievObj["a" + nextAchiev]) { if (saveAchievQueue.length > 0) { nextAchiev = saveAchievQueue.shift(); } else { break; } } if (!eval ("achievObj.a" + nextAchiev)) { var obj = {}; obj.acId = nextAchiev; smartfox.sendXtMessage("saveAchiev", "saveData", obj, "xml"); delete obj; } delete nextAchiev; } else { delete _root.savingAchiev; } } delete resObj; }; function findAndReplace(x, find, replace) { if ((x == null) || (find == null)) { return(x); } if (x.indexOf(find) < 0) { return(x); } var _local6 = find.length; var _local2 = 0; var _local1 = x.indexOf(find, _local2); var _local4 = ""; while (_local1 > -1) { _local4 = _local4 + x.substring(_local2, _local1); _local4 = _local4 + replace; _local2 = _local1 + _local6; _local1 = x.indexOf(find, _local2); } _local4 = _local4 + x.substring(_local2); return(_local4); } function colorize(obj, color) { colorBg = new Color(obj); colorBg.setTransform(color); } function uncolorize(obj) { colorBg = new Color(obj); colorBg.setTransform(uncolor); } function validateString(str) { validation = true; if (((((((((((((((((((((((((((((((((((((((((((((((((str.length < 1) || (str == "indexOf")) || (str == "search")) || (str == "copy")) || (str.indexOf("fuck") > -1)) || (str.indexOf("whore") > -1)) || (str.indexOf("shit") > -1)) || (str.indexOf("function") > -1)) || (str.indexOf("view") > -1)) || (str.indexOf("font") > -1)) || (str.indexOf("challenge") > -1)) || (str.indexOf("accept") > -1)) || (str.indexOf("deny") > -1)) || (str.indexOf("href") > -1)) || (str.indexOf(" ") == (str.length - 1))) || (str.indexOf(" ") == 0)) || (str.indexOf("#") > -1)) || (str.indexOf("(") > -1)) || (str.indexOf(")") > -1)) || (str.indexOf("<") > -1)) || (str.indexOf(">") > -1)) || (str.indexOf("@") > -1)) || (str.indexOf("<") > -1)) || (str.indexOf(">") > -1)) || (str.indexOf("'") > -1)) || (str.indexOf("\"") > -1)) || (str.indexOf("$") > -1)) || (str.indexOf("%") > -1)) || (str.indexOf("&") > -1)) || (str.indexOf("/") > -1)) || (str.indexOf("\\") > -1)) || (str.indexOf("^") > -1)) || (str.indexOf(",") > -1)) || (str.indexOf(";") > -1)) || (str.indexOf("!") > -1)) || (str.indexOf("+") > -1)) || (str.indexOf("=") > -1)) || (str.indexOf("\u00E1") > -1)) || (str.indexOf("\u00E0") > -1)) || (str.indexOf("\u00E9") > -1)) || (str.indexOf("\u00E8") > -1)) || (str.indexOf("\u00ED") > -1)) || (str.indexOf("\u00EC") > -1)) || (str.indexOf("\u00F3") > -1)) || (str.indexOf("\u00F2") > -1)) || (str.indexOf("\u00FA") > -1)) || (str.indexOf("\u00F9") > -1)) || (str.indexOf("?") > -1)) || (str.indexOf("!") > -1)) { validation = false; } return(validation); } function openPage(page) { getURL ("http://www.ederon.com/" + page, "_blank"); } function activateDragBox(obj) { obj.dragBox.onPress = function () { startDrag (obj); }; obj.dragBox.onRelease = function () { stopDrag(); _root.confirmBoxXpos = obj._x; _root.confirmBoxYpos = obj._y; }; } function okResponseBox2(msg) { _root.attachMovie("okResponse", "okResponse2", _root.confirmBoxDepth); okResponse2.windowText = msg; okResponse2._x = _root.confirmBoxXpos; okResponse2._y = _root.confirmBoxYpos; okResponse2.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.cancel.textBox.text = "Ok"; this.cancel.onRelease = function () { _root.okResponse2.removeMovieClip(); }; } }; } function okCancelResponseBox(from) { _root.attachMovie("okCancelResponse", "okCancelResponse", _root.confirmBoxDepth + 100); windowText = ""; okCancelResponse.windowText = windowText; okCancelResponse._x = _root.confirmBoxXpos; okCancelResponse._y = _root.confirmBoxYpos; okCancelResponse.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.ok.textBox.text = "Yes"; this.ok.onRelease = function () { if (from == "") { } _root.okCancelResponse.removeMovieClip(); }; this.cancel.textBox.text = "No"; this.cancel.onRelease = function () { _root.okCancelResponse.removeMovieClip(); }; } }; } function okCancelResponseBlackBox(from) { _root.attachMovie("okCancelResponseBlack", "okCancelResponseBlack", _root.confirmBoxDepth + 100); if (from == "surrenderFromGame") { windowText = "Are you sure you want to surrender?"; } else if (from == "newFromManager") { windowText = "Unsaved information will be lost. Are you sure you want to start a new deck?"; } else if (from == "loadFromManager") { windowText = "Unsaved information will be lost. Are you sure you want to load a new deck?"; } else if (from == "deleteFromManager") { windowText = "The current deck will be deleted and the cards retrived. Are you sure?"; } else if (from == "menuFromManager") { windowText = "Unsaved information will be lost. Are you sure you want to go back to the menu?"; } else if (from == "lobbyFromManager") { windowText = "Unsaved information will be lost. Are you sure you want to go back to the lobby?"; } else if (from == "menuFromLobby") { windowText = "Are you sure you want to leave the lobby?"; } else if (from == "logoutFromManager") { windowText = "Unsaved information will be lost. Are you sure you want to logout?"; } else if (from == "logoutFromLobby") { windowText = "Are you sure you want to leave the game?"; } else if (from == "logoutFromGame") { windowText = "Are you sure you want to leave the game?"; } okCancelResponseBlack.windowText.text = windowText; okCancelResponseBlack._x = 320; okCancelResponseBlack._y = 240; okCancelResponseBlack.ok.onRelease = function () { if (from == "surrenderFromGame") { testAchievement(true, 1); gameisOver = true; gameOver("lose"); sendGameOver("lose"); } else if (from == "newFromManager") { reloadCardManager("new"); } else if (from == "loadFromManager") { reloadCardManager("load"); } else if (from == "deleteFromManager") { deleteDeckLoaded(); } else if ((from == "menuFromManager") || (from == "lobbyFromManager")) { if (numCardsLoaded) { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } z = 1; while (z <= totalPages) { eval ("pageTab" + z).removeMovieClip(); z++; } delete myManagerCards; } if (from == "menuFromManager") { _root.leaveTrade = true; gotoAndStop ("profile"); } else { _root.alreadyOnTrade = true; gotoAndStop ("lobby"); } } else if (from == "menuFromLobby") { _root.leaveLobby = true; gotoAndStop ("profile"); } else if (from == "logoutFromManager") { smartfox.disconnect(); } else if (from == "logoutFromLobby") { smartfox.disconnect(); } else if (from == "logoutFromGame") { smartfox.disconnect(); } _root.okCancelResponseBlack.removeMovieClip(); }; okCancelResponseBlack.cancel.onRelease = function () { _root.okCancelResponseBlack.removeMovieClip(); }; } function loopSong() { if ((loadedSong.position > (loadedSong.duration - 80)) && (loadedSong.getVolume() == 100)) { loadedSong.stop(); if (loadedSong == game_music) { loadedSong = game_music2; } else if (loadedSong == game_music2) { loadedSong = game_music; } loadedSong.start(0.05); } } function displayAchiev(num) { achievs.push(num); if (achievementPopUpObj) { displayAchievQueue.push(num); } else { if (playSounds) { achievSound.start(); } achievementPopUpObj = _root.attachMovie("achievementPopUp", "achievementPopUp" + num, (_root.confirmBoxDepth * 2) + num); achievementPopUpObj._x = 452; achievementPopUpObj._y = 439; achievementPopUpObj.achievementPopUpGFX.gotoAndStop(achievObj.aI[num - 1]); achievementPopUpObj.achievementPopUpGFX.achievText = "Achievement Completed:<br>" + achievObj.achievName[num - 1]; achievementPopUpObj.onEnterFrame = function () { if (this._currentframe == 90) { delete achievementPopUpObj; if (displayAchievQueue.length > 0) { displayAchiev(displayAchievQueue.shift()); } this.removeMovieClip(); } }; } } function autoMsg(msg, displayInBox) { if (gameChat) { var lineCount = Array(); var msgLineArray = Array(); msgLineArray = msg.split("<br>"); msgLineCount = 0; i = 0; while (i < msgLineArray.length) { msgLineCount++; msgLineArray[i] = ("<font color='#FFCC66'>" + msgLineArray[i]) + "</font>"; i++; } msg = msgLineArray.join("<br>"); if (displayInBox) { if (((selectedRoom == gameRoomID) || (selectedRoom == lobbyRoomID)) || (selectedRoom == tradeRoomID)) { publicChat[selectedRoom] = publicChat[selectedRoom] + (msg + "<br>"); if (selectedRoom == lobbyRoomID) { lobbyChatTab.lineNumber = lobbyChatTab.lineNumber + msgLineCount; } else { tradeChatTab.lineNumber = tradeChatTab.lineNumber + msgLineCount; } lineCount = publicChat[selectedRoom].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } publicChat[selectedRoom] = lineCount.join("<br>"); gameChat.htmlText = publicChat[selectedRoom]; gameChat.scroll = gameChat.maxscroll; } else { privateChat[selectedRoom] = privateChat[selectedRoom] + (msg + "<br>"); eval ("privateChatTab" + selectedRoom).lineNumber = eval ("privateChatTab" + selectedRoom).lineNumber + msgLineCount; lineCount = privateChat[selectedRoom].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } privateChat[selectedRoom] = lineCount.join("<br>"); gameChat.htmlText = privateChat[selectedRoom]; gameChat.scroll = gameChat.maxscroll; } } else if (_root.inGame) { publicChat[gameRoomID] = publicChat[gameRoomID] + (msg + "<br>"); gameChatTab.lineNumber = gameChatTab.lineNumber + msgLineCount; lineCount = publicChat[gameRoomID].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } publicChat[gameRoomID] = lineCount.join("<br>"); if (selectedRoom == gameRoomID) { gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else { gameChatTab.tabName.htmlText = "<font color='#66FF99'>Game</font>"; } } else { publicChat[lobbyRoomID] = publicChat[lobbyRoomID] + (msg + "<br>"); lobbyChatTab.lineNumber = lobbyChatTab.lineNumber + msgLineCount; lineCount = publicChat[lobbyRoomID].split("<br>"); while (lineCount.length > 40) { lineCount.shift(); } publicChat[lobbyRoomID] = lineCount.join("<br>"); if (selectedRoom == lobbyRoomID) { gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#66FF99'>Lobby</font>"; } } delete lineCount; delete msgLineArray; } } function setTabDistance(init, dist, yLoc) { tradeChatTab._x = init + dist; tradeChatTab._y = yLoc; privateChatTab0._x = init + (dist * 2); privateChatTab0._y = yLoc; privateChatTab1._x = init + (dist * 3); privateChatTab1._y = yLoc; privateChatTab2._x = init + (dist * 4); privateChatTab2._y = yLoc; privateChatTab3._x = init + (dist * 5); privateChatTab3._y = yLoc; privateChatTab4._x = init + (dist * 6); privateChatTab4._y = yLoc; privateChatTab5._x = init + (dist * 7); privateChatTab5._y = yLoc; privateChatTab6._x = init + (dist * 8); privateChatTab6._y = yLoc; privateChatTab7._x = init + (dist * 9); privateChatTab7._y = yLoc; privateChatTab8._x = init + (dist * 10); privateChatTab8._y = yLoc; } overCardColor = new Object(); overCardColor.rb = 50; overCardColor.gb = 50; overCardColor.bb = 50; overTargetColor = new Object(); overTargetColor.rb = 155; selectedColor = new Object(); selectedColor.rb = 100; selectedColor.gb = 100; selectedColor.bb = 100; uncolor = new Object(); uncolor.rb = 0; uncolor.bb = 0; uncolor.gb = 0; disabledColor = new Object(); disabledColor.rb = -80; disabledColor.gb = -80; disabledColor.bb = -80; webpage = "http://www.ederon.com"; mainRoomID = 94; lobbyRoomID = 95; tradeRoomID = 96; confirmBoxXpos = 250; confirmBoxYpos = 250; confirmBoxDepth = 50000; creatingRoom = ""; joiningRoom = ""; offlineFriends = ""; onlineFriends = ""; blockedFriends = ""; friendsModList = ""; friendsAdvList = ""; friendsBegList = ""; lobbyList = "Loading Players..."; friendsList = ""; clanList = ""; waitingPlayer = false; searchingGame = false; version = "f04cd7399b2b0128970efb6d20b5c551"; versionDisplay = "v 4.02.0"; var privateChat = Array(); var publicChat = Array(); var saveAchievQueue = Array(); var displayAchievQueue = Array(); commandsList = "Available commands:<br>/soundfx: toggles sound effects on|off<br>/music: toggles music on|off<br>/autohelp: toggles Tool Tips on|off<br>/ping: Display your latency<br>/help: display this message"; localSaves = SharedObject.getLocal("ederonSaves"); if (!localSaves.data.autoHelpOff) { autoHelp = true; } if (!localSaves.data.soundsOff) { playSounds = true; } if (!localSaves.data.musicOff) { playMusic = true; } var movieLoader = new MovieClipLoader(); Array.prototype.indexOf = function (searchElement, startIndex) { if (startIndex == undefined) { startIndex = 0; } var _local2 = startIndex; while (_local2 < this.length) { if (this[_local2] == searchElement) { return(_local2); } _local2++; } return(-1); }; Array.prototype.lastIndexOf = function (val) { var _local2 = this.length; while (_local2--) { if (this[_local2].indexOf(val) != -1) { return(_local2); } } return(-1); }; Array.prototype.copy = function () { newArray = new Array(); count = 0; while (count < this.length) { newArray[count] = this[count]; count++; } return(newArray); }; Array.prototype.search = function (searchElement) { var _local2 = new Array(); var _local3 = false; for (var _local4 in this) { if (this[_local4] == searchElement) { _local3 = true; _local2.push(_local4); } } if (_local3) { _local2.reverse(); return(_local2); } return(null); }; var keyListener = new Object(); keyListener.onKeyDown = function () { if (msgBox) { if ((Selection.getFocus() != "_level0.msgBox") && (!okCancelResponseBlack)) { Selection.setFocus(msgBox); } if ((((Selection.getFocus() == "_level0.msgBox") && (Key.isDown(13))) && (!antiSpam)) && (!_root.inGame)) { sendChatMsg(msgBox); antiSpam = true; antiSpamTimer = getTimer() / 1000; if (viewMyPicture) { viewMyPicture.onEnterFrame = function () { delay = getTimer() / 1000; if (antiSpamTimer <= (delay - 4)) { antiSpam = false; delete this.onEnterFrame; } }; } else { antiSpam = false; } } else if (Key.isDown(13) && (_root.inGame)) { sendChatMsg(msgBox); } } else if (tradeChatTab.msgBox) { if (Selection.getFocus() == "_level0.tradeChatTab.gameChat") { Selection.setFocus(tradeChatTab.msgBox); } if (((Selection.getFocus() == "_level0.tradeChatTab.msgBox") && (Key.isDown(13))) && (!antiSpam)) { sendChatMsg(tradeChatTab.msgBox); antiSpam = true; antiSpamTimer = getTimer() / 1000; _root.tradeChatTab.onEnterFrame = function () { delay = getTimer() / 1000; if (antiSpamTimer <= (delay - 4)) { antiSpam = false; delete this.onEnterFrame; } }; } } else if (Key.isDown(13) && (loginInfo.loginInfoEffect.enterBtn.enabled)) { sendLogin(); } }; Key.addListener(keyListener); var lobby_music = new Sound(); lobby_music.attachSound("lobby.mp3"); var game_music = new Sound(); game_music.attachSound("battle.mp3"); var game_music2 = new Sound(); game_music2.attachSound("battle2.mp3"); var manager_music = new Sound(); manager_music.attachSound("manager.mp3"); var login_music = new Sound(); login_music.attachSound("login.mp3"); var mouseover = new Sound(); mouseover.attachSound("mouseover.au"); var cardflip = new Sound(); cardflip.attachSound("cardflip.wav"); var battlestart = new Sound(); battlestart.attachSound("battlestart.au"); var challengeRequest = new Sound(); challengeRequest.attachSound("challenge.wav"); var levelup = new Sound(); levelup.attachSound("levelup.wav"); var phasemove = new Sound(); phasemove.attachSound("phase.au"); var myturn = new Sound(); myturn.attachSound("myturn.au"); var opaction = new Sound(); opaction.attachSound("opaction.au"); var win = new Sound(); win.attachSound("win.au"); var lose = new Sound(); lose.attachSound("lose.au"); var achievSound = new Sound(); achievSound.attachSound("achiev.mp3"); var privateMessage = new Sound(); privateMessage.attachSound("privateMessage.mp3"); gotoAndStop ("login");
Frame 4
function sendLogin() { mouseover.start(); loginInfo.loginInfoEffect.cover._visible = true; loginData.load((((((((_root.webpage + "/game/validate.asp?v=") + version) + "&u=") + _root.myName) + "&p=") + _root.password) + "&r=") + random(10000)); loginInfo.loginInfoEffect.enterBtn.enabled = false; loginInfo.loginInfoEffect.newaccBtn.enabled = false; loginInfo.loginInfoEffect.nameBox.selectable = false; loginInfo.loginInfoEffect.passBox.selectable = false; loginInfo.loginInfoEffect.enterBtn.useHandCursor = false; _root.loginMsg = "Validating..."; } stop(); if (!fromTAG) { fromTAG = "ederon"; } if (loadNews) { delete loadNews; } newsDisplay.stop(); newsDisplay._alpha = 0; _focusrect = false; loginInfo.loginInfoEffect.cover._visible = false; password = ""; myName = ""; loginMsg = ""; if (admin) { delete admin; } if (idUser) { delete idUser; } if (myLevel) { delete myLevel; } if (experience) { delete experience; } if (myPicture) { delete myPicture; } if (boosters) { delete boosters; } if (noDeck) { delete noDeck; } if (accType) { delete accType; } if (managerName) { delete managerName; } if (clan) { delete clan; } newsData = "Loading News..."; antiSpam = false; conError = false; loginInfo.loginInfoEffect.nameBox.selectable = false; loginInfo.loginInfoEffect.passBox.selectable = false; loginInfo.loginInfoEffect.enterBtn.enabled = true; loginInfo.loginInfoEffect.enterBtn.useHandCursor = true; loginInfo.loginInfoEffect.enterBtn.onRelease = sendLogin; loginInfo.loginInfoEffect.newaccBtn.onRelease = function () { mouseover.start(); gotoAndStop ("signin"); }; loginInfo.loginInfoEffect.forgotpass.onRelease = function () { mouseover.start(); openPage("account/passRecover.asp"); }; var loadNews = new LoadVars(); loadNews.onLoad = function (success) { if (success) { if (this.s == "1") { newsDisplay._alpha = 100; newsDisplay.play(); 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.check == "failed") { loginMsg = "Username or password incorrect."; conError = true; } else if (this.check == "lockdown") { loginMsg = "Your account has been locked down."; conError = true; } else if (this.check == "badversion") { loginMsg = "This version is outdated. Please go to www.ederon.com."; conError = true; } else if (this.check == "custom") { loginMsg = this.customMsg; conError = true; } else { _root.achievObj = {}; achievObj.achievName = this.aN.split("|"); achievObj.achievName.pop(); achievObj.achievDescr = this.aD.split("|"); achievObj.achievDescr.pop(); achievObj.aI = this.aI.split(","); achievObj.aI.pop(); _root.myName = this.u; loginMsg = "Connecting to server..."; if (this.lobbyAnnounce) { _root.lobbyAnnounce = this.lobbyAnnounce; } smartfox.connect(_root.ip, _root.port); } } else { loginMsg = "Connection failed. Please check your internet settings."; conError = true; } if (conError) { loginInfo.loginInfoEffect.cover._visible = false; loginInfo.loginInfoEffect.nameBox.selectable = true; loginInfo.loginInfoEffect.passBox.selectable = true; loginInfo.loginInfoEffect.enterBtn.enabled = true; loginInfo.loginInfoEffect.newaccBtn.enabled = true; loginInfo.loginInfoEffect.enterBtn.useHandCursor = true; conError = false; } }; fadeSpeed = 1; floatUpSpeed = 4; d = 6000; horse_eye.onEnterFrame = function () { d++; flames = attachMovie("flames", "flames" + d, d); flames._xscale = (flames._yscale = 10); flames._x = Math.floor(Math.random() * 600); flames._y = 480; flames.gotoAndPlay(Math.round(Math.random() * 20)); flames.onEnterFrame = function () { if (!_root.horse_eye) { this.removeMovieClip(); } this._xscale = (this._yscale = this._yscale + fadeSpeed); this._alpha = this._alpha - fadeSpeed; this._y = this._y - floatUpSpeed; if (this._xscale >= 120) { this.removeMovieClip(); } }; }; onEnterFrame = function () { if (loadedSong.getVolume() > 0) { loadedSong.setVolume(loadedSong.getVolume() - 5); } else { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = login_music; if (playMusic) { loadedSong.start(0, 9999); } delete this.onEnterFrame; } };
Frame 5
function activateAchievList() { _root.attachMovie("achievList", "achievList", 10); achievList._x = 319; achievList._y = 97; achievList.backFromAchiev.onRelease = function () { achievList.removeMovieClip(); menuBox._visible = true; }; nCol = 0; nRol = 0; var _local2 = 1; while (_local2 < (achievObj.achievName.length + 1)) { medal = achievList.attachMovie("achievMedal", ("medalId" + _local2) + 1, _local2 + 1001); medal._x = -290 + (nCol * 30); medal._y = 26 + (nRol * 50); medal.fixedToolTip = true; nCol++; if (nCol == 19) { nCol = 0; nRol++; } if (achievObj["a" + _local2]) { medal.gotoAndStop(2); } ToolTip.install(medal, (("<b>" + achievObj.achievName[_local2 - 1]) + "</b><br>") + achievObj.achievDescr[_local2 - 1], 50); _local2++; } } antiSpam = false; _root.totalXp = (_root.experience + "/") + _root.xpNeeded; profileStr = ""; profileStr = profileStr + (("Username: <b>" + _root.myName) + "</b><br>"); profileStr = profileStr + (("Level: <b>" + _root.myLevel) + "</b><br>"); profileStr = profileStr + (("Experience: <b>" + _root.totalXp) + "</b><br>"); profileStr = profileStr + (("General Rank: <b>" + _root.ranking) + "</b><br>"); profileStr = profileStr + (((("Achievements: <b>" + achievs.length) + "/") + achievObj.achievName.length) + "</b><br>"); if (_root.accType == "beginner") { profileStr = profileStr + "Account Type: <b>Beginner</b><br>"; } else if (_root.accType == "advanced") { profileStr = profileStr + "Account Type: <b><font color='#FFCC33'>Advanced</font></b><br>"; } if (_root.clan) { profileStr = profileStr + (("<br>Clan: <font color='#66FF99'>" + _root.clan) + "</font><br>"); profileStr = profileStr + (("Clan Rank: <font color='#66FF99'>" + _root.clanRankName) + "</font><br>"); } if (defaultDeck == "") { profileStr = profileStr + "Default Deck: No default deck<br>"; } else { profileStr = profileStr + (("Default Deck: <font color='#FFCC33'>" + defaultDeck) + "</font><br><br>"); } if (_root.boosters) { profileStr = profileStr + (("<a href='" + webpage) + "/account/editAccount.asp' target='_blank'><font color='#FFCC33'>You received new booster packs! Click here to go to your account page and open them!</font></a><br>"); } else { profileStr = profileStr + (("<a href='" + webpage) + "/account/editAccount.asp' target='_blank'><font color='#FFFFFF'>Click here to manage your account.</font></a><br>"); } menuBox.menuBoxAnimation.profile.htmlText = profileStr; menuBox.menuBoxAnimation.viewMyPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _root.myPicture, menuBox.menuBoxAnimation.viewMyPicture.pictureClip); menuBox.menuBoxAnimation.viewMyPicture.pictureClip._x = 0; menuBox.menuBoxAnimation.viewMyPicture.pictureClip._y = 0; menuBox.onEnterFrame = function () { if (this._currentframe == 20) { this.stop(); delete this.onEnterFrame; } }; menuBox.menuBoxAnimation.lobbyLogin.onRelease = function () { if (defaultDeck == "") { errorMsg.htmlText = "You don't have a default deck yet! Go to the card manager to make a deck."; } else { gotoAndStop ("lobby"); } }; menuBox.menuBoxAnimation.managerLogin.onRelease = function () { gotoAndStop ("manager"); }; menuBox.menuBoxAnimation.guideBook.onRelease = function () { gotoAndStop ("guidebook"); }; menuBox.menuBoxAnimation.achievementsLogin.onRelease = function () { menuBox._visible = false; activateAchievList(); }; menuBox.menuBoxAnimation.tradeLogin.onRelease = function () { openPage("trade/tradeMarket.asp"); }; menuBox.menuBoxAnimation.cardList.onRelease = function () { openPage("cards.asp"); }; menuBox.menuBoxAnimation.logoutLogin.onRelease = function () { smartfox.disconnect(); }; if (clanRoomID) { smartfox.leaveRoom(clanRoomID); delete clanRoomID; } if (gameRoomID) { smartfox.leaveRoom(gameRoomID); delete gameRoomID; } if (leaveLobby) { var uVars = new Object(); uVars.chatRoom = 0; uVars.inGame = 0; smartfox.setUserVariables(uVars, mainRoomID); delete uVars; var bVars = new Object(); bVars.chatRoom = 0; smartfox.setBuddyVariables(bVars); delete bVars; smartfox.leaveRoom(lobbyRoomID); delete leaveLobby; smartfox.leaveRoom(tradeRoomID); delete leaveTrade; } if (leaveTrade) { smartfox.leaveRoom(tradeRoomID); delete leaveTrade; } publicChat[lobbyRoomID] = ""; publicChat[tradeRoomID] = ""; publicChat[gameRoomID] = ""; privateChat[0] = ""; privateChat[1] = ""; privateChat[2] = ""; privateChat[3] = ""; privateChat[4] = ""; privateChat[5] = ""; privateChat[6] = ""; privateChat[7] = ""; privateChat[8] = ""; onEnterFrame = function () { if ((loadedSong.getVolume() > 0) && (loadedSong != login_music)) { loadedSong.stop(); if (playMusic) { if (intervalVal) { clearInterval(intervalVal); } loadedSong = login_music; loadedSong.setVolume(100); loadedSong.start(); intervalVal = setInterval(loopSong, 1); delete this.onEnterFrame; } else { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = login_music; delete this.onEnterFrame; } } else { delete this.onEnterFrame; } };
Frame 6
function begDeckSelection(deckID) { if (sendSubmit.deck != deckID) { begDeckListTemp = begDeckList.split("<br>"); selectedLine = begDeckListTemp.lastIndexOf(("," + deckID) + "'"); begDeckListTemp[selectedLine] = ((("<a href='asfunction:begDeckSelection," + deckID) + "'><font color='#66FF99'>") + begDeckNames[deckID]) + "</font></a>"; descriptionTextField.htmlText = decksDescription[deckID]; deckPicture.gotoAndStop(deckID); oldSelection = begDeckListTemp.lastIndexOf(("," + sendSubmit.deck) + "'"); begDeckListTemp[oldSelection] = ((("<a href='asfunction:begDeckSelection," + sendSubmit.deck) + "'><font color='#FFFFFF'>") + begDeckNames[sendSubmit.deck]) + "</font></a>"; begDeckList = begDeckListTemp.join("<br>"); sendSubmit.deck = deckID; deckListTextField.htmlText = begDeckList; } } website = "http://www.ederon.com"; var sendSubmit = new LoadVars(); var submitedData = new LoadVars(); var CPMStarURL = new LoadVars(); var begDeckNames = new Array(); var decksDescription = new Array(); begDeckNames[0] = ""; begDeckNames[1] = "Fury of Nature"; begDeckNames[2] = "Allied Killers"; begDeckNames[3] = "Maligned Giant"; begDeckNames[4] = "Withered Prayers"; begDeckNames[5] = "Pacifist War"; begDeckNames[6] = "Praying Mantis"; begDeckNames[7] = "Heretic Growth"; begDeckNames[8] = "Prophetic Rage"; begDeckNames[9] = "Belligerent Blacksmith"; begDeckNames[10] = "Martial Massacre"; decksDescription[0] = ""; decksDescription[1] = "<b>Fury of Nature<br>Classes:</b> Sorcerer and Hunter<br>Control the battlefield! Using ranged weaponry and summoning creatures, destroy the competition as the opponent struggles to bypass your effect-stopping defense!"; decksDescription[2] = "<b>Allied Killers<br>Classes:</b> Knight and Assassin<br>Win with Speed and Agility! Dodge attacks while pummeling your opponent with a melee of quick weaponry, powerful abilities, and defense retaliation! They'll never see it coming..."; decksDescription[3] = "<b>Maligned Giant<br>Classes:</b> Monk and Gladiator<br>Combine brutal weaponry with a sanctuary defense to demolish the opponent! Using axes, abilities, and weapon-destroying tactics, leave a trail of opponents in your path!"; decksDescription[4] = "<b>Withered Prayers<br>Classes:</b> Paladin and Wizard<br>Mix pure and evil forces to create a relentless assault on the opponent! Deal huge damage with your spells and weaponry while reviving yourself. Your opponent won't see what hit him!"; decksDescription[5] = "<b>Pacifist War<br>Classes:</b> Monk and Knight<br>Start a crusade! Mixing a melee of fast weaponry and fast abilities, plow through the opposition before the get the chance to attack! Don\u2019t blink when facing these warriors!"; decksDescription[6] = "<b>Praying Mantis<br>Classes:</b> Paladin and Assassin<br>Take a beating and keep battling! Deflect damage back at the opponent while reviving yourself in a battle of stamina and endurance! Only true warriors can win a war of strategy!"; decksDescription[7] = "<b>Heretic Growth<br>Classes:</b> Hunter and Wizard<br>Burn and pillage through the opposition! Using ranged weapons and discard tactics, control the battlefield and turn your opponent into dust and ashes!"; decksDescription[8] = "<b>Prophetic Rage<br>Classes:</b> Sorcerer and Gladiator<br>Full-fledged warfare! Using large equippables and creatures, destroy the opponent into submission and become an Ederon Champion!"; decksDescription[9] = "<b>Belligerent Blacksmith<br>Classes:</b> Knight and Gladiator<br>Unleash an all-out weapon based offense on the opponent! Equip yourself with armors, shields and tons of weapons in your quest to trample your opponent into submission!"; decksDescription[10] = "<b>Martial Massacre<br>Classes:</b> Monk and Assassin<br>Using stealth and intelligence, this deck focuses on making the right moves at the right times. Trick your opponent into thinking you are vulnerable, then unleash huges retaliation damage and the ability to destroy weapons, armors and life!"; begDeckList = ("<a href='asfunction:begDeckSelection,1'><font color='#66FF99'>" + begDeckNames[1]) + "</font></a><br>"; begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,2'>" + begDeckNames[2]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,3'>" + begDeckNames[3]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,4'>" + begDeckNames[4]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,5'>" + begDeckNames[5]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,6'>" + begDeckNames[6]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,7'>" + begDeckNames[7]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,8'>" + begDeckNames[8]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,9'>" + begDeckNames[9]) + "</a><br>"); begDeckList = begDeckList + (("<a href='asfunction:begDeckSelection,10'>" + begDeckNames[10]) + "</a>"); deckListTextField.htmlText = begDeckList; sendSubmit.deck = 1; descriptionTextField.htmlText = decksDescription[1]; deckPicture.gotoAndStop(1); submitedData.onLoad = function (success) { warningBox.warningOk._alpha = 100; warningBox.warningOk.enabled = true; savingErrorMsg = ""; if (!success) { savingError = true; savingErrorMsg = savingErrorMsg + "- Connection failed. Please check your internet settings.\n"; } if (this.usernameTaken) { savingError = true; savingErrorMsg = savingErrorMsg + "- Username Taken.\n"; delete this.usernameTaken; } if (this.accountCreated) { savingError = true; savingErrorMsg = savingErrorMsg + "- Please wait a couple hours before you can create a new account.\n"; delete this.accountCreated; } if (savingError) { warningBox.warningTxt.text = savingErrorMsg; warningBox.warningOk.onRelease = function () { warningBox.removeMovieClip(); }; } else { warningBox.warningTxt.text = "Account created!"; CPMStarURL.load("http://server.cpmstar.com/action.aspx?advertiserid=112"); warningBox.warningOk.onRelease = function () { warningBox.removeMovieClip(); gotoAndStop ("login"); }; } delete savingError; }; submit.onRelease = function () { warningMsg = ""; if ((username.text.length < 5) || (!validateString(username.text))) { warningError = true; warningMsg = warningMsg + "- Invalid username.\n"; } if (pass.text == "") { warningError = true; warningMsg = warningMsg + "- You must enter a valid password.\n"; } if (sendSubmit.deck == 0) { warningError = true; warningMsg = warningMsg + "- You must choose a deck.\n"; } if (warningError) { _root.attachMovie("warningBox", "warningBox", 100); warningBox._x = 320; warningBox._y = 240; warningBox.warningTxt.text = warningMsg; warningBox.warningOk.onRelease = function () { warningBox.removeMovieClip(); }; } else { _root.attachMovie("warningBox", "warningBox", 100); warningBox._x = 320; warningBox._y = 240; warningBox.warningTxt.text = "Validating..."; warningBox.warningOk._alpha = 0; warningBox.warningOk.enabled = false; sendSubmit.username = username.text; sendSubmit.pass = pass.text; sendSubmit.fromTAG = _root.fromTAG; sendSubmit.deckName = _root.begDeckNames[sendSubmit.deck]; sendSubmit.sendAndLoad((website + "/account/createAccount.asp?rn=") + random(10000), submitedData, "POST"); } delete warningError; }; back.onRelease = function () { gotoAndStop ("login"); };
Frame 7
howToPlay.gotoAndStop(1); howToPlay.prevBook.onRelease = function () { if (this._parent._currentframe > 1) { if (playSounds) { cardflip.start(); } this._parent.gotoAndStop(this._parent._currentframe - 1); } }; howToPlay.nextBook.onRelease = function () { if (this._parent._currentframe < 11) { if (playSounds) { cardflip.start(); } this._parent.gotoAndStop(this._parent._currentframe + 1); if (this._parent._currentframe == 11) { testAchievement(true, 91); } } }; howToPlay.onEnterFrame = function () { if ((this._currentframe == 10) and (!this.doOnce)) { this.doOnce = true; _root.cardViewNumber = 435; this.createEmptyMovieClip("viewCard", _root.viewCardDepth); howToPlay.loadingCardText.text = "Loading..."; howToPlay.viewCard._x = 370; howToPlay.viewCard._y = 130; mclListener.onLoadComplete = function (target_mc) { howToPlay.loadingCardText.text = ""; _root.movieLoader.removeListener(mclListener); }; _root.movieLoader.addListener(mclListener); _root.movieLoader.loadClip(webpage + "/game/viewCard.swf", "howToPlay.viewCard"); } else if (this._currentframe != 10) { if (this.viewCard) { delete this.doOnce; this.viewCard.removeMovieClip(); } } }; howToPlay.backGuideBook.onRelease = function () { _root.gotoAndStop("profile"); }; onEnterFrame = function () { if (loadedSong.getVolume() > 0) { loadedSong.setVolume(loadedSong.getVolume() - 5); } else if (playMusic) { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = lobby_music; loadedSong.start(); intervalVal = setInterval(loopSong, 1); delete this.onEnterFrame; } };
Frame 8
accountSetup.onRelease = function () { openPage("account/editAccount.asp"); }; tournaments.onRelease = function () { openPage("tournaments/tournaments.asp"); }; clanList.onRelease = function () { openPage("clans/clans.asp"); }; tradeCards.onRelease = function () { openPage("trade/tradeMarket.asp"); }; mainMenuLobby.onRelease = function () { if (waitingBattle._alpha == 100) { autoMsg("You are currently waiting for a game. Please cancel this request before exiting to the main menu."); } else { okCancelResponseBlackBox("menuFromLobby"); } }; logout.onRelease = function () { if (waitingBattle._alpha == 100) { autoMsg("You are currently waiting for a game. Please cancel this request before exiting the game."); } else { okCancelResponseBlackBox("logoutFromLobby"); } }; if (playMusic) { soundButton.gotoAndStop(1); } else { soundButton.gotoAndStop(2); } soundButton.onRelease = function () { if (!playMusic) { this.gotoAndStop(1); playMusic = true; loadedSong.start(); intervalVal = setInterval(loopSong, 1); autoMsg("Music On."); localSaves.data.musicOff = false; localSaves.flush(); } else { this.gotoAndStop(2); playMusic = false; loadedSong.stop(); if (intervalVal) { clearInterval(intervalVal); } autoMsg("Music Off."); localSaves.data.musicOff = true; localSaves.flush(); } }; function viewClickedCard(cardObj) { if (viewCard) { viewCard.removeMovieClip(); } if (playSounds) { cardflip.start(); } if (cardObj.model) { _root.attachMovie("viewCard", "viewCard", _root.viewCardDepth); _root.viewCard._x = 452; _root.viewCard._y = 110; if ((cardObj.type == "Armor") || (cardObj.type == "Artifact")) { viewCard.powerAndResist = (cardObj.power + "/") + cardObj.resistence; } if (cardObj.handleType == 2) { viewCard.gotoAndStop(cardObj.model + "2"); } else { viewCard.gotoAndStop(cardObj.model); } if ((cardObj.type != "Class") && (cardObj.type != "Subclass")) { viewCard.typeAndSub = (cardObj.type + " - ") + cardObj.subtype; viewCard.createEmptyMovieClip("pictureClip", viewCard.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/large_pictures/") + cardObj.picture, viewCard.pictureClip); viewCard.pictureClip._x = 18; viewCard.pictureClip._y = 22; if ((cardObj.type == "Armor") || (cardObj.type == "Artifact")) { viewCard.attachMovie("boxClip", "boxClip", viewCard.getNextHighestDepth()); if (cardObj.type == "Armor") { viewCard.boxClip.gotoAndStop(1); } else { viewCard.boxClip.gotoAndStop(2); } viewCard.boxClip._x = 130; viewCard.boxClip._y = 110; } if (viewCard.rarityClip) { delete viewCard.rarityClip; } viewCard.attachMovie("rarityClip", "rarityClip", viewCard.getNextHighestDepth()); if (cardObj.collection == "Alpha") { if (cardObj.rarity < 2) { viewCard.rarityClip.gotoAndStop(1); } else if (cardObj.rarity < 4) { viewCard.rarityClip.gotoAndStop(2); } else { viewCard.rarityClip.gotoAndStop(3); } } else if (cardObj.collection == "Dragon Realm") { if (cardObj.rarity < 2) { viewCard.rarityClip.gotoAndStop(4); } else if (cardObj.rarity < 4) { viewCard.rarityClip.gotoAndStop(5); } else { viewCard.rarityClip.gotoAndStop(6); } } else if (cardObj.collection == "Turning Tide") { if (cardObj.rarity < 2) { viewCard.rarityClip.gotoAndStop(7); } else if (cardObj.rarity < 4) { viewCard.rarityClip.gotoAndStop(8); } else { viewCard.rarityClip.gotoAndStop(9); } } else if (cardObj.rarity < 2) { viewCard.rarityClip.gotoAndStop(10); } else if (cardObj.rarity < 4) { viewCard.rarityClip.gotoAndStop(11); } else { viewCard.rarityClip.gotoAndStop(12); } viewCard.rarityClip._x = 148; viewCard.rarityClip._y = 135; viewCard.textAndStory = cardObj.textFunc; viewCard.artist = "Art by " + cardObj.artist; viewCard.attachMovie("textFields", "textFields", viewCard.getNextHighestDepth()); viewCard.textFields._x = 10; viewCard.textFields._y = 2; viewCard.textFields.name.text = cardObj.name; viewCard.textFields.nameShad.text = cardObj.name; viewCard.textFields.typeAndSub.text = viewCard.typeAndSub; viewCard.textFields.artist.text = viewCard.artist; if ((cardObj.type == "Armor") || (cardObj.type == "Artifact")) { viewCard.textFields.powerAndResist.text = viewCard.powerAndResist; } var _local3 = new TextFormat(); if (viewCard.textFields.name.length >= 15) { _local3.size = 10; if (viewCard.textFields.name.length >= 16) { _local3.size = 9; } viewCard.textFields.name.setTextFormat(_local3); viewCard.textFields.nameShad.setTextFormat(_local3); } viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Attack Counts:", "<img src='attackCountsToolTip' id='attackCountsToolTip' height='16' width='89' hspace='-3' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Attack Effect:", "<img src='attackEffectToolTip' id='attackEffectToolTip' height='16' width='82' hspace='-3' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Double Ability", "<img src='doubleAbilityToolTip' id='doubleAbilityToolTip' height='16' width='83' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Double Spell", "<img src='doubleSpellToolTip' id='doubleSpellToolTip' height='16' width='76' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Fast Strike", "<img src='fastStrikeToolTip' id='fastStrikeToolTip' height='16' width='65' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Instant Effect", "<img src='instantEffectToolTip' id='instantEffectToolTip' height='16' width='84' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Instant Equip", "<img src='instantEquipToolTip' id='instantEquipToolTip' height='16' width='82' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Morph into", "<img src='morphIntoToolTip' id='morphIntoToolTip' height='16' width='65' hspace='-3' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Ranged", "<img src='rangedToolTip' id='rangedToolTip' height='16' width='48' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Remove:", "<img src='removeToolTip' id='removeToolTip' height='16' width='54' hspace='-3' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Unblockable", "<img src='unblockableToolTip' id='unblockableToolTip' height='16' width='73' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Untappable", "<img src='untappableToolTip' id='untappableToolTip' height='16' width='69' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Retract", "<img src='retractToolTip' id='retractToolTip' height='16' width='47' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Rebuild", "<img src='rebuildToolTip' id='rebuildToolTip' height='16' width='47' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Conjoined", "<img src='conjoinedToolTip' id='conjoinedToolTip' height='16' width='62' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Shattering", "<img src='shatteringToolTip' id='shatteringToolTip' height='16' width='64' hspace='-2' vspace='-2'>"); viewCard.textAndStory = findAndReplace(viewCard.textAndStory, "Legacy", "<img src='legacyToolTip' id='legacyToolTip' height='16' width='45' hspace='-2' vspace='-2'>"); if (viewCard.textAndStory.substring(0, 3) == "[9]") { viewCard.textAndStory = viewCard.textAndStory.substr(3); _local3.size = 9; } else { _local3.size = 10; } viewCard.textFields.textAndStory.htmlText = viewCard.textAndStory; viewCard.textFields.textAndStory.setTextFormat(_local3); if (viewCard.textFields.textAndStory.attackCountsToolTip) { viewCard.textFields.textAndStory.attackCountsToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.attackCountsToolTip, "When there is no more attack counts, this weapon will be destroyed.", 150); } if (viewCard.textFields.textAndStory.attackEffectToolTip) { viewCard.textFields.textAndStory.attackEffectToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.attackEffectToolTip, "When you attack with this weapon, the following effect occurs.", 150); } if (viewCard.textFields.textAndStory.doubleAbilityToolTip) { viewCard.textFields.textAndStory.doubleAbilityToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.doubleAbilityToolTip, "If not countered, this card can be followed up with another card in the same phase. Effect can only happens once per phase.", 150); } if (viewCard.textFields.textAndStory.doubleSpellToolTip) { viewCard.textFields.textAndStory.doubleSpellToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.doubleSpellToolTip, "If not countered, this card can be followed up with another card in the same phase. Effect can only happens once per phase.", 150); } if (viewCard.textFields.textAndStory.fastStrikeToolTip) { viewCard.textFields.textAndStory.fastStrikeToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.fastStrikeToolTip, "This weapon can attack the same turn it was played.", 150); } if (viewCard.textFields.textAndStory.instantEffectToolTip) { viewCard.textFields.textAndStory.instantEffectToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.instantEffectToolTip, "This card does not end your phase when played. Unlike with Double, this effect can be used multiple times in one phase.", 150); } if (viewCard.textFields.textAndStory.instantEquipToolTip) { viewCard.textFields.textAndStory.instantEquipToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.instantEquipToolTip, "This item does not end your equip phase when played. Unlike with Double, this effect can be used multiple times in one phase.", 150); } if (viewCard.textFields.textAndStory.morphIntoToolTip) { viewCard.textFields.textAndStory.morphIntoToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.morphIntoToolTip, "You must have the class described in your class dock. Instantly swap your current class for this class.", 150); } if (viewCard.textFields.textAndStory.rangedToolTip) { viewCard.textFields.textAndStory.rangedToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.rangedToolTip, "This weapon is not affected by defense retaliation during your attack phase.", 150); } if (viewCard.textFields.textAndStory.removeToolTip) { viewCard.textFields.textAndStory.removeToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.removeToolTip, "When this card is put into the graveyard from play by the owner during equip phase, the following effect occurs.", 150); } if (viewCard.textFields.textAndStory.unblockableToolTip) { viewCard.textFields.textAndStory.unblockableToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.unblockableToolTip, "This weapon cannot be blocked by the opponent's shield or weapon.", 150); } if (viewCard.textFields.textAndStory.untappableToolTip) { viewCard.textFields.textAndStory.untappableToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.untappableToolTip, "This weapon does not tap when you attack.", 150); } if (viewCard.textFields.textAndStory.retractToolTip) { viewCard.textFields.textAndStory.retractToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.retractToolTip, "If not countered, return this card to your hand after played.", 150); } if (viewCard.textFields.textAndStory.rebuildToolTip) { viewCard.textFields.textAndStory.rebuildToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.rebuildToolTip, "If destroyed or removed, return this card to your hand.", 150); } if (viewCard.textFields.textAndStory.conjoinedToolTip) { viewCard.textFields.textAndStory.conjoinedToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.conjoinedToolTip, "When removed or destroyed, morph to the class that could play this card.", 150); } if (viewCard.textFields.textAndStory.shatteringToolTip) { viewCard.textFields.textAndStory.shatteringToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.shatteringToolTip, "If an opponents weapon is destroyed by blocking this item, the remaining damage is dealt to the opponent.", 150); } if (viewCard.textFields.textAndStory.legacyToolTip) { viewCard.textFields.textAndStory.legacyToolTip.fixedToolTip = true; ToolTip.install(viewCard.textFields.textAndStory.legacyToolTip, "If an opponents weapon is destroyed by blocking this item, the remaining damage is dealt to the opponent.", 150); } } viewCard.actualLoc = 1; viewCard.location_x = 174; viewCard.location_y = 12; if (viewCard.everyone) { delete viewCard.everyone; } if (viewCard.classAverage) { delete viewCard.classAverage; } if (viewCard.classHunter) { delete viewCard.classHunter; } if (viewCard.subClassAssassin) { delete viewCard.subClassAssassin; } if (viewCard.classSorcerer) { delete viewCard.classSorcerer; } if (viewCard.subClassWizard) { delete viewCard.subClassWizard; } if (viewCard.classPaladin) { delete viewCard.classPaladin; } if (viewCard.subClassMonk) { delete viewCard.subClassMonk; } if (viewCard.classKnight) { delete viewCard.classKnight; } if (viewCard.subClassGladiator) { delete viewCard.subClassGladiator; } if (cardObj.e) { viewCard.attachMovie("e", "everyone", viewCard.getNextHighestDepth()); viewCard.everyone._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.everyone._y = viewCard.location_y; } else if ((cardObj.type != "Class") && (cardObj.type != "Subclass")) { if (cardObj.av) { viewCard.attachMovie("av", "classAverage", viewCard.getNextHighestDepth()); viewCard.classAverage._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.classAverage._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.h) { viewCard.attachMovie("h", "classHunter", viewCard.getNextHighestDepth()); viewCard.classHunter._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.classHunter._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.a) { viewCard.attachMovie("a", "subClassAssassin", viewCard.getNextHighestDepth()); viewCard.subClassAssassin._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.subClassAssassin._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.s) { viewCard.attachMovie("s", "classSorcerer", viewCard.getNextHighestDepth()); viewCard.classSorcerer._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.classSorcerer._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.w) { viewCard.attachMovie("w", "subClassWizard", viewCard.getNextHighestDepth()); viewCard.subClassWizard._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.subClassWizard._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.p) { viewCard.attachMovie("p", "classPaladin", viewCard.getNextHighestDepth()); viewCard.classPaladin._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.classPaladin._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.m) { viewCard.attachMovie("m", "subClassMonk", viewCard.getNextHighestDepth()); viewCard.subClassMonk._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.subClassMonk._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.k) { viewCard.attachMovie("k", "classKnight", viewCard.getNextHighestDepth()); viewCard.classKnight._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.classKnight._y = viewCard.location_y; viewCard.actualLoc++; } if (cardObj.g) { viewCard.attachMovie("g", "subClassGladiator", viewCard.getNextHighestDepth()); viewCard.subClassGladiator._x = viewCard.location_x - (viewCard.actualLoc * 12); viewCard.subClassGladiator._y = viewCard.location_y; viewCard.actualLoc++; } } } else { createEmptyMovieClip("viewCard", _root.viewCardDepth); loadingCardText.swapDepths(_root.viewCardDepth + 11); loadingCardText.text = "Loading..."; _root.viewCard._x = 452; _root.viewCard._y = 110; mclListener.onLoadComplete = function (target_mc) { loadingCardText.text = ""; movieLoader.removeListener(mclListener); }; movieLoader.addListener(mclListener); movieLoader.loadClip(webpage + "/game/viewCardv4.swf", "viewCard"); } } function openChatFunction() { n = tabCheck; while (n <= 8) { if (eval ("privateChatTab" + n).playerName == viewUser.getName()) { changeTabFocus(eval ("privateChatTab" + n).roomID); return; } if (!eval ("privateChatTab" + n).enabled) { eval ("privateChatTab" + n).lineNumber = 1; eval ("privateChatTab" + n)._alpha = 100; eval ("privateChatTab" + n).enabled = true; eval ("privateChatTab" + n).playerID = viewUser.getId(); eval ("privateChatTab" + n).playerName = viewUser.getName(); eval ("privateChatTab" + n).privChatName = ((viewUser.getName().length > 5) ? (viewUser.getName().substr(0, 5) + "...") : (viewUser.getName())); privateChat[eval ("privateChatTab" + n).roomID] = ("<font color='#33CCFF'>Now talking to " + viewUser.getName()) + "</font><br>"; changeTabFocus(eval ("privateChatTab" + n).roomID); return; } if (n == 8) { autoMsg("You have too many private chats opened. In order to open a new one, first close one of them."); } n++; } } function viewPlayerDetails(passedID) { roomObj = smartfox.getRoom(_root.mainRoomID); viewUser = roomObj.getUser(Number(passedID)); var _local3 = viewUser.getVariables(); if (_root.inGame) { if (passedID != smartfox.myUserId) { openChatFunction(); } } else if ((_root.activeViewPlayerID == passedID) || (passedID == smartfox.myUserId)) { playerViewer._alpha = 0; playerViewer.chat.enabled = false; playerViewer.addToFriends.enabled = false; playerViewer.block.enabled = false; playerViewer.challengePlayer.enabled = false; delete _root.activeViewPlayerID; } else if (isNaN(passedID * 1)) { var _local2 = smartfox.getBuddyByName(passedID); if (_local2.id) { _root.activeViewPlayerID = passedID; playerViewer._alpha = 100; playerViewer.viewPlayerID = _local2.id; playerViewer.viewPlayerName.text = _local2.name; playerViewer.viewPlayerLevel.text = "Level: " + _local2.variables.$level; playerViewer.viewPlayerRanking.text = "Ranking: " + _local2.variables.$ranking; if (!_local2.variables.clan) { playerViewer.viewPlayerClan.text = ""; } else { playerViewer.viewPlayerClan.text = ("<" + _local2.variables.$clan) + ">"; } if (_local2.variables.$mod == 1) { playerViewer.viewPlayerAcc.htmlText = "<font color='#00FFFF'>Moderator</font>"; } else if (_local2.variables.$accType == "beginner") { playerViewer.viewPlayerAcc.htmlText = "<font color='#DDDDDD'>Beginner</font>"; } else if (_local2.variables.$accType == "advanced") { playerViewer.viewPlayerAcc.htmlText = "<font color='#FFFFCC'>Advanced</font>"; } playerViewer.viewPlayerPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _local2.variables.$picture, playerViewer.viewPlayerPicture.pictureClip); playerViewer.viewPlayerPicture.pictureClip._x = 0; playerViewer.viewPlayerPicture.pictureClip._y = 0; colorize(playerViewer.challengePlayer, disabledColor); playerViewer.challengePlayer.enabled = false; colorize(playerViewer.chat, disabledColor); playerViewer.chat.enabled = false; if (blockedFriends.indexOf((">" + playerViewer.viewPlayerName.text) + "<") != -1) { colorize(playerViewer.addToFriends, disabledColor); playerViewer.addToFriends.enabled = false; uncolorize(playerViewer.block); playerViewer.block.enabled = true; playerViewer.block.gotoAndStop(2); playerViewer.block.toolTipText = "Unblock this player."; } else { colorize(playerViewer.block, disabledColor); playerViewer.block.enabled = false; uncolorize(playerViewer.addToFriends); playerViewer.addToFriends.enabled = true; playerViewer.addToFriends.gotoAndStop(2); } } } else if (lobbyList.indexOf((">" + viewUser.getName()) + "<") != -1) { _root.activeViewPlayerID = passedID; playerViewer._alpha = 100; playerViewer.viewPlayerID = passedID; playerViewer.viewPlayerName.text = viewUser.getName(); playerViewer.viewPlayerLevel.text = "Level: " + _local3.level; playerViewer.viewPlayerRanking.text = "Ranking: " + _local3.ranking; if (!_local3.clan) { playerViewer.viewPlayerClan.text = ""; } else { playerViewer.viewPlayerClan.text = ("<" + _local3.clan) + ">"; } if (blockUser == viewUser.getName()) { colorize(playerViewer.block, disabledColor); playerViewer.block.enabled = false; colorize(playerViewer.challenge, disabledColor); playerViewer.challenge.enabled = false; colorize(playerViewer.chat, disabledColor); playerViewer.chat.enabled = false; } if (friendsList.indexOf((">" + viewUser.getName()) + "<") == -1) { playerViewer.addToFriends.gotoAndStop(1); playerViewer.addToFriends.enabled = true; playerViewer.block.gotoAndStop(1); uncolorize(playerViewer.block); playerViewer.block.enabled = true; } else if (blockedFriends.indexOf((">" + viewUser.getName()) + "<") == -1) { playerViewer.addToFriends.gotoAndStop(2); playerViewer.addToFriends.enabled = true; playerViewer.block.gotoAndStop(1); colorize(playerViewer.block, disabledColor); playerViewer.block.enabled = false; } else { playerViewer.addToFriends.gotoAndStop(1); colorize(playerViewer.addToFriends, disabledColor); playerViewer.addToFriends.enabled = false; playerViewer.block.gotoAndStop(2); uncolorize(playerViewer.block); playerViewer.block.enabled = true; } if ((((_local3.inGame == 1) || (_root.gameType != "")) || (blockedFriends.indexOf((">" + viewUser.getName()) + "<") != -1)) || (lobbyList.indexOf((">" + viewUser.getName()) + "<") == -1)) { colorize(playerViewer.challengePlayer, disabledColor); playerViewer.challengePlayer.enabled = false; } else { uncolorize(playerViewer.challengePlayer); playerViewer.challengePlayer.enabled = true; } if ((lobbyList.indexOf((">" + viewUser.getName()) + "<") == -1) || (blockedFriends.indexOf((">" + viewUser.getName()) + "<") != -1)) { colorize(playerViewer.chat, disabledColor); playerViewer.chat.enabled = false; } else { uncolorize(playerViewer.chat); playerViewer.chat.enabled = true; } var _local5 = viewUser.isModerator(); if (viewUser.getName() == "Mistermind") { playerViewer.viewPlayerAcc.htmlText = "<font color='#FFFF00'>GOD</font>"; } else if (_local5) { playerViewer.viewPlayerAcc.htmlText = "<font color='#00FFFF'>Moderator</font>"; } else if (_local3.accType == "beginner") { playerViewer.viewPlayerAcc.htmlText = "<font color='#DDDDDD'>Beginner</font>"; } else if (_local3.accType == "advanced") { playerViewer.viewPlayerAcc.htmlText = "<font color='#FFFFCC'>Advanced</font>"; } playerViewer.viewPlayerPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _local3.picture, playerViewer.viewPlayerPicture.pictureClip); playerViewer.viewPlayerPicture.pictureClip._x = 0; playerViewer.viewPlayerPicture.pictureClip._y = 0; } } function changeTabFocus(to) { if (_root.clan && (to == 0)) { closeTab._alpha = 0; closeTab.enabled = false; } else { closeTab._alpha = 70; closeTab.enabled = true; } if (_root.selectedRoom != to) { if (_root.selectedRoom == lobbyRoomID) { lobbyChatTab.tabName.htmlText = "<font color='#FFFFFF'>Lobby</font>"; eval ("privateChatTab" + to).tabName.htmlText = ("<font color='#FFFF66'>" + eval ("privateChatTab" + to).privChatName) + "</font>"; _root.selectedRoom = to; gameChat.htmlText = privateChat[to]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom == tradeRoomID) { tradeChatTab.tabName.htmlText = "<font color='#FFFFFF'>Trade</font>"; eval ("privateChatTab" + to).tabName.htmlText = ("<font color='#FFFF66'>" + eval ("privateChatTab" + to).privChatName) + "</font>"; _root.selectedRoom = to; gameChat.htmlText = privateChat[to]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom == gameRoomID) { gameChatTab.tabName.htmlText = "<font color='#FFFFFF'>Game</font>"; eval ("privateChatTab" + to).tabName.htmlText = ("<font color='#FFFF66'>" + eval ("privateChatTab" + to).privChatName) + "</font>"; _root.selectedRoom = to; gameChat.htmlText = privateChat[to]; gameChat.scroll = gameChat.maxscroll; } else { eval ("privateChatTab" + _root.selectedRoom).tabName.htmlText = ("<font color='#FFFFFF'>" + eval ("privateChatTab" + _root.selectedRoom).privChatName) + "</font>"; eval ("privateChatTab" + to).tabName.htmlText = ("<font color='#FFFF66'>" + eval ("privateChatTab" + to).privChatName) + "</font>"; _root.selectedRoom = to; gameChat.htmlText = privateChat[to]; gameChat.scroll = gameChat.maxscroll; } } } function challengeCoolDown() { if (_root.cdTimer > 0) { _root.cdTimer--; } else if (challengeCoolDownInterval != null) { clearInterval(challengeCoolDownInterval); } } function acceptChallenge(param) { if (waitingBattle._alpha == 100) { autoMsg("You can't accept challenges while waiting for another game."); } else { _root.gameType = "challenge"; challengerID = Number(param); var _local2 = Array(); _local2 = publicChat[lobbyRoomID].split("<br>"); challengeLine = _local2.lastIndexOf(("<a href='asfunction:acceptChallenge," + challengerID) + "'>"); _local2[challengeLine] = _local2[challengeLine].substr(0, _local2[challengeLine].lastIndexOf("<font color='#00CCFF'>")) + "<font color='#00CCFF'>Challenge Accepted!</font></font>"; publicChat[lobbyRoomID] = _local2.join("<br>"); gameChat.htmlText = publicChat[lobbyRoomID]; randomMatch._alpha = 0; randomMatch.enabled = false; randomMatch.swapDepths(waitingBattle); waitingBattle._alpha = 100; waitingBattle.displayText.htmlText = "Awaiting Response..."; waitingBattle.cancelBtn._alpha = 0; waitingBattle.cancelBtn.enabled = false; waitingBattle.waitingBattleAnimation.gotoAndPlay(1); waitingBattle.waitingBattleAnimation.play(); if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } waitingGameResponseInterval = setInterval(waitingGameResponse, 10000); _root.creatingRoom = "game"; var _local3 = new Object(); _local3.name = "challenge_" + challengerID; _local3.password = ""; _local3.isGame = true; _local3.exitCurrentRoom = false; _local3.maxUsers = 2; smartfox.createRoom(_local3); _root.gameRoomName = "challenge_" + challengerID; delete argumentArray; } } function declineChallenge(param) { challengerID = Number(param); var _local1 = Array(); _local1 = publicChat[lobbyRoomID].split("<br>"); challengeLine = _local1.lastIndexOf(("<a href='asfunction:acceptChallenge," + challengerID) + "'>"); _local1[challengeLine] = _local1[challengeLine].substr(0, _local1[challengeLine].lastIndexOf("<font color='#00CCFF'>")) + "<font color='#FF6666'>Challenge Declined!</font></font>"; publicChat[lobbyRoomID] = _local1.join("<br>"); gameChat.htmlText = publicChat[lobbyRoomID]; smartfox.sendPrivateMessage("/declineChallenge", challengerID, lobbyRoomID); delete argumentArray; } function searchGame() { lobbyRoomObj = smartfox.getRoom(mainRoomID); var _local3 = lobbyRoomObj.getUserList(); timesSearched++; for (var _local4 in _local3) { var _local2 = _local3[_local4]; var _local1 = _local2.getVariables(); if (((((smartfox.myUserId < _local2.getId()) && (_local1.chatRoom == 1)) && (_local1.searching == 1)) && (((timesSearched <= 7) && (_local1.idUser != lastIdPlayed)) || (timesSearched == 8))) && (((myLevel - _local1.level) <= timesSearched) && ((myLevel - _local1.level) >= (-timesSearched)))) { smartfox.sendPrivateMessage("/gameRequest", _local2.getId(), lobbyRoomID); searchingGame = false; timesSearched = 0; timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } waitingGameResponseInterval = setInterval(waitingGameResponse, 10000); break; } } if (timesSearched > 8) { timesSearched = 0; } } function waitingGameResponse() { _root.timesWaited++; if (timesWaited >= 3) { if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } _root.timesWaited = 0; if (_root.waitingPlayer) { _root.waitingPlayer = false; smartfox.leaveRoom(gameRoomID); delete _root.gameRoomID; } if (_root.gameType == "random") { _root.searchingGame = true; _root.timesSearched = 0; _root.timesWaited = 0; if (searchGameInterval != null) { clearInterval(searchGameInterval); } searchGameInterval = setInterval(searchGame, 1500); } else if (_root.gameType == "challenge") { if (_root.challengerRequestID) { smartfox.sendPrivateMessage("/cancelChallenge", challengerRequestID, lobbyRoomID); delete _root.challengerRequestID; } waitingBattle.displayText.htmlText = "<font color='#FF6666'>No Response!</font>"; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.waitingBattleAnimation.stop(); } } } function gotoGame() { var _local3 = new Object(); _local3.searching = 0; _local3.inGame = 1; smartfox.setUserVariables(_local3, mainRoomID); var _local4 = new Object(); _local4.inGame = 1; smartfox.setBuddyVariables(_local4); delete _root.inLobby; _root.inGame = true; waitingBattle.displayText.htmlText = "<font color='#00FF99'>Starting game...</font>"; waitingBattle.cancelBtn._alpha = 0; waitingBattle.cancelBtn.enabled = false; waitingBattle.waitingBattleAnimation.stop(); if (playSounds) { battlestart.start(); } startTime = getTimer() / 1000; waitingBattle.onEnterFrame = function () { if (lobby_music.getVolume() > 0) { lobby_music.setVolume(lobby_music.getVolume() - 5); } delay = getTimer() / 1000; if (startTime <= (delay - 3)) { if (intervalVal) { clearInterval(intervalVal); } lobby_music.stop(); lobby_music.setVolume(100); delete loadedSong; delete this.onEnterFrame; gotoAndStop ("game"); } }; } function viewDeck(deckID) { if ((defaultDeck != deckID) && (savingDefault == "")) { uncolorize(setAsDefault); setAsDefault.enabled = true; } else { colorize(setAsDefault, disabledColor); setAsDefault.enabled = false; } deckNameList = deckListString.split("<br>"); selectedLine = deckNameList.lastIndexOf((">" + deckID) + "<"); deckNameList[selectedLine] = ((("<a href='asfunction:viewDeck," + deckID) + "'><font color='#66FF99'>") + deckID) + "</font></a>"; if ((selectedDeck != "") && (selectedDeck != deckID)) { oldSelection = deckNameList.lastIndexOf((">" + selectedDeck) + "<"); if (selectedDeck == defaultDeck) { deckNameList[oldSelection] = ((("<a href='asfunction:viewDeck," + selectedDeck) + "'><font color='#FFCC66'>") + selectedDeck) + "</font></a>"; } else { deckNameList[oldSelection] = ((("<a href='asfunction:viewDeck," + selectedDeck) + "'><font color='#FFFFFF'>") + selectedDeck) + "</font></a>"; } } deckListString = deckNameList.join("<br>"); selectedDeck = deckID; cardsList.htmlText = deckListString; deckCardsListTab._alpha = 100; deckCardsListTab.enabled = true; deckCardsListTab.tabDisplay = ((_root.selectedDeck.length > 5) ? (_root.selectedDeck.substr(0, 5) + "...") : (_root.selectedDeck)); deckCardsListTab.tabName.htmlText = ("<font color='#FFFFFF'>" + deckCardsListTab.tabDisplay) + "</font>"; } function viewSelectedCard(cardID) { var _local1 = ((("window.open('" + webpage) + "/cardPopup.html?idCard=") + cardID) + "','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"; getURL (("javascript:" + _local1) + " void(0);"); } antiSpam = false; if (activeViewPlayerID) { delete activeViewPlayerID; } if (gameRoomID) { smartfox.leaveRoom(gameRoomID); delete gameRoomID; } if (modListArray) { delete modListArray; } if (advListArray) { delete advListArray; } if (begListArray) { delete begListArray; } if (lobbyListArray) { delete lobbyListArray; } lobbyCurPage = 1; colorize(setAsDefault, disabledColor); setAsDefault.enabled = false; colorize(cardManager, disabledColor); cardManager.enabled = false; savingDefault = ""; selectedDeck = ""; delete inGame; delete inManager; inLobby = true; cdTimer = 0; gameType = ""; playerViewer._alpha = 0; playerViewer.chat.enabled = false; playerViewer.challengePlayer.enabled = false; playerViewer.addToFriends.enabled = false; playerViewer.addToFriends.gotoAndStop(1); playerViewer.block.enabled = false; playerViewer.block.gotoAndStop(1); randomMatch._alpha = 0; randomMatch.enabled = false; waitingBattle._alpha = 0; waitingBattle.enabled = false; waitingBattle.cancelBtn.enabled = false; waitingBattle.displayText.htmlText = ""; selectedRoom = lobbyRoomID; publicChat[lobbyRoomID] = ""; gameChat.htmlText = ""; tabDistance = 54; lobbyChatTab._x = 20; lobbyChatTab._y = 309; setTabDistance(20, tabDistance, 309); closeTab._x = 582; closeTab._y = 333; closeTab._alpha = 0; closeTab.enabled = false; clanListTab._alpha = 0; clanListTab.enabled = false; deckCardsListTab._alpha = 0; deckCardsListTab.enabled = false; lobbyNextPage._alpha = 0; lobbyNextPage.enabled = false; lobbyPrevPage._alpha = 0; lobbyPrevPage.enabled = false; if (publicChat[tradeRoomID] == "") { tradeChatTab._alpha = 0; tradeChatTab.enabled = false; } else { tradeChatTab._alpha = 100; tradeChatTab.enabled = true; } privateChatTab0.roomID = 0; if (privateChat[0] == "") { privateChatTab0._alpha = 0; privateChatTab0.enabled = false; } else { privateChatTab0._alpha = 100; privateChatTab0.enabled = true; } privateChatTab1.roomID = 1; if (privateChat[1] == "") { privateChatTab1._alpha = 0; privateChatTab1.enabled = false; } else { privateChatTab1._alpha = 100; privateChatTab1.enabled = true; } privateChatTab2.roomID = 2; if (privateChat[2] == "") { privateChatTab2._alpha = 0; privateChatTab2.enabled = false; } else { privateChatTab2._alpha = 100; privateChatTab2.enabled = true; } privateChatTab3.roomID = 3; if (privateChat[3] == "") { privateChatTab3._alpha = 0; privateChatTab3.enabled = false; } else { privateChatTab3._alpha = 100; privateChatTab3.enabled = true; } privateChatTab4.roomID = 4; if (privateChat[4] == "") { privateChatTab4._alpha = 0; privateChatTab4.enabled = false; } else { privateChatTab4._alpha = 100; privateChatTab4.enabled = true; } privateChatTab5.roomID = 5; if (privateChat[5] == "") { privateChatTab5._alpha = 0; privateChatTab5.enabled = false; } else { privateChatTab5._alpha = 100; privateChatTab5.enabled = true; } privateChatTab6.roomID = 6; if (privateChat[6] == "") { privateChatTab6._alpha = 0; privateChatTab6.enabled = false; } else { privateChatTab6._alpha = 100; privateChatTab6.enabled = true; } privateChatTab7.roomID = 7; if (privateChat[7] == "") { privateChatTab7._alpha = 0; privateChatTab7.enabled = false; } else { privateChatTab7._alpha = 100; privateChatTab7.enabled = true; } privateChatTab8.roomID = 8; if (privateChat[8] == "") { privateChatTab8._alpha = 0; privateChatTab8.enabled = false; } else { privateChatTab8._alpha = 100; privateChatTab8.enabled = true; } lobbyChatTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; tradeChatTab.tabName.htmlText = "<font color='#FFFFFF'>Trade</font>"; lobbyListTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; friendsListTab.tabName.htmlText = "<font color='#FFFFFF'>Friends</font>"; if (_root.clan) { displayClan.text = ("<" + _root.clan) + ">"; clanListTab._alpha = 100; clanListTab.enabled = true; clanListTab.tabDisplay = ((_root.clan.length > 5) ? (_root.clan.substr(0, 5) + "...") : (_root.clan)); clanListTab.tabName.htmlText = ("<font color='#FFFFFF'>" + clanListTab.tabDisplay) + "</font>"; tabCheck = 1; } else { displayClan.text = ""; clanListTab._alpha = 0; clanListTab.tabDisplay = ""; clanListTab.tabName.htmlText = ""; clanListTab.enabled = false; tabCheck = 0; } decksListTab.tabName.htmlText = "<font color='#FFFF66'>Decks</font>"; cardsListTab.tabName.htmlText = "Cards"; viewMyPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _root.myPicture, viewMyPicture.pictureClip); viewMyPicture.pictureClip._x = 0; viewMyPicture.pictureClip._y = 0; if (smartfox.amIModerator) { displayAccType.htmlText = "<font color='#00FFFF'>Moderator</font>"; } else if (_root.accType == "beginner") { displayAccType.htmlText = "<font color='#DDDDDD'>Beginner</font>"; } else if (_root.accType == "advanced") { displayAccType.htmlText = "<font color='#FFFFCC'>Advanced</font>"; } xpBarPos = Math.round((100 * experience) / xpNeeded); xpBarPos = ((xpBarPos == 0) ? 1 : (xpBarPos)); experienceBar.onEnterFrame = function () { if (this._currentframe >= xpBarPos) { this.gotoAndStop(xpBarPos); delete this.onEnterFrame; } }; playerViewer.addToFriends.onRelease = function () { if (friendsList.indexOf((">" + playerViewer.viewPlayerName.text) + "<") == -1) { smartfox.addBuddy(viewUser.getName()); colorize(playerViewer.block, disabledColor); playerViewer.block.enabled = false; this.gotoAndStop(2); } else { smartfox.removeBuddy(playerViewer.viewPlayerName.text); uncolorize(playerViewer.block); playerViewer.block.enabled = true; this.gotoAndStop(1); if (lobbyList.indexOf((">" + playerViewer.viewPlayerName.text) + "<") == -1) { playerViewer._alpha = 0; playerViewer.chat.enabled = false; playerViewer.addToFriends.enabled = false; playerViewer.block.enabled = false; playerViewer.challengePlayer.enabled = false; delete _root.activeViewPlayerID; } } }; ToolTip.install(_root.playerViewer.addToFriends, "Add/Remove this player to/from your friend's list.", 250); playerViewer.block.onRelease = function () { if (blockedFriends.indexOf((">" + playerViewer.viewPlayerName.text) + "<") == -1) { colorize(playerViewer.block, disabledColor); playerViewer.block.enabled = false; colorize(playerViewer.challengePlayer, disabledColor); playerViewer.challengePlayer.enabled = false; colorize(playerViewer.chat, disabledColor); playerViewer.chat.enabled = false; colorize(playerViewer.addToFriends, disabledColor); playerViewer.addToFriends.enabled = false; blockUser = playerViewer.viewPlayerName.text; smartfox.addBuddy(playerViewer.viewPlayerName.text); } else { uncolorize(playerViewer.block); playerViewer.block.enabled = true; uncolorize(playerViewer.challengePlayer); playerViewer.challengePlayer.enabled = true; uncolorize(playerViewer.chat); playerViewer.chat.enabled = true; uncolorize(playerViewer.addToFriends); playerViewer.addToFriends.enabled = true; unblockUser = playerViewer.viewPlayerName.text; smartfox.setBuddyBlockStatus(playerViewer.viewPlayerName.text, false); this.gotoAndStop(1); if (lobbyList.indexOf((">" + playerViewer.viewPlayerName.text) + "<") == -1) { playerViewer._alpha = 0; playerViewer.chat.enabled = false; playerViewer.addToFriends.enabled = false; playerViewer.block.enabled = false; playerViewer.challengePlayer.enabled = false; delete _root.activeViewPlayerID; } } }; ToolTip.install(_root.playerViewer.block, "Block this player this player from sending you private messages.", 250); playerViewer.chat.onRelease = function () { openChatFunction(); }; ToolTip.install(_root.playerViewer.chat, "Open a private chat with this player.", 250); lobbyChatTab.onRelease = function () { closeTab._alpha = 0; closeTab.enabled = false; if (_root.selectedRoom == tradeRoomID) { tradeChatTab.tabName.htmlText = "<font color='#FFFFFF'>Trade</font>"; lobbyChatTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; _root.selectedRoom = lobbyRoomID; gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom == gameRoomID) { gameChatTab.tabName.htmlText = "<font color='#FFFFFF'>Game</font>"; lobbyChatTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; _root.selectedRoom = lobbyRoomID; gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom != lobbyRoomID) { eval ("privateChatTab" + _root.selectedRoom).tabName.htmlText = ("<font color='#FFFFFF'>" + eval ("privateChatTab" + _root.selectedRoom).privChatName) + "</font>"; lobbyChatTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; _root.selectedRoom = lobbyRoomID; gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } }; tradeChatTab.onRelease = function () { closeTab._alpha = 0; closeTab.enabled = false; if (_root.selectedRoom == lobbyRoomID) { lobbyChatTab.tabName.htmlText = "<font color='#FFFFFF'>Lobby</font>"; tradeChatTab.tabName.htmlText = "<font color='#FFFF66'>Trade</font>"; _root.selectedRoom = tradeRoomID; gameChat.htmlText = publicChat[tradeRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom == gameRoomID) { gameChatTab.tabName.htmlText = "<font color='#FFFFFF'>Game</font>"; tradeChatTab.tabName.htmlText = "<font color='#FFFF66'>Trade</font>"; _root.selectedRoom = tradeRoomID; gameChat.htmlText = publicChat[tradeRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom != tradeRoomID) { eval ("privateChatTab" + _root.selectedRoom).tabName.htmlText = ("<font color='#FFFFFF'>" + eval ("privateChatTab" + _root.selectedRoom).privChatName) + "</font>"; tradeChatTab.tabName.htmlText = "<font color='#FFFF66'>Trade</font>"; _root.selectedRoom = tradeRoomID; gameChat.htmlText = publicChat[tradeRoomID]; gameChat.scroll = gameChat.maxscroll; } }; lobbyNextPage.onRelease = function () { _root.lobbyCurPage = 2; playersList.htmlText = lobbyListPage2; this._alpha = 0; this.enabled = false; lobbyPrevPage._alpha = 100; lobbyPrevPage.enabled = true; }; lobbyPrevPage.onRelease = function () { _root.lobbyCurPage = 1; playersList.htmlText = lobbyListPage1; this._alpha = 0; this.enabled = false; lobbyNextPage._alpha = 100; lobbyNextPage.enabled = true; }; n = 0; while (n <= 8) { eval ("privateChatTab" + n).onRelease = function () { changeTabFocus(this.roomID); }; n++; } closeTab.onRollOver = function () { closeTab._alpha = 100; }; closeTab.onRollOut = function () { closeTab._alpha = 70; }; closeTab.onRelease = function () { closeTab._alpha = 0; closeTab.enabled = false; eval ("privateChatTab" + _root.selectedRoom)._alpha = 0; eval ("privateChatTab" + _root.selectedRoom).enabled = false; eval ("privateChatTab" + _root.selectedRoom).lineNumber = 0; delete eval ("privateChatTab" + _root.selectedRoom).playerID; delete eval ("privateChatTab" + _root.selectedRoom).playerName; delete eval ("privateChatTab" + _root.selectedRoom).privChatName; privateChat[_root.selectedRoom] = ""; n = _root.selectedRoom + 1; while (n <= 8) { thisChatTab = eval ("privateChatTab" + n); prevChatTab = eval ("privateChatTab" + Number(n - 1)); if (thisChatTab.enabled) { prevChatTab._alpha = 100; prevChatTab.enabled = true; prevChatTab.lineNumber = thisChatTab.lineNumber; prevChatTab.playerID = thisChatTab.playerID; prevChatTab.playerName = thisChatTab.playerName; prevChatTab.privChatName = thisChatTab.privChatName; prevChatTab.tabName.htmlText = thisChatTab.tabName.htmlText; privateChat[n - 1] = privateChat[n]; } else { prevChatTab._alpha = 0; prevChatTab.enabled = false; prevChatTab.lineNumber = 0; prevChatTab.tabName.htmlText = ""; delete prevChatTab.playerID; delete prevChatTab.playerName; delete prevChatTab.privChatName; privateChat[n - 1] = ""; break; } n++; } if (_root.inGame) { if (privateChat[7] != "") { setTabDistance(11, 40, 399); } else if (privateChat[6] != "") { setTabDistance(11, 45, 399); } else if (privateChat[5] != "") { setTabDistance(11, 50, 399); } else { setTabDistance(11, 54, 399); } gameChatTab.tabName.htmlText = "<font color='#FFFF66'>Game</font>"; _root.selectedRoom = gameRoomID; gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else { lobbyChatTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; _root.selectedRoom = lobbyRoomID; gameChat.htmlText = publicChat[lobbyRoomID]; gameChat.scroll = gameChat.maxscroll; } }; lobbyListTab.onRelease = function () { lobbyListTab.tabName.htmlText = "<font color='#FFFF66'>Lobby</font>"; friendsListTab.tabName.htmlText = "<font color='#FFFFFF'>Friends</font>"; if (_root.clan) { clanListTab.tabName.htmlText = ("<font color='#FFFFFF'>" + clanListTab.tabDisplay) + "</font>"; } selectedList = "Lobby"; if (lobbyListArray.length > 100) { lineLocation = lobbyList.indexOf((">" + lobbyListArray[99]) + "<"); prevBR = lobbyList.lastIndexOf("<img ", lineLocation); nextBR = lobbyList.indexOf("<br>", lineLocation) + 4; lobbyListPage1 = lobbyList.substring(0, prevBR); lobbyListPage2 = lobbyList.substring(nextBR); playersList.htmlText = lobbyListPage1; lobbyNextPage._alpha = 100; lobbyNextPage.enabled = true; lobbyPrevPage._alpha = 0; lobbyPrevPage.enabled = false; } else { playersList.htmlText = lobbyList; } }; friendsListTab.onRelease = function () { lobbyListTab.tabName.htmlText = "<font color='#FFFFFF'>Lobby</font>"; friendsListTab.tabName.htmlText = "<font color='#FFFF66'>Friends</font>"; if (_root.clan) { clanListTab.tabName.htmlText = ("<font color='#FFFFFF'>" + clanListTab.tabDisplay) + "</font>"; } selectedList = "Friends"; playersList.htmlText = friendsList; }; clanListTab.onRelease = function () { lobbyListTab.tabName.htmlText = "<font color='#FFFFFF'>Lobby</font>"; friendsListTab.tabName.htmlText = "<font color='#FFFFFF'>Friends</font>"; if (_root.clan) { clanListTab.tabName.htmlText = ("<font color='#FFFF66'>" + clanListTab.tabDisplay) + "</font>"; } selectedList = "Clan"; playersList.htmlText = clanList; }; randomMatch.onRelease = function () { var _local3 = new Object(); _local3.searching = 1; smartfox.setUserVariables(_local3, mainRoomID); _root.gameType = "random"; _root.searchingGame = true; _root.timesSearched = 0; _root.timesWaited = 0; this._alpha = 0; this.enabled = false; this.swapDepths(waitingBattle); waitingBattle._alpha = 100; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.displayText.htmlText = "Searching for game..."; waitingBattle.waitingBattleAnimation.gotoAndPlay(1); waitingBattle.waitingBattleAnimation.play(); if (searchGameInterval != null) { clearInterval(searchGameInterval); } searchGameInterval = setInterval(searchGame, 1500); }; ToolTip.install(_root.randomMatch, "Play a game against a random player online. This match counts for experience points.", 250); playerViewer.challengePlayer.onRelease = function () { roomObj = smartfox.getRoom(_root.mainRoomID); viewUser = roomObj.getUser(Number(_root.activeViewPlayerID)); var _local3 = viewUser.getVariables(); if (_root.cdTimer > 0) { autoMsg(("You have just challenged someone. Please wait " + _root.cdTimer) + " seconds before challenging again."); } else if (((_local3.searching != 1) && (_local3.chatRoom == 1)) && (_local3.inGame != 1)) { _root.gameType = "challenge"; _root.challengerRequestID = viewUser.getId(); colorize(this, disabledColor); this.enabled = false; randomMatch._alpha = 0; randomMatch.enabled = false; randomMatch.swapDepths(waitingBattle); waitingBattle._alpha = 100; waitingBattle.cancelBtn._alpha = 100; waitingBattle.cancelBtn.enabled = true; waitingBattle.displayText.htmlText = "Challenging Player..."; waitingBattle.waitingBattleAnimation.gotoAndPlay(1); waitingBattle.waitingBattleAnimation.play(); _root.cdTimer = 10; if (challengeCoolDownInterval != null) { clearInterval(challengeCoolDownInterval); } challengeCoolDownInterval = setInterval(challengeCoolDown, 2000); if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } waitingGameResponseInterval = setInterval(waitingGameResponse, 20000); smartfox.sendPrivateMessage("/challengeRequest", challengerRequestID, lobbyRoomID); } else { autoMsg("This player is currently unavailable for challenges."); } }; ToolTip.install(_root.playerViewer.challengePlayer, "Challenge this player to a friendly match. Challenges do not give you any experience points.", 250); waitingBattle.cancelBtn.onRelease = function () { var _local3 = new Object(); _local3.searching = 0; smartfox.setUserVariables(_local3, mainRoomID); if (_root.challengerRequestID) { smartfox.sendPrivateMessage("/cancelChallenge", challengerRequestID, lobbyRoomID); delete _root.challengerRequestID; } _root.gameType = ""; _root.searchingGame = false; _root.timesSearched = 0; _root.timesWaited = 0; if (waitingGameResponseInterval != null) { clearInterval(waitingGameResponseInterval); } if (searchGameInterval != null) { clearInterval(searchGameInterval); } waitingBattle._alpha = 0; waitingBattle.displayText.htmlText = ""; waitingBattle.waitingBattleAnimation.stop(); waitingBattle.swapDepths(randomMatch); this.enabled = false; randomMatch._alpha = 100; randomMatch.enabled = true; if (_root.activeViewPlayerID) { uncolorize(playerViewer.challengePlayer); playerViewer.challengePlayer.enabled = true; } }; decksListTab.onRelease = function () { if (_root.selectedDeck != _root.defaultDeck) { uncolorize(setAsDefault); setAsDefault.enabled = true; } decksListTab.tabName.htmlText = "<font color='#FFFF66'>Decks</font>"; deckCardsListTab.tabName.htmlText = ("<font color='#FFFFFF'>" + deckCardsListTab.tabDisplay) + "</font>"; cardsList.htmlText = deckListString; }; deckCardsListTab.onRelease = function () { colorize(setAsDefault, disabledColor); setAsDefault.enabled = false; decksListTab.tabName.htmlText = "<font color='#FFFFFF'>Decks</font>"; deckCardsListTab.tabName.htmlText = ("<font color='#FFFF66'>" + deckCardsListTab.tabDisplay) + "</font>"; cardsList.htmlText = "Loading cards..."; loadCardsFromDeck.load((((((webpage + "/managerFiles/loadCardsFromDeck.asp?idUser=") + idUser) + "&loadedDeck=") + _root.selectedDeck) + "&rn=") + random(10000)); }; setAsDefault.onRelease = function () { colorize(this, disabledColor); this.enabled = false; savingDefault = selectedDeck; deckNameList = deckListString.split("<br>"); selectedLine = deckNameList.lastIndexOf((">" + _root.selectedDeck) + "<"); oldDefaultLine = deckNameList.lastIndexOf((">" + _root.defaultDeck) + "<"); setDefaultURL.load((((((webpage + "/managerFiles/defaultDeck.asp?idUser=") + idUser) + "&deckName=") + _root.selectedDeck) + "&rn=") + random(10000)); }; ToolTip.install(_root.setAsDefault, "Set this deck as your default deck.", 250); sendButton.onRelease = function () { if (!antiSpam) { sendChatMsg(msgBox); antiSpam = true; antiSpamTimer = getTimer() / 1000; if (viewMyPicture) { viewMyPicture.onEnterFrame = function () { delay = getTimer() / 1000; if (antiSpamTimer <= (delay - 4)) { antiSpam = false; delete this.onEnterFrame; } }; } } }; var loadMyDecks = new LoadVars(); loadMyDecks.onLoad = function (success) { if (success) { myDecksLoaded = true; deckListString = ""; deckNameList = this.deckNameList.split(","); if (deckNameList.length >= 5) { testAchievement(true, 94); } i = 0; while (i < deckNameList.length) { if (defaultDeck == deckNameList[i]) { deckListString = deckListString + (((("<a href='asfunction:viewDeck," + deckNameList[i]) + "'><font color='#FFCC66'>") + deckNameList[i]) + "</font></a><br>"); } else { deckListString = deckListString + (((("<a href='asfunction:viewDeck," + deckNameList[i]) + "'><font color='#FFFFFF'>") + deckNameList[i]) + "</font></a><br>"); } i++; } cardsList.htmlText = deckListString; delete deckNameList; } }; var loadCardsFromDeck = new LoadVars(); loadCardsFromDeck.onLoad = function (success) { if (success) { cardsList.htmlText = ""; i = 1; while (i <= this.totalCards) { cardsList.htmlText = cardsList.htmlText + (((((("<a href='asfunction:viewSelectedCard," + loadCardsFromDeck["idCard" + i]) + "'><font color='#FFFFFF'>") + loadCardsFromDeck["quantity" + i]) + " ") + loadCardsFromDeck["cardName" + i]) + "</font></a><br>"); i++; } } }; var setDefaultURL = new LoadVars(); setDefaultURL.onLoad = function (success) { if (success) { deckNameList[selectedLine] = ((("<a href='asfunction:viewDeck," + savingDefault) + "'><font color='#FFCC66'>") + savingDefault) + "</font></a>"; deckNameList[oldDefaultLine] = ((("<a href='asfunction:viewDeck," + defaultDeck) + "'><font color='#FFFFFF'>") + defaultDeck) + "</font></a>"; deckListString = deckNameList.join("<br>"); cardsList.htmlText = deckListString; defaultDeck = savingDefault; } else { autoMsg("Error saving deck. Please try again."); } savingDefault = ""; if (selectedDeck != defaultDeck) { uncolorize(setAsDefault); setAsDefault.enabled = true; } }; cardsList.htmlText = "Loading decks..."; loadMyDecks.load((((((webpage + "/managerFiles/loadDeckList.asp?u=") + _root.myName) + "&p=") + _root.password) + "&rn=") + random(10000)); cardManager.onRelease = function () { if (clanRoomID) { smartfox.leaveRoom(clanRoomID); delete clanRoomID; } n = 0; while (n <= 8) { privateChat[n] = ""; n++; } smartfox.leaveRoom(lobbyRoomID); _root.leaveLobby = true; gotoAndStop ("manager"); }; var styles = (new TextField.StyleSheet()); styles.onLoad = function (success) { if (success) { cardsList.styleSheet = styles; gameChat.styleSheet = styles; playersList.styleSheet = styles; } }; styles.load(webpage + "/game/gamestyles.css"); onEnterFrame = function () { if (loadedSong.getVolume() > 0) { loadedSong.setVolume(loadedSong.getVolume() - 5); } else if (playMusic) { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = lobby_music; loadedSong.start(); intervalVal = setInterval(loopSong, 1); delete this.onEnterFrame; } else { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = lobby_music; delete this.onEnterFrame; } }; smartfox.joinRoom(lobbyRoomID, "", false, true);
Instance of Symbol 458 MovieClip [UIScrollBar] "chatboxSb" in Frame 8
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "chatboxSb2" in Frame 8
//component parameters onClipEvent (construct) { _targetInstanceName = "playersList"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "chatboxSb3" in Frame 8
//component parameters onClipEvent (construct) { _targetInstanceName = "cardsList"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Frame 9
accountSetup.onRelease = function () { openPage("account/editAccount.asp"); }; tradeCards.onRelease = function () { openPage("trade/tradeMarket.asp"); }; surrender.onRelease = function () { if (((((!_root.bonusCards) && (!_root.waitingResponse)) && (!_root.okResponse2)) && (!_root.okResponse)) && (!_root.okCancelResponse)) { okCancelResponseBlackBox("surrenderFromGame"); } }; logout.onRelease = function () { if (((((!_root.bonusCards) && (!_root.waitingResponse)) && (!_root.okResponse2)) && (!_root.okResponse)) && (!_root.okCancelResponse)) { okCancelResponseBlackBox("logoutFromGame"); } }; if (playMusic) { soundButton.gotoAndStop(1); } else { soundButton.gotoAndStop(2); } soundButton.onRelease = function () { if (!playMusic) { this.gotoAndStop(1); playMusic = true; loadedSong.start(); intervalVal = setInterval(loopSong, 1); autoMsg("Music On."); localSaves.data.musicOff = false; localSaves.flush(); } else { playMusic = false; loadedSong.stop(); this.gotoAndStop(2); if (intervalVal) { clearInterval(intervalVal); } autoMsg("Music Off."); localSaves.data.musicOff = true; localSaves.flush(); } }; function testCardUpdates(cardObjUp) { returnValue = false; if (cardObjUp.oldPower != cardObjUp.powerCount) { cardObjUp.oldPower = cardObjUp.powerCount; returnValue = true; } if (cardObjUp.oldResistence != cardObjUp.resistenceCount) { cardObjUp.oldResistence = cardObjUp.resistenceCount; returnValue = true; } if (cardObjUp.attackCounts && (cardObjUp.oldAttackCounts != cardObjUp.attackCounts)) { cardObjUp.oldAttackCounts = cardObjUp.attackCounts; returnValue = true; } if (cardObjUp.oldTapped != cardObjUp.tapped) { cardObjUp.oldTapped = cardObjUp.tapped; returnValue = true; } return(returnValue); } function testOpHand(newNumber) { opHandViewer.gotoAndStop(newNumber + 1); if (_root.opHand < newNumber) { _root.opHand; while (_root.opHand < newNumber) { solveOpDrawFunctionsFromMyCards(eval ("myCard" + tablePos[2].idCard)); solveOpDrawFunctionsFromMyCards(eval ("myCard" + tablePos[3].idCard)); solveOpDrawFunctionsFromMyCards(eval ("myCard" + tablePos[4].idCard)); solveOpDrawFunctionsFromMyCards(eval ("myCard" + tablePos[8].idCard)); solveOpDrawFunctionsFromOpCards(opCard2); solveOpDrawFunctionsFromOpCards(opCard3); solveOpDrawFunctionsFromOpCards(opCard4); solveOpDrawFunctionsFromOpCards(opCard8); sendStatsUpdate(); _root.opHand++; } } else { _root.opHand = newNumber; } } function testOpRevealHand(objR) { if (objR.opRevealHand == 1) { w = 0; while (w < _root.opHand) { if (objR.idCardArray[w]) { createOpHandCardObj(objR.idCardArray[w], objR.frameArray[w], objR.pictureArray[w], objR.posNumberArray[w]); } w++; } w = _root.opHand; while (w < _root.maxHandCards) { if (eval ("opHandViewer.opHandCard" + w)) { eval ("opHandViewer.opHandCard" + w).removeMovieClip(); } w++; } } else if (objR.opRevealHand == 0) { w = 0; while (w < _root.opHand) { if (eval ("opHandViewer.opHandCard" + w)) { eval ("opHandViewer.opHandCard" + w).removeMovieClip(); } w++; } } } function testGeneralUpdates(obj) { if (noMoreCards) { obj.noMoreOpCards = true; } if (sendAchiev.a70) { obj.a70 = true; } if (_root.oldMyDeck != _root.myDeck) { obj.opDeck = _root.myDeck; _root.oldMyDeck = _root.myDeck; } if (_root.oldMyHand != _root.myHand) { obj.opHand = _root.myHand; _root.oldMyHand = _root.myHand; } if (_root.oldMyLife != _root.myLife) { obj.opLife = _root.myLife; _root.oldMyLife = _root.myLife; } if (_root.oldMyDiscard != _root.myDiscard) { obj.opDiscard = _root.myDiscard; _root.oldMyDiscard = _root.myDiscard; } if (testCardUpdates(_root.weaponCardObj)) { if (_root.weaponCardObj.attackCounts) { obj.newWeaponAC = _root.weaponCardObj.attackCounts; } obj.newWeaponPow = _root.weaponCardObj.powerCount; obj.newWeaponRes = _root.weaponCardObj.resistenceCount; obj.weaponPos = _root.weaponCardObj.posNumber; } if (testCardUpdates(_root.shieldCardObj)) { if (_root.shieldCardObj.attackCounts) { obj.newShieldAC = _root.shieldCardObj.attackCounts; } obj.newShieldPow = _root.shieldCardObj.powerCount; obj.newShieldRes = _root.shieldCardObj.resistenceCount; obj.shieldPos = _root.shieldCardObj.posNumber; } if (testCardUpdates(_root.armorCardObj)) { if (_root.armorCardObj.attackCounts) { obj.newArmorAC = _root.armorCardObj.attackCounts; } obj.newArmorPow = _root.armorCardObj.powerCount; obj.newArmorRes = _root.armorCardObj.resistenceCount; obj.armorPos = _root.armorCardObj.posNumber; } if (testCardUpdates(_root.itemCardObj1)) { if (_root.itemCardObj1.attackCounts) { obj.newItem1AC = _root.itemCardObj1.attackCounts; } obj.newItem1Pow = _root.itemCardObj1.powerCount; obj.newItem1Res = _root.itemCardObj1.resistenceCount; obj.item1Pos = _root.itemCardObj1.posNumber; } if (testCardUpdates(_root.itemCardObj2)) { if (_root.itemCardObj2.attackCounts) { obj.newItem2AC = _root.itemCardObj2.attackCounts; } obj.newItem2Pow = _root.itemCardObj2.powerCount; obj.newItem2Res = _root.itemCardObj2.resistenceCount; obj.item2Pos = _root.itemCardObj2.posNumber; } if ((_root.revealHand > 0) || (_root.enableRevealHand > 0)) { w = _root.myHand; while (w < _root.maxHandCards) { revealHandArray[w] = 0; w++; } _root.handRevealed = true; obj.opRevealHand = 1; obj.idCardArray = []; obj.frameArray = []; obj.pictureArray = []; obj.posNumberArray = []; w = 0; while (w < _root.myHand) { handCardObj = eval ("myCard" + handPos[w].idCard); if (revealHandArray[w] != Number(handCardObj.idCard)) { revealHandArray[w] = Number(handCardObj.idCard); obj.idCardArray.push(Number(handCardObj.idCard)); obj.frameArray.push(handCardObj._currentframe); obj.pictureArray.push(handCardObj.picture); obj.posNumberArray.push(w); } delete handCardObj; w++; } } else if (_root.handRevealed) { delete _root.handRevealed; w = 0; while (w < _root.maxHandCards) { revealHandArray[w] = 0; w++; } obj.opRevealHand = 0; } } function sendPhase(phase, cardObj, action) { var _local1 = {}; _local1.type = "phase"; _local1.phase = phase; testGeneralUpdates(_local1); if (action == "playCard") { _local1.idCard = Number(cardObj.idCard); _local1.name = cardObj.name; _local1.model = cardObj.model; _local1.frame = cardObj._currentframe; _local1.picture = cardObj.picture; _local1.posNumber = cardObj.posNumber; _local1.power = cardObj.power; _local1.powerCount = cardObj.powerCount; _local1.resistence = cardObj.resistence; _local1.resistenceCount = cardObj.resistenceCount; _local1.handleType = cardObj.handleType; _local1.tapped = cardObj.tapped; _local1.attackCounts = cardObj.attackCounts; _local1.cardType = cardObj.type; _local1.subtype = cardObj.subtype; _local1.textFunc = cardObj.textFunc; _local1.artist = cardObj.artist; _local1.collection = cardObj.collection; _local1.rarity = cardObj.rarity; _local1.playfunc1 = cardObj.playfunc1; _local1.playfunc2 = cardObj.playfunc2; _local1.playfunc3 = cardObj.playfunc3; _local1.playfunc4 = cardObj.playfunc4; _local1.playfunc5 = cardObj.playfunc5; _local1.playfunc6 = cardObj.playfunc6; _local1.attackedbyfunc1 = cardObj.attackedbyfunc1; _local1.attackedbyfunc2 = cardObj.attackedbyfunc2; _local1.attackfunc1 = cardObj.attackfunc1; _local1.attackfunc2 = cardObj.attackfunc2; _local1.attackblockfunc1 = cardObj.attackblockfunc1; _local1.attackblockfunc2 = cardObj.attackblockfunc2; _local1.itemblockfunc1 = cardObj.itemblockfunc1; _local1.itemblockfunc2 = cardObj.itemblockfunc2; _local1.drawfunc1 = cardObj.drawfunc1; _local1.drawfunc2 = cardObj.drawfunc2; _local1.opdrawfunc1 = cardObj.opdrawfunc1; _local1.opdrawfunc2 = cardObj.opdrawfunc2; _local1.discardfunc1 = cardObj.discardfunc1; _local1.discardfunc2 = cardObj.discardfunc2; _local1.opdiscardfunc1 = cardObj.opdiscardfunc1; _local1.opdiscardfunc2 = cardObj.opdiscardfunc2; if (cardObj.e) { _local1.e = true; } if (cardObj.av) { _local1.av = true; } if (cardObj.h) { _local1.h = true; } if (cardObj.a) { _local1.a = true; } if (cardObj.s) { _local1.s = true; } if (cardObj.w) { _local1.w = true; } if (cardObj.p) { _local1.p = true; } if (cardObj.m) { _local1.m = true; } if (cardObj.k) { _local1.k = true; } if (cardObj.g) { _local1.g = true; } } smartfox.sendObject(_local1); } function sendCreateModifierIcon(catchName, modType, catchToolTip, pos, picture) { var _local1 = {}; _local1.type = "createOpModifier"; _local1.catchName = catchName; _local1.modType = modType; _local1.catchToolTip = catchToolTip; _local1.pos = pos; _local1.picture = picture; smartfox.sendObject(_local1); } function sendUpdateModifierIcon(catchToolTip, pos) { var _local1 = {}; _local1.type = "updateOpModifier"; _local1.catchToolTip = catchToolTip; _local1.pos = pos; smartfox.sendObject(_local1); } function sendRemoveModifierIcon(pos) { var _local1 = {}; _local1.type = "removeOpModifier"; _local1.pos = pos; smartfox.sendObject(_local1); } function sendPlayCard(cardObj) { var _local1 = {}; testGeneralUpdates(_local1); _local1.type = "playCard"; _local1.idCard = Number(cardObj.idCard); _local1.name = cardObj.name; _local1.model = cardObj.model; _local1.frame = cardObj._currentframe; _local1.picture = cardObj.picture; _local1.posNumber = cardObj.posNumber; _local1.power = cardObj.power; _local1.powerCount = cardObj.powerCount; _local1.resistence = cardObj.resistence; _local1.resistenceCount = cardObj.resistenceCount; _local1.handleType = cardObj.handleType; _local1.tapped = cardObj.tapped; _local1.attackCounts = cardObj.attackCounts; _local1.cardType = cardObj.type; _local1.subtype = cardObj.subtype; _local1.textFunc = cardObj.textFunc; _local1.artist = cardObj.artist; _local1.collection = cardObj.collection; _local1.rarity = cardObj.rarity; _local1.playfunc1 = cardObj.playfunc1; _local1.playfunc2 = cardObj.playfunc2; _local1.playfunc3 = cardObj.playfunc3; _local1.playfunc4 = cardObj.playfunc4; _local1.playfunc5 = cardObj.playfunc5; _local1.playfunc6 = cardObj.playfunc6; _local1.attackedbyfunc1 = cardObj.attackedbyfunc1; _local1.attackedbyfunc2 = cardObj.attackedbyfunc2; _local1.attackfunc1 = cardObj.attackfunc1; _local1.attackfunc2 = cardObj.attackfunc2; _local1.attackblockfunc1 = cardObj.attackblockfunc1; _local1.attackblockfunc2 = cardObj.attackblockfunc2; _local1.itemblockfunc1 = cardObj.itemblockfunc1; _local1.itemblockfunc2 = cardObj.itemblockfunc2; _local1.drawfunc1 = cardObj.drawfunc1; _local1.drawfunc2 = cardObj.drawfunc2; _local1.opdrawfunc1 = cardObj.opdrawfunc1; _local1.opdrawfunc2 = cardObj.opdrawfunc2; _local1.discardfunc1 = cardObj.discardfunc1; _local1.discardfunc2 = cardObj.discardfunc2; _local1.opdiscardfunc1 = cardObj.opdiscardfunc1; _local1.opdiscardfunc2 = cardObj.opdiscardfunc2; if (cardObj.e) { _local1.e = true; } if (cardObj.av) { _local1.av = true; } if (cardObj.h) { _local1.h = true; } if (cardObj.a) { _local1.a = true; } if (cardObj.s) { _local1.s = true; } if (cardObj.w) { _local1.w = true; } if (cardObj.p) { _local1.p = true; } if (cardObj.m) { _local1.m = true; } if (cardObj.k) { _local1.k = true; } if (cardObj.g) { _local1.g = true; } smartfox.sendObject(_local1); } function sendArtifactUpdate(cardObj) { var _local1 = {}; if (testCardUpdates(cardObj)) { _local1.type = "artifactUpdate"; _local1.posNumber = cardObj.posNumber; _local1.pCount = cardObj.powerCount; _local1.rCount = cardObj.resistenceCount; _local1.aCount = cardObj.attackCounts; _local1.tap = cardObj.tapped; smartfox.sendObject(_local1); } } function sendStatsUpdate(from) { var _local1 = {}; _local1.type = "statsUpdate"; if (from) { _local1.fr = from; } testGeneralUpdates(_local1); w = 0; for (var _local2 in _local1) { w++; } if (w > 1) { smartfox.sendObject(_local1); } } function sendSolveCardFunction(cardObj, cardFunc) { var _local1 = {}; _local1.type = "solveCardFunction"; testGeneralUpdates(_local1); _local1.posNumber = cardObj.posNumber; _local1.cardFunc = cardFunc; smartfox.sendObject(_local1); } function sendRemoveCard(cardObj, funcTrigger, destroyedByOp) { var _local1 = {}; _local1.type = "removeCard"; testGeneralUpdates(_local1); _local1.posNumber = cardObj.posNumber; if (cardObj.attackCounts == 0) { _local1.zeroACfunc1 = cardObj.zeroACfunc1; _local1.zeroACfunc2 = cardObj.zeroACfunc2; } if (destroyedByOp) { _local1.destroyfunc1 = cardObj.destroyfunc1; _local1.destroyfunc2 = cardObj.destroyfunc2; } else { _local1.removefunc1 = cardObj.removefunc1; _local1.removefunc2 = cardObj.removefunc2; _local1.removefunc3 = cardObj.removefunc3; } if (funcTrigger) { _local1.noAnimation = true; } smartfox.sendObject(_local1); } function sendDiscardCard(cardObj) { var _local1 = {}; _local1.type = "discardCard"; testGeneralUpdates(_local1); smartfox.sendObject(_local1); } function sendAttack(cardObj) { var _local1 = {}; _local1.type = "attack"; testGeneralUpdates(_local1); _local1.posNumber = cardObj.posNumber; if (cardObj.attackCounts != undefined) { _local1.attackCounts = cardObj.attackCounts; } if (cardObj.tapped) { _local1.tapped = true; } if (cardObj.imuneToCounter) { _local1.imuneToCounter = true; } if (cardObj.ignoreTurnArmor || (cardObj.splinter)) { _local1.ignoreTurnArmor = true; } if (cardObj.shattering) { _local1.shattering = true; } if (cardObj.unblockable) { _local1.unblockable = true; } smartfox.sendObject(_local1); } function sendSolveAttack(damage, cardObj) { var _local2 = {}; _local2.type = "solveAttack"; testGeneralUpdates(_local2); if (_root.attackBlocked) { _local2.attackBlocked = true; } if (damage) { _local2.damage = damage; } resetAndStopTimer(); smartfox.sendObject(_local2); _root.opWeaponCardObj.imuneToCounter = false; delete _root.opWeaponCardObj; } function sendAbility(cardObj) { var _local3 = {}; _local3.type = "ability"; _local3.idCard = cardObj.idCard; _local3.name = cardObj.name; _local3.model = cardObj.model; _local3.frame = cardObj._currentframe; _local3.cardType = cardObj.type; _local3.subtype = cardObj.subtype; _local3.textFunc = cardObj.textFunc; _local3.artist = cardObj.artist; _local3.collection = cardObj.collection; _local3.rarity = cardObj.rarity; _local3.picture = cardObj.picture; _local3.opHand = _root.myHand; _root.oldMyHand = _root.myHand; if (cardObj.playfunc1) { _local3.func1 = cardObj.playfunc1; } if (cardObj.playfunc2) { _local3.func2 = cardObj.playfunc2; } if (cardObj.playfunc3) { _local3.func3 = cardObj.playfunc3; } if (cardObj.playfunc4) { _local3.func4 = cardObj.playfunc4; } if (cardObj.playfunc5) { _local3.func5 = cardObj.playfunc5; } if (cardObj.playfunc6) { _local3.func6 = cardObj.playfunc6; } if (cardObj.e) { _local3.e = true; } if (cardObj.av) { _local3.av = true; } if (cardObj.h) { _local3.h = true; } if (cardObj.a) { _local3.a = true; } if (cardObj.s) { _local3.s = true; } if (cardObj.w) { _local3.w = true; } if (cardObj.p) { _local3.p = true; } if (cardObj.m) { _local3.m = true; } if (cardObj.k) { _local3.k = true; } if (cardObj.g) { _local3.g = true; } smartfox.sendObject(_local3); } function sendSolveAbility() { var _local1 = {}; _local1.type = "solveAbility"; testGeneralUpdates(_local1); resetAndStopTimer(); smartfox.sendObject(_local1); } function sendSolveAbilityAb() { var _local1 = {}; _local1.type = "solveAbilityAb"; testGeneralUpdates(_local1); smartfox.sendObject(_local1); } function sendSolveAbilityDef() { var _local1 = {}; _local1.type = "solveAbilityDef"; testGeneralUpdates(_local1); smartfox.sendObject(_local1); } function sendCounterAbility(cardObj, from, armorRes) { var _local2 = {}; if (from == "attack") { _local2.type = "cAttackAbility"; } else { _local2.type = "cAbilityAbility"; } _local2.idCard = cardObj.idCard; _local2.name = cardObj.name; _local2.model = cardObj.model; _local2.frame = cardObj._currentframe; _local2.cardType = cardObj.type; _local2.subtype = cardObj.subtype; _local2.textFunc = cardObj.textFunc; _local2.artist = cardObj.artist; _local2.collection = cardObj.collection; _local2.rarity = cardObj.rarity; _local2.picture = cardObj.picture; _local2.opHand = _root.myHand; _root.oldMyHand = _root.myHand; if (cardObj.playfunc1) { _local2.func1 = cardObj.playfunc1; } if (cardObj.playfunc2) { _local2.func2 = cardObj.playfunc2; } if (cardObj.playfunc3) { _local2.func3 = cardObj.playfunc3; } if (cardObj.playfunc4) { _local2.func4 = cardObj.playfunc4; } if (cardObj.playfunc5) { _local2.func5 = cardObj.playfunc5; } if (cardObj.playfunc6) { _local2.func6 = cardObj.playfunc6; } if (cardObj.e) { _local2.e = true; } if (cardObj.av) { _local2.av = true; } if (cardObj.h) { _local2.h = true; } if (cardObj.a) { _local2.a = true; } if (cardObj.s) { _local2.s = true; } if (cardObj.w) { _local2.w = true; } if (cardObj.p) { _local2.p = true; } if (cardObj.m) { _local2.m = true; } if (cardObj.k) { _local2.k = true; } if (cardObj.g) { _local2.g = true; } resetAndStopTimer(); smartfox.sendObject(_local2); } function sendGameOver(res) { var _local1 = {}; _local1.type = "gameover"; _local1.res = res; testGeneralUpdates(_local1); smartfox.sendObject(_local1); } function sendDefeatedStatus(opLvl, opXp, opXpN, opXpLost) { var _local1 = {}; _local1.type = "newDefeatedStatus"; _local1.newLvl = opLvl; _local1.xpN = opXpN; _local1.newXp = opXp; _local1.xpLost = opXpLost; smartfox.sendObject(_local1); } function sendJoinGameTo(player) { var _local2 = {}; _local2.type = player; _local2.opName = _root.myName; _local2.opLevel = _root.myLevel; _local2.opPicture = _root.myPicture; _local2.opId = _root.idUser; _local2.opLife = _root.myLife; _local2.opHand = _root.myHand; _local2.opDeck = _root.myDeck; _local2.opClasses = _root.myClasses; _local2.opDiscard = _root.myDiscard; _local2.bg = _root.loadedBackground; smartfox.sendObject(_local2); } function startGame(who) { if (who == "player2") { autoMsg(myName + _root.whoStartsSentence); _root.currentPlayerTurn = "my"; achievObj.gameVars.turnCount++; phaseChange("equipPhase", "my"); var _local2 = {}; _local2.type = "p2Start"; smartfox.sendObject(_local2); } else { autoMsg(opName + _root.whoStartsSentence); var _local2 = {}; _local2.type = "p1Start"; smartfox.sendObject(_local2); } } function saveStats() { } function saveBonus() { } smartfox.onObjectReceived = function (objRes) { if (objRes.a70 != undefined) { testAchievement(true, 70); } if (objRes.noMoreOpCards != undefined) { _root.noMoreOpCards = true; testAchievement(true, 9); } if (objRes.opDeck != undefined) { _root.opDeck = objRes.opDeck; } if (objRes.opHand != undefined) { testOpHand(objRes.opHand); } if (objRes.opRevealHand != undefined) { testOpRevealHand(objRes); } if (objRes.opLife != undefined) { setOpLife(objRes.opLife); } if (objRes.opDiscard != undefined) { _root.opDiscard = objRes.opDiscard; } if (objRes.newWeaponPow != undefined) { if (objRes.newWeaponAC != undefined) { eval ("opCard" + objRes.weaponPos).attackCounts = objRes.newWeaponAC; } eval ("opCard" + objRes.weaponPos).powerCount = objRes.newWeaponPow; if (eval ("opCard" + objRes.weaponPos).resistenceCount != objRes.newWeaponRes) { updateOpCard(eval ("opCard" + objRes.weaponPos), objRes.newWeaponRes); } } if (objRes.newShieldPow != undefined) { if (objRes.newShieldAC != undefined) { eval ("opCard" + objRes.shieldPos).attackCounts = objRes.newShieldAC; } 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) { if (objRes.newArmorAC != undefined) { eval ("opCard" + objRes.armorPos).attackCounts = objRes.newArmorAC; } eval ("opCard" + objRes.armorPos).powerCount = objRes.newArmorPow; if (eval ("opCard" + objRes.armorPos).resistenceCount != objRes.newArmorRes) { updateOpCard(eval ("opCard" + objRes.armorPos), objRes.newArmorRes); } } if (objRes.newItem1Pow != undefined) { if (objRes.newItem1AC != undefined) { eval ("opCard" + objRes.item1Pos).attackCounts = objRes.newItem1AC; } eval ("opCard" + objRes.item1Pos).powerCount = objRes.newItem1Pow; if (eval ("opCard" + objRes.item1Pos).resistenceCount != objRes.newItem1Res) { updateOpCard(eval ("opCard" + objRes.item1Pos), objRes.newItem1Res); } } if (objRes.newItem2Pow != undefined) { if (objRes.newItem2AC != undefined) { eval ("opCard" + objRes.item2Pos).attackCounts = objRes.newItem2AC; } eval ("opCard" + objRes.item2Pos).powerCount = objRes.newItem2Pow; if (eval ("opCard" + objRes.item2Pos).resistenceCount != objRes.newItem2Res) { updateOpCard(eval ("opCard" + objRes.item2Pos), objRes.newItem2Res); } } switch (objRes.type) { case "phase" : if (objRes.untap != undefined) { untap(eval ("opCard" + objRes.untap)); } if (objRes.idCard != undefined) { createOpCardObj(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.picture, objRes.posNumber, objRes.power, objRes.powerCount, objRes.resistence, objRes.resistenceCount, objRes.handleType, objRes.attackCounts, objRes.tapped, objRes.cardType, objRes.subtype, objRes.textFunc, objRes.artist, objRes.collection, objRes.rarity, objRes.playfunc1, objRes.playfunc2, objRes.playfunc3, objRes.playfunc4, objRes.playfunc5, objRes.playfunc6, objRes.attackedbyfunc1, objRes.attackedbyfunc2, objRes.attackfunc1, objRes.attackfunc2, objRes.attackblockfunc1, objRes.attackblockfunc2, objRes.itemblockfunc1, objRes.itemblockfunc2, objRes.drawfunc1, objRes.drawfunc2, objRes.opdrawfunc1, objRes.opdrawfunc2, objRes.discardfunc1, objRes.discardfunc2, objRes.opdiscardfunc1, objRes.opdiscardfunc2, objRes.e, objRes.av, objRes.h, objRes.a, objRes.s, objRes.w, objRes.p, objRes.m, objRes.k, objRes.g); } if (objRes.phase == "opTurn") { if (opTimerStarted) { opTimerStarted = false; stopOpTimer(); } phaseChange("drawPhase", "my"); } else { if (!opTimerStarted) { opTimerStarted = true; startOpTimer(true); } phaseChange(objRes.phase, "op"); } break; case "createOpModifier" : newModIcon = _root.attachMovie(objRes.modType + "ModIcon", "opModIcon" + objRes.pos, (_root.modifierDepth + 100) + Number(objRes.pos)); opModifierPos[objRes.pos].used = true; opModifierPos[objRes.pos].name = objRes.catchName; newModIcon.fixedToolTip = true; newModIcon._x = opModifierPos[objRes.pos].xPos; newModIcon._y = opModifierPos[objRes.pos].yPos; newModIcon.createEmptyMovieClip("pictureClip", newModIcon.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + objRes.picture, newModIcon.pictureClip); newModIcon.pictureClip._x = 1; newModIcon.pictureClip._y = 1; newModIcon.pictureClip._xscale = 46; newModIcon.pictureClip._yscale = 47; ToolTip.install(newModIcon, objRes.catchToolTip, 1); break; case "updateOpModifier" : if (objRes.catchToolTip != eval ("opModIcon" + objRes.pos).toolTipText) { sparkle = eval ("opModIcon" + objRes.pos).attachMovie("sparkle_mc", "sparkle_mc", eval ("opModIcon" + objRes.pos).getNextHighestDepth()); sparkle.i = 0; sparkle.onEnterFrame = function () { this.i++; if (this.i >= 25) { this.removeMovieClip(); } }; eval ("opModIcon" + objRes.pos).toolTipText = objRes.catchToolTip; } break; case "removeOpModifier" : eval ("opModIcon" + objRes.pos).removeMovieClip(); opModifierPos[objRes.pos].used = false; opModifierPos[objRes.pos].name = ""; i = Number(objRes.pos) + 1; while (i <= 13) { if (opModifierPos[i].used) { opModifierPos[i - 1].used = true; opModifierPos[i - 1].name = opModifierPos[i].name; eval ("opModIcon" + i)._x = opModifierPos[i - 1].xPos; eval ("opModIcon" + i)._y = opModifierPos[i - 1].yPos; eval ("opModIcon" + i).swapDepths((_root.modifierDepth + 100) + Number(i - 1)); eval ("opModIcon" + i)._name = "opModIcon" + Number(i - 1); } else { opModifierPos[i - 1].used = false; opModifierPos[i - 1].name = ""; eval ("opModIcon" + Number(i - 1)).removeMovieClip(); break; } i++; } break; case "playCard" : if (objRes.idCard != undefined) { createOpCardObj(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.picture, objRes.posNumber, objRes.power, objRes.powerCount, objRes.resistence, objRes.resistenceCount, objRes.handleType, objRes.attackCounts, objRes.tapped, objRes.cardType, objRes.subtype, objRes.textFunc, objRes.artist, objRes.collection, objRes.rarity, objRes.playfunc1, objRes.playfunc2, objRes.playfunc3, objRes.playfunc4, objRes.playfunc5, objRes.playfunc6, objRes.attackedbyfunc1, objRes.attackedbyfunc2, objRes.attackfunc1, objRes.attackfunc2, objRes.attackblockfunc1, objRes.attackblockfunc2, objRes.itemblockfunc1, objRes.itemblockfunc2, objRes.drawfunc1, objRes.drawfunc2, objRes.opdrawfunc1, objRes.opdrawfunc2, objRes.discardfunc1, objRes.discardfunc2, objRes.opdiscardfunc1, objRes.opdiscardfunc2, objRes.e, objRes.av, objRes.h, objRes.a, objRes.s, objRes.w, objRes.p, objRes.m, objRes.k, objRes.g); } break; case "attack" : _root.opWeaponCardObj = eval ("opCard" + objRes.posNumber); if (objRes.imuneToCounter != undefined) { _root.opWeaponCardObj.imuneToCounter = true; } else { _root.opWeaponCardObj.imuneToCounter = false; } if (objRes.ignoreTurnArmor != undefined) { _root.opWeaponCardObj.ignoreTurnArmor = true; } else { _root.opWeaponCardObj.ignoreTurnArmor = false; } if (objRes.shattering != undefined) { _root.opWeaponCardObj.shattering = true; } else { _root.opWeaponCardObj.shattering = false; } if (objRes.unblockable != undefined) { _root.opWeaponCardObj.unblockable = true; } else { _root.opWeaponCardObj.unblockable = false; } if (objRes.tapped != undefined) { tap(_root.opWeaponCardObj); } if (objRes.attackCounts != undefined) { _root.opWeaponCardObj.attackCounts = objRes.attackCounts; } startTimer("fast"); defenseResponseBox(); break; case "solveAttack" : if (objRes.attackBlocked != undefined) { solveBlockedFunctions(eval ("myCard" + tablePos[2].idCard)); solveBlockedFunctions(eval ("myCard" + tablePos[3].idCard)); solveBlockedFunctions(eval ("myCard" + tablePos[4].idCard)); solveBlockedFunctions(eval ("myCard" + tablePos[8].idCard)); } else { solveUnblockedFunctions(eval ("myCard" + tablePos[2].idCard)); solveUnblockedFunctions(eval ("myCard" + tablePos[3].idCard)); solveUnblockedFunctions(eval ("myCard" + tablePos[4].idCard)); solveUnblockedFunctions(eval ("myCard" + tablePos[8].idCard)); } solveOpAttackedbyFunctions(opCard2); solveOpAttackedbyFunctions(opCard3); solveOpAttackedbyFunctions(opCard4); solveOpAttackedbyFunctions(opCard8); if ((_root.weaponCardObj && (objRes.damage != undefined)) && (!_root.weaponCardObj.imuneToCounter)) { artifactBlock(_root.weaponCardObj, objRes.damage); } if ((_root.weaponCardObj.attackCounts <= 0) && (_root.weaponCardObj.attackCounts != undefined)) { solveZeroACFunctions(_root.weaponCardObj); removeCard(_root.weaponCardObj); } _root.waitingResponse.removeMovieClip(); testGameOver(); if (!_root.gameisOver) { _root.weaponCardObj.attacking = false; startTimer(); if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "spellPhase"; } else { phaseChange("spellPhase", "my"); } } break; case "ability" : createOpAbility(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.textFunc, objRes.artist, objRes.collection, objRes.rarity, objRes.picture, objRes.func1, objRes.func2, objRes.func3, objRes.func4, objRes.func5, objRes.func6, objRes.cardType, objRes.subtype, objRes.e, objRes.av, objRes.h, objRes.a, objRes.s, objRes.w, objRes.p, objRes.m, objRes.k, objRes.g); startTimer("fast"); abilityResponseBox("ability"); break; case "solveAbility" : solveMyFunctions(eval ("myCard" + tablePos[6].idCard)); _root.waitingResponse.removeMovieClip(); testGameOver(); sendStatsUpdate(); if (!_root.gameisOver) { startTimer(); if (!eval ("myCard" + tablePos[6].idCard).instantEffect) { if (((_root.currentPhase == "equipPhase") && (_root.weaponCardObj)) && (!_root.skipAttackPhase)) { if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "attackPhase"; } else { phaseChange("attackPhase", "my"); } } else if (_root.currentPhase == "equipPhase") { if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "spellPhase"; } else { phaseChange("spellPhase", "my"); } } else if (_root.doubleAction) { if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "doubleAction"; } else { _root.doubleAction = false; myPhases.spellPhase.enabled = true; } } else if (!_root.doubleAction) { if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "endPhase"; } else { phaseChange("endPhase", "my"); } } } else if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "instantEffect"; } else { eval ("myPhases." + _root.currentPhase).enabled = true; } } removeCard(eval ("myCard" + tablePos[6].idCard)); break; case "cAbilityAbility" : createOpAbility(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.textFunc, objRes.artist, objRes.collection, objRes.rarity, objRes.picture, objRes.func1, objRes.func2, objRes.func3, objRes.func4, objRes.func5, objRes.func6, objRes.cardType, objRes.subtype, objRes.e, objRes.av, objRes.h, objRes.a, objRes.s, objRes.w, objRes.p, objRes.m, objRes.k, objRes.g); startTimer(); okResponseBox("counter"); break; case "cAttackAbility" : createOpAbility(objRes.idCard, objRes.name, objRes.model, objRes.frame, objRes.textFunc, objRes.artist, objRes.collection, objRes.rarity, objRes.picture, objRes.func1, objRes.func2, objRes.func3, objRes.func4, objRes.func5, objRes.func6, objRes.cardType, objRes.subtype, objRes.e, objRes.av, objRes.h, objRes.a, objRes.s, objRes.w, objRes.p, objRes.m, objRes.k, objRes.g); startTimer(); okResponseBox("attack"); break; case "solveAbilityDef" : 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)); testGameOver(); sendStatsUpdate("sad"); 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); testGameOver(); if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "sendStatsUpdate"; } else { sendStatsUpdate("saa"); } _root.waitingResponse.removeMovieClip(); break; case "removeCard" : removeOpCard(objRes.posNumber, objRes.removefunc1, objRes.removefunc2, objRes.removefunc3, objRes.destroyfunc1, objRes.destroyfunc2, objRes.zeroACfunc1, objRes.zeroACfunc2, objRes.noAnimation); sendStatsUpdate(); if (Number(objRes.posNumber) != 1) { testGameOver(); } break; case "discardCard" : solveOpDiscardFunctionsFromMyCards(eval ("myCard" + tablePos[2].idCard)); solveOpDiscardFunctionsFromMyCards(eval ("myCard" + tablePos[3].idCard)); solveOpDiscardFunctionsFromMyCards(eval ("myCard" + tablePos[4].idCard)); solveOpDiscardFunctionsFromMyCards(eval ("myCard" + tablePos[8].idCard)); solveOpDiscardFunctionsFromOpCards(opCard2); solveOpDiscardFunctionsFromOpCards(opCard3); solveOpDiscardFunctionsFromOpCards(opCard4); solveOpDiscardFunctionsFromOpCards(opCard8); testGameOver(); 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 "solveCardFunction" : readOpFunctions(objRes.cardFunc, eval ("opCard" + objRes.posNumber)); break; case "revealMyHand" : w = 0; while (w < _root.opHand) { createOpHandCardObj(objRes.idCardArray[w], objRes.nameArray[w], objRes.modelArray[w], objRes.frameArray[w], objRes.pictureArray[w], objRes.posNumberArray[w], objRes.powerArray[w], objRes.resistenceArray[w], objRes.handleTypeArray[w], objRes.cardTypeArray[w], objRes.subtypeArray[w], objRes.textFuncArray[w], objRes.artistArray[w], objRes.collectionArray[w], objRes.rarityArray[w], objRes.eArray[w], objRes.avArray[w], objRes.hArray[w], objRes.aArray[w], objRes.sArray[w], objRes.wArray[w], objRes.pArray[w], objRes.mArray[w], objRes.kArray[w], objRes.gArray[w]); w++; } break; case "stopRevealHand" : w = 0; while (w < _root.opHand) { if (eval ("opHandViewer.opHandCard" + w)) { eval ("opHandViewer.opHandCard" + w).removeMovieClip(); } w++; } break; case "statsUpdate" : testGameOver(); if ((!_root.gameisOver) && (_root.waitingOpRes == "counter")) { startTimer(); _root.waitingResponse.removeMovieClip(); if (!eval ("myCard" + tablePos[6].idCard).instantEffect) { if (((_root.currentPhase == "equipPhase") && (_root.weaponCardObj)) && (!_root.skipAttackPhase)) { if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "attackPhase"; } else { phaseChange("attackPhase", "my"); } } else if (_root.currentPhase == "equipPhase") { if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "spellPhase"; } else { phaseChange("spellPhase", "my"); } } else if (_root.doubleAction) { if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "doubleAction"; } else { _root.doubleAction = false; myPhases.spellPhase.enabled = true; } } else if (!_root.doubleAction) { if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "endPhase"; } else { phaseChange("endPhase", "my"); } } } else if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "instantEffect"; } else { eval ("myPhases." + _root.currentPhase).enabled = true; } removeCard(eval ("myCard" + tablePos[6].idCard)); removeOpCard(7); _root.waitingOpRes = ""; } else if (_root.waitingOpRes == "counter") { removeCard(eval ("myCard" + tablePos[6].idCard)); removeOpCard(7); _root.waitingOpRes = ""; } break; case "gameover" : if (!gameisOver) { if (objRes.res == "lose") { gameisOver = true; gameOver("win"); sendGameOver("win"); } else if (objRes.res == "draw") { gameisOver = true; gameOver("draw"); sendGameOver("draw"); } else if (objRes.res == "win") { gameisOver = true; gameOver("lose"); sendGameOver("lose"); } } break; case "newDefeatedStatus" : if (Number(objRes.newLvl) > 0) { _root.experience = objRes.newXp; autoMsg(("You lost " + objRes.xpLost) + " experience points"); if (objRes.newLvl < _root.myLevel) { autoMsg((("You downgraded from level " + _root.myLevel) + " to level ") + objRes.newLvl); var bVars = new Object(); bVars.$level = Number(objRes.newLvl); smartfox.setBuddyVariables(bVars); var uVars = new Object(); uVars.level = Number(objRes.newLvl); smartfox.setUserVariables(uVars, mainRoomID); delete bVars; delete uVars; } _root.myLevel = objRes.newLvl; if (objRes.xpN != undefined) { _root.xpNeeded = objRes.xpN; } _root.totalXp = (_root.experience + "/") + _root.xpNeeded; saveStatsOver("lose"); } else { saveStatsOver("lose"); } break; case "player2" : startingSong = new Array(game_music, game_music2); shuffle(startingSong); loadedSong = startingSong[0]; if (playMusic) { loadedSong.start(); intervalVal = setInterval(loopSong, 1); } opClasses = objRes.opClasses; opClassDock.gotoAndStop(objRes.opClasses + 1); _root.opName = objRes.opName; _root.opLevel = objRes.opLevel; _root.opPicture = objRes.opPicture; _root.opId = objRes.opId; setOpLife(objRes.opLife); _root.opHand = objRes.opHand; opHandViewer.gotoAndStop(_root.opHand + 1); _root.opDeck = objRes.opDeck; _root.opDiscard = objRes.opDiscard; loadOpPicture(); if (gameType == "random") { _root.lastIdPlayed = objRes.opId; var uVars = new Object(); uVars.opId = objRes.opId; smartfox.setUserVariables(uVars); delete uVars; } opBackground.createEmptyMovieClip("pictureClip", opBackground.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/backgrounds/") + objRes.bg, opBackground.pictureClip); players = new Array(1, 2); shuffle(players); if (players[0] == _root.myGameId) { startGame("player2"); } else { startGame("player1"); } break; case "player1" : loadedSong = game_music; if (playMusic) { loadedSong.start(); intervalVal = setInterval(loopSong, 1); } opClasses = objRes.opClasses; opClassDock.gotoAndStop(objRes.opClasses + 1); _root.opName = objRes.opName; _root.opLevel = objRes.opLevel; _root.opPicture = objRes.opPicture; _root.opId = objRes.opId; setOpLife(objRes.opLife); _root.opHand = objRes.opHand; opHandViewer.gotoAndStop(_root.opHand + 1); _root.opDeck = objRes.opDeck; _root.opDiscard = objRes.opDiscard; loadOpPicture(); if (gameType == "random") { _root.lastIdPlayed = objRes.opId; var uVars = new Object(); uVars.opId = objRes.opId; smartfox.setUserVariables(uVars); delete uVars; } opBackground.createEmptyMovieClip("pictureClip", opBackground.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/backgrounds/") + objRes.bg, opBackground.pictureClip); if (myDeck > 0) { sendJoinGameTo("player2"); } else { _root.sendJoinWhenLoaded = true; } break; case "p1Start" : _root.currentPlayerTurn = "my"; achievObj.gameVars.turnCount++; phaseChange("equipPhase", "my"); autoMsg(myName + _root.whoStartsSentence); break; case "p2Start" : autoMsg(opName + _root.whoStartsSentence); } delete objRes; }; function clearGameVariables() { if (myCards.totalCards) { i = 1; while (i <= myCards.totalCards) { if (eval ("myCard" + i)) { eval ("myCard" + i).removeMovieClip(); } i++; } i = 1; while (i <= 10) { if (eval ("opCard" + i)) { eval ("opCard" + i).removeMovieClip(); } i++; } } w = 0; while (w <= 13) { if (eval ("modIcon" + w)) { eval ("modIcon" + w).removeMovieClip(); } w++; } w = 0; while (w <= 13) { if (eval ("opModIcon" + w)) { eval ("opModIcon" + w).removeMovieClip(); } w++; } if (_root.phaseAnnounce) { _root.phaseAnnounce.removeMovieClip(); } if (_root.helpArrow) { _root.helpArrow.removeMovieClip(); } if (_root.bonusCards) { _root.bonusCards.removeMovieClip(); } if (_root.viewCard) { _root.viewCard.removeMovieClip(); } if (_root.waitingResponse) { waitingResponse.removeMovieClip(); } if (_root.okResponse2) { okResponse2.removeMovieClip(); } if (_root.okResponse) { okResponse.removeMovieClip(); } if (_root.okCancelResponse) { okCancelResponse.removeMovieClip(); } if (_root.okCancelResponseBlack) { okCancelResponseBlack.removeMovieClip(); } attackBlocked = false; doubleActionUsed = false; doubleAction = false; antiSpam = false; desperationSong = false; if (achievObj.gameVars) { delete achievObj.gameVars; } if (sendAchiev) { delete sendAchiev; } if (tBytes) { delete tBytes; } if (maxLife) { delete maxLife; } if (myLife) { delete myLife; } if (oldMyLife) { delete oldMyLife; } if (myHand) { delete myHand; } if (oldMyHand) { delete oldMyHand; } if (myDeck) { delete myDeck; } if (oldMyDeck) { delete oldMyDeck; } if (myDiscard) { delete myDiscard; } if (oldMyDiscard) { delete oldMyDiscard; } if (myLastDamage) { delete myLastDamage; } if (opLastDamage) { delete opLastDamage; } if (opWeaponPower) { delete opWeaponPower; } if (defenseHitBack) { delete defenseHitBack; } if (cardsToDiscard) { delete cardsToDiscard; } if (cardViewNumber) { delete cardViewNumber; } if (gameisOver) { delete gameisOver; } if (iLost) { delete iLost; } if (opLost) { delete opLost; } if (noMoreCards) { delete noMoreCards; } if (noMoreOpCards) { delete noMoreOpCards; } if (cardViewNumber) { delete cardViewNumber; } if (connectionTimeOutInterval != null) { clearInterval(connectionTimeOutInterval); } if (opCountdown != null) { clearInterval(opCountdown); } if (countdown != null) { clearInterval(countdown); } if (dragging) { delete dragging; } if (currentBelow) { delete currentBelow; } if (currentOver) { delete currentOver; } if (originalPos) { delete originalPos; } if (myCards) { delete myCards.onLoad; delete myCards; } if (classCardObj) { delete classCardObj; } if (itemCardObj1) { delete itemCardObj1; } if (itemCardObj2) { delete itemCardObj2; } if (weaponCardObj) { delete weaponCardObj; } if (armorCardObj) { delete armorCardObj; } if (shieldCardObj) { delete shieldCardObj; } if (deckOrder) { delete deckOrder; } if (players) { delete players; } if (discardPileArray) { delete discardPileArray; } if (handPos) { delete handPos; } if (tablePos) { delete tablePos; } if (opTablePos) { delete opTablePos; } if (classPos) { delete classPos; } if (modifierPos) { delete modifierPos; } if (opModifierPos) { delete opModifierPos; } if (loadedBackground) { delete loadedBackground; } if (opId) { delete opId; } if (opName) { delete opName; } if (opLife) { delete opLife; } if (opHand) { delete opHand; } if (opDeck) { delete opDeck; } if (opLevel) { delete opLevel; } if (opPicture) { delete opPicture; } if (opDiscard) { delete opDiscard; } if (idDraw) { delete idDraw; } if (lifepoints) { delete lifepoints; } if (newLife) { delete newLife; } if (newPos) { delete newPos; } if (oldPos) { delete oldPos; } if (hitBack) { delete hitBack; } if (pos) { delete pos; } if (newFunc) { delete newFunc; } if (waitingOpRes) { delete waitingOpRes; } if (windowText) { delete windowText; } if (msg) { delete msg; } if (cardUsable) { delete cardUsable; } if (cannotUseCard) { delete cannotUseCard; } if (oldPosNumber) { delete oldPosNumber; } if (model) { delete model; } if (returnValue) { delete returnValue; } if (startTime) { delete startTime; } if (delay) { delete delay; } if (opTimerStarted) { delete opTimerStarted; } if (currentClass) { delete currentClass; } if (currentPhase) { delete currentPhase; } if (currentPlayerTurn) { delete currentPlayerTurn; } if (currentCardXpos) { delete currentCardXpos; } if (currentCardYpos) { delete currentCardYpos; } if (opWeaponCardObj) { delete opWeaponCardObj; } if (viewOpPicture.pictureClip) { viewOpPicture.pictureClip.removeMovieClip(); } } function loadLobby() { clearGameVariables(); smartfox.onObjectReceived = function () { }; _root.clearVarsLobby = true; gotoAndStop ("lobby"); } function multiDim(idCard, model, subtype, used, depth, xPos, yPos) { this.idCard = idCard; this.model = model; this.subtype = subtype; this.used = used; this.depth = depth; this.xPos = xPos; this.yPos = yPos; } function modMultiDim(used, name, xPos, yPos) { this.used = used; this.name = name; this.xPos = xPos; this.yPos = yPos; } function setMyLife(gameStarts, num) { if (num > _root.myLife) { lifepoints = num - _root.myLife; if (lifepoints > 1) { plural = "s"; } else { plural = ""; } if (!gameStarts) { achievObj.gameVars.lifeHealed = achievObj.gameVars.lifeHealed + lifepoints; if (achievObj.gameVars.lifeHealed >= 20) { testAchievement(true, 62); } autoMsg(((("You recovered " + lifepoints) + " life point") + plural) + "."); } } else if (num < _root.myLife) { lifepoints = _root.myLife - num; if (lifepoints > 1) { plural = "s"; } else { plural = ""; } achievObj.gameVars.damageTaken = true; autoMsg(((("You lost " + lifepoints) + " life point") + plural) + "."); _root.myLastDamage = lifepoints; } if (num < 0) { if (num <= -5) { sendAchiev.a70 = true; } num = 0; } _root.myLife = num; _root.tBytes = num * -19; if ((_root.myLife > _root.maxLife) || (_root.myLife > (_root.lBytes / -19))) { _root.myLife = _root.tBytes / -19; } myLifeObj.gotoAndStop(num + 1); delete lifepoints; } 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 = ""; } testAchievement(true, 50); autoMsg(((((_root.opName + " lost ") + lifepoints) + " life point") + plural) + "."); _root.opLastDamage = lifepoints; } if (num < 0) { num = 0; } _root.opLife = num; opLifeObj.gotoAndStop(num + 1); delete lifepoints; } function testGameOver() { testAchievement(true, 15); testAchievement(true, 16); testAchievement(true, 17); if (!gameisOver) { if (noMoreCards) { iLost = true; } if (noMoreOpCards) { autoMsg("Your opponent has no more cards in their deck."); opLost = true; } if (myLife <= 0) { iLost = true; } if (opLife <= 0) { opLost = true; } if (iLost && (opLost)) { gameisOver = true; gameOver("draw"); sendGameOver("draw"); } else if (iLost) { gameisOver = true; gameOver("lose"); sendGameOver("lose"); } else if (opLost) { gameisOver = true; gameOver("win"); sendGameOver("win"); } } } function loadOpPicture() { viewOpPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _root.opPicture, viewOpPicture.pictureClip); viewOpPicture.pictureClip._xscale = 87; viewOpPicture.pictureClip._yscale = 87; viewOpPicture.pictureClip._x = 0; viewOpPicture.pictureClip._y = 0; } function openBonus(idCard1, picture1, model1, idCard2, picture2, model2, idCard3, picture3, model3, idCard4, picture4, model4, idCard5, picture5, model5) { _root.attachMovie("bonusCards", "bonusCards", _root.confirmBoxDepth - 1); bonusCards._x = 230; bonusCards._y = 240; bonusCards.totalSelected = 0; createCardBonus(idCard1, picture1, model1, "pickCard1"); createCardBonus(idCard2, picture2, model2, "pickCard2"); createCardBonus(idCard3, picture3, model3, "pickCard3"); createCardBonus(idCard4, picture4, model4, "pickCard4"); createCardBonus(idCard5, picture5, model5, "pickCard5"); bonusCards.onEnterFrame = function () { if ((this._currentframe == 10) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.saveBonus.onPress = function () { if (_root.bonusCards.totalSelected < 3) { okResponseBox2("You have to choose 3 cards"); } else { pickedCards = new Array(); if (_root.bonusCards.pickCard1.picked) { pickedCards.push(1); } if (_root.bonusCards.pickCard2.picked) { pickedCards.push(2); } if (_root.bonusCards.pickCard3.picked) { pickedCards.push(3); } if (_root.bonusCards.pickCard4.picked) { pickedCards.push(4); } if (_root.bonusCards.pickCard5.picked) { pickedCards.push(5); } var _local2 = {}; _local2.card1 = pickedCards[0]; _local2.card2 = pickedCards[1]; _local2.card3 = pickedCards[2]; smartfox.sendXtMessage("saveBonus", "saveData", _local2, "xml"); delete pickedCards; 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 < 3) { _root.bonusCards.totalSelected++; this.cardSelected._alpha = 100; this.picked = true; } } else { _root.bonusCards.totalSelected--; this.cardSelected._alpha = 0; this.picked = false; } }; eval ("bonusCards." + cardPos).onRelease = releaseCard; eval ("bonusCards." + cardPos).onReleaseOutside = releaseCard; eval ("bonusCards." + cardPos).onDragOut = function () { uncolorize(this); }; eval ("bonusCards." + cardPos).onDragOver = function () { colorize(this, overCardColor); }; eval ("bonusCards." + cardPos).onRollOver = function () { colorize(this, overCardColor); }; eval ("bonusCards." + cardPos).onRollOut = function () { uncolorize(this); }; eval ("bonusCards." + cardPos).createEmptyMovieClip("pictureClip", eval ("bonusCards." + cardPos).getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + picture, eval ("bonusCards." + cardPos).pictureClip); eval ("bonusCards." + cardPos).pictureClip._x = 6; eval ("bonusCards." + cardPos).pictureClip._y = 8; } function gameOver(res) { if ((res == "win") && (_root.inGame)) { if (((_root.gameType == "random") && (_root.accType == "beginner")) && (_root.myLevel >= 7)) { 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(0, 0, 0, 0); saveStatsOver("win"); } else if (_root.gameType == "challenge") { saveStatsOver("win"); } else { var _local2 = {}; smartfox.sendXtMessage("saveStats", "getData", _local2, "xml"); waitingResponseBox("Saving data. Please wait..."); } } else if ((res == "lose") && (_root.inGame)) { if (_root.gameType == "challenge") { saveStatsOver("lose"); } else { waitingResponseBox("Loading data. Please wait..."); } } else if ((res == "draw") && (_root.inGame)) { saveStatsOver("draw"); } } function saveStatsOver(res) { onEnterFrame = function () { if (game_music.getVolume() > 0) { game_music.setVolume(game_music.getVolume() - 4); } else { if (intervalVal) { clearInterval(intervalVal); } game_music.stop(); game_music.setVolume(100); delete loadedSong; delete this.onEnterFrame; } }; if (res == "win") { msg = "Game Over. You win!"; if (playSounds && (!_root.bonusCards)) { win.start(); } testAchievement(true, 3); testAchievement(true, 4); testAchievement(true, 6); testAchievement(true, 14); testAchievement(true, 22); testAchievement(true, 31); testAchievement(true, 33); testAchievement(true, 34); testAchievement(true, 35); testAchievement(true, 36); testAchievement(true, 37); testAchievement(true, 38); testAchievement(true, 39); testAchievement(true, 45); testAchievement(true, 46); testAchievement(true, 58); testAchievement(true, 60); testAchievement(true, 63); testAchievement(true, 65); testAchievement(true, 68); testAchievement(true, 69); testAchievement(true, 75); testAchievement(true, 81); testAchievement(true, 82); testAchievement(true, 87); testAchievement(true, 88); testAchievement(true, 92); } 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(); } testAchievement(true, 5); } if (_root.currentPlayerTurn == "my") { eval ("myPhases." + _root.currentPhase).enabled = false; } if (!_root.bonusCards) { _root.attachMovie("okResponse", "okResponse", _root.confirmBoxDepth); okResponse.windowText = msg; okResponse._x = _root.confirmBoxXpos; okResponse._y = _root.confirmBoxYpos; startTime = getTimer() / 1000; okResponse.onEnterFrame = function () { delay = getTimer() / 1000; if ((startTime <= (delay - 3)) && (!this.doOnce)) { this.doOnce = true; autoMsg("Returning to lobby in 10 seconds."); } if (startTime <= (delay - 13)) { loadLobby(); _root.okResponse.removeMovieClip(); } if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.cancel.textBox.text = "Back to lobby"; this.cancel.onRelease = function () { loadLobby(); _root.okResponse.removeMovieClip(); }; } }; } else if (playSounds) { levelup.start(); } } function randomize() { return(Math.floor(Math.random() * 3) - 1); } function shuffle(targetArray) { targetArray.sort(randomize); } function waitingResponseBox(msg) { if (timer) { pauseTimer(); } if (_root.helpArrow) { _root.helpArrow.removeMovieClip(); } enableHand("opTurn"); _root.attachMovie("waitingResponse", "waitingResponse", _root.confirmBoxDepth); if (msg) { waitingResponse.windowText = msg; } else { waitingResponse.windowText = "Waiting opponent's response..."; pauseTimer(); } waitingResponse._x = _root.confirmBoxXpos; waitingResponse._y = _root.confirmBoxYpos; waitingResponse.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); } }; } function testLimitation(cardObj) { cannotUseCard = false; if (cardObj.playfunc1) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc1)) { cannotUseCard = true; } } if (cardObj.playfunc2) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc2)) { cannotUseCard = true; } } if (cardObj.playfunc3) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc3)) { cannotUseCard = true; } } if (cardObj.playfunc4) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc4)) { cannotUseCard = true; } } if (cardObj.playfunc5) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc5)) { cannotUseCard = true; } } if (cardObj.playfunc6) { if (readTestLimitationFunctions(cardObj, cardObj.playfunc6)) { cannotUseCard = true; } } return(cannotUseCard); } function testAttackLimitation(cardObj) { cannotUseCard = false; if (cardObj.attackfunc1) { if (readTestLimitationFunctions(cardObj, cardObj.attackfunc1)) { cannotUseCard = true; } } if (cardObj.attackfunc2) { if (readTestLimitationFunctions(cardObj, cardObj.attackfunc2)) { cannotUseCard = true; } } if (cardObj.attackblockfunc1) { if (readTestLimitationFunctions(cardObj, cardObj.attackblockfunc1)) { cannotUseCard = true; } } if (cardObj.attackblockfunc2) { if (readTestLimitationFunctions(cardObj, cardObj.attackblockfunc2)) { cannotUseCard = true; } } return(cannotUseCard); } function readTestLimitationFunctions(cardObj, func) { cannotUse = false; nameLimitationFunc = func.substring(0, func.indexOf("(")); if (func.indexOf(",") != -1) { paramLimitation1 = func.substring(func.indexOf("(") + 1, func.indexOf(",")); paramLimitation2 = func.substring(func.indexOf(",") + 1, func.indexOf(")")); } else { paramLimitation1 = func.substring(func.indexOf("(") + 1, func.indexOf(")")); } if (nameLimitationFunc == "limitation") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((paramLimitation1 == "knight") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Knight") && (classPos[1].subtype != "Knight")) && (classPos[2].subtype != "Knight")))) { cannotUse = true; } if ((paramLimitation1 == "gladiator") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Gladiator") && (classPos[1].subtype != "Gladiator")) && (classPos[2].subtype != "Gladiator")))) { cannotUse = true; } if ((paramLimitation1 == "sorcerer") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Sorcerer") && (classPos[1].subtype != "Sorcerer")) && (classPos[2].subtype != "Sorcerer")))) { cannotUse = true; } if ((paramLimitation1 == "wizard") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Wizard") && (classPos[1].subtype != "Wizard")) && (classPos[2].subtype != "Wizard")))) { cannotUse = true; } if ((paramLimitation1 == "hunter") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Hunter") && (classPos[1].subtype != "Hunter")) && (classPos[2].subtype != "Hunter")))) { cannotUse = true; } if ((paramLimitation1 == "assassin") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Assassin") && (classPos[1].subtype != "Assassin")) && (classPos[2].subtype != "Assassin")))) { cannotUse = true; } if ((paramLimitation1 == "paladin") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Paladin") && (classPos[1].subtype != "Paladin")) && (classPos[2].subtype != "Paladin")))) { cannotUse = true; } if ((paramLimitation1 == "monk") && ((cannotChangeClass > 0) || (((classPos[0].subtype != "Monk") && (classPos[1].subtype != "Monk")) && (classPos[2].subtype != "Monk")))) { cannotUse = true; } if ((paramLimitation1 == "no weapon") && (_root.weaponCardObj)) { cannotUse = true; } if ((paramLimitation1 == "weapon") && (!_root.weaponCardObj)) { cannotUse = true; } if ((paramLimitation1 == "no shield") && (_root.shieldCardObj)) { cannotUse = true; } if ((paramLimitation1 == "shield") && (!_root.shieldCardObj)) { cannotUse = true; } if ((paramLimitation1 == "no armor") && (_root.armorCardObj)) { cannotUse = true; } if ((paramLimitation1 == "armor") && (!_root.armorCardObj)) { cannotUse = true; } if ((paramLimitation1 == "no items") && (((tablePos[2].used || (tablePos[3].used)) || (tablePos[4].used)) || (tablePos[8].used))) { cannotUse = true; } if ((paramLimitation1 == "-deck") && (_root.myDeck > Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "+deck") && (_root.myDeck < Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "-hand") && (_root.myHand > Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "+hand") && (_root.myHand < Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "hand>op") && (_root.myHand <= _root.opHand)) { cannotUse = true; } if ((paramLimitation1 == "hand<op") && (_root.myHand >= _root.opHand)) { cannotUse = true; } if ((paramLimitation1 == "-life") && (_root.myLife > Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "+life") && (_root.myLife < Number(paramLimitation2))) { cannotUse = true; } if ((paramLimitation1 == "life>op") && (_root.myLife <= _root.opLife)) { cannotUse = true; } if ((paramLimitation1 == "life<op") && (_root.myLife >= _root.opLife)) { cannotUse = true; } if ((paramLimitation1 == "life=op") && (_root.myLife != _root.opLife)) { cannotUse = true; } if ((paramLimitation1 == "op weapon") && ((opCard2._currentframe != 15) && (opCard4._currentframe != 15))) { cannotUse = true; } if ((paramLimitation1 == "no op weapon") && ((opCard2._currentframe == 15) || (opCard4._currentframe == 15))) { cannotUse = true; } if ((paramLimitation1 == "op tapped weapon") && ((((opCard2._currentframe != 15) && (opCard4._currentframe != 15)) || ((opCard2._currentframe == 15) && (!opCard2.tapped))) || ((opCard4._currentframe == 15) && (!opCard4.tapped)))) { cannotUse = true; } if ((paramLimitation1 == "op untapped weapon") && ((((opCard2._currentframe != 15) && (opCard4._currentframe != 15)) || ((opCard2._currentframe == 15) && (opCard2.tapped))) || ((opCard4._currentframe == 15) && (opCard4.tapped)))) { cannotUse = true; } if ((paramLimitation1 == "untapped weapon") && ((!_root.weaponCardObj) || (_root.weaponCardObj.tapped))) { cannotUse = true; } if ((paramLimitation1 == "tapped weapon") && ((!_root.weaponCardObj) || (!_root.weaponCardObj.tapped))) { cannotUse = true; } if ((paramLimitation1 == "weapon attack") && (!_root.opWeaponCardObj)) { cannotUse = true; } if ((paramLimitation1 == "spell attack") && ((!((_root.opCard7.type.indexOf("Spell") != -1) && (_root.opCard7.subtype == "Attack"))) || (!_root.opCard7))) { cannotUse = true; } if ((paramLimitation1 == "spell usage") && ((!((_root.opCard7.type.indexOf("Spell") != -1) && (_root.opCard7.subtype == "Usage"))) || (!_root.opCard7))) { cannotUse = true; } if ((paramLimitation1 == "spell") && ((_root.opCard7.type.indexOf("Spell") == -1) || (!_root.opCard7))) { cannotUse = true; } if ((paramLimitation1 == "ability attack") && ((!((_root.opCard7.type == "Ability") && (_root.opCard7.subtype == "Attack"))) || (!_root.opCard7))) { cannotUse = true; } if ((paramLimitation1 == "ability usage") && ((!((_root.opCard7.type == "Ability") && (_root.opCard7.subtype == "Usage"))) || (!_root.opCard7))) { cannotUse = true; } if ((paramLimitation1 == "ability") && ((_root.opCard7.type != "Ability") || (!_root.opCard7))) { cannotUse = true; } if (((paramLimitation1 == "book") && (_root.itemCardObj1.subtype != "Book")) && (_root.itemCardObj2.subtype != "Book")) { cannotUse = true; } if ((paramLimitation1 == "no book") && ((_root.itemCardObj1.subtype == "Book") || (_root.itemCardObj2.subtype == "Book"))) { cannotUse = true; } if (((paramLimitation1 == "orb") && (_root.itemCardObj1.subtype != "Orb")) && (_root.itemCardObj2.subtype != "Orb")) { cannotUse = true; } if ((paramLimitation1 == "no orb") && ((_root.itemCardObj1.subtype == "Orb") || (_root.itemCardObj2.subtype == "Orb"))) { cannotUse = true; } if (((paramLimitation1 == "flask") && (_root.itemCardObj1.subtype != "Flask")) && (_root.itemCardObj2.subtype != "Flask")) { cannotUse = true; } if ((paramLimitation1 == "no flask") && ((_root.itemCardObj1.subtype == "Flask") || (_root.itemCardObj2.subtype == "Flask"))) { cannotUse = true; } if ((((((((paramLimitation1 == "wand") || (paramLimitation1 == "dark wand")) || (paramLimitation1 == "light wand")) || (paramLimitation1 == "bow")) || (paramLimitation1 == "crossbow")) || (paramLimitation1 == "sword")) || (paramLimitation1 == "axe")) || (paramLimitation1 == "mace")) { if (!_root.weaponCardObj) { cannotUse = true; } else if (paramLimitation1 == "wand") { if (subtype.indexOf("wand") == -1) { cannotUse = true; } } else if (paramLimitation1 != subtype) { cannotUse = true; } } } return(cannotUse); } function removeTurnModifier(cardObj) { if (cardObj.ignoreTurnArmor) { delete cardObj.ignoreTurnArmor; } if (cardObj.untapTurnLimit) { delete cardObj.untapTurnLimit; } if (cardObj.powerAdded != 0) { cardObj.powerCount = cardObj.powerCount - cardObj.powerAdded; cardObj.powerAdded = 0; } if (cardObj.resistenceAdded != 0) { cardObj.resistenceCount = cardObj.resistenceCount - cardObj.resistenceAdded; cardObj.resistenceAdded = 0; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } } function defenseResponseBox(from) { if ((from != "abilityResponseBox") && (playSounds)) { opaction.start(); } _root.attachMovie("defenseResponse", "defenseResponse", _root.confirmBoxDepth); defenseResponse._x = _root.confirmBoxXpos; defenseResponse._y = _root.confirmBoxYpos; defenseResponse.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.blockAttack.textBox.text = "Shield block"; this.counterAttack.textBox.text = "Weapon block"; this.ability.textBox.text = "Spell/Ability"; this.cancel.textBox.text = "Armor/Not block"; _root.opWeaponPower = _root.opWeaponCardObj.powerCount; if (((_root.shieldCardObj && (_root.cannotBlock == 0)) && (_root.disableBlock == 0)) && (!_root.opWeaponCardObj.unblockable)) { canBlock = true; this.blockAttack.onRelease = function () { hitBack = 0; _root.attackBlocked = true; _root.blockCardObj = _root.shieldCardObj; solveOpAttackBlockedFunctions(opCard2); solveOpAttackBlockedFunctions(opCard3); solveOpAttackBlockedFunctions(opCard4); solveOpAttackBlockedFunctions(opCard8); solveItemBlockFunctions(_root.shieldCardObj); solveAttackedbyFunctions(eval ("myCard" + tablePos[2].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[3].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[4].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[8].idCard)); if (_root.shieldCardObj.powerCount > 0) { hitBack = _root.shieldCardObj.powerCount; } artifactBlock(_root.shieldCardObj, _root.opWeaponPower, "attackPhase"); delete _root.blockCardObj; _root.defenseResponse.removeMovieClip(); }; } else { colorize(this.blockAttack, disabledColor); } if (((((_root.weaponCardObj && (!_root.weaponCardObj.tapped)) && (!_root.weaponCardObj.cannotBlock)) && (_root.cannotBlock == 0)) && (_root.disableBlock == 0)) && (!_root.opWeaponCardObj.unblockable)) { canBlock = true; this.counterAttack.onRelease = function () { hitBack = 0; _root.attackBlocked = true; _root.blockCardObj = _root.weaponCardObj; solveOpAttackBlockedFunctions(opCard2); solveOpAttackBlockedFunctions(opCard3); solveOpAttackBlockedFunctions(opCard4); solveOpAttackBlockedFunctions(opCard8); solveItemBlockFunctions(_root.weaponCardObj); solveAttackedbyFunctions(eval ("myCard" + tablePos[2].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[3].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[4].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[8].idCard)); if (_root.weaponCardObj.powerCount > 0) { hitBack = _root.weaponCardObj.powerCount; } artifactBlock(_root.weaponCardObj, _root.opWeaponPower, "attackPhase"); if (_root.weaponCardObj.resistenceCount > 0) { sendSolveAttack(hitBack, _root.weaponCardObj); } else { sendSolveAttack(hitBack); } delete _root.blockCardObj; _root.defenseResponse.removeMovieClip(); }; } else { colorize(this.counterAttack, disabledColor); } i = 0; while (i < maxHandCards) { if (checkClasses(eval ("myCard" + handPos[i].idCard)) && ((((eval ("myCard" + handPos[i].idCard).model == "ability_defense") && (_root.cannotUseDefenseAbilities == 0)) && (_root.disableDefenseAbilities == 0)) || (((eval ("myCard" + handPos[i].idCard).model == "spell_defense") && (_root.cannotUseDefenseSpells == 0)) && (_root.disableDefenseSpells == 0)))) { activate = true; break; } i++; } if (canBlock && (_root.mustBlock > 0)) { delete activate; } if (activate) { this.ability.onRelease = function () { abilityResponseBox("defense"); _root.defenseResponse.removeMovieClip(); }; delete activate; } else { colorize(this.ability, disabledColor); } if (canBlock && (_root.mustBlock > 0)) { colorize(this.cancel, disabledColor); } else { this.cancel.onRelease = function () { solveOpAttackUnblockedFunctions(opCard2); solveOpAttackUnblockedFunctions(opCard3); solveOpAttackUnblockedFunctions(opCard4); solveOpAttackUnblockedFunctions(opCard8); solveItemBlockFunctions(_root.armorCardObj); solveAttackedbyFunctions(eval ("myCard" + tablePos[2].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[3].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[4].idCard)); solveAttackedbyFunctions(eval ("myCard" + tablePos[8].idCard)); bodyBlock(_root.opWeaponPower, true, true); _root.defenseResponse.removeMovieClip(); }; } delete canBlock; } }; } function attackResponseBox() { _root.attachMovie("attackResponse", "attackResponse", _root.confirmBoxDepth); attackResponse._x = _root.confirmBoxXpos; attackResponse._y = _root.confirmBoxYpos; attackResponse.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.attack.textBox.text = "Attack"; this.cancel.textBox.text = "Cancel"; if (((testAttackLimitation(_root.weaponCardObj) || (_root.cannotAttack > 0)) || (_root.weaponCardObj.tapped)) || (_root.disableAttack > 0)) { colorize(this.attack, disabledColor); this.cancel.onRelease = function () { phaseChange("spellPhase", "my"); _root.attackResponse.removeMovieClip(); }; } else if (_root.mustAttack > 0) { this.attack.onRelease = function () { if ((!_root.weaponCardObj.untapable) && (!_root.weaponCardObj.untapTurnLimit)) { tap(_root.weaponCardObj); } if (_root.weaponCardObj.attackCounts) { _root.weaponCardObj.attackCounts--; } sendAttack(_root.weaponCardObj); achievObj.gameVars.damageDelt = true; achievObj.gameVars.totalTurnDamage = achievObj.gameVars.totalTurnDamage + _root.weaponCardObj.powerCount; testAchievement(true, 24); testAchievement(true, 25); testAchievement(true, 26); testAchievement(true, 27); testAchievement(true, 28); testAchievement(true, 89); _root.weaponCardObj.attacking = true; waitingResponseBox(); _root.attackResponse.removeMovieClip(); }; colorize(this.cancel, disabledColor); } else { this.attack.onRelease = function () { if ((!_root.weaponCardObj.untapable) && (!_root.weaponCardObj.untapTurnLimit)) { tap(_root.weaponCardObj); } if (_root.weaponCardObj.attackCounts) { _root.weaponCardObj.attackCounts--; } sendAttack(_root.weaponCardObj); achievObj.gameVars.totalTurnDamage = achievObj.gameVars.totalTurnDamage + _root.weaponCardObj.powerCount; testAchievement(true, 24); testAchievement(true, 25); testAchievement(true, 26); testAchievement(true, 27); testAchievement(true, 28); _root.weaponCardObj.attacking = true; waitingResponseBox(); _root.attackResponse.removeMovieClip(); }; this.cancel.onRelease = function () { phaseChange("spellPhase", "my"); _root.attackResponse.removeMovieClip(); }; } } }; } function waitingDiscardBox(num) { enableHand("endPhase"); _root.attachMovie("waitingResponse", "waitingDiscard", _root.confirmBoxDepth); _root.attachMovie("helpArrow", "helpArrow", _root.viewCardDepth + 5); _root.helpArrow._x = 400; _root.helpArrow._y = 245; if (num > 1) { plural = "s"; } else { plural = ""; } waitingDiscard.windowText = ((("Discard " + num) + " card") + plural) + " to continue."; waitingDiscard._x = _root.confirmBoxXpos; waitingDiscard._y = _root.confirmBoxYpos; waitingDiscard.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); } }; } function abilityResponseBox(from) { if ((from != "defense") && (playSounds)) { opaction.start(); } _root.attachMovie("okResponse", "abilityResponse", _root.confirmBoxDepth); abilityResponse.windowText = "Drag a defense spell/ability to opponent's playfield or cancel"; abilityResponse._x = _root.confirmBoxXpos; abilityResponse._y = _root.confirmBoxYpos; enableHand("defenseResponse"); abilityResponse.onEnterFrame = function () { if ((this._currentframe == 7) && (!this.stopMC)) { this.stop(); this.stopMC = true; activateDragBox(this); this.cancel.textBox.text = "Cancel"; this.cancel.onRelease = function () { enableHand("opTurn"); if (from == "defense") { defenseResponseBox("abilityResponseBox"); _root.abilityResponse.removeMovieClip(); } else { solveOpFunctions(opCard7); removeOpCard(7); if (_root.cardsToDiscard > 0) { waitingDiscardBox(_root.cardsToDiscard); _root.proceedToPhase = "sendSolveAbility"; } else { 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(); waitingResponseBox(); pauseTimer(); _root.okResponse.removeMovieClip(); } else if (from == "attack") { solveOpFunctions(opCard7); removeOpCard(7); _root.waitingOpRes = "attack"; sendSolveAbilityDef(); pauseTimer(); _root.weaponCardObj.attacking = false; _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).zeroACfunc1 = eval ("myCards.zeroACfunc1" + idCard); eval ("myCard" + idCard).zeroACfunc2 = eval ("myCards.zeroACfunc2" + idCard); eval ("myCard" + idCard).turnbeginsfunc1 = eval ("myCards.turnbeginsfunc1" + idCard); eval ("myCard" + idCard).turnbeginsfunc2 = eval ("myCards.turnbeginsfunc2" + idCard); eval ("myCard" + idCard).turnendsfunc1 = eval ("myCards.turnendsfunc1" + idCard); eval ("myCard" + idCard).turnendsfunc2 = eval ("myCards.turnendsfunc2" + idCard); eval ("myCard" + idCard).type = eval ("myCards.type" + idCard); eval ("myCard" + idCard).subtype = eval ("myCards.subtype" + idCard); eval ("myCard" + idCard).model = model; eval ("myCard" + idCard).artist = eval ("myCards.artist" + idCard); eval ("myCard" + idCard).textFunc = eval ("myCards.textFunc" + idCard); eval ("myCard" + idCard).collection = eval ("myCards.collection" + idCard); eval ("myCard" + idCard).rarity = eval ("myCards.rarity" + idCard); eval ("myCard" + idCard).picture = eval ("myCards.picture" + idCard); eval ("myCard" + idCard).idCard = eval ("myCards.idCard" + idCard); eval ("myCard" + idCard).handleType = Number(eval ("myCards.handleType" + idCard)); if (isNaN(eval ("myCard" + idCard).handleType)) { eval ("myCard" + idCard).handleType = 0; } eval ("myCard" + idCard).power = Number(eval ("myCards.power" + idCard)); if (isNaN(eval ("myCard" + idCard).power)) { eval ("myCard" + idCard).power = 0; } eval ("myCard" + idCard).resistence = Number(eval ("myCards.resistence" + idCard)); if (isNaN(eval ("myCard" + idCard).resistence)) { eval ("myCard" + idCard).resistence = 0; } eval ("myCard" + idCard).idDeck = idCard; eval ("myCard" + idCard).gotoAndStop(model); eval ("myCard" + idCard).onPress = clickCard; eval ("myCard" + idCard).onRelease = releaseCard; eval ("myCard" + idCard).onReleaseOutside = releaseCard; eval ("myCard" + idCard).onDragOut = function () { ToolTip.hide(); uncolorize(this); }; eval ("myCard" + idCard).onDragOver = function () { ToolTip.hide(); colorize(this, overCardColor); }; eval ("myCard" + idCard).onRollOver = function () { if (playSounds) { mouseover.start(); } if ((this.model == "armor") && (this.currentPos == "tablePos")) { this.oldDepth_mo = this.getDepth(); this.swapDepths(250); } if (_root.autoHelp && (this.glowEffect)) { ToolTip.show(this.toolTipText, 250); } colorize(this, overCardColor); }; eval ("myCard" + idCard).onRollOut = function () { if ((this.model == "armor") && (this.currentPos == "tablePos")) { this.swapDepths(this.oldDepth_mo); } ToolTip.hide(); uncolorize(this); }; eval ("myCard" + idCard)._x = posObj.xPos; eval ("myCard" + idCard)._y = posObj.yPos; if ((eval ("myCard" + idCard).type != "Class") && (eval ("myCard" + idCard).type != "Subclass")) { eval ("myCard" + idCard).createEmptyMovieClip("pictureClip", eval ("myCard" + idCard).getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + eval ("myCards.picture" + idCard), eval ("myCard" + idCard).pictureClip); eval ("myCard" + idCard).pictureClip._x = 6; eval ("myCard" + idCard).pictureClip._y = 8; } eval ("myCard" + idCard).currentPos = currentPos; eval ("myCard" + idCard).posNumber = posNumber; if ((eval ("myCards.type" + idCard) == "Ability") || (eval ("myCards.type" + idCard).indexOf("Spell") != -1)) { if (eval ("myCards.subtype" + idCard) != "Defense") { eval ("myCard" + idCard).phaseUsage = "spellPhase"; eval ("myCard" + idCard).toolTipText = "This is an attack card. You may play this card at your <b>Spell/Ability Phase</b>."; if (eval ("myCards.subtype" + idCard) == "Usage") { eval ("myCard" + idCard).phaseUsage2 = "equipPhase"; eval ("myCard" + idCard).toolTipText = "This is a usage card. You may play this card at your <b>Equip Phase</b> or <b>Spell/Ability Phase</b>."; } } else { eval ("myCard" + idCard).phaseUsage = "opAction"; eval ("myCard" + idCard).toolTipText = "This is a defense card. You may play this card in response to an opponent's action."; } } else { eval ("myCard" + idCard).phaseUsage = "equipPhase"; if ((eval ("myCard" + idCard).type == "Class") || (eval ("myCard" + idCard).type == "Subclass")) { eval ("myCard" + idCard).toolTipText = "This is a class card. You may play it during your equip phase. You can only have one class in your playfield at the time."; } else if (eval ("myCard" + idCard).type == "Armor") { eval ("myCard" + idCard).toolTipText = "This is an armor card. You may play this card at your <b>Equip Phase</b>. You can only have one armor in your playfield at the time."; } else if (eval ("myCard" + idCard).model == "artifact_weapon") { eval ("myCard" + idCard).toolTipText = "This is a weapon card. You may play this card at your <b>Equip Phase</b>. You can only have one weapon in your playfield at the time."; } else if (eval ("myCard" + idCard).model == "artifact_shield") { eval ("myCard" + idCard).toolTipText = "This is a shield card. You may play this card at your <b>Equip Phase</b>. You can only have one shield in your playfield at the time."; } else { eval ("myCard" + idCard).toolTipText = "This is a special artifact card. You may play this card at your <b>Equip Phase</b>."; } } if (eval ("myCards.av" + idCard)) { eval ("myCard" + idCard).av = true; } if (eval ("myCards.h" + idCard)) { eval ("myCard" + idCard).h = true; } if (eval ("myCards.k" + idCard)) { eval ("myCard" + idCard).k = true; } if (eval ("myCards.p" + idCard)) { eval ("myCard" + idCard).p = true; } if (eval ("myCards.s" + idCard)) { eval ("myCard" + idCard).s = true; } if (eval ("myCards.a" + idCard)) { eval ("myCard" + idCard).a = true; } if (eval ("myCards.g" + idCard)) { eval ("myCard" + idCard).g = true; } if (eval ("myCards.m" + idCard)) { eval ("myCard" + idCard).m = true; } if (eval ("myCards.w" + idCard)) { eval ("myCard" + idCard).w = true; } if (eval ("myCards.e" + idCard)) { eval ("myCard" + idCard).e = true; } } function createOpAbility(idCard, cardName, model, frame, textFunc, artist, collection, rarity, picture, func1, func2, func3, func4, func5, func6, type, subtype, e, av, h, a, s, w, p, m, k, g) { _root.attachMovie("card", "opCard7", tablePos[7].depth); tablePos[7].used = true; opCard7.gotoAndStop(frame); opCard7.createEmptyMovieClip("pictureClip", opCard7.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + picture, opCard7.pictureClip); opCard7.idCard = idCard; opCard7.name = cardName; opCard7.model = model; opCard7.picture = picture; opCard7.pictureClip._x = 6; opCard7.pictureClip._y = 8; opCard7.playfunc1 = func1; opCard7.playfunc2 = func2; opCard7.playfunc3 = func3; opCard7.playfunc4 = func4; opCard7.playfunc5 = func5; opCard7.playfunc6 = func6; opCard7.textFunc = textFunc; opCard7.artist = artist; opCard7.collection = collection; opCard7.rarity = rarity; if (e) { opCard7.e = true; } if (av) { opCard7.av = true; } if (h) { opCard7.h = true; } if (a) { opCard7.a = true; } if (s) { opCard7.s = true; } if (w) { opCard7.w = true; } if (p) { opCard7.p = true; } if (m) { opCard7.m = true; } if (k) { opCard7.k = true; } if (g) { opCard7.g = true; } if ((((((opCard7.playfunc1 == "uncounterable()") || (opCard7.playfunc2 == "uncounterable()")) || (opCard7.playfunc3 == "uncounterable()")) || (opCard7.playfunc4 == "uncounterable()")) || (opCard7.playfunc5 == "uncounterable()")) || (opCard7.playfunc6 == "uncounterable()")) { opCard7.uncounterable = true; } opCard7.type = type; opCard7.subtype = subtype; opCard7.onPress = clickCard; opCard7.onRelease = releaseCard; opCard7.onReleaseOutside = releaseCard; opCard7.onDragOut = function () { ToolTip.hide(); uncolorize(this); }; opCard7.onDragOver = function () { ToolTip.hide(); colorize(this, overCardColor); }; opCard7.onRollOver = function () { if (_root.autoHelp) { ToolTip.show(this.toolTipText, 250); } colorize(this, overCardColor); }; opCard7.onRollOut = function () { ToolTip.hide(); uncolorize(this); }; opCard7._x = tablePos[7].xPos; opCard7._y = tablePos[7].yPos; opCard7.toolTipText = ("Your opponent played a <b>" + type) + "</b>! To read more details, click here."; } function createOpHandCardObj(idCard, frame, picture, posNumber) { opHandViewer.attachMovie("card", "opHandCard" + posNumber, posNumber + 100); eval ("opHandViewer.opHandCard" + posNumber).gotoAndStop(frame); eval ("opHandViewer.opHandCard" + posNumber).createEmptyMovieClip("pictureClip", eval ("opHandViewer.opHandCard" + posNumber).getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + picture, eval ("opHandViewer.opHandCard" + posNumber).pictureClip); eval ("opHandViewer.opHandCard" + posNumber).pictureClip._x = 6; eval ("opHandViewer.opHandCard" + posNumber).pictureClip._y = 8; eval ("opHandViewer.opHandCard" + posNumber).idCard = idCard; eval ("opHandViewer.opHandCard" + posNumber).posNumber = posNumber; if (posNumber < 7) { eval ("opHandViewer.opHandCard" + posNumber)._x = posNumber * 52; eval ("opHandViewer.opHandCard" + posNumber)._y = 0; } else { eval ("opHandViewer.opHandCard" + posNumber)._x = 10 + ((posNumber - 7) * 52); eval ("opHandViewer.opHandCard" + posNumber)._y = 9; } eval ("opHandViewer.opHandCard" + posNumber).onPress = clickCard; eval ("opHandViewer.opHandCard" + posNumber).onRelease = releaseCard; eval ("opHandViewer.opHandCard" + posNumber).onReleaseOutside = releaseCard; eval ("opHandViewer.opHandCard" + posNumber).onDragOut = function () { ToolTip.hide(); uncolorize(this); }; eval ("opHandViewer.opHandCard" + posNumber).onDragOver = function () { ToolTip.hide(); colorize(this, overCardColor); }; eval ("opHandViewer.opHandCard" + posNumber).onRollOver = function () { if (playSounds) { mouseover.start(); } if (this.posNumber == 3) { this.oldDepth_mo = this.getDepth(); this.swapDepths(250); } if (_root.autoHelp) { ToolTip.show(this.toolTipText, 250); } colorize(this, overCardColor); }; eval ("opHandViewer.opHandCard" + posNumber).onRollOut = function () { if (this.posNumber == 3) { this.swapDepths(this.oldDepth_mo); } ToolTip.hide(); uncolorize(this); }; } function createOpCardObj(idCard, cardName, model, frame, picture, posNumber, power, powerCount, resistence, resistenceCount, handleType, attackCounts, tapped, type, subtype, textFunc, artist, collection, rarity, playfunc1, playfunc2, playfunc3, playfunc4, playfunc5, playfunc6, attackedbyfunc1, attackedbyfunc2, attackfunc1, attackfunc2, attackblockfunc1, attackblockfunc2, itemblockfunc1, itemblockfunc2, drawfunc1, drawfunc2, opdrawfunc1, opdrawfunc2, discardfunc1, discardfunc2, opdiscardfunc1, opdiscardfunc2, e, av, h, a, s, w, p, m, k, g) { _root.attachMovie("card", "opCard" + posNumber, opTablePos[posNumber].depth); eval ("opCard" + posNumber).gotoAndStop(frame); if ((posNumber != 1) && (posNumber != 5)) { eval ("opCard" + posNumber).createEmptyMovieClip("pictureClip", eval ("opCard" + posNumber).getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + picture, eval ("opCard" + posNumber).pictureClip); eval ("opCard" + posNumber).pictureClip._x = 6; eval ("opCard" + posNumber).pictureClip._y = 8; } else { opClasses--; opClassDock.gotoAndStop(opClasses + 1); } eval ("opCard" + posNumber).idCard = idCard; eval ("opCard" + posNumber).name = cardName; eval ("opCard" + posNumber).model = model; eval ("opCard" + posNumber).posNumber = posNumber; eval ("opCard" + posNumber).type = type; eval ("opCard" + posNumber).subtype = subtype; eval ("opCard" + posNumber).textFunc = textFunc; eval ("opCard" + posNumber).artist = artist; eval ("opCard" + posNumber).collection = collection; eval ("opCard" + posNumber).rarity = rarity; eval ("opCard" + posNumber).picture = picture; eval ("opCard" + posNumber).playfunc1 = playfunc1; eval ("opCard" + posNumber).playfunc2 = playfunc2; eval ("opCard" + posNumber).playfunc3 = playfunc3; eval ("opCard" + posNumber).playfunc4 = playfunc4; eval ("opCard" + posNumber).playfunc5 = playfunc5; eval ("opCard" + posNumber).playfunc6 = playfunc6; eval ("opCard" + posNumber).attackedbyfunc1 = attackedbyfunc1; eval ("opCard" + posNumber).attackedbyfunc2 = attackedbyfunc2; eval ("opCard" + posNumber).attackfunc1 = attackfunc1; eval ("opCard" + posNumber).attackfunc2 = attackfunc2; eval ("opCard" + posNumber).attackblockfunc1 = attackblockfunc1; eval ("opCard" + posNumber).attackblockfunc2 = attackblockfunc2; eval ("opCard" + posNumber).itemblockfunc1 = itemblockfunc1; eval ("opCard" + posNumber).itemblockfunc2 = itemblockfunc2; eval ("opCard" + posNumber).drawfunc1 = drawfunc1; eval ("opCard" + posNumber).drawfunc2 = drawfunc2; eval ("opCard" + posNumber).opdrawfunc1 = opdrawfunc1; eval ("opCard" + posNumber).opdrawfunc2 = opdrawfunc2; eval ("opCard" + posNumber).discardfunc1 = discardfunc1; eval ("opCard" + posNumber).discardfunc2 = discardfunc2; eval ("opCard" + posNumber).opdiscardfunc1 = opdiscardfunc1; eval ("opCard" + posNumber).opdiscardfunc2 = opdiscardfunc2; if (e) { eval ("opCard" + posNumber).e = true; } if (av) { eval ("opCard" + posNumber).av = true; } if (h) { eval ("opCard" + posNumber).h = true; } if (a) { eval ("opCard" + posNumber).a = true; } if (s) { eval ("opCard" + posNumber).s = true; } if (w) { eval ("opCard" + posNumber).w = true; } if (p) { eval ("opCard" + posNumber).p = true; } if (m) { eval ("opCard" + posNumber).m = true; } if (k) { eval ("opCard" + posNumber).k = true; } if (g) { eval ("opCard" + posNumber).g = true; } solveOpFunctions(eval ("opCard" + posNumber)); eval ("opCard" + posNumber).onPress = clickCard; eval ("opCard" + posNumber).onRelease = releaseCard; eval ("opCard" + posNumber).onReleaseOutside = releaseCard; eval ("opCard" + posNumber).onDragOut = function () { ToolTip.hide(); uncolorize(this); }; eval ("opCard" + posNumber).onDragOver = function () { ToolTip.hide(); colorize(this, overCardColor); }; eval ("opCard" + posNumber).onRollOver = function () { if (playSounds) { mouseover.start(); } if (this.posNumber == 3) { this.oldDepth_mo = this.getDepth(); this.swapDepths(250); } if (_root.autoHelp) { ToolTip.show(this.toolTipText, 250); } colorize(this, overCardColor); }; eval ("opCard" + posNumber).onRollOut = function () { if (this.posNumber == 3) { this.swapDepths(this.oldDepth_mo); } ToolTip.hide(); uncolorize(this); }; eval ("opCard" + posNumber)._x = opTablePos[posNumber].xPos; eval ("opCard" + posNumber)._y = opTablePos[posNumber].yPos; if (eval ("opCard" + posNumber)._currentframe > 8) { eval ("opCard" + posNumber).toolTipText = "This is an item played by your opponent. To read more details, click here."; eval ("opCard" + posNumber).attachMovie("infoBox", "infoBox", eval ("opCard" + posNumber).getNextHighestDepth()); eval ("opCard" + posNumber).infoBox._x = 6; eval ("opCard" + posNumber).infoBox._y = 50; eval ("opCard" + posNumber).power = power; eval ("opCard" + posNumber).resistence = resistence; eval ("opCard" + posNumber).powerCount = powerCount; eval ("opCard" + posNumber).resistenceCount = resistenceCount; eval ("opCard" + posNumber).handleType = handleType; } else { eval ("opCard" + posNumber).toolTipText = ("Your opponent played the <b>" + subtype) + " Class</b>."; } if (attackCounts) { eval ("opCard" + posNumber).attachMovie("countsBox", "countsBox", eval ("opCard" + posNumber).getNextHighestDepth()); eval ("opCard" + posNumber).countsBox._x = 3; eval ("opCard" + posNumber).countsBox._y = 3; eval ("opCard" + posNumber).attackCounts = attackCounts; } if (tapped) { tap(eval ("opCard" + posNumber)); } } function startOpTimer(ht) { if (ht) { timer.opTimer = 0; if (opCountdown != null) { clearInterval(opCountdown); } opCountdown = setInterval(updateOpTimer, 400); } } function stopOpTimer() { timer.opTimer = 0; if (opCountdown != null) { clearInterval(opCountdown); } } function startTimer(speed) { function updateTimer() { timer.gotoAndStop(timer._currentframe + 1); if (timer._currentframe >= 240) { pauseTimer(); sendGameOver("lose"); } } if (countdown != null) { clearInterval(countdown); } if (speed == "fast") { countdown = setInterval(updateTimer, 220); } else { countdown = setInterval(updateTimer, 350); } } function pauseTimer() { if (countdown != null) { clearInterval(countdown); } } function resetAndStopTimer() { timer.gotoAndStop(1); if (countdown != null) { clearInterval(countdown); } } function drawClassCard(idCard, subtype) { if (!classPos[0].used) { createCardObj(idCard, classPos[0], "classPos", 0); classPos[0].used = true; classPos[0].idCard = idCard; classPos[0].subtype = subtype; } else if (!classPos[1].used) { createCardObj(idCard, classPos[1], "classPos", 1); classPos[1].used = true; classPos[1].idCard = idCard; classPos[1].subtype = subtype; } else { createCardObj(idCard, classPos[2], "classPos", 2); classPos[2].used = true; classPos[2].idCard = idCard; classPos[2].subtype = subtype; } } function returnClassCard(cardObj) { if (!classPos[0].used) { returnClassFunction(classPos[0], cardObj); cardObj.currentPos = "classPos"; cardObj.posNumber = 0; } else if (!classPos[1].used) { returnClassFunction(classPos[1], cardObj); cardObj.currentPos = "classPos"; cardObj.posNumber = 1; } else { returnClassFunction(classPos[2], cardObj); cardObj.currentPos = "classPos"; cardObj.posNumber = 2; } delete _root.classCardObj; } function returnClassFunction(classPosObj, cardObj) { _root.currentClass = "Average"; tablePos[1].used = false; cardObj._x = classPosObj.xPos; cardObj._y = classPosObj.yPos; cardObj.swapDepths(classPosObj.depth); classPosObj.used = true; classPosObj.idCard = cardObj.idDeck; classPosObj.subtype = cardObj.subtype; } function phaseChange(phase, player, cardObj) { if (_root.helpArrow) { _root.helpArrow.removeMovieClip(); } if ((((player == "my") && (phase != "drawPhase")) && (phase != "equipPhase")) && (playSounds)) { phasemove.start(); } eval ((_root.currentPlayerTurn + "Phases.") + _root.currentPhase).enabled = false; eval ((_root.currentPlayerTurn + "Phases.") + _root.currentPhase).play(); eval ((_root.currentPlayerTurn + "Phases.") + _root.currentPhase).go = true; eval ((_root.currentPlayerTurn + "Phases.") + _root.currentPhase).onEnterFrame = function () { if ((this._currentframe == 1) && (this.go)) { this.go = false; this.stop(); } }; if (((phase == "drawPhase") && (player == "my")) && (_root.autoHelp)) { _root.attachMovie("phaseAnnounce", "phaseAnnounce", _root.confirmBoxDepth - 1); phaseAnnounce._x = 98; phaseAnnounce._y = 197; phaseAnnounce.phaseText.text = "<Draw Phase>"; phaseAnnounce.onEnterFrame = function () { if (this._currentframe == 25) { delete this.onEnterFrame; this.removeMovieClip(); } }; } eval ((player + "Phases.") + phase).play(); eval ((player + "Phases.") + phase).go = true; eval ((player + "Phases.") + phase).onEnterFrame = function () { if ((this._currentframe == 10) && (this.go)) { this.enabled = true; this.go = false; this.stop(); if (player == "my") { if (phase == "drawPhase") { enableHand("drawPhase"); if (_root.myLife > 0) { achievObj.gameVars.turnCount++; achievObj.gameVars.totalTurnDamage = 0; achievObj.gameVars.totalCardsPlayedTurn = 0; achievObj.gameVars.totalCardsDrawTurn = 0; achievObj.gameVars.totalClassMorphTurn = 0; achievObj.gameVars.risefromashesPlayedTurn = 0; achievObj.gameVars.turnHeal = 0; if (_root.skipDrawPhase == 0) { drawCards(1); } if (_root.skipDrawPhase > 0) { _root.skipDrawPhase--; } if (_root.cannotBlock > 0) { _root.cannotBlock--; } if (_root.mustBlock > 0) { _root.mustBlock--; } if (_root.cannotUseDefenseAbilities > 0) { _root.cannotUseDefenseAbilities--; } if (_root.cannotUseDefenseSpells > 0) { _root.cannotUseDefenseSpells--; } if (!_root.weaponCardObj.doesNotUntap) { untap(_root.weaponCardObj); } checkModifiers(); testGameOver(); if (!_root.gameisOver) { if (playSounds) { myturn.start(); } phaseChange("equipPhase", "my"); autoMsg("Your turn."); sendPhase(phase, _root.weaponCardObj); } } } else if (phase == "endPhase") { ajustTurnModifiers(); checkModifiers(); testGameOver(); testAchievement(true, 7); testAchievement(true, 21); achievObj.gameVars.totalTurnDamage = 0; achievObj.gameVars.totalCardsPlayedTurn = 0; achievObj.gameVars.totalCardsDrawTurn = 0; achievObj.gameVars.totalClassMorphTurn = 0; achievObj.gameVars.risefromashesPlayedTurn = 0; achievObj.gameVars.turnHeal = 0; delete achievObj.gameVars.finishHim; _root.myLastDamage = 0; _root.attackBlocked = false; if (!_root.gameisOver) { if (_root.myHand > _root.myMaxHand) { _root.phaseText = "<Discard Phase>"; _root.phaseValue = 5; _root.cardsToDiscard = _root.myHand - _root.myMaxHand; waitingDiscardBox(_root.cardsToDiscard); if (cardObj) { sendPhase(phase, cardObj, "playCard"); } else { sendPhase(phase); } } else { solveTurnEndsFunctions(eval ("myCard" + tablePos[2].idCard)); solveTurnEndsFunctions(eval ("myCard" + tablePos[3].idCard)); solveTurnEndsFunctions(eval ("myCard" + tablePos[4].idCard)); solveTurnEndsFunctions(eval ("myCard" + tablePos[8].idCard)); _root.phaseText = "<End Turn>"; _root.phaseValue = 5; resetAndStopTimer(); enableHand("opTurn"); phaseChange("drawPhase", "op"); autoMsg(opName + "'s turn."); if (cardObj) { sendPhase("opTurn", cardObj, "playCard"); } else { sendPhase("opTurn"); } } } } else if (phase == "attackPhase") { testGameOver(); if (!_root.gameisOver) { _root.phaseText = "<Attack Phase>"; _root.phaseValue = 3; enableHand("attackPhase"); attackResponseBox(); if (cardObj) { sendPhase(phase, cardObj, "playCard"); } else { sendPhase(phase); } } } else if (!_root.gameisOver) { testGameOver(); if ((phase == "equipPhase") && (!_root.gameisOver)) { solveTurnBeginsFunctions(eval ("myCard" + tablePos[2].idCard)); solveTurnBeginsFunctions(eval ("myCard" + tablePos[3].idCard)); solveTurnBeginsFunctions(eval ("myCard" + tablePos[4].idCard)); solveTurnBeginsFunctions(eval ("myCard" + tablePos[8].idCard)); if (_root.autoHelp) { autoMsg("<font color='#FFFF33'>You are now in your Equip Phase.</font>"); } _root.phaseText = "<Equip Phase>"; _root.phaseValue = 2; enableHand("equipPhase"); startTimer(); } else if ((phase == "spellPhase") && (!_root.gameisOver)) { checkModifiers(); if (_root.autoHelp) { autoMsg("<font color='#FFFF33'>You are now in your Spell/Ability Phase.</font>"); } _root.phaseText = "<Spell/Ability Phase>"; _root.phaseValue = 4; enableHand("spellPhase"); } if (cardObj) { sendPhase(phase, cardObj, "playCard"); } else { sendPhase(phase); } eval ("myPhases." + phase).timeHelper = 0; eval ("myPhases." + phase).onEnterFrame = function () { this.timeHelper++; if (((this.timeHelper >= 300) && (!waitingResponse)) && (!waitingDiscard)) { _root.attachMovie("helpArrow", "helpArrow", _root.viewCardDepth + 5); var _local3 = {x:-15, y:-35}; this.localToGlobal(_local3); _root.helpArrow._x = _local3.x; _root.helpArrow._y = _local3.y; delete this.onEnterFrame; } }; eval ("myPhases." + phase).useHandCursor = true; eval ("myPhases." + phase).onRelease = function () { if (_root.helpArrow) { _root.helpArrow.removeMovieClip(); } switch (this._name) { case "equipPhase" : if ((_root.weaponCardObj && (!_root.weaponCardObj.tapped)) && (!_root.skipAttackPhase)) { phaseChange("attackPhase", "my"); } else { phaseChange("spellPhase", "my"); } break; case "spellPhase" : phaseChange("endPhase", "my"); } }; } if ((phase != "drawPhase") && (_root.autoHelp)) { _root.attachMovie("phaseAnnounce", "phaseAnnounce", _root.confirmBoxDepth - _root.phaseValue); phaseAnnounce._x = 98; phaseAnnounce._y = 197; phaseAnnounce.phaseText.text = phaseText; phaseAnnounce.onEnterFrame = function () { if (this._currentframe == 25) { delete this.onEnterFrame; this.removeMovieClip(); } }; } } } }; if ((_root.currentPlayerTurn == "my") && (phase != "endPhase")) { eval ("myPhases." + _root.currentPhase).useHandCursor = false; } _root.currentPhase = phase; _root.currentPlayerTurn = player; } function testModifierIcon(catchName, type, catchToolTip) { w = 0; while (w <= 13) { if (modifierPos[w].name == catchName) { if (eval (catchName) == 0) { eval ("modIcon" + w).removeMovieClip(); modifierPos[w].used = false; modifierPos[w].name = ""; i = w + 1; while (i <= 13) { if (modifierPos[i].used) { modifierPos[i - 1].used = true; modifierPos[i - 1].name = modifierPos[i].name; eval ("modIcon" + i)._x = modifierPos[i - 1].xPos; eval ("modIcon" + i)._y = modifierPos[i - 1].yPos; eval ("modIcon" + i).swapDepths(_root.modifierDepth + Number(i - 1)); eval ("modIcon" + i)._name = "modIcon" + Number(i - 1); } else { modifierPos[i - 1].used = false; modifierPos[i - 1].name = ""; eval ("modIcon" + Number(i - 1)).removeMovieClip(); break; } i++; } sendRemoveModifierIcon(w); } else if (catchToolTip != eval ("modIcon" + w).toolTipText) { sparkle = eval ("modIcon" + w).attachMovie("sparkle_mc", "sparkle_mc", eval ("modIcon" + w).getNextHighestDepth()); sparkle.i = 0; sparkle.onEnterFrame = function () { this.i++; if (this.i >= 25) { this.removeMovieClip(); } }; eval ("modIcon" + w).toolTipText = catchToolTip; sendUpdateModifierIcon(catchToolTip, w); } return; } if ((!modifierPos[w].used) && (eval (catchName) > 0)) { createModifierIcon(catchName, type, catchToolTip, w); sendCreateModifierIcon(catchName, type, catchToolTip, w, modPicDisplay); return; } w++; } } function createModifierIcon(catchName, type, catchToolTip, pos) { newModIcon = _root.attachMovie(type + "ModIcon", "modIcon" + pos, _root.modifierDepth + pos); modifierPos[pos].used = true; modifierPos[pos].name = catchName; newModIcon.fixedToolTip = true; newModIcon._x = modifierPos[pos].xPos; newModIcon._y = modifierPos[pos].yPos; newModIcon.createEmptyMovieClip("pictureClip", newModIcon.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/cards/small_pictures/") + modPicDisplay, newModIcon.pictureClip); newModIcon.pictureClip._x = 1; newModIcon.pictureClip._y = 1; newModIcon.pictureClip._xscale = 46; newModIcon.pictureClip._yscale = 47; ToolTip.install(newModIcon, catchToolTip, 1); } function checkModifiers() { plural = ((_root.skipDrawPhase > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.skipDrawPhase) + " turn") + plural) + "</b>"; testModifierIcon("skipDrawPhase", "neg", "Skip your draw phase." + turnsLeft); plural = ((_root.revealHand > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.revealHand) + " turn") + plural) + "</b>"; testModifierIcon("revealHand", "neg", "Your opponent is currently seeing your hand." + turnsLeft); testModifierIcon("enableRevealHand", "neg", "Your opponent is currently seeing your hand."); plural = ((_root.cannotChangeClass > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotChangeClass) + " turn") + plural) + "</b>"; testModifierIcon("cannotChangeClass", "neg", "Cannot change classes." + turnsLeft); plural = ((_root.mustAttack > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.mustAttack) + " turn") + plural) + "</b>"; testModifierIcon("mustAttack", "neg", "You must attack during your attack phase." + turnsLeft); plural = ((_root.mustBlock > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.mustBlock) + " turn") + plural) + "</b>"; testModifierIcon("mustBlock", "neg", "You must block with a weapon or shield in your opponent's attack phase." + turnsLeft); plural = ((_root.cannotEquipWeapon > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotEquipWeapon) + " turn") + plural) + "</b>"; testModifierIcon("cannotEquipWeapon", "neg", "You cannot equip weapons." + turnsLeft); plural = ((_root.cannotEquipArmor > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotEquipArmor) + " turn") + plural) + "</b>"; testModifierIcon("cannotEquipArmor", "neg", "You cannot equip armors." + turnsLeft); plural = ((_root.cannotEquipShield > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotEquipShield) + " turn") + plural) + "</b>"; testModifierIcon("cannotEquipShield", "neg", "You cannot equip shields." + turnsLeft); plural = ((_root.cannotEquipAmulet > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotEquipAmulet) + " turn") + plural) + "</b>"; testModifierIcon("cannotEquipAmulet", "neg", "You cannot equip amulets." + turnsLeft); plural = ((_root.cannotEquipItem > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotEquipItem) + " turn") + plural) + "</b>"; testModifierIcon("cannotEquipItem", "neg", "You cannot equip items." + turnsLeft); plural = ((_root.cannotAttack > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotAttack) + " turn") + plural) + "</b>"; testModifierIcon("cannotAttack", "neg", "You cannot attack during your attack phase." + turnsLeft); testModifierIcon("disableAttack", "neg", "You cannot attack during your attack phase."); plural = ((_root.cannotBlock > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotBlock) + " turn") + plural) + "</b>"; testModifierIcon("cannotBlock", "neg", "You cannot block with a weapon or shield." + turnsLeft); testModifierIcon("disableBlock", "neg", "You cannot block with a weapon or shield."); plural = ((_root.cannotUseUsageAbilities > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseUsageAbilities) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseUsageAbilities", "neg", "You cannot play usage abilities." + turnsLeft); testModifierIcon("disableUsageAbilities", "neg", "You cannot play usage abilities."); plural = ((_root.cannotUseUsageSpells > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseUsageSpells) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseUsageSpells", "neg", "You cannot play usage spells." + turnsLeft); testModifierIcon("disableUsageSpells", "neg", "You cannot play usage spells."); plural = ((_root.cannotUseAttackAbilities > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseAttackAbilities) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseAttackAbilities", "neg", "You cannot play attack abilities." + turnsLeft); testModifierIcon("disableAttackAbilities", "neg", "You cannot play attack abilities."); plural = ((_root.cannotUseAttackSpells > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseAttackSpells) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseAttackSpells", "neg", "You cannot play attack spells." + turnsLeft); testModifierIcon("disableAttackSpells", "neg", "You cannot play attack spells."); plural = ((_root.cannotUseDefenseAbilities > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseDefenseAbilities) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseDefenseAbilities", "neg", "You cannot play defense abilities." + turnsLeft); testModifierIcon("disableDefenseAbilities", "neg", "You cannot play defense abilities."); plural = ((_root.cannotUseDefenseSpells > 1) ? "s" : ""); turnsLeft = ((("\n<b>" + _root.cannotUseDefenseSpells) + " turn") + plural) + "</b>"; testModifierIcon("cannotUseDefenseSpells", "neg", "You cannot play defense spells." + turnsLeft); testModifierIcon("disableDefenseSpells", "neg", "You cannot play defense spells."); plural = ((_root.instantClassChangeHunter > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeHunter > 999) ? "" : (((("\n<b>" + _root.instantClassChangeHunter) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeHunter", "pos", "You may play the Hunter Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeAssassin > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeAssassin > 999) ? "" : (((("\n<b>" + _root.instantClassChangeAssassin) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeAssassin", "pos", "You may play the Assassin Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeKnight > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeKnight > 999) ? "" : (((("\n<b>" + _root.instantClassChangeKnight) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeKnight", "pos", "You may play the Knight Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeGladiator > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeGladiator > 999) ? "" : (((("\n<b>" + _root.instantClassChangeGladiator) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeGladiator", "pos", "You may play the Gladiator Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeSorcerer > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeSorcerer > 999) ? "" : (((("\n<b>" + _root.instantClassChangeSorcerer) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeSorcerer", "pos", "You may play the Sorcerer Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeWizard > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeWizard > 999) ? "" : (((("\n<b>" + _root.instantClassChangeWizard) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeWizard", "pos", "You may play the Wizard Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangePaladin > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangePaladin > 999) ? "" : (((("\n<b>" + _root.instantClassChangePaladin) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangePaladin", "pos", "You may play the Paladin Class without losing this turn." + turnsLeft); plural = ((_root.instantClassChangeMonk > 1) ? "s" : ""); turnsLeft = ((_root.instantClassChangeMonk > 999) ? "" : (((("\n<b>" + _root.instantClassChangeMonk) + " turn") + plural) + "</b>")); testModifierIcon("instantClassChangeMonk", "pos", "You may play the Monk Class without losing this turn." + turnsLeft); plural = ((_root.ignoreArmorAbility > 1) ? "s" : ""); turnsLeft = ((_root.ignoreArmorAbility > 999) ? "" : (((("\n<b>" + _root.ignoreArmorAbility) + " turn") + plural) + "</b>")); testModifierIcon("ignoreArmorAbility", "pos", "Your abilities bypass armors." + turnsLeft); plural = ((_root.ignoreArmorDarkSpell > 1) ? "s" : ""); turnsLeft = ((_root.ignoreArmorDarkSpell > 999) ? "" : (((("\n<b>" + _root.ignoreArmorDarkSpell) + " turn") + plural) + "</b>")); testModifierIcon("ignoreArmorDarkSpell", "pos", "Your dark spells bypass armors." + turnsLeft); plural = ((_root.ignoreArmorLightSpell > 1) ? "s" : ""); turnsLeft = ((_root.ignoreArmorLightSpell > 999) ? "" : (((("\n<b>" + _root.ignoreArmorLightSpell) + " turn") + plural) + "</b>")); testModifierIcon("ignoreArmorLightSpell", "pos", "Your light spells bypass armors." + turnsLeft); plural = ((_root.ignoreArmorNatureSpell > 1) ? "s" : ""); turnsLeft = ((_root.ignoreArmorNatureSpell > 999) ? "" : (((("\n<b>" + _root.ignoreArmorNatureSpell) + " turn") + plural) + "</b>")); testModifierIcon("ignoreArmorNatureSpell", "pos", "Your nature spells bypass armors." + turnsLeft); testModifierIcon("abilityTurnPower", "pos", ("+" + abilityTurnPower) + " damage to all your abilities.\n<b>1 turn</b>"); testModifierIcon("darkSpellTurnPower", "pos", ("+" + darkSpellTurnPower) + " damage to all your dark spells.\n<b>1 turn</b>"); testModifierIcon("lightSpellTurnPower", "pos", ("+" + lightSpellTurnPower) + " damage to all your light spells.\n<b>1 turn</b>"); testModifierIcon("natureSpellTurnPower", "pos", ("+" + natureSpellTurnPower) + " damage to all your nature spells.\n<b>1 turn</b>"); } function ajustTurnModifiers() { if (_root.weaponCardObj) { removeTurnModifier(_root.weaponCardObj); } if (_root.shieldCardObj) { removeTurnModifier(_root.shieldCardObj); } if (_root.armorCardObj) { removeTurnModifier(_root.armorCardObj); } if (_root.revealHand > 0) { _root.revealHand--; } if (_root.instantClassChangeHunter > 0) { _root.instantClassChangeHunter--; } if (_root.instantClassChangeAssassin > 0) { _root.instantClassChangeAssassin--; } if (_root.instantClassChangeKnight > 0) { _root.instantClassChangeKnight--; } if (_root.instantClassChangeGladiator > 0) { _root.instantClassChangeGladiator--; } if (_root.instantClassChangeSorcerer > 0) { _root.instantClassChangeSorcerer--; } if (_root.instantClassChangeWizard > 0) { _root.instantClassChangeWizard--; } if (_root.instantClassChangePaladin > 0) { _root.instantClassChangePaladin--; } if (_root.instantClassChangeMonk > 0) { _root.instantClassChangeMonk--; } if (_root.cannotChangeClass > 0) { _root.cannotChangeClass--; } if (_root.mustAttack > 0) { _root.mustAttack--; } if (_root.cannotAttack > 0) { _root.cannotAttack--; } if (_root.cannotEquipWeapon > 0) { _root.cannotEquipWeapon--; } if (_root.cannotEquipArmor > 0) { _root.cannotEquipArmor--; } if (_root.cannotEquipShield > 0) { _root.cannotEquipShield--; } if (_root.cannotEquipAmulet > 0) { _root.cannotEquipAmulet--; } if (_root.cannotEquipItem > 0) { _root.cannotEquipItem--; } if (_root.cannotUseUsageAbilities > 0) { _root.cannotUseUsageAbilities--; } if (_root.cannotUseUsageSpells > 0) { _root.cannotUseUsageSpells--; } if (_root.cannotUseAttackAbilities > 0) { _root.cannotUseAttackAbilities--; } if (_root.cannotUseAttackSpells > 0) { _root.cannotUseAttackSpells--; } if (_root.ignoreArmorAbility > 0) { _root.ignoreArmorAbility--; } if (_root.ignoreArmorDarkSpell > 0) { _root.ignoreArmorDarkSpell--; } if (_root.ignoreArmorLightSpell > 0) { _root.ignoreArmorLightSpell--; } if (_root.ignoreArmorNatureSpell > 0) { _root.ignoreArmorNatureSpell--; } if (_root.abilityTurnPower > 0) { _root.abilityTurnPower = 0; } if (_root.darkSpellTurnPower > 0) { _root.darkSpellTurnPower = 0; } if (_root.lightSpellTurnPower > 0) { _root.lightSpellTurnPower = 0; } if (_root.natureSpellTurnPower > 0) { _root.natureSpellTurnPower = 0; } if (_root.weaponCardObj.imuneToCounterTurnLimit > 0) { _root.weaponCardObj.imuneToCounterTurnLimit--; } if (_root.weaponCardObj.imuneToCounterTurnLimit == 0) { _root.weaponCardObj.imuneToCounter = false; } if (_root.skipAttackPhase) { delete _root.skipAttackPhase; } if (_root.doubleActionUsed) { _root.doubleActionUsed = false; } } function updateOpCard(opCardObj, newRes) { opDmg = opCardObj.resistenceCount - newRes; if (opDmg > 0) { damageAnimation(opCardObj, opDmg); } opCardObj.resistenceCount = newRes; } function damageAnimation(cardObj, damage) { cardObj.attachMovie("lose_animation", "lose_animation", 999); cardObj.attachMovie("damageColorEffect", "damageColorEffect", 998); cardObj.lose_animation._x = 13; cardObj.lose_animation._y = 6; if (cardObj.tapped) { cardObj.lose_animation._rotation = -90; cardObj.lose_animation._x = 10; cardObj.lose_animation._y = 45; } cardObj.lose_animation.points = "-" + damage; cardObj.lose_animation.onEnterFrame = function () { if (this._currentframe == 20) { this.stop(); this.removeMovieClip(); } }; cardObj.damageColorEffect.onEnterFrame = function () { if (this._currentframe == 20) { this.stop(); this.removeMovieClip(); } }; } function gainAnimation(cardObj, gain) { cardObj.attachMovie("gain_animation", "gain_animation", 999); cardObj.gain_animation._x = 13; cardObj.gain_animation._y = 6; cardObj.gain_animation.points = "+" + gain; cardObj.gain_animation.onEnterFrame = function () { if (this._currentframe == 20) { this.stop(); this.removeMovieClip(); } }; } function removeCard(cardObj, funcTrigger, destroyedByOp) { addModifiers(_root.weaponCardObj); pos = cardObj.posNumber; if (pos != 6) { achievObj.gameVars.itemsDestroyed++; testAchievement(true, 2); if (funcTrigger) { solveRemoveFunctions(cardObj); } sendRemoveCard(cardObj, funcTrigger, destroyedByOp); } if (cardObj.handleType == 2) { tablePos[2].idCard = 0; tablePos[2].used = false; tablePos[2].model = ""; tablePos[4].idCard = 0; tablePos[4].used = false; tablePos[4].model = ""; tableIcon2._alpha = 100; tableIcon4.gotoAndStop(1); } else { tablePos[pos].idCard = 0; tablePos[pos].used = false; tablePos[pos].model = ""; eval ("tableIcon" + pos)._alpha = 100; } if (cardObj.model == "artifact_weapon") { delete _root.weaponCardObj; } if (cardObj.model == "artifact_shield") { delete _root.shieldCardObj; } if (cardObj.model == "artifact_amulet") { delete _root.amuletCardObj; } if (cardObj.model == "armor") { delete _root.armorCardObj; } if (cardObj.model == "artifact_item") { if (pos == 2) { delete _root.itemCardObj1; } else { delete _root.itemCardObj2; } } if (cardObj.retract) { if (_root.myHand >= _root.maxHandCards) { autoMsg("You cannot have more then 14 cards in your hand."); autoMsg(cardObj.name + " was put in the graveyard."); _root.myDiscard++; _root.discardPileArray.push(cardObj.idDraw); } else { w = 0; while (w < _root.maxHandCards) { if (!handPos[w].used) { _root.myHand++; createCardObj(cardObj.idDraw, handPos[w], "handPos", w); handPos[w].used = true; handPos[w].idCard = cardObj.idDraw; break; } w++; } } } else { _root.myDiscard++; _root.discardPileArray.push(cardObj.idDraw); autoMsg(cardObj.name + " was put in the graveyard."); } if ((!funcTrigger) && (!cardObj.retract)) { colorize(cardObj, overCardColor); cardObj.fadeStart = Math.round(getTimer() / 10); cardObj.onEnterFrame = function () { fadeEnd = Math.round(getTimer() / 10) - this.fadeStart; this._alpha = 100 - fadeEnd; if (fadeEnd >= 100) { uncolorize(this); delete this.fadeStart; delete fadeEnd; delete this.onEnterFrame; removeMovieClip("temp_" + this._name); this.removeMovieClip(); } }; } else { removeMovieClip("temp_" + cardObj._name); cardObj.removeMovieClip(); } } function removeOpCard(posNumber, removefunc1, removefunc2, removefunc3, destroyfunc1, destroyfunc2, zeroACfunc1, zeroACfunc2, noAnimation) { if (posNumber == 1) { opClasses++; opClassDock.gotoAndStop(opClasses + 1); } readOpFunctions(removefunc1, eval ("opCard" + posNumber)); readOpFunctions(removefunc2, eval ("opCard" + posNumber)); readOpFunctions(removefunc3, eval ("opCard" + posNumber)); readOpFunctions(destroyfunc1, eval ("opCard" + posNumber)); readOpFunctions(destroyfunc2, eval ("opCard" + posNumber)); readOpFunctions(zeroACfunc1, eval ("opCard" + posNumber)); readOpFunctions(zeroACfunc2, eval ("opCard" + posNumber)); eval ("opCard" + posNumber).idCard = 0; if (!noAnimation) { if (eval ("opCard" + posNumber).resistenceCount > 0) { damageAnimation(eval ("opCard" + posNumber), eval ("opCard" + posNumber).resistenceCount); } colorize(eval ("opCard" + posNumber), overCardColor); eval ("opCard" + posNumber).fadeStart = Math.round(getTimer() / 10); eval ("opCard" + posNumber).onEnterFrame = function () { fadeEnd = Math.round(getTimer() / 10) - this.fadeStart; eval ("opCard" + posNumber)._alpha = 100 - fadeEnd; if (fadeEnd >= 100) { uncolorize(this); delete this.onEnterFrame; opFadeOutCard(posNumber); } }; } else { opFadeOutCard(posNumber); } } function opFadeOutCard(posNumber) { removeMovieClip("opCard" + posNumber); if (posNumber == 7) { tablePos[7].used = false; } } function arrangeHand(cardObj) { if (cardObj.currentPos == "handPos") { _root.myHand--; } oldPosNumber = cardObj.posNumber; posObj = eval (cardObj.currentPos); posObj[oldPosNumber].used = false; posObj[oldPosNumber].idCard = 0; posObj[oldPosNumber].subtype = ""; newPos = oldPosNumber; while (newPos < _root.maxHandCards) { oldPos = newPos + 1; if (!posObj[oldPos].used) { return; } eval ("myCard" + posObj[oldPos].idCard)._x = posObj[newPos].xPos; eval ("myCard" + posObj[oldPos].idCard)._y = posObj[newPos].yPos; eval ("myCard" + posObj[oldPos].idCard).swapDepths(posObj[newPos].depth); eval ("myCard" + posObj[oldPos].idCard).posNumber = newPos; posObj[newPos].used = true; posObj[newPos].idCard = eval ("myCard" + posObj[oldPos].idCard).idDeck; posObj[newPos].subtype = eval ("myCard" + posObj[oldPos].idCard).subtype; posObj[oldPos].used = false; posObj[oldPos].idCard = 0; posObj[oldPos].subtype = ""; newPos++; } } function checkClasses(cardObj) { cardUsable = false; switch (_root.currentClass) { case "Average" : if (cardObj.av) { cardUsable = true; } break; case "Hunter" : if (cardObj.h) { cardUsable = true; } break; case "Knight" : if (cardObj.k) { cardUsable = true; } break; case "Paladin" : if (cardObj.p) { cardUsable = true; } break; case "Sorcerer" : if (cardObj.s) { cardUsable = true; } break; case "Assassin" : if (cardObj.a) { cardUsable = true; } break; case "Gladiator" : if (cardObj.g) { cardUsable = true; } break; case "Wizard" : if (cardObj.w) { cardUsable = true; } break; case "Monk" : if (!cardObj.m) { break; } cardUsable = true; } if (((cardObj.type == "Class") || (cardObj.type == "Subclass")) && (cardObj.currentPos == "tablePos")) { cardUsable = true; } if (cardObj.e) { cardUsable = true; } return(cardUsable); } function addModifiers(cardObj) { if (cardObj.type == "Ability") { if (cardObj.playfunc1.substr(0, 11) == "hitOpponent") { cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, modifier_Ability, ignoreArmorAbility); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, abilityTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_Ability, ignoreArmorAbility); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, abilityTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_Ability, ignoreArmorAbility); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, abilityTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_Ability, ignoreArmorAbility); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, abilityTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_Ability, ignoreArmorAbility); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, abilityTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_Ability, ignoreArmorAbility); cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, abilityTurnPower); } } else if (cardObj.type == "Dark Spell") { if (cardObj.playfunc1.substr(0, 11) == "hitOpponent") { cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, darkSpellTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, darkSpellTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, darkSpellTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, darkSpellTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, darkSpellTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_DarkSpell, ignoreArmorDarkSpell); cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, darkSpellTurnPower); } } else if (cardObj.type == "Light Spell") { if (cardObj.playfunc1.substr(0, 11) == "hitOpponent") { cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, lightSpellTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, lightSpellTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, lightSpellTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, lightSpellTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, lightSpellTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_LightSpell, ignoreArmorLightSpell); cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, lightSpellTurnPower); } } else if (cardObj.type == "Nature Spell") { if (cardObj.playfunc1.substr(0, 11) == "hitOpponent") { cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc1 = changeAttackFunction(cardObj.playfunc1, natureSpellTurnPower); } else if (cardObj.playfunc2.substr(0, 11) == "hitOpponent") { cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc2 = changeAttackFunction(cardObj.playfunc2, natureSpellTurnPower); } else if (cardObj.playfunc3.substr(0, 11) == "hitOpponent") { cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc3 = changeAttackFunction(cardObj.playfunc3, natureSpellTurnPower); } else if (cardObj.playfunc4.substr(0, 11) == "hitOpponent") { cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc4 = changeAttackFunction(cardObj.playfunc4, natureSpellTurnPower); } else if (cardObj.playfunc5.substr(0, 11) == "hitOpponent") { cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc5 = changeAttackFunction(cardObj.playfunc5, natureSpellTurnPower); } else if (cardObj.playfunc6.substr(0, 11) == "hitOpponent") { cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, modifier_NatureSpell, ignoreArmorNatureSpell); cardObj.playfunc6 = changeAttackFunction(cardObj.playfunc6, natureSpellTurnPower); } } else if (cardObj.subtype == "Dark Wand") { cardObj.powerCount = ((cardObj.power + cardObj.powerAdded) + modifier_DarkSpell) + darkSpellTurnPower; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } } else if (cardObj.subtype == "Light Wand") { cardObj.powerCount = ((cardObj.power + cardObj.powerAdded) + modifier_LightSpell) + lightSpellTurnPower; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } } else if (cardObj.subtype == "Bow") { cardObj.powerCount = (cardObj.power + cardObj.powerAdded) + powModifier_Bow; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } cardObj.resistenceCount = (cardObj.resistence + cardObj.resistenceAdded) + resModifier_Bow; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } else if (cardObj.subtype == "Crossbow") { cardObj.powerCount = (cardObj.power + cardObj.powerAdded) + powModifier_Crossbow; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } cardObj.resistenceCount = (cardObj.resistence + cardObj.resistenceAdded) + resModifier_Crossbow; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } else if (cardObj.subtype == "Sword") { cardObj.powerCount = (cardObj.power + cardObj.powerAdded) + powModifier_Sword; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } cardObj.resistenceCount = (cardObj.resistence + cardObj.resistenceAdded) + resModifier_Sword; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } else if (cardObj.subtype == "Axe") { cardObj.powerCount = (cardObj.power + cardObj.powerAdded) + powModifier_Axe; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } cardObj.resistenceCount = (cardObj.resistence + cardObj.resistenceAdded) + resModifier_Axe; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } else if (cardObj.subtype == "Mace") { cardObj.powerCount = (cardObj.power + cardObj.powerAdded) + powModifier_Mace; if (cardObj.powerCount < 0) { cardObj.powerCount = 0; } cardObj.resistenceCount = (cardObj.resistence + cardObj.resistenceAdded) + resModifier_Mace; if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 1; } } } function playCardTable(cardObj, newTable, posOnTable) { if (achievObj.gameVars.turnCount <= 5) { achievObj.gameVars.actionTakenBefore5 = true; } if (cardObj.rarity == 6) { testAchievement(true, 57); } if (cardObj.e) { achievObj.gameVars.eForEveryone++; } if (cardObj.subtype == "Book") { achievObj.gameVars.books++; if (achievObj.gameVars.books >= 5) { testAchievement(true, 84); } } if (cardObj.subtype == "Throw") { achievObj.gameVars.throws++; if (achievObj.gameVars.throws >= 5) { testAchievement(true, 30); } } if (cardObj.model == "artifact_weapon") { achievObj.gameVars.weaponPlayed = true; _root.weaponCardObj = cardObj; } if (cardObj.model == "artifact_shield") { _root.shieldCardObj = cardObj; } if (cardObj.model == "artifact_amulet") { _root.amuletCardObj = cardObj; } if (cardObj.model == "armor") { _root.armorCardObj = cardObj; } if (cardObj.model == "artifact_item") { if (posOnTable == 2) { _root.itemCardObj1 = cardObj; } else { _root.itemCardObj2 = cardObj; } } removeGlow(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 (((tablePos[2].idCard && (tablePos[3].idCard)) && (tablePos[4].idCard)) && (tablePos[8].idCard)) { if ((((!opCard2) && (!opCard3)) && (!opCard4)) && (!opCard8)) { testAchievement(true, 29); } } if ((cardObj.type == "Class") || (cardObj.type == "Subclass")) { _root.classCardObj = cardObj; _root.currentClass = cardObj.subtype; cardObj.toolTipText = "During the equip phase, you may return this card to your class dock located in the left side of the screen."; if ((instantClassChangeHunter > 0) and (cardObj.subtype == "Hunter")) { _root.stayPut = true; } if ((instantClassChangeAssassin > 0) and (cardObj.subtype == "Assassin")) { _root.stayPut = true; } if ((instantClassChangeKnight > 0) and (cardObj.subtype == "Knight")) { _root.stayPut = true; } if ((instantClassChangeGladiator > 0) and (cardObj.subtype == "Gladiator")) { _root.stayPut = true; } if ((instantClassChangeSorcerer > 0) and (cardObj.subtype == "Sorcerer")) { _root.stayPut = true; } if ((instantClassChangeWizard > 0) and (cardObj.subtype == "Wizard")) { _root.stayPut = true; } if ((instantClassChangePaladin > 0) and (cardObj.subtype == "Paladin")) { _root.stayPut = true; } if ((instantClassChangeMonk > 0) and (cardObj.subtype == "Monk")) { _root.stayPut = true; } if (_root.stayPut) { sendPlayCard(cardObj); enableHand("equipPhase"); } else { phaseChange("endPhase", "my", cardObj); } delete stayPut; } else { cardObj.toolTipText = "During the equip phase, you may destroy this item by dragging it into your graveyard (the cross icon in the bottom right corner of your playfield)."; cardObj.attachMovie("infoBox", "infoBox", this.getNextHighestDepth()); cardObj.infoBox._x = 6; cardObj.infoBox._y = 50; cardObj.powerAdded = 0; cardObj.resistenceAdded = 0; cardObj.powerCount = cardObj.power; cardObj.originalPower = cardObj.power; cardObj.resistenceCount = cardObj.resistence; cardObj.originalResistence = cardObj.resistence; solveMyFunctions(cardObj); addModifiers(cardObj); if (!cardObj.instantEffect) { if ((cardObj == _root.weaponCardObj) && (cardObj.fastStrike)) { delete _root.skipAttackPhase; } if ((_root.weaponCardObj && (!_root.skipAttackPhase)) && ((cardObj != _root.weaponCardObj) || (cardObj.fastStrike))) { phaseChange("attackPhase", "my", cardObj); } else { phaseChange("spellPhase", "my", cardObj); } } else { if ((cardObj == _root.weaponCardObj) && (!cardObj.fastStrike)) { _root.skipAttackPhase = true; } else if ((cardObj == _root.weaponCardObj) && (cardObj.fastStrike)) { delete _root.skipAttackPhase; } sendPlayCard(cardObj); enableHand("equipPhase"); } } } function useAbility(cardObj, from) { achievObj.gameVars.spellabilityPlayed = true; if (achievObj.gameVars.turnCount <= 5) { achievObj.gameVars.actionTakenBefore5 = true; } if (cardObj.rarity == 6) { testAchievement(true, 57); } if (cardObj.e) { achievObj.gameVars.eForEveryone++; } if ((cardObj.name == "Summon Bears") && (weaponCardObj.name == "Bear Trap")) { testAchievement(true, 73); } if (cardObj.name == "Apocalypse") { achievObj.gameVars.apocalypsePlayed = true; } if (cardObj.name == "Agression") { achievObj.gameVars.finishHim = true; } if (cardObj.name == "Armageddon") { achievObj.gameVars.armageddonPlayed = true; } if (cardObj.name == "Extinction") { achievObj.gameVars.extinctionPlayed = true; } if (cardObj.name == "Earthquake") { achievObj.gameVars.earthquakePlayed = true; } if (cardObj.name == "Tsunami") { achievObj.gameVars.tsunamiPlayed = true; } if (cardObj.name == "Rock Slide") { achievObj.gameVars.rockslidePlayed = true; } if (cardObj.name == "Avalanche") { achievObj.gameVars.avalanchePlayed = true; } if (cardObj.name == "Duck") { achievObj.gameVars.birdies++; if (achievObj.gameVars.birdies >= 4) { testAchievement(true, 80); } } if (cardObj.name == "Rise From Ashes") { achievObj.gameVars.risefromashesPlayedTurn++; if (achievObj.gameVars.risefromashesPlayedTurn >= 2) { achievObj.gameVars.risefromashesTwice = true; } } removeGlow(cardObj); arrangeHand(cardObj); cardObj.toolTipText = ""; cardObj.currentPos = "tablePos"; cardObj.posNumber = 6; cardObj._x = tablePos[6].xPos; cardObj._y = tablePos[6].yPos; cardObj.swapDepths(tablePos[6].depth); tablePos[6].used = true; tablePos[6].idCard = cardObj.idDeck; if (from == "opTurn") { enableHand("opTurn"); if (_root.currentPhase == "attackPhase") { sendCounterAbility(cardObj, "attack"); } else { sendCounterAbility(cardObj, "ability"); } } else { if (_root.helpArrow) { _root.helpArrow.removeMovieClip(); } addModifiers(cardObj); sendAbility(cardObj); } } function clickCard() { ToolTip.hide(); if ((this._name.substring(0, 2) != "op") && (!_root.gameisOver)) { if (((((this.currentPos == "tablePos") && (this.posNumber != 7)) && (this.posNumber != 6)) || (this.currentPos == "handPos")) || (this.currentPos == "classPos")) { if ((((!_root.waitingResponse) && (!_root.okResponse)) && (!_root.defenseResponse)) && (!_root.attackResponse)) { _root.dragging = this; _root.currentCardXpos = this._x; _root.currentCardYpos = this._y; Mouse.addListener(mouseListener); } } } } function draggingOver(obj) { if ((obj.hitTest(_root._xmouse, _root._ymouse, false) && (!obj.colored)) && (!_root.currentBelow)) { if ((obj._name == "myPlayfield") || (obj._name == "classDock")) { obj._alpha = 40; } colorize(obj, overTargetColor); obj.colored = true; if (obj.hitTest(_root.currentOver)) { uncolorize(_root.currentOver); delete _root.currentOver.colored; _root.currentBelow = true; } _root.currentOver = obj; } else if ((!obj.hitTest(_root._xmouse, _root._ymouse, false)) && (obj.colored)) { if ((obj._name == "myPlayfield") || (obj._name == "classDock")) { obj._alpha = 0; } uncolorize(obj); delete obj.colored; if (_root.currentOver == obj) { delete _root.currentOver; } if (_root.currentBelow) { delete _root.currentBelow; } } } function discardCard(cardObj) { autoMsg(cardObj.name + " was put in the graveyard."); arrangeHand(cardObj); _root.myDiscard++; _root.discardPileArray.push(cardObj.idDraw); solveDiscardFunctions(eval ("myCard" + tablePos[2].idCard)); solveDiscardFunctions(eval ("myCard" + tablePos[3].idCard)); solveDiscardFunctions(eval ("myCard" + tablePos[4].idCard)); solveDiscardFunctions(eval ("myCard" + tablePos[8].idCard)); solveOpDiscardFunctions(opCard2); solveOpDiscardFunctions(opCard3); solveOpDiscardFunctions(opCard4); solveOpDiscardFunctions(opCard8); sendDiscardCard(cardObj); if (_root.currentPhase == "endPhase") { _root.cardsToDiscard--; achievObj.gameVars.cardsDiscarded++; testAchievement(true, 72); if ((_root.cardsToDiscard == 0) || (myHand == 0)) { solveTurnEndsFunctions(eval ("myCard" + tablePos[2].idCard)); solveTurnEndsFunctions(eval ("myCard" + tablePos[3].idCard)); solveTurnEndsFunctions(eval ("myCard" + tablePos[4].idCard)); solveTurnEndsFunctions(eval ("myCard" + tablePos[8].idCard)); _root.phaseText = "<End Turn>"; _root.phaseValue = 5; resetAndStopTimer(); enableHand("opTurn"); phaseChange("drawPhase", "op"); autoMsg(opName + "'s turn."); sendPhase("opTurn"); _root.waitingDiscard.removeMovieClip(); } } else if (_root.proceedToPhase) { _root.cardsToDiscard--; if ((_root.cardsToDiscard == 0) || (myHand == 0)) { if (_root.proceedToPhase == "doubleAction") { _root.doubleAction = false; myPhases.spellPhase.enabled = true; } else if (_root.proceedToPhase == "instantEffect") { eval ("myPhases." + _root.currentPhase).enabled = true; } else if (_root.proceedToPhase == "sendSolveAbility") { sendSolveAbility(); } else if (_root.proceedToPhase == "sendStatsUpdate") { sendStatsUpdate("saa"); } else { phaseChange(_root.proceedToPhase, "my"); } enableHand("opTurn"); if (_root.helpArrow) { _root.helpArrow.removeMovieClip(); } _root.waitingDiscard.removeMovieClip(); delete _root.proceedToPhase; } } removeMovieClip("temp_" + cardObj._name); cardObj.removeMovieClip(); } function addGlow(targetObj, noGlow) { if ((!targetObj.glowEffect) && (noGlow)) { targetObj.createEmptyMovieClip("glowEffect", targetObj.getNextHighestDepth()); targetObj.glowEffect.i = 0; targetObj.glowEffect.onEnterFrame = function () { this.i++; if ((this.i % (10 + Math.floor(Math.random() * 5))) == 0) { sparkle = this.attachMovie("sparkle_mc", "sparkle_mc" + this.i, this.i + 5); sparkle._x = Math.floor(Math.random() * 43); sparkle._y = 20 + Math.floor(Math.random() * 14); sparkle.i = 0; sparkle.onEnterFrame = function () { this._y--; this.i++; if (this.i >= 25) { this.removeMovieClip(); } }; } }; } else if (!targetObj.glowEffect) { targetObj.attachMovie("glowEffect", "glowEffect", targetObj.getNextHighestDepth()); } } function removeGlow(targetObj) { if (targetObj.glowEffect) { targetObj.glowEffect.removeMovieClip(); } } function enableHand(phase) { switch (phase) { case "drawPhase" : i = 0; while (i < myHand) { removeGlow(eval ("myCard" + handPos[i].idCard)); i++; } return; case "equipPhase" : i = 0; while (i < myHand) { if (testHandToPlayfield(eval ("myCard" + handPos[i].idCard))) { addGlow(eval ("myCard" + handPos[i].idCard)); } else { removeGlow(eval ("myCard" + handPos[i].idCard)); } i++; } if (((_root.armorCardObj || (tablePos[8].used)) || (_root.weaponCardObj)) || (_root.shieldCardObj)) { addGlow(graveyard, true); } else { removeGlow(graveyard); } if ((currentClass == "Average") && (cannotChangeClass == 0)) { if (classPos[0].used) { addGlow(eval ("myCard" + classPos[0].idCard)); } if (classPos[1].used) { addGlow(eval ("myCard" + classPos[1].idCard)); } if (classPos[2].used) { addGlow(eval ("myCard" + classPos[2].idCard)); } } return; case "attackPhase" : i = 0; while (i < myHand) { removeGlow(eval ("myCard" + handPos[i].idCard)); i++; } removeGlow(graveyard); removeGlow(eval ("myCard" + classPos[0].idCard)); removeGlow(eval ("myCard" + classPos[1].idCard)); removeGlow(eval ("myCard" + classPos[2].idCard)); return; case "spellPhase" : i = 0; while (i < myHand) { if (testHandToPlayfield(eval ("myCard" + handPos[i].idCard))) { addGlow(eval ("myCard" + handPos[i].idCard)); } else { removeGlow(eval ("myCard" + handPos[i].idCard)); } i++; } removeGlow(graveyard); removeGlow(eval ("myCard" + classPos[0].idCard)); removeGlow(eval ("myCard" + classPos[1].idCard)); removeGlow(eval ("myCard" + classPos[2].idCard)); return; case "endPhase" : i = 0; while (i < myHand) { addGlow(eval ("myCard" + handPos[i].idCard)); i++; } removeGlow(graveyard); removeGlow(eval ("myCard" + classPos[0].idCard)); removeGlow(eval ("myCard" + classPos[1].idCard)); removeGlow(eval ("myCard" + classPos[2].idCard)); return; case "opTurn" : i = 0; while (i < myHand) { removeGlow(eval ("myCard" + handPos[i].idCard)); i++; } removeGlow(graveyard); removeGlow(eval ("myCard" + classPos[0].idCard)); removeGlow(eval ("myCard" + classPos[1].idCard)); removeGlow(eval ("myCard" + classPos[2].idCard)); return; case "defenseResponse" : i = 0; for(;;){ if (i >= myHand) { break; } if (testHandToPlayfield(eval ("myCard" + handPos[i].idCard))) { addGlow(eval ("myCard" + handPos[i].idCard)); } else { removeGlow(eval ("myCard" + handPos[i].idCard)); } i++; }; } } function testHandToPlayfield(cardObj) { usable = false; if (((((((_root.currentPhase == cardObj.phaseUsage) || (_root.currentPhase == cardObj.phaseUsage2)) && (_root.currentPlayerTurn == "my")) && (_root.originalPos != "tablePos")) || ((cardObj.phaseUsage == "opAction") && (_root.currentPlayerTurn == "op"))) && (checkClasses(cardObj))) && (!testLimitation(cardObj))) { if ((((_root.waitingOpRes != "counter") && (!eval ("myCard" + tablePos[6].idCard))) && (myPhases.spellPhase.enabled || (myPhases.equipPhase.enabled))) && ((((cardObj.model == "ability_usage") && (cannotUseUsageAbilities == 0)) && (disableUsageAbilities == 0)) || (((cardObj.model == "spell_usage") && (cannotUseUsageSpells == 0)) && (disableUsageSpells == 0)))) { usable = true; } else if ((((_root.waitingOpRes != "counter") && (!eval ("myCard" + tablePos[6].idCard))) && (myPhases.spellPhase.enabled)) && ((((cardObj.model == "ability_attack") && (cannotUseAttackAbilities == 0)) && (disableAttackAbilities == 0)) || (((cardObj.model == "spell_attack") && (cannotUseAttackSpells == 0)) && (disableAttackSpells == 0)))) { usable = true; } else if ((_root.abilityResponse && (!opCard7.uncounterable)) && ((((cardObj.model == "ability_defense") && (cannotUseDefenseAbilities == 0)) && (disableDefenseAbilities == 0)) || (((cardObj.model == "spell_defense") && (cannotUseDefenseSpells == 0)) && (disableDefenseSpells == 0)))) { usable = true; } if (cardObj.type == "Artifact") { if (((cardObj.model == "artifact_amulet") && (!tablePos[8].used)) && (_root.cannotEquipAmulet == 0)) { usable = true; } else if (cardObj.handleType == 1) { if ((((cardObj.model == "artifact_weapon") && (!_root.weaponCardObj)) && (_root.cannotEquipWeapon == 0)) && ((!tablePos[2].used) || (!tablePos[4].used))) { usable = true; } else if ((((cardObj.model == "artifact_shield") && (!_root.shieldCardObj)) && (_root.cannotEquipShield == 0)) && ((!tablePos[2].used) || (!tablePos[4].used))) { usable = true; } else if (((cardObj.model == "artifact_item") && (_root.cannotEquipItem == 0)) && ((!tablePos[2].used) || (!tablePos[4].used))) { usable = true; } } else if (((cardObj.model == "artifact_weapon") && (_root.cannotEquipWeapon == 0)) && ((!tablePos[2].used) && (!tablePos[4].used))) { usable = true; } else if (((cardObj.model == "artifact_shield") && (_root.cannotEquipShield == 0)) && ((!tablePos[2].used) && (!tablePos[4].used))) { usable = true; } else if (((cardObj.model == "artifact_item") && (_root.cannotEquipItem == 0)) && ((!tablePos[2].used) && (!tablePos[4].used))) { usable = true; } } else if (((cardObj.type == "Armor") && (!tablePos[3].used)) && (_root.cannotEquipArmor == 0)) { usable = true; } else if ((cannotChangeClass == 0) && ((cardObj.type == "Class") || (cardObj.type == "Subclass"))) { usable = true; } } return(usable); } function releaseCard() { if (this._alpha == 100) { if ((_root.cardViewNumber != this.idCard) && (this.hitTest(_root._xmouse, _root._ymouse, false))) { _root.cardViewNumber = this.idCard; viewClickedCard(this); } } else { if (_root.currentOver) { if ((_root.currentOver._name == "myPlayfield") || (_root.currentOver._name == "classDock")) { _root.currentOver._alpha = 0; } if (((_root.currentOver._name == "myPlayfield") && ((this.type == "Class") || (this.type == "Subclass"))) && (_root.currentClass == "Average")) { playCardTable(this, tablePos[1], 1); } else if ((this.currentPos == "tablePos") && ((this.type == "Class") || (this.type == "Subclass"))) { sendRemoveCard(this, true); returnClassCard(this); enableHand("equipPhase"); } else if (_root.currentOver._name == "myPlayfield") { if (this.type != "Nature Spell") { achievObj.gameVars.playOnlyNatureSpellsCanceled = true; } else { achievObj.gameVars.natureSpellPlayed = true; } achievObj.gameVars.totalCardsPlayedTurn++; testAchievement(true, 8); if (this.model == "artifact_weapon") { if (this.handleType == 1) { if ((!tablePos[2].used) && (tablePos[4].model != "artifact_weapon")) { playCardTable(this, tablePos[2], 2); tableIcon2._alpha = 0; } else if ((!tablePos[4].used) && (tablePos[2].model != "artifact_weapon")) { playCardTable(this, tablePos[4], 4); tableIcon4._alpha = 0; } } else if ((!tablePos[2].used) && (!tablePos[4].used)) { playCardTable(this, tablePos[2], 2); tablePos[4].used = true; tableIcon2._alpha = 0; tableIcon4.gotoAndStop(2); } } else if (this.model == "armor") { if (this.name == "Demon Armor") { achievObj.gameVars.demonWall++; testAchievement(true, 18); } if (this.name == "Golden Armor") { achievObj.gameVars.goldenWall++; testAchievement(true, 19); } playCardTable(this, tablePos[3], 3); tableIcon3._alpha = 0; } 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); tableIcon2._alpha = 0; } else if ((!tablePos[4].used) && (tablePos[2].model != "artifact_shield")) { playCardTable(this, tablePos[4], 4); tableIcon4._alpha = 0; } } else if (this.model == "artifact_item") { if (this.handleType == 1) { if (!tablePos[2].used) { playCardTable(this, tablePos[2], 2); tableIcon2._alpha = 0; } else if (!tablePos[4].used) { playCardTable(this, tablePos[4], 4); tableIcon4._alpha = 0; } } else if ((!tablePos[2].used) && (!tablePos[4].used)) { playCardTable(this, tablePos[2], 2); tablePos[4].used = true; tableIcon2._alpha = 0; tableIcon4.gotoAndStop(2); } } 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")) && (_root.cardsToDiscard > 0)) { discardCard(this); } else if ((_root.currentOver._name == "graveyard") && (_root.originalPos == "tablePos")) { removeCard(this, true); refreshHand = true; } } if (this.currentPos == _root.originalPos) { this._x = _root.currentCardXpos; this._y = _root.currentCardYpos; this.swapDepths(this.oldDepth); } delete _root.originalPos; if (refreshHand) { enableHand("equipPhase"); delete refreshHand; } } if (_root.dragging) { uncolorize(_root.currentOver); delete _root.currentOver.colored; delete _root.currentOver; removeMovieClip("temp_" + this._name); delete _root.dragging; this._alpha = 100; delete _root.currentBelow; Mouse.removeListener(mouseListener); stopDrag(); } if (this.oldDepth_mo) { this.swapDepths(this.oldDepth_mo); } } function connectionTimeOut() { toTimer++; if ((toTimer > 7) && (!_root.opName)) { toTimer = 0; autoMsg("Could not establish connection with your opponent!<br>Returning to lobby..."); if (connectionTimeOutInterval != null) { clearInterval(connectionTimeOutInterval); } if (lobbyAutoReturnInterval != null) { clearInterval(lobbyAutoReturnInterval); } lobbyAutoReturnInterval = setInterval(lobbyAutoReturn, 2000); } else if (_root.opName) { if (connectionTimeOutInterval != null) { clearInterval(connectionTimeOutInterval); } } } function lobbyAutoReturn() { toTimer++; if ((toTimer > 3) && (!_root.opName)) { if (lobbyAutoReturnInterval != null) { clearInterval(lobbyAutoReturnInterval); } loadLobby(); } else if (_root.opName) { autoMsg("Connection established!"); if (lobbyAutoReturnInterval != null) { clearInterval(lobbyAutoReturnInterval); } } } clearGameVariables(); sendAchiev = new Object(); achievObj.gameVars = new Object(); achievObj.gameVars.itemsDestroyed = 0; achievObj.gameVars.totalClasses = 0; achievObj.gameVars.totalTurnDamage = 0; achievObj.gameVars.totalCardsPlayedTurn = 0; achievObj.gameVars.demonWall = 0; achievObj.gameVars.goldenWall = 0; achievObj.gameVars.totalCardsDrawTurn = 0; achievObj.gameVars.totalClassMorphTurn = 0; achievObj.gameVars.risefromashesPlayedTurn = 0; achievObj.gameVars.opDraws = 0; achievObj.gameVars.turnCount = 0; achievObj.gameVars.totalClassMorphMatch = 0; achievObj.gameVars.lifeHealed = 0; achievObj.gameVars.myDraws = 0; achievObj.gameVars.restoreCount = 0; achievObj.gameVars.cardsDiscarded = 0; achievObj.gameVars.retaliationDamage = 0; achievObj.gameVars.birdies = 0; achievObj.gameVars.books = 0; achievObj.gameVars.eForEveryone = 0; achievObj.gameVars.turnCount = 0; achievObj.gameVars.turnHeal = 0; achievObj.gameVars.throws = 0; publicChat[gameRoomID] = ""; gameChat.htmlText = ""; opHandViewer.gotoAndStop(1); opClassDock.gotoAndStop(1); myPlayfield._alpha = 0; classDock._alpha = 0; toTimer = 0; z = 0; w = 0; i = 0; tBytes = 0; xPos = 0; yPos = 0; myLastDamage = 0; opLastDamage = 0; opWeaponPower = 0; defenseHitBack = 0; cardsToDiscard = 0; loadedBackgrounds = 0; myMaxHand = 6; maxLife = 20; lBytes = -380; myLife = maxLife; myHand = 0; myDeck = 0; myDiscard = 0; opMaxLife = 20; opLife = opMaxLife; opHand = 0; opDeck = 0; opDiscard = 0; maxHandCards = 14; revealHandArray = new Array(maxHandCards); w = 0; while (w < maxHandCards) { revealHandArray[w] = 0; w++; } oldMyLife = myLife; oldMyHand = myHand; oldMyDeck = myDeck; oldMyDiscard = myDiscard; currentClass = "Average"; deckOrder = new Array(); discardPileArray = new Array(); whoStartsSentence = " has been randomly selected to start the game."; confirmBoxXpos = 250; confirmBoxYpos = 250; revealHand = 0; enableRevealHand = 0; skipDrawPhase = 0; cannotChangeClass = 0; mustAttack = 0; mustBlock = 0; cannotEquipWeapon = 0; cannotEquipArmor = 0; cannotEquipShield = 0; cannotEquipAmulet = 0; cannotEquipItem = 0; cannotAttack = 0; disableAttack = 0; cannotBlock = 0; disableBlock = 0; cannotUseAbilities = 0; cannotUseUsageAbilities = 0; disableUsageAbilities = 0; cannotUseAttackAbilities = 0; disableAttackAbilities = 0; cannotUseDefenseAbilities = 0; disableDefenseAbilities = 0; cannotUseSpells = 0; cannotUseUsageSpells = 0; disableUsageSpells = 0; cannotUseAttackSpells = 0; disableAttackSpells = 0; cannotUseDefenseSpells = 0; disableDefenseSpells = 0; abilityTurnPower = 0; darkSpellTurnPower = 0; lightSpellTurnPower = 0; natureSpellTurnPower = 0; ignoreArmorAbility = 0; ignoreArmorDarkSpell = 0; ignoreArmorLightSpell = 0; ignoreArmorNatureSpell = 0; instantClassChangeHunter = 0; instantClassChangeAssassin = 0; instantClassChangeKnight = 0; instantClassChangeGladiator = 0; instantClassChangeSorcerer = 0; instantClassChangeWizard = 0; instantClassChangePaladin = 0; instantClassChangeMonk = 0; handDepth = 10; classDepth = 50; opPlayfieldDepth = 100; playfieldDepth = 200; discardDepth = 300; modifierDepth = 400; viewCardDepth = 1000; dragDepth = 5001; confirmBoxDepth = 5000; modifier_Ability = 0; modifier_DarkSpell = 0; modifier_LightSpell = 0; modifier_NatureSpell = 0; powModifier_Bow = 0; powModifier_Crossbow = 0; powModifier_Sword = 0; powModifier_Axe = 0; powModifier_Mace = 0; resModifier_Bow = 0; resModifier_Crossbow = 0; resModifier_Sword = 0; resModifier_Axe = 0; resModifier_Mace = 0; if (privateChat[8] != "") { tabDistance = 35.5; } else if (privateChat[7] != "") { tabDistance = 40; } else if (privateChat[6] != "") { tabDistance = 45; } else if (privateChat[5] != "") { tabDistance = 50; } else { tabDistance = 54; } gameChatTab._x = 11; gameChatTab._y = 399; setTabDistance(11, tabDistance, 399); closeTab._x = 390; closeTab._y = 420; closeTab._alpha = 0; closeTab.enabled = false; if (_root.selectedRoom == tradeRoomID) { tradeChatTab.tabName.htmlText = "<font color='#FFFFFF'>Trade</font>"; gameChatTab.tabName.htmlText = "<font color='#FFFF66'>Game</font>"; _root.selectedRoom = gameRoomID; gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom != gameRoomID) { eval ("privateChatTab" + _root.selectedRoom).tabName.htmlText = ("<font color='#FFFFFF'>" + eval ("privateChatTab" + _root.selectedRoom).privChatName) + "</font>"; gameChatTab.tabName.htmlText = "<font color='#FFFF66'>Game</font>"; _root.selectedRoom = gameRoomID; gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } gameChatTab.onRelease = function () { closeTab._alpha = 0; closeTab.enabled = false; if (_root.selectedRoom == tradeRoomID) { tradeChatTab.tabName.htmlText = "<font color='#FFFFFF'>Trade</font>"; gameChatTab.tabName.htmlText = "<font color='#FFFF66'>Game</font>"; _root.selectedRoom = gameRoomID; gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } else if (_root.selectedRoom != gameRoomID) { eval ("privateChatTab" + _root.selectedRoom).tabName.htmlText = ("<font color='#FFFFFF'>" + eval ("privateChatTab" + _root.selectedRoom).privChatName) + "</font>"; gameChatTab.tabName.htmlText = "<font color='#FFFF66'>Game</font>"; _root.selectedRoom = gameRoomID; gameChat.htmlText = publicChat[gameRoomID]; gameChat.scroll = gameChat.maxscroll; } }; handPos = new Array(); z = 0; while (z < _root.maxHandCards) { if ((z >= 0) && (z < 7)) { xPos = 68 + (52 * z); yPos = 307; } else { xPos = 78 + (52 * (z - 7)); yPos = 316; } handPos.push(new multiDim(0, "", "", false, _root.handDepth + z, xPos, yPos)); z++; } tablePos = new Array(); opTablePos = new Array(); z = 0; while (z <= 8) { switch (z) { case 1 : xPos = 108; yPos = 221; break; case 2 : xPos = 195; yPos = 221; break; case 3 : xPos = 257; yPos = 212; break; case 4 : xPos = 319; yPos = 221; break; case 5 : xPos = 130; yPos = 190; break; case 6 : xPos = 221; yPos = 174; break; case 7 : xPos = 291; yPos = 151; break; case 8 : xPos = 257; yPos = 227; } tablePos.push(new multiDim(0, "", "", false, _root.playfieldDepth + z, xPos, yPos)); opTablePos.push(new multiDim(0, "", "", false, _root.opPlayfieldDepth + z, xPos, yPos - 102)); z++; } classPos = new Array(); classPos.push(new multiDim(0, "", "", false, _root.classDepth + 1, 10, 211)); classPos.push(new multiDim(0, "", "", false, _root.classDepth + 2, 20, 221)); classPos.push(new multiDim(0, "", "", false, _root.classDepth + 3, 30, 231)); modifierPos = new Array(); modifierPos.push(new modMultiDim(false, "", 414, 200)); modifierPos.push(new modMultiDim(false, "", 393, 200)); modifierPos.push(new modMultiDim(false, "", 372, 200)); modifierPos.push(new modMultiDim(false, "", 351, 200)); modifierPos.push(new modMultiDim(false, "", 330, 200)); modifierPos.push(new modMultiDim(false, "", 309, 200)); modifierPos.push(new modMultiDim(false, "", 288, 200)); modifierPos.push(new modMultiDim(false, "", 267, 200)); modifierPos.push(new modMultiDim(false, "", 246, 200)); modifierPos.push(new modMultiDim(false, "", 235, 200)); modifierPos.push(new modMultiDim(false, "", 204, 200)); modifierPos.push(new modMultiDim(false, "", 183, 200)); modifierPos.push(new modMultiDim(false, "", 162, 200)); modifierPos.push(new modMultiDim(false, "", 141, 200)); opModifierPos = new Array(); opModifierPos.push(new modMultiDim(false, "", 414, 104)); opModifierPos.push(new modMultiDim(false, "", 393, 104)); opModifierPos.push(new modMultiDim(false, "", 372, 104)); opModifierPos.push(new modMultiDim(false, "", 351, 104)); opModifierPos.push(new modMultiDim(false, "", 330, 104)); opModifierPos.push(new modMultiDim(false, "", 309, 104)); opModifierPos.push(new modMultiDim(false, "", 288, 104)); opModifierPos.push(new modMultiDim(false, "", 267, 104)); opModifierPos.push(new modMultiDim(false, "", 246, 104)); opModifierPos.push(new modMultiDim(false, "", 235, 104)); opModifierPos.push(new modMultiDim(false, "", 204, 104)); opModifierPos.push(new modMultiDim(false, "", 183, 104)); opModifierPos.push(new modMultiDim(false, "", 162, 104)); opModifierPos.push(new modMultiDim(false, "", 141, 104)); viewMyPicture.createEmptyMovieClip("pictureClip", 1); movieLoader.loadClip((_root.webpage + "/images/game_elements/player_pics/") + _root.myPicture, viewMyPicture.pictureClip); viewMyPicture.pictureClip._xscale = 87; viewMyPicture.pictureClip._yscale = 87; viewMyPicture.pictureClip._x = 0; viewMyPicture.pictureClip._y = 0; helpButton.onRelease = function () { if (_root.autoHelp) { _root.autoHelp = false; this.gotoAndStop(2); localSaves.data.autoHelpOff = true; localSaves.flush(); } else { _root.autoHelp = true; this.gotoAndStop(1); localSaves.data.autoHelpOff = false; localSaves.flush(); } }; var mouseListener = new Object(); mouseListener.onMouseMove = function () { if (_root.dragging._alpha == 100) { startDrag (_root.dragging); _root.dragging._alpha = 40; _root.originalPos = _root.dragging.currentPos; _root.dragging.oldDepth = _root.dragging.getDepth(); _root.dragging.swapDepths(_root.dragDepth); _root.dragging.duplicateMovieClip("temp_" + _root.dragging._name, _root.dragging.oldDepth); eval ("temp_" + _root.dragging._name).gotoAndStop(_root.dragging._currentframe); } if ((_root.cardsToDiscard == 0) && (testHandToPlayfield(_root.dragging))) { draggingOver(myPlayfield); } else if ((_root.originalPos == "handPos") && (_root.cardsToDiscard > 0)) { draggingOver(graveyard); } else if ((((_root.currentPhase == "equipPhase") && (_root.currentPlayerTurn == "my")) && (_root.originalPos == "tablePos")) && ((_root.dragging.type == "Armor") || (_root.dragging.type == "Artifact"))) { draggingOver(graveyard); } else if ((cannotChangeClass == 0) && ((((_root.currentPhase == "equipPhase") && (_root.currentPlayerTurn == "my")) && (_root.originalPos == "tablePos")) && (((_root.dragging.type == "Class") && (!tablePos[5].used)) || (_root.dragging.type == "Subclass")))) { draggingOver(classDock); } }; var myCards = new LoadVars(); myCards.onLoad = function (success) { if (success) { setMyLife(true, maxLife); myDeck = 0; myClasses = 0; achievObj.gameVars.commando = true; achievObj.gameVars.alphaCardsOnly = true; z = 1; while (z <= this.totalCards) { if ((this["type" + z] != "Class") && (this["type" + z] != "Subclass")) { _root.deckOrder.push(z); myDeck++; if (this["type" + z] == "Armor") { achievObj.gameVars.commando = false; } if (this["collection" + z] != "Alpha") { achievObj.gameVars.alphaCardsOnly = false; } } else { drawClassCard(z, this["subtype" + z]); myClasses++; } z++; } achievObj.gameVars.deckTotal = myDeck; achievObj.gameVars.totalClasses = myClasses; myBackground.createEmptyMovieClip("pictureClip", myBackground.getNextHighestDepth()); movieLoader.loadClip((_root.webpage + "/images/game_elements/backgrounds/") + this.loadedBackground, myBackground.pictureClip); _root.loadedBackground = this.loadedBackground; shuffle(deckOrder); shuffle(deckOrder); shuffle(deckOrder); drawCards(5); equalCards1 = 0; equalCards2 = 0; z = 0; while (z <= 4) { if (myCard[handPos[0].idCard].name == myCard[handPos[z].idCard].name) { equalCards1++; } if (myCard[handPos[1].idCard].name == myCard[handPos[z].idCard].name) { equalCards2++; } z++; } if ((equalCards1 == 4) || (equalCards2 == 4)) { testAchievement(true, 85); } if (_root.myGameId == 2) { sendJoinGameTo("player1"); } else { if (!_root.opHand) { autoMsg("Waiting for opponent..."); } if (_root.sendJoinWhenLoaded) { sendJoinGameTo("player2"); delete _root.sendJoinWhenLoaded; } } if (connectionTimeOutInterval != null) { clearInterval(connectionTimeOutInterval); } connectionTimeOutInterval = setInterval(connectionTimeOut, 3000); autoMsg("To turn tips off, click on the \"Help\" button located in the middle of the playfield."); } else { autoMsg("Error loading cards information. Contact support for details (No experience was been lost on this match)."); } }; function gainLife(num) { if ((_root.myLife < _root.maxLife) && (_root.myLife < (_root.lBytes / -19))) { newLife = _root.myLife + num; if (newLife > _root.maxLife) { newLife = _root.maxLife; } achievObj.gameVars.turnHeal = achievObj.gameVars.turnHeal + num; if (achievObj.gameVars.turnHeal >= 10) { testAchievement(true, 90); } if (newLife > 20) { testAchievement(true, 83); } setMyLife(false, newLife); } } function drawCards(num) { z = 0; while (z < num) { if (_root.myDeck > 0) { w = 0; while (w < _root.maxHandCards) { if (_root.myHand >= _root.maxHandCards) { autoMsg("You cannot have more then 14 cards in your hand."); break; } if (!handPos[w].used) { achievObj.gameVars.totalCardsDrawTurn++; _root.myHand++; _root.myDeck--; idDraw = _root.deckOrder.pop(); createCardObj(idDraw, handPos[w], "handPos", w); handPos[w].used = true; handPos[w].idCard = idDraw; solveDrawFunctions(eval ("myCard" + tablePos[2].idCard)); solveDrawFunctions(eval ("myCard" + tablePos[3].idCard)); solveDrawFunctions(eval ("myCard" + tablePos[4].idCard)); solveDrawFunctions(eval ("myCard" + tablePos[8].idCard)); solveOpDrawFunctions(opCard2); solveOpDrawFunctions(opCard3); solveOpDrawFunctions(opCard4); solveOpDrawFunctions(opCard9); delete idDraw; break; } w++; } } else { autoMsg("You have no more cards in your deck."); noMoreCards = true; return; } z++; } } function tap(cardObj) { if (!cardObj.tapped) { cardObj.tapped = true; cardObj._rotation = 90; cardObj._x = cardObj._x + 50; cardObj.infoBox._rotation = -90; cardObj.infoBox._x = 29; cardObj.infoBox._y = 67; if (cardObj.attackCounts) { cardObj.countsBox._rotation = -90; cardObj.countsBox._y = 21; } if (cardObj.idDeck) { sendArtifactUpdate(cardObj); } } } function untap(cardObj) { if (cardObj.tapped) { cardObj.tapped = false; cardObj._rotation = 0; cardObj._x = cardObj._x - 50; cardObj.infoBox._rotation = 0; cardObj.infoBox._x = 6; cardObj.infoBox._y = 50; if (cardObj.attackCounts) { cardObj.countsBox._rotation = 0; cardObj.countsBox._y = 3; } if (cardObj.idDeck) { sendArtifactUpdate(cardObj); } } } function bodyBlock(damage, armorBlock, attackPhase, shieldPower) { defenseHitBack = 0; 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(false, newLife); } if (shieldPower) { defenseHitBack = _root.armorCardObj.powerCount + shieldPower; } else { defenseHitBack = _root.armorCardObj.powerCount; } } else if (shieldPower) { defenseHitBack = shieldPower; } if (_root.armorCardObj.resistenceCount <= 0) { solveDestroyFunctions(_root.armorCardObj); _root.armorCardObj.resistenceCount = 0; if (attackPhase) { sendSolveAttack(defenseHitBack); } removeCard(_root.armorCardObj, false, true); } else if (attackPhase) { sendSolveAttack(defenseHitBack, _root.armorCardObj); } } else { if (shieldPower) { defenseHitBack = shieldPower; } newLife = _root.myLife - damage; setMyLife(false, newLife); if (attackPhase) { sendSolveAttack(defenseHitBack); } } defenseHitBack = 0; } 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") || (_root.opWeaponCardObj.shattering)) { dmgTemp = damage; damage = damage - Math.abs(cardObj.resistence); cardObj.resistence = cardObj.resistence - dmgTemp; if (damage < 0) { damage = 0; } if (condition == "attackPhase") { bodyBlock(damage, true, true, cardObj.powerCount); } else if (condition == "redirectToShield") { if (ignoreArmorRedirectedDamage) { bodyBlock(damage); } else { bodyBlock(damage, true); } } } else { cardObj.resistence = cardObj.resistence - damage; } if (cardObj.resistenceCount <= 0) { cardObj.resistenceCount = 0; solveDestroyFunctions(cardObj); removeCard(cardObj, false, true); } else { sendArtifactUpdate(cardObj); } delete dmgTemp; } function solveMyFunctions(cardObj) { if (cardObj.playfunc1) { readMyFunctions(cardObj.playfunc1, cardObj); } if (cardObj.playfunc2) { readMyFunctions(cardObj.playfunc2, cardObj); } if (cardObj.playfunc3) { readMyFunctions(cardObj.playfunc3, cardObj); } if (cardObj.playfunc4) { readMyFunctions(cardObj.playfunc4, cardObj); } if (cardObj.playfunc5) { readMyFunctions(cardObj.playfunc5, cardObj); } if (cardObj.playfunc6) { readMyFunctions(cardObj.playfunc6, cardObj); } } function solveRemoveFunctions(cardObj) { if (cardObj.removefunc1) { if (cardObj.removefunc1.substr(0, 11) == "hitOpponent") { cardObj.removefunc1 = changeAttackFunction(cardObj.removefunc1, 0, 0, cardObj); } readMyFunctions(cardObj.removefunc1, cardObj); } if (cardObj.removefunc2) { if (cardObj.removefunc2.substr(0, 11) == "hitOpponent") { cardObj.removefunc2 = changeAttackFunction(cardObj.removefunc2, 0, 0, cardObj); } readMyFunctions(cardObj.removefunc2, cardObj); } if (cardObj.removefunc3) { if (cardObj.removefunc3.substr(0, 11) == "hitOpponent") { cardObj.removefunc3 = changeAttackFunction(cardObj.removefunc3, 0, 0, cardObj); } readMyFunctions(cardObj.removefunc3, cardObj); } } function solveBlockedFunctions(cardObj) { if (cardObj.attackblockfunc1) { if (cardObj.attackblockfunc1.substr(0, 11) == "hitOpponent") { cardObj.attackblockfunc1 = changeAttackFunction(cardObj.attackblockfunc1, 0, 0, cardObj); } readMyFunctions(cardObj.attackblockfunc1, cardObj); } if (cardObj.attackblockfunc2) { if (cardObj.attackblockfunc2.substr(0, 11) == "hitOpponent") { cardObj.attackblockfunc2 = changeAttackFunction(cardObj.attackblockfunc2, 0, 0, cardObj); } readMyFunctions(cardObj.attackblockfunc2, cardObj); } } function solveUnblockedFunctions(cardObj) { if (cardObj.attackfunc1) { if (cardObj.attackfunc1.substr(0, 11) == "hitOpponent") { cardObj.attackfunc1 = changeAttackFunction(cardObj.attackfunc1, 0, 0, cardObj); } readMyFunctions(cardObj.attackfunc1, cardObj); } if (cardObj.attackfunc2) { if (cardObj.attackfunc2.substr(0, 11) == "hitOpponent") { cardObj.attackfunc2 = changeAttackFunction(cardObj.attackfunc2, 0, 0, cardObj); } readMyFunctions(cardObj.attackfunc2, cardObj); } } function solveDestroyFunctions(cardObj) { if (cardObj.destroyfunc1) { if (cardObj.destroyfunc1.substr(0, 11) == "hitOpponent") { cardObj.destroyfunc1 = changeAttackFunction(cardObj.destroyfunc1, 0, 0, cardObj); } readMyFunctions(cardObj.destroyfunc1, cardObj); } if (cardObj.destroyfunc2) { if (cardObj.destroyfunc2.substr(0, 11) == "hitOpponent") { cardObj.destroyfunc2 = changeAttackFunction(cardObj.destroyfunc2, 0, 0, cardObj); } readMyFunctions(cardObj.destroyfunc2, cardObj); } } function solveAttackedbyFunctions(cardObj) { if (cardObj.attackedbyfunc1) { if (cardObj.attackedbyfunc1.substr(0, 11) == "hitOpponent") { cardObj.attackedbyfunc1 = changeAttackFunction(cardObj.attackedbyfunc1, 0, 0, cardObj); } readMyFunctions(cardObj.attackedbyfunc1, cardObj); } if (cardObj.attackedbyfunc2) { if (cardObj.attackedbyfunc2.substr(0, 11) == "hitOpponent") { cardObj.attackedbyfunc2 = changeAttackFunction(cardObj.attackedbyfunc2, 0, 0, cardObj); } readMyFunctions(cardObj.attackedbyfunc2, cardObj); } } function solveItemBlockFunctions(cardObj) { if (cardObj.itemblockfunc1) { readMyFunctions(cardObj.itemblockfunc1, cardObj); } if (cardObj.itemblockfunc2) { readMyFunctions(cardObj.itemblockfunc2, cardObj); } } function solveDrawFunctions(cardObj) { if (cardObj.drawfunc1) { if (cardObj.drawfunc1.substr(0, 11) == "hitOpponent") { cardObj.drawfunc1 = changeAttackFunction(cardObj.drawfunc1, 0, 0, cardObj); } readMyFunctions(cardObj.drawfunc1, cardObj); } if (cardObj.drawfunc2) { if (cardObj.drawfunc2.substr(0, 11) == "hitOpponent") { cardObj.drawfunc2 = changeAttackFunction(cardObj.drawfunc2, 0, 0, cardObj); } readMyFunctions(cardObj.drawfunc2, cardObj); } } function solveOpDrawFunctionsFromMyCards(cardObj) { if (cardObj.opdrawfunc1) { if (cardObj.opdrawfunc1.substr(0, 11) == "hitOpponent") { cardObj.opdrawfunc1 = changeAttackFunction(cardObj.opdrawfunc1, 0, 0, cardObj); } readMyFunctions(cardObj.opdrawfunc1, cardObj); } if (cardObj.opdrawfunc2) { if (cardObj.opdrawfunc2.substr(0, 11) == "hitOpponent") { cardObj.opdrawfunc2 = changeAttackFunction(cardObj.opdrawfunc2, 0, 0, cardObj); } readMyFunctions(cardObj.opdrawfunc2, cardObj); } } function solveDiscardFunctions(cardObj) { if (cardObj.discardfunc1) { if (cardObj.discardfunc1.substr(0, 11) == "hitOpponent") { cardObj.discardfunc1 = changeAttackFunction(cardObj.discardfunc1, 0, 0, cardObj); } readMyFunctions(cardObj.discardfunc1, cardObj); } if (cardObj.discardfunc2) { if (cardObj.discardfunc2.substr(0, 11) == "hitOpponent") { cardObj.discardfunc2 = changeAttackFunction(cardObj.discardfunc2, 0, 0, cardObj); } readMyFunctions(cardObj.discardfunc2, cardObj); } } function solveOpDiscardFunctionsFromMyCards(cardObj) { if (cardObj.opdiscardfunc1) { if (cardObj.opdiscardfunc1.substr(0, 11) == "hitOpponent") { cardObj.opdiscardfunc1 = changeAttackFunction(cardObj.opdiscardfunc1, 0, 0, cardObj); } readMyFunctions(cardObj.opdiscardfunc1, cardObj); } if (cardObj.opdiscardfunc2) { if (cardObj.opdiscardfunc2.substr(0, 11) == "hitOpponent") { cardObj.opdiscardfunc2 = changeAttackFunction(cardObj.opdiscardfunc2, 0, 0, cardObj); } readMyFunctions(cardObj.opdiscardfunc2, cardObj); } } function solveZeroACFunctions(cardObj) { if (cardObj.zeroACfunc1) { if (cardObj.zeroACfunc1.substr(0, 11) == "hitOpponent") { cardObj.zeroACfunc1 = changeAttackFunction(cardObj.zeroACfunc1, 0, 0, cardObj); } readMyFunctions(cardObj.zeroACfunc1, cardObj); } if (cardObj.zeroACfunc2) { if (cardObj.zeroACfunc2.substr(0, 11) == "hitOpponent") { cardObj.zeroACfunc2 = changeAttackFunction(cardObj.zeroACfunc2, 0, 0, cardObj); } readMyFunctions(cardObj.zeroACfunc2, cardObj); } } function solveTurnBeginsFunctions(cardObj) { if (cardObj.turnbeginsfunc1) { if (cardObj.turnbeginsfunc1.substr(0, 11) == "hitOpponent") { cardObj.turnbeginsfunc1 = changeAttackFunction(cardObj.turnbeginsfunc1, 0, 0, cardObj); } sendSolveCardFunction(cardObj, cardObj.turnbeginsfunc1); readMyFunctions(cardObj.turnbeginsfunc1, cardObj); } if (cardObj.turnbeginsfunc2) { if (cardObj.turnbeginsfunc2.substr(0, 11) == "hitOpponent") { cardObj.turnbeginsfunc2 = changeAttackFunction(cardObj.turnbeginsfunc2, 0, 0, cardObj); } sendSolveCardFunction(cardObj, cardObj.turnbeginsfunc2); readMyFunctions(cardObj.turnbeginsfunc2, cardObj); } } function solveTurnEndsFunctions(cardObj) { if (cardObj.turnendsfunc1) { if (cardObj.turnendsfunc1.substr(0, 11) == "hitOpponent") { cardObj.turnendsfunc1 = changeAttackFunction(cardObj.turnendsfunc1, 0, 0, cardObj); } sendSolveCardFunction(cardObj, cardObj.turnendsfunc1); readMyFunctions(cardObj.turnendsfunc1, cardObj); } if (cardObj.turnendsfunc2) { if (cardObj.turnendsfunc2.substr(0, 11) == "hitOpponent") { cardObj.turnendsfunc2 = changeAttackFunction(cardObj.turnendsfunc2, 0, 0, cardObj); } sendSolveCardFunction(cardObj, cardObj.turnendsfunc2); readMyFunctions(cardObj.turnendsfunc2, cardObj); } } function solveOpAttackBlockedFunctions(cardObj) { if (cardObj.attackblockfunc1) { readOpFunctions(cardObj.attackblockfunc1, cardObj); } if (cardObj.attackblockfunc2) { readOpFunctions(cardObj.attackblockfunc2, cardObj); } } function solveOpAttackUnblockedFunctions(cardObj) { if (cardObj.attackfunc1) { readOpFunctions(cardObj.attackfunc1, cardObj); } if (cardObj.attackfunc2) { readOpFunctions(cardObj.attackfunc2, cardObj); } } function solveOpAttackedbyFunctions(cardObj) { if (cardObj.attackedbyfunc1) { readOpFunctions(cardObj.attackedbyfunc1, cardObj); } if (cardObj.attackedbyfunc2) { readOpFunctions(cardObj.attackedbyfunc2, cardObj); } } function solveOpDrawFunctions(cardObj) { if (cardObj.opdrawfunc1) { readOpFunctions(cardObj.opdrawfunc1, cardObj); } if (cardObj.opdrawfunc2) { readOpFunctions(cardObj.opdrawfunc2, cardObj); } } function solveOpDrawFunctionsFromOpCards(cardObj) { if (cardObj.drawfunc1) { readOpFunctions(cardObj.drawfunc1, cardObj); } if (cardObj.drawfunc2) { readOpFunctions(cardObj.drawfunc2, cardObj); } } function solveOpDiscardFunctions(cardObj) { if (cardObj.opdiscardfunc1) { readOpFunctions(cardObj.opdiscardfunc1, cardObj); } if (cardObj.opdiscardfunc2) { readOpFunctions(cardObj.opdiscardfunc2, cardObj); } } function solveOpDiscardFunctionsFromOpCards(cardObj) { if (cardObj.discardfunc1) { readOpFunctions(cardObj.discardfunc1, cardObj); } if (cardObj.discardfunc2) { readOpFunctions(cardObj.discardfunc2, cardObj); } } function parameterTranslator(tParam) { v = 0; if (((tParam == "opweapon pow") || (tParam == "op weapon pow")) && (opCard2._currentframe == 15)) { return(opCard2.powerCount); } if (((tParam == "opweapon pow") || (tParam == "op weapon pow")) && (opCard4._currentframe == 15)) { return(opCard4.powerCount); } if (((tParam == "opweapon res") || (tParam == "op weapon res")) && (opCard2._currentframe == 15)) { return(opCard2.resistenceCount); } if (((tParam == "opweapon res") || (tParam == "op weapon res")) && (opCard4._currentframe == 15)) { return(opCard4.resistenceCount); } if (((tParam == "opweapon ac") || (tParam == "op weapon ac")) && (opCard2._currentframe == 15)) { if (opCard2.attackCounts) { return(opCard2.attackCounts); } return(0); } if (((tParam == "opweapon ac") || (tParam == "op weapon ac")) && (opCard4._currentframe == 15)) { if (opCard4.attackCounts) { return(opCard4.attackCounts); } return(0); } if ((tParam == "opattack") || (tParam == "op attack")) { return(_root.myLastDamage); } if (tParam == "last attack") { return(_root.opLastDamage); } if ((tParam == "ophand") || (tParam == "op hand")) { return(_root.opHand); } if (tParam == "my hand") { return(_root.myHand); } if ((tParam == "opitems x2") || (tParam == "op items x2")) { if (opCard2.idCard > 0) { v++; } if (opCard3.idCard > 0) { v++; } if (opCard4.idCard > 0) { v++; } if (opCard8.idCard > 0) { v++; } v = v * 2; return(v); } if ((tParam == "opitems") || (tParam == "op items")) { if (opCard2.idCard > 0) { v++; } if (opCard3.idCard > 0) { v++; } if (opCard4.idCard > 0) { v++; } if (opCard8.idCard > 0) { v++; } return(v); } if (((tParam == "oparmor res") || (tParam == "op armor res")) || (tParam == "op armor")) { if (opCard3.idCard > 0) { return(opCard3.resistenceCount); } } else if (((tParam == "opshield res") || (tParam == "op shield res")) || (tParam == "op shield")) { if (opCard2._currentframe == 14) { return(opCard2.resistenceCount); } if (opCard4._currentframe == 14) { return(opCard4.resistenceCount); } } else if (tParam == "armor res") { if (_root.armorCardObj) { return(_root.armorCardObj.resistenceCount); } } else if (tParam == "weapon pow") { if (_root.weaponCardObj) { return(_root.weaponCardObj.powerCount); } } else if (tParam == "weapon res") { if (_root.weaponCardObj) { return(_root.weaponCardObj.resistenceCount); } } else if (tParam == "shield res") { if (_root.shieldCardObj) { return(_root.shieldCardObj.resistenceCount); } } else { if (tParam == "attack counts") { if (cardObj.attackCounts) { return(cardObj.attackCounts); } return(0); } if (tParam == "weapon ac") { if (_root.weaponCardObj.attackCounts) { return(_root.weaponCardObj.attackCounts); } return(0); } if (tParam == "my items x2") { if (tablePos[2].used) { v++; } if (tablePos[3].used) { v++; } if (tablePos[4].used) { v++; } if (tablePos[8].used) { v++; } v = v * 2; return(v); } if (tParam == "my items") { if (tablePos[2].used) { v++; } if (tablePos[3].used) { v++; } if (tablePos[4].used) { v++; } if (tablePos[8].used) { v++; } return(v); } return(tParam); } } function opParameterTranslator(tParam) { v = 0; if ((tParam == "weapon pow") && (opCard2._currentframe == 15)) { return(opCard2.powerCount); } if ((tParam == "weapon pow") && (opCard4._currentframe == 15)) { return(opCard4.powerCount); } if ((tParam == "weapon res") && (opCard2._currentframe == 15)) { return(opCard2.resistenceCount); } if ((tParam == "weapon res") && (opCard4._currentframe == 15)) { return(opCard4.resistenceCount); } if ((tParam == "weapon ac") && (opCard2._currentframe == 15)) { if (opCard2.attackCounts) { return(opCard2.attackCounts); } return(0); } if ((tParam == "weapon ac") && (opCard4._currentframe == 15)) { if (opCard4.attackCounts) { return(opCard4.attackCounts); } return(0); } if ((tParam == "opattack") || (tParam == "op attack")) { return(_root.opLastDamage); } if (tParam == "last attack") { return(_root.myLastDamage); } if (tParam == "my hand") { return(_root.opHand); } if ((tParam == "ophand") || (tParam == "op hand")) { return(_root.myHand); } if (tParam == "my items x2") { if (opCard2.idCard > 0) { v++; } if (opCard3.idCard > 0) { v++; } if (opCard4.idCard > 0) { v++; } if (opCard8.idCard > 0) { v++; } v = v * 2; return(v); } if (tParam == "my items") { if (opCard2.idCard > 0) { v++; } if (opCard3.idCard > 0) { v++; } if (opCard4.idCard > 0) { v++; } if (opCard8.idCard > 0) { v++; } return(v); } if (tParam == "armor res") { if (opCard3.idCard > 0) { return(opCard3.resistenceCount); } } else if (tParam == "shield res") { if (opCard2._currentframe == 14) { return(opCard2.resistenceCount); } if (opCard4._currentframe == 14) { return(opCard4.resistenceCount); } } else if (((tParam == "oparmor res") || (tParam == "op armor res")) || (tParam == "op armor")) { if (_root.armorCardObj) { return(_root.armorCardObj.resistenceCount); } } else if ((tParam == "opweapon pow") || (tParam == "op weapon pow")) { if (_root.weaponCardObj) { return(_root.weaponCardObj.powerCount); } } else if ((tParam == "opweapon res") || (tParam == "op weapon res")) { if (_root.weaponCardObj) { return(_root.weaponCardObj.resistenceCount); } } else if (((tParam == "opshield res") || (tParam == "op shield res")) || (tParam == "op shield")) { if (_root.shieldCardObj) { return(_root.shieldCardObj.resistenceCount); } } else { if (tParam == "attack counts") { if (cardObj.attackCounts) { return(cardObj.attackCounts); } return(0); } if ((tParam == "opweapon ac") || (tParam == "op weapon ac")) { if (_root.weaponCardObj.attackCounts) { return(_root.weaponCardObj.attackCounts); } return(0); } if ((tParam == "opitems x2") || (tParam == "op items x2")) { if (tablePos[2].used) { v++; } if (tablePos[3].used) { v++; } if (tablePos[4].used) { v++; } if (tablePos[8].used) { v++; } v = v * 2; return(v); } if ((tParam == "opitems") || (tParam == "op items")) { if (tablePos[2].used) { v++; } if (tablePos[3].used) { v++; } if (tablePos[4].used) { v++; } if (tablePos[8].used) { v++; } return(v); } return(tParam); } } 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(")")); param2 = parameterTranslator(param2); } else { param1 = func.substring(func.indexOf("(") + 1, func.indexOf(")")); param2 = false; } param1 = parameterTranslator(param1); if (nameOfFunc == "opDrawsCards") { achievObj.gameVars.opDraws++; if (achievObj.gameVars.opDraws >= 5) { testAchievement(true, 56); } } if (nameOfFunc == "opRevealHand") { testAchievement(true, 64); if (opHand == 1) { testAchievement(true, 66); } } if (nameOfFunc == "hitOpponent") { achievObj.gameVars.damageDelt = true; achievObj.gameVars.totalTurnDamage = achievObj.gameVars.totalTurnDamage + Number(param1); if (cardObj.name == "Payback") { if (Number(param1) >= 6) { testAchievement(true, 49); } } else if (cardObj.name == "Prolet Lariat") { if (Number(param1) >= 7) { testAchievement(true, 78); } } else if (cardObj.name == "Explosion") { if (Number(param1) >= 10) { testAchievement(true, 79); } } if (_root.currentPlayerTurn == "op") { achievObj.gameVars.retaliationDamage = achievObj.gameVars.retaliationDamage + hit; testAchievement(true, 74); } } 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 == "splinter") { cardObj.splinter = true; } if (nameOfFunc == "shattering") { cardObj.shattering = true; } if (nameOfFunc == "skipDrawPhase") { if (_root.skipDrawPhase < Number(param1)) { _root.skipDrawPhase = Number(param1); } } if (nameOfFunc == "setAttackCounts") { cardObj.attachMovie("countsBox", "countsBox", cardObj.getNextHighestDepth()); cardObj.countsBox._x = 3; cardObj.countsBox._y = 3; cardObj.attackCounts = Number(param1); } if (nameOfFunc == "cannotBlock") { cardObj.cannotBlock = true; } if (nameOfFunc == "changeToClass") { if (_root.classCardObj.subtype != param1) { if (_root.classCardObj) { sendRemoveCard(_root.classCardObj); returnClassCard(_root.classCardObj); } if (classPos[0].subtype == param1) { cardObjTemp = eval ("myCard" + classPos[0].idCard); } if (classPos[1].subtype == param1) { cardObjTemp = eval ("myCard" + classPos[1].idCard); } if (classPos[2].subtype == param1) { cardObjTemp = eval ("myCard" + classPos[2].idCard); } if (cardObjTemp) { achievObj.gameVars.totalClassMorphTurn++; achievObj.gameVars.totalClassMorphMatch++; testAchievement(true, 23); _root.stayPut = true; playCardTable(cardObjTemp, tablePos[1], 1); } } } if (nameOfFunc == "changeMaxLife") { _root.maxLife = _root.maxLife + Number(param1); _root.lBytes = _root.lBytes - (Number(param1) * 19); if (_root.myLife > _root.maxLife) { setMyLife(false, _root.maxLife); } } if (nameOfFunc == "changeOpMaxLife") { _root.opMaxLife = _root.opMaxLife + Number(param1); } if (nameOfFunc == "instantClassChange") { if ((_root.instantClassChangeHunter < Number(param1)) && (param2 == "Hunter")) { _root.instantClassChangeHunter = Number(param1); } if ((_root.instantClassChangeAssassin < Number(param1)) && (param2 == "Assassin")) { _root.instantClassChangeAssassin = Number(param1); } if ((_root.instantClassChangeKnight < Number(param1)) && (param2 == "Knight")) { _root.instantClassChangeKnight = Number(param1); } if ((_root.instantClassChangeGladiator < Number(param1)) && (param2 == "Gladiator")) { _root.instantClassChangeGladiator = Number(param1); } if ((_root.instantClassChangeSorcerer < Number(param1)) && (param2 == "Sorcerer")) { _root.instantClassChangeSorcerer = Number(param1); } if ((_root.instantClassChangeWizard < Number(param1)) && (param2 == "Wizard")) { _root.instantClassChangeWizard = Number(param1); } if ((_root.instantClassChangePaladin < Number(param1)) && (param2 == "Paladin")) { _root.instantClassChangePaladin = Number(param1); } if ((_root.instantClassChangeMonk < Number(param1)) && (param2 == "Monk")) { _root.instantClassChangeMonk = Number(param1); } if (!param2) { if (_root.instantClassChangeHunter < Number(param1)) { _root.instantClassChangeHunter = Number(param1); } if (_root.instantClassChangeAssassin < Number(param1)) { _root.instantClassChangeAssassin = Number(param1); } if (_root.instantClassChangeKnight < Number(param1)) { _root.instantClassChangeKnight = Number(param1); } if (_root.instantClassChangeGladiator < Number(param1)) { _root.instantClassChangeGladiator = Number(param1); } if (_root.instantClassChangeSorcerer < Number(param1)) { _root.instantClassChangeSorcerer = Number(param1); } if (_root.instantClassChangeWizard < Number(param1)) { _root.instantClassChangeWizard = Number(param1); } if (_root.instantClassChangePaladin < Number(param1)) { _root.instantClassChangePaladin = Number(param1); } if (_root.instantClassChangeMonk < Number(param1)) { _root.instantClassChangeMonk = Number(param1); } } } if (nameOfFunc == "mustAttack") { if (((_root.currentPhase == "spellPhase") || (_root.currentPhase == "attackPhase")) && (_root.currentPlayerTurn == "my")) { if (_root.mustAttack <= Number(param1)) { _root.mustAttack = Number(param1) + 1; } } else if (_root.mustAttack < Number(param1)) { _root.mustAttack = Number(param1); } } if (nameOfFunc == "mustBlock") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "op")) { if (_root.mustBlock <= Number(param1)) { _root.mustBlock = Number(param1) + 1; } } else if (_root.mustBlock < Number(param1)) { _root.mustBlock = Number(param1); } } if (nameOfFunc == "unableToAttack") { if (((_root.currentPhase == "spellPhase") || (_root.currentPhase == "attackPhase")) && (_root.currentPlayerTurn == "my")) { if (_root.cannotAttack <= Number(param1)) { _root.cannotAttack = Number(param1) + 1; } } else if (_root.cannotAttack < Number(param1)) { _root.cannotAttack = Number(param1); } } if (nameOfFunc == "unableToBlock") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "op")) { if (_root.cannotBlock <= Number(param1)) { _root.cannotBlock = Number(param1) + 1; } } else if (_root.cannotBlock < Number(param1)) { _root.cannotBlock = Number(param1); } } if (nameOfFunc == "unableToDefenseSpells") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "op")) { if (_root.cannotUseDefenseSpells <= Number(param1)) { _root.cannotUseDefenseSpells = Number(param1) + 1; } } else if (_root.cannotUseDefenseSpells < Number(param1)) { _root.cannotUseDefenseSpells = Number(param1); } } if (nameOfFunc == "unableToAttackSpells") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseAttackSpells <= Number(param1)) { _root.cannotUseAttackSpells = Number(param1) + 1; } } else if (_root.cannotUseAttackSpells < Number(param1)) { _root.cannotUseAttackSpells = Number(param1); } } if (nameOfFunc == "unableToUsageSpells") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseUsageSpells <= Number(param1)) { _root.cannotUseUsageSpells = Number(param1) + 1; } } else if (_root.cannotUseUsageSpells < Number(param1)) { _root.cannotUseUsageSpells = Number(param1); } } if (nameOfFunc == "unableToDefenseAbilities") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "op")) { if (_root.cannotUseDefenseAbilities <= Number(param1)) { _root.cannotUseDefenseAbilities = Number(param1) + 1; } } else if (_root.cannotUseDefenseAbilities < Number(param1)) { _root.cannotUseDefenseAbilities = Number(param1); } } if (nameOfFunc == "unableToAttackAbilities") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseAttackAbilities <= Number(param1)) { _root.cannotUseAttackAbilities = Number(param1) + 1; } } else if (_root.cannotUseAttackAbilities < Number(param1)) { _root.cannotUseAttackAbilities = Number(param1); } } if (nameOfFunc == "unableToUsageAbilities") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "my")) { if (_root.cannotUseUsageAbilities <= Number(param1)) { _root.cannotUseUsageAbilities = Number(param1) + 1; } } else if (_root.cannotUseUsageAbilities < Number(param1)) { _root.cannotUseUsageAbilities = Number(param1); } } if (nameOfFunc == "shuffle") { shuffle(deckOrder); } if (nameOfFunc == "drawCards") { achievObj.gameVars.myDraws = achievObj.gameVars.myDraws + Number(param1); if (achievObj.gameVars.myDraws >= 20) { testAchievement(true, 67); } drawCards(Number(param1)); } if (nameOfFunc == "changeMaxHand") { _root.myMaxHand = _root.myMaxHand + Number(param1); } if (nameOfFunc == "setHandSize") { if (_root.myHand < Number(param1)) { drawCards(Number(param1) - _root.myHand); } else if (_root.myHand > Number(param1)) { toDiscard = _root.myHand - Number(param1); z = 0; while (z < toDiscard) { if (_root.myHand > 0) { cardToDiscard = new Array(_root.myHand); t = 0; while (t < _root.myHand) { cardToDiscard[t] = t; t++; } shuffle(cardToDiscard); discardCard(eval ("myCard" + handPos[cardToDiscard[0]].idCard)); delete cardToDiscard; } z++; } delete toDiscard; } } if (nameOfFunc == "discardCards") { if (param2 == "random") { toDiscard = Number(param1); z = 0; while (z < toDiscard) { if (_root.myHand > 0) { cardToDiscard = new Array(_root.myHand); t = 0; while (t < _root.myHand) { cardToDiscard[t] = t; t++; } shuffle(cardToDiscard); discardCard(eval ("myCard" + handPos[cardToDiscard[0]].idCard)); delete cardToDiscard; } z++; } delete toDiscard; } else if (param2 == "select") { if (_root.myHand > 0) { _root.cardsToDiscard = _root.cardsToDiscard + Number(param1); } } } if (nameOfFunc == "handToDeck") { toDeck = Number(param1); if (param2 == "random") { z = 0; while (z < toDeck) { if (_root.myHand > 0) { _root.myDeck++; randomHandId = Math.floor(Math.random() * _root.myHand); idCardTemp = handPos[randomHandId].idCard; arrangeHand(eval ("myCard" + idCardTemp)); _root.deckOrder.push(eval ("myCard" + idCardTemp).idDraw); eval ("myCard" + idCardTemp).removeMovieClip(); delete randomHandId; delete idCardTemp; } z++; } } delete toDeck; } if (nameOfFunc == "returnToHand") { if (param2 == "weapon") { cardObjTemp = _root.weaponCardObj; } if (param2 == "shield") { cardObjTemp = _root.shieldCardObj; } if (param2 == "armor") { cardObjTemp = _root.armorCardObj; } if (cardObjTemp) { cardObjTemp.retract = true; artifactBlock(cardObjTemp, 50); } if ((param2 == "bag") && (_root.itemCardObj1.subtype == "Bag")) { _root.itemCardObj1.retract = true; artifactBlock(_root.itemCardObj1, 50); } if ((param2 == "orb") && (_root.itemCardObj1.subtype == "Orb")) { _root.itemCardObj1.retract = true; artifactBlock(_root.itemCardObj1, 50); } if ((param2 == "book") && (_root.itemCardObj1.subtype == "Book")) { _root.itemCardObj1.retract = true; artifactBlock(_root.itemCardObj1, 50); } if ((param2 == "flask") && (_root.itemCardObj1.subtype == "Flask")) { _root.itemCardObj1.retract = true; artifactBlock(_root.itemCardObj1, 50); } if ((param2 == "bag") && (_root.itemCardObj2.subtype == "Bag")) { _root.itemCardObj2.retract = true; artifactBlock(_root.itemCardObj2, 50); } if ((param2 == "orb") && (_root.itemCardObj2.subtype == "Orb")) { _root.itemCardObj2.retract = true; artifactBlock(_root.itemCardObj2, 50); } if ((param2 == "book") && (_root.itemCardObj2.subtype == "Book")) { _root.itemCardObj2.retract = true; artifactBlock(_root.itemCardObj2, 50); } if ((param2 == "flask") && (_root.itemCardObj2.subtype == "Flask")) { _root.itemCardObj2.retract = true; artifactBlock(_root.itemCardObj2, 50); } } if (nameOfFunc == "retract") { cardObj.retract = true; } if (nameOfFunc == "revealHand") { if (_root.revealHand < Number(param1)) { _root.revealHand = Number(param1); } } if (nameOfFunc == "removeRetract") { if ((param1 == "all") || (!param1)) { if (eval ("myCard" + tablePos[2].idCard)) { delete eval ("myCard" + tablePos[2].idCard).retract; } if (eval ("myCard" + tablePos[3].idCard)) { delete eval ("myCard" + tablePos[3].idCard).retract; } if (eval ("myCard" + tablePos[4].idCard)) { delete eval ("myCard" + tablePos[4].idCard).retract; } if (eval ("myCard" + tablePos[8].idCard)) { delete eval ("myCard" + tablePos[8].idCard).retract; } } else { if (param1 == "weapon") { cardObjTemp = _root.weaponCardObj; } if (param1 == "shield") { cardObjTemp = _root.shieldCardObj; } if (param1 == "armor") { cardObjTemp = _root.armorCardObj; } if (cardObjTemp) { delete cardObjTemp.retract; } if ((param1 == "bag") && (_root.itemCardObj1.subtype == "Bag")) { delete itemCardObj1.retract; } if ((param1 == "orb") && (_root.itemCardObj1.subtype == "Orb")) { delete itemCardObj1.retract; } if ((param1 == "book") && (_root.itemCardObj1.subtype == "Book")) { delete itemCardObj1.retract; } if ((param1 == "flask") && (_root.itemCardObj1.subtype == "Flask")) { delete itemCardObj1.retract; } if ((param1 == "bag") && (_root.itemCardObj2.subtype == "Bag")) { delete itemCardObj2.retract; } if ((param1 == "orb") && (_root.itemCardObj2.subtype == "Orb")) { delete itemCardObj2.retract; } if ((param1 == "book") && (_root.itemCardObj2.subtype == "Book")) { delete itemCardObj2.retract; } if ((param1 == "flask") && (_root.itemCardObj2.subtype == "Flask")) { delete itemCardObj2.retract; } } } if (nameOfFunc == "graveToHand") { toHand = Number(param1); z = 0; while (z < toHand) { if (_root.myDiscard > 0) { if (param2 == "bottom") { idDraw = _root.discardPileArray.shift(); } else if ((param2 == "top") || (!param2)) { idDraw = _root.discardPileArray.pop(); } else if (param2 == "random") { discardPileTemp = _root.discardPileArray.copy(); shuffle(discardPileTemp); idDraw = discardPileTemp.pop(); _root.discardPileArray.splice(_root.discardPileArray.indexOf(idDraw), 1); delete discardPileTemp; } w = 0; while (w < _root.maxHandCards) { if (!handPos[w].used) { _root.myHand++; _root.myDiscard--; createCardObj(idDraw, handPos[w], "handPos", w); handPos[w].used = true; handPos[w].idCard = idDraw; break; } w++; } delete idDraw; } z++; } delete toHand; } if (nameOfFunc == "deckToGrave") { toGrave = Number(param1); z = 0; while (z < toGrave) { if (_root.myDeck > 0) { _root.myDeck--; _root.myDiscard++; if (param2 == "bottom") { idDraw = _root.deckOrder.shift(); _root.discardPileArray.push(idDraw); } else if ((param2 == "top") || (!param2)) { idDraw = _root.deckOrder.pop(); _root.discardPileArray.push(idDraw); } else if (param2 == "random") { deckOrderTemp = _root.deckOrder.copy(); shuffle(deckOrderTemp); idDraw = deckOrderTemp.pop(); _root.deckOrder.splice(_root.deckOrder.indexOf(idDraw), 1); _root.discardPileArray.push(idDraw); delete deckOrderTemp; } autoMsg(eval ("myCards.name" + idDraw) + " was put in the graveyard."); delete idDraw; } z++; } delete toGrave; } if (nameOfFunc == "graveToDeck") { toDeck = Number(param1); z = 0; while (z < toDeck) { if (_root.myDiscard > 0) { _root.myDiscard--; _root.myDeck++; if (param2 == "bottom") { idDraw = _root.discardPileArray.shift(); _root.deckOrder.push(idDraw); } else if ((param2 == "top") || (!param2)) { idDraw = _root.discardPileArray.pop(); _root.deckOrder.push(idDraw); } else if (param2 == "random") { discardPileTemp = _root.discardPileArray.copy(); shuffle(discardPileTemp); idDraw = discardPileTemp.pop(); _root.discardPileArray.splice(_root.discardPileArray.indexOf(idDraw), 1); _root.deckOrder.push(idDraw); delete discardPileTemp; } delete idDraw; } z++; } delete toDeck; } if (nameOfFunc == "gainLife") { if (!isNaN(param1 * 1)) { gainLife(Number(param1)); } } if (nameOfFunc == "loseLife") { if (!isNaN(param1 * 1)) { damage = Number(param1); } if (param2 == "true") { bodyBlock(damage, true); } else { bodyBlock(damage); } if (gameisOver) { testAchievement(true, 20); } } if (nameOfFunc == "hitOwnArtifact") { if (((param2 == "self") || (!param2)) && (cardObj.resistenceCount != undefined)) { cardObjTemp = cardObj; } 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 == "book") && (_root.itemCardObj1.subtype == "Book")) { artifactBlock(_root.itemCardObj1, Number(param1)); } if ((param2 == "flask") && (_root.itemCardObj1.subtype == "Flask")) { 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 ((param2 == "book") && (_root.itemCardObj2.subtype == "Book")) { artifactBlock(_root.itemCardObj2, Number(param1)); } if ((param2 == "flask") && (_root.itemCardObj2.subtype == "Flask")) { artifactBlock(_root.itemCardObj2, Number(param1)); } } if (nameOfFunc == "hitAllArtifacts") { if ((param2 == "me") || (!param2)) { pTemp = Number(param1); if (eval ("myCard" + tablePos[2].idCard)) { artifactBlock(eval ("myCard" + tablePos[2].idCard), pTemp); } if (eval ("myCard" + tablePos[3].idCard)) { artifactBlock(eval ("myCard" + tablePos[3].idCard), pTemp); } if (eval ("myCard" + tablePos[4].idCard)) { artifactBlock(eval ("myCard" + tablePos[4].idCard), pTemp); } if (eval ("myCard" + tablePos[8].idCard)) { artifactBlock(eval ("myCard" + tablePos[8].idCard), pTemp); } delete pTemp; } } if (nameOfFunc == "restore") { if ((param1 == "weapon") && (_root.weaponCardObj)) { achievObj.gameVars.restoreCount++; 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)) { achievObj.gameVars.restoreCount++; 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)) { achievObj.gameVars.restoreCount++; 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; } testAchievement(true, 71); delete newResAdded; } if (nameOfFunc == "ableTo") { if ((param1 == "attack") && (param2 == "false")) { _root.disableAttack++; } else if ((param1 == "attack") && (param2 == "true")) { _root.disableAttack--; } if ((param1 == "block") && (param2 == "false")) { _root.disableBlock++; } else if ((param1 == "block") && (param2 == "true")) { _root.disableBlock--; } if ((param1 == "revealHand") && (param2 == "true")) { _root.enableRevealHand++; } else if ((param1 == "revealHand") && (param2 == "false")) { _root.enableRevealHand--; } if ((param1 == "spells") && (param2 == "false")) { _root.disableUsageSpells++; _root.disableAttackSpells++; _root.disableDefenseSpells++; } else if ((param1 == "spells") && (param2 == "true")) { _root.disableUsageSpells--; _root.disableAttackSpells--; _root.disableDefenseSpells--; } if ((param1 == "abilities") && (param2 == "false")) { _root.disableUsageAbilities++; _root.disableAttackAbilities++; _root.disableDefenseAbilities++; } else if ((param1 == "abilities") && (param2 == "true")) { _root.disableUsageAbilities--; _root.disableAttackAbilities--; _root.disableDefenseAbilities--; } if ((param1 == "usage abilities") && (param2 == "false")) { _root.disableUsageAbilities++; } else if ((param1 == "usage abilities") && (param2 == "true")) { _root.disableUsageAbilities--; } if ((param1 == "attack abilities") && (param2 == "false")) { _root.disableAttackAbilities++; } else if ((param1 == "attack abilities") && (param2 == "true")) { _root.disableAttackAbilities--; } if ((param1 == "defense abilities") && (param2 == "false")) { _root.disableDefenseAbilities++; } else if ((param1 == "defense abilities") && (param2 == "true")) { _root.disableDefenseAbilities--; } if ((param1 == "usage spells") && (param2 == "false")) { _root.disableUsageSpells++; } else if ((param1 == "usage spells") && (param2 == "true")) { _root.disableUsageSpells--; } if ((param1 == "attack spells") && (param2 == "false")) { _root.disableAttackSpells++; } else if ((param1 == "attack spells") && (param2 == "true")) { _root.disableAttackSpells--; } if ((param1 == "defense spells") && (param2 == "false")) { _root.disableDefenseSpells++; } else if ((param1 == "defense spells") && (param2 == "true")) { _root.disableDefenseSpells--; } } if (nameOfFunc == "double") { if (!_root.doubleActionUsed) { _root.doubleAction = true; _root.doubleActionUsed = true; } } if (nameOfFunc == "untapTurnWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((((param1 == "wand") && (subtype.indexOf("wand") != -1)) || (subtype == param1)) || (!param1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { cardObjTemp.untapTurnLimit = true; } } if (nameOfFunc == "untapWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((((param1 == "wand") && (subtype.indexOf("wand") != -1)) || (subtype == param1)) || (!param1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { untap(_root.weaponCardObj); } } if (nameOfFunc == "tapWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((((param1 == "wand") && (subtype.indexOf("wand") != -1)) || (subtype == param1)) || (!param1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { tap(cardObjTemp); } } if (nameOfFunc == "untappable") { cardObj.untapable = true; } if (nameOfFunc == "addAttackCounts") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if (((param2 == "self") || (!param2)) && (cardObj.attackCounts != undefined)) { cardObjTemp = cardObj; } if (((param2 == "book") && (_root.itemCardObj1.subtype == "Book")) && (_root.itemCardObj1.attackCounts != undefined)) { cardObjTemp = _root.itemCardObj1; } if (((param2 == "orb") && (_root.itemCardObj1.subtype == "Orb")) && (_root.itemCardObj1.attackCounts != undefined)) { cardObjTemp = _root.itemCardObj1; } if (((param2 == "bag") && (_root.itemCardObj1.subtype == "Bag")) && (_root.itemCardObj1.attackCounts != undefined)) { cardObjTemp = _root.itemCardObj1; } if (((param2 == "flask") && (_root.itemCardObj1.subtype == "Flask")) && (_root.itemCardObj1.attackCounts != undefined)) { cardObjTemp = _root.itemCardObj1; } if (((param2 == "wand") && (subtype.indexOf("wand") != -1)) && (_root.weaponCardObj.attackCounts != undefined)) { cardObjTemp = _root.weaponCardObj; } if ((subtype == param2) && (_root.weaponCardObj.attackCounts != undefined)) { cardObjTemp = _root.weaponCardObj; } if (cardObjTemp) { cardObjTemp.attackCounts = cardObjTemp.attackCounts + Number(param1); testAchievement(true, 59); } if (((param2 == "book") && (_root.itemCardObj2.subtype == "Book")) && (_root.itemCardObj2.attackCounts != undefined)) { cardObjTemp2 = _root.itemCardObj2; } if (((param2 == "orb") && (_root.itemCardObj2.subtype == "Orb")) && (_root.itemCardObj2.attackCounts != undefined)) { cardObjTemp2 = _root.itemCardObj2; } if (((param2 == "bag") && (_root.itemCardObj2.subtype == "Bag")) && (_root.itemCardObj2.attackCounts != undefined)) { cardObjTemp2 = _root.itemCardObj2; } if (((param2 == "flask") && (_root.itemCardObj2.subtype == "Flask")) && (_root.itemCardObj2.attackCounts != undefined)) { cardObjTemp2 = _root.itemCardObj2; } if (cardObjTemp2) { cardObjTemp2.attackCounts = cardObjTemp2.attackCounts + Number(param1); } delete cardObjTemp2; } if (nameOfFunc == "removeAttackCounts") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if (((param2 == "self") || (!param2)) && (cardObj.attackCounts != undefined)) { cardObjTemp2 = cardObj; } if (((param2 == "book") && (_root.itemCardObj1.subtype == "Book")) && (_root.itemCardObj1.attackCounts != undefined)) { cardObjTemp2 = _root.itemCardObj1; } if (((param2 == "orb") && (_root.itemCardObj1.subtype == "Orb")) && (_root.itemCardObj1.attackCounts != undefined)) { cardObjTemp2 = _root.itemCardObj1; } if (((param2 == "bag") && (_root.itemCardObj1.subtype == "Bag")) && (_root.itemCardObj1.attackCounts != undefined)) { cardObjTemp2 = _root.itemCardObj1; } if (((param2 == "flask") && (_root.itemCardObj1.subtype == "Flask")) && (_root.itemCardObj1.attackCounts != undefined)) { cardObjTemp2 = _root.itemCardObj1; } if (((param2 == "wand") && (subtype.indexOf("wand") != -1)) && (_root.weaponCardObj.attackCounts != undefined)) { cardObjTemp2 = _root.weaponCardObj; } if ((subtype == param2) && (_root.weaponCardObj.attackCounts != undefined)) { cardObjTemp2 = _root.weaponCardObj; } if (cardObjTemp2) { cardObjTemp2.attackCounts = cardObjTemp2.attackCounts - Number(param1); if (cardObjTemp2.attackCounts <= 0) { cardObjTemp2.attackCounts == 0; solveZeroACFunctions(cardObjTemp2); artifactBlock(cardObjTemp2, 20); } } if (((param2 == "book") && (_root.itemCardObj2.subtype == "Book")) && (_root.itemCardObj2.attackCounts != undefined)) { cardObjTemp3 = _root.itemCardObj2; } if (((param2 == "orb") && (_root.itemCardObj2.subtype == "Orb")) && (_root.itemCardObj2.attackCounts != undefined)) { cardObjTemp3 = _root.itemCardObj2; } if (((param2 == "bag") && (_root.itemCardObj2.subtype == "Bag")) && (_root.itemCardObj2.attackCounts != undefined)) { cardObjTemp3 = _root.itemCardObj2; } if (((param2 == "flask") && (_root.itemCardObj2.subtype == "Flask")) && (_root.itemCardObj2.attackCounts != undefined)) { cardObjTemp3 = _root.itemCardObj2; } if (cardObjTemp3) { cardObjTemp3.attackCounts = cardObjTemp3.attackCounts - Number(param1); if (cardObjTemp3.attackCounts <= 0) { cardObjTemp3.attackCounts == 0; solveZeroACFunctions(cardObjTemp3); artifactBlock(cardObjTemp3, 20); } } delete cardObjTemp2; delete cardObjTemp3; } if (nameOfFunc == "ignoreTurnArmor") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param1 == "wand") && (subtype.indexOf("wand") != -1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } else if ((!param1) || (subtype == param1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { cardObjTemp.ignoreTurnArmor = true; } else if (param2 == "ability") { ignoreArmorAbility = Number(param1); } else if (param2 == "dark spell") { ignoreArmorDarkSpell = Number(param1); } else if (param2 == "light spell") { ignoreArmorLightSpell = Number(param1); } else if (param2 == "nature spell") { ignoreArmorNatureSpell = Number(param1); } else if (param2 == "all spells") { ignoreArmorDarkSpell = Number(param1); ignoreArmorLightSpell = Number(param1); ignoreArmorNatureSpell = Number(param1); } } if (nameOfFunc == "addTurnPower") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param2 == "wand") && (subtype.indexOf("wand") != -1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } else if (param2 == "shield") { if (_root.shieldCardObj) { cardObjTemp = _root.shieldCardObj; } } else if (param2.substring(0, 5) == "armor") { if (param2.substring(6) == _root.armorCardObj.subtype.toLowerCase()) { cardObjTemp = _root.armorCardObj; } else if ((param2 == "armor") && (_root.armorCardObj)) { cardObjTemp = _root.armorCardObj; } } else if ((!param2) || (subtype == param2)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { cardObjTemp.powerAdded = cardObjTemp.powerAdded + Number(param1); cardObjTemp.powerCount = cardObjTemp.powerCount + Number(param1); } else if (param2 == "ability") { abilityTurnPower = abilityTurnPower + Number(param1); } else if (param2 == "dark spell") { darkSpellTurnPower = darkSpellTurnPower + Number(param1); } else if (param2 == "light spell") { lightSpellTurnPower = lightSpellTurnPower + Number(param1); } else if (param2 == "nature spell") { natureSpellTurnPower = natureSpellTurnPower + Number(param1); } else if (param2 == "all spells") { darkSpellTurnPower = darkSpellTurnPower + Number(param1); lightSpellTurnPower = lightSpellTurnPower + Number(param1); natureSpellTurnPower = natureSpellTurnPower + Number(param1); } } if (nameOfFunc == "addTurnDefense") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param2 == "wand") && (subtype.indexOf("wand") != -1)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } else if (param2 == "shield") { if (_root.shieldCardObj) { cardObjTemp = _root.shieldCardObj; } } else if (param2.substring(0, 5) == "armor") { if (param2.substring(6) == _root.armorCardObj.subtype.toLowerCase()) { cardObjTemp = _root.armorCardObj; } else if ((param2 == "armor") && (_root.armorCardObj)) { cardObjTemp = _root.armorCardObj; } } else if ((!param2) || (subtype == param2)) { if (_root.weaponCardObj) { cardObjTemp = _root.weaponCardObj; } } if (cardObjTemp) { cardObjTemp.resistenceAdded = cardObjTemp.resistenceAdded + Number(param1); cardObjTemp.resistenceCount = cardObjTemp.resistenceCount + Number(param1); } } if (nameOfFunc == "actionPower") { if (param2 == "all spells") { modifier_DarkSpell = modifier_DarkSpell + Number(param1); modifier_LightSpell = modifier_LightSpell + Number(param1); modifier_NatureSpell = modifier_NatureSpell + Number(param1); } else if (param2 == "all weapons") { powModifier_Bow = powModifier_Bow + Number(param1); powModifier_Crossbow = powModifier_Crossbow + Number(param1); powModifier_Sword = powModifier_Sword + Number(param1); powModifier_Axe = powModifier_Axe + Number(param1); powModifier_Mace = powModifier_Mace + Number(param1); } else if (param2 == "abilities") { modifier_Ability = modifier_Ability + Number(param1); } else if (param2 == "dark spells") { modifier_DarkSpell = modifier_DarkSpell + Number(param1); } else if (param2 == "light spells") { modifier_LightSpell = modifier_LightSpell + Number(param1); } else if (param2 == "nature spells") { modifier_NatureSpell = modifier_NatureSpell + Number(param1); } else if (param2 == "bows") { powModifier_Bow = powModifier_Bow + Number(param1); } else if (param2 == "crossbows") { powModifier_Crossbow = powModifier_Crossbow + Number(param1); } else if (param2 == "swords") { powModifier_Sword = powModifier_Sword + Number(param1); } else if (param2 == "maces") { powModifier_Mace = powModifier_Mace + Number(param1); } else if (param2 == "axes") { powModifier_Axe = powModifier_Axe + Number(param1); } else if (param2 == "ignoreArmor ability") { ignoreArmorAbility = ((param1 == "true") ? 9999 : 0); } else if (param2 == "ignoreArmor dark spell") { ignoreArmorDarkSpell = ((param1 == "true") ? 9999 : 0); } else if (param2 == "ignoreArmor light spell") { ignoreArmorLightSpell = ((param1 == "true") ? 9999 : 0); } else if (param2 == "ignoreArmor nature spell") { ignoreArmorNatureSpell = ((param1 == "true") ? 9999 : 0); } else if (param2 == "ignoreArmor all spells") { ignoreArmorDarkSpell = ((param1 == "true") ? 9999 : 0); ignoreArmorLightSpell = ((param1 == "true") ? 9999 : 0); ignoreArmorNatureSpell = ((param1 == "true") ? 9999 : 0); } addModifiers(_root.weaponCardObj); } if (nameOfFunc == "counter") { if (opCard7) { if (param1 == "ability") { if (opCard7.type == "Ability") { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else if (param1 == "spell") { if (opCard7.type.indexOf("Spell") != -1) { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else if (param1 == "attack spell") { if ((opCard7.type.indexOf("Spell") != -1) && (opCard7.subtype == "Attack")) { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else if (param1 == "usage spell") { if ((opCard7.type.indexOf("Spell") != -1) && (opCard7.subtype == "Usage")) { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else if (param1 == "attack ability") { if ((opCard7.type == "Ability") && (opCard7.subtype == "Attack")) { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else if (param1 == "usage ability") { if ((opCard7.type == "Ability") && (opCard7.subtype == "Usage")) { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } else { opCard7.playfunc1 = ""; opCard7.playfunc2 = ""; opCard7.playfunc3 = ""; opCard7.playfunc4 = ""; opCard7.playfunc5 = ""; opCard7.playfunc6 = ""; } } } if (nameOfFunc == "redirectToShield") { reduce = -1 * Number(param1); _root.redirectedDamage = 0; if (opCard7) { subtype = opCard7.subtype.toLowerCase(); type = opCard7.type.toLowerCase(); } else if (_root.opWeaponCardObj) { subtype = _root.opWeaponCardObj.subtype.toLowerCase(); type = _root.opWeaponCardObj.type.toLowerCase(); } if (!param2) { reduceOK = true; } if ((subtype.substr(0, 4) == param2.substr(0, 4)) || (type.indexOf(param2) != -1)) { reduceOK = true; } if (opCard7 && (reduceOK)) { if (opCard7.playfunc1.substr(0, 11) == "hitOpponent") { opCard7.playfunc1 = changeAttackFunction(opCard7.playfunc1, reduce); } else if (opCard7.playfunc2.substr(0, 11) == "hitOpponent") { opCard7.playfunc2 = changeAttackFunction(opCard7.playfunc2, reduce); } else if (opCard7.playfunc3.substr(0, 11) == "hitOpponent") { opCard7.playfunc3 = changeAttackFunction(opCard7.playfunc3, reduce); } else if (opCard7.playfunc4.substr(0, 11) == "hitOpponent") { opCard7.playfunc4 = changeAttackFunction(opCard7.playfunc4, reduce); } else if (opCard7.playfunc5.substr(0, 11) == "hitOpponent") { opCard7.playfunc5 = changeAttackFunction(opCard7.playfunc5, reduce); } else if (opCard7.playfunc6.substr(0, 11) == "hitOpponent") { opCard7.playfunc6 = changeAttackFunction(opCard7.playfunc6, reduce); } } else if (_root.opWeaponCardObj && (reduceOK)) { if (Math.abs(reduce) > _root.opWeaponPower) { _root.redirectedDamage = _root.opWeaponPower; } else { _root.redirectedDamage = Math.abs(reduce); } _root.opWeaponPower = _root.opWeaponPower + reduce; if (_root.opWeaponPower < 0) { _root.opWeaponPower = 0; } } if (_root.shieldCardObj) { artifactBlock(_root.shieldCardObj, _root.redirectedDamage, "redirectToShield"); } delete _root.ignoreArmorRedirectedDamage; delete _root.redirectedDamage; delete reduceOK; } if (nameOfFunc == "reduceDamage") { reduce = -1 * Number(param1); if (opCard7) { subtype = opCard7.subtype.toLowerCase(); type = opCard7.type.toLowerCase(); } else if (_root.opWeaponCardObj) { subtype = _root.opWeaponCardObj.subtype.toLowerCase(); type = _root.opWeaponCardObj.type.toLowerCase(); } if (!param2) { reduceOK = true; } if ((subtype.substr(0, 4) == param2.substr(0, 4)) || (type.indexOf(param2) != -1)) { reduceOK = true; } if (opCard7 && (reduceOK)) { if (opCard7.playfunc1.substr(0, 11) == "hitOpponent") { opCard7.playfunc1 = changeAttackFunction(opCard7.playfunc1, reduce); } else if (opCard7.playfunc2.substr(0, 11) == "hitOpponent") { opCard7.playfunc2 = changeAttackFunction(opCard7.playfunc2, reduce); } else if (opCard7.playfunc3.substr(0, 11) == "hitOpponent") { opCard7.playfunc3 = changeAttackFunction(opCard7.playfunc3, reduce); } else if (opCard7.playfunc4.substr(0, 11) == "hitOpponent") { opCard7.playfunc4 = changeAttackFunction(opCard7.playfunc4, reduce); } else if (opCard7.playfunc5.substr(0, 11) == "hitOpponent") { opCard7.playfunc5 = changeAttackFunction(opCard7.playfunc5, reduce); } else if (opCard7.playfunc6.substr(0, 11) == "hitOpponent") { opCard7.playfunc6 = changeAttackFunction(opCard7.playfunc6, reduce); } } else if (_root.opWeaponCardObj && (reduceOK)) { wpBefore = _root.opWeaponPower; _root.opWeaponPower = _root.opWeaponPower + reduce; if (_root.opWeaponPower < 0) { _root.opWeaponPower = 0; if (wpBefore >= 7) { testAchievement(true, 61); } } delete wpBefore; } delete reduceOK; } _root.modPicDisplay = cardObj.picture; delete type; delete subtype; delete cardObjTemp; delete damage; delete nameOfFunc; delete param1; delete param2; checkModifiers(); } function changeAttackFunction(func, modNum, ignoreArmorChangeFunc, cardObj) { newFunc = func; nameOfFuncTemp = func.substring(0, func.indexOf("(")); if (func.indexOf(",") != -1) { param1Temp = func.substring(func.indexOf("(") + 1, func.indexOf(",")); param2Temp = func.substring(func.indexOf(",") + 1, func.indexOf(")")); } else { param1Temp = func.substring(func.indexOf("(") + 1, func.indexOf(")")); param2Temp = false; } if ((ignoreArmorChangeFunc > 0) && (param2Temp != "blocked")) { param2Temp = false; } if (nameOfFuncTemp == "hitOpponent") { hit = Number(parameterTranslator(param1Temp)); if (isNaN(hit * 1)) { hit = 0; } if (Math.abs(modNum) > hit) { _root.redirectedDamage = hit; } else { _root.redirectedDamage = Math.abs(modNum); } if (!param2Temp) { _root.ignoreArmorRedirectedDamage = true; } hit = hit + modNum; if (hit < 0) { hit = 0; } newFunc = ((("hitOpponent(" + hit) + ",") + param2Temp) + ")"; delete bollArmor; delete hit; } delete nameOfFuncTemp; delete param1Temp; delete param2Temp; return(newFunc); } function solveOpFunctions(cardObj) { if (cardObj.playfunc1) { readOpFunctions(cardObj.playfunc1, cardObj); } if (cardObj.playfunc2) { readOpFunctions(cardObj.playfunc2, cardObj); } if (cardObj.playfunc3) { readOpFunctions(cardObj.playfunc3, cardObj); } if (cardObj.playfunc4) { readOpFunctions(cardObj.playfunc4, cardObj); } if (cardObj.playfunc5) { readOpFunctions(cardObj.playfunc5, cardObj); } if (cardObj.playfunc6) { readOpFunctions(cardObj.playfunc6, cardObj); } } function readOpFunctions(func, cardObj) { nameOfFunc = func.substring(0, func.indexOf("(")); if (func.indexOf(",") != -1) { param1 = func.substring(func.indexOf("(") + 1, func.indexOf(",")); param2 = func.substring(func.indexOf(",") + 1, func.indexOf(")")); param2 = opParameterTranslator(param2); } else { param1 = func.substring(func.indexOf("(") + 1, func.indexOf(")")); param2 = false; } param1 = opParameterTranslator(param1); 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")) { pTemp = Number(param1); 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 == "amulet") { cardObjTemp = _root.amuletCardObj; } if (param2 == "blocked") { cardObjTemp = _root.blockCardObj; } if (cardObjTemp) { if (((nameOfFunc == "hitArtifactBack") && (!cardObjTemp.imuneToCounter)) || (nameOfFunc == "hitArtifact")) { artifactBlock(cardObjTemp, pTemp); } } else { if (param2 == _root.itemCardObj1.subtype.toLowerCase()) { artifactBlock(_root.itemCardObj1, pTemp); } if (param2 == _root.itemCardObj2.subtype.toLowerCase()) { artifactBlock(_root.itemCardObj2, pTemp); } } delete pTemp; } if (nameOfFunc == "opRestore") { 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 == "opAbleTo") { if ((param1 == "attack") && (param2 == "false")) { _root.disableAttack++; } else if ((param1 == "attack") && (param2 == "true")) { _root.disableAttack--; } if ((param1 == "block") && (param2 == "false")) { _root.disableBlock++; } else if ((param1 == "block") && (param2 == "true")) { _root.disableBlock--; } if ((param1 == "revealHand") && (param2 == "true")) { _root.enableRevealHand++; } else if ((param1 == "revealHand") && (param2 == "false")) { _root.enableRevealHand--; } if ((param1 == "spells") && (param2 == "false")) { _root.disableUsageSpells++; _root.disableAttackSpells++; _root.disableDefenseSpells++; } else if ((param1 == "spells") && (param2 == "true")) { _root.disableUsageSpells--; _root.disableAttackSpells--; _root.disableDefenseSpells--; } if ((param1 == "abilities") && (param2 == "false")) { _root.disableUsageAbilities++; _root.disableAttackAbilities++; _root.disableDefenseAbilities++; } else if ((param1 == "abilities") && (param2 == "true")) { _root.disableUsageAbilities--; _root.disableAttackAbilities--; _root.disableDefenseAbilities--; } if ((param1 == "usage abilities") && (param2 == "false")) { _root.disableUsageAbilities++; } else if ((param1 == "usage abilities") && (param2 == "true")) { _root.disableUsageAbilities--; } if ((param1 == "attack abilities") && (param2 == "false")) { _root.disableAttackAbilities++; } else if ((param1 == "attack abilities") && (param2 == "true")) { _root.disableAttackAbilities--; } if ((param1 == "defense abilities") && (param2 == "false")) { _root.disableDefenseAbilities++; } else if ((param1 == "defense abilities") && (param2 == "true")) { _root.disableDefenseAbilities--; } if ((param1 == "usage spells") && (param2 == "false")) { _root.disableUsageSpells++; } else if ((param1 == "usage spells") && (param2 == "true")) { _root.disableUsageSpells--; } if ((param1 == "attack spells") && (param2 == "false")) { _root.disableAttackSpells++; } else if ((param1 == "attack spells") && (param2 == "true")) { _root.disableAttackSpells--; } if ((param1 == "defense spells") && (param2 == "false")) { _root.disableDefenseSpells++; } else if ((param1 == "defense spells") && (param2 == "true")) { _root.disableDefenseSpells--; } } if (nameOfFunc == "opGainLife") { gainLife(Number(param1)); } if (nameOfFunc == "returnOpClass") { if (_root.classCardObj) { sendRemoveCard(_root.classCardObj); returnClassCard(_root.classCardObj); } } if (nameOfFunc == "tapOpWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param1 == "wand") && (subtype.indexOf("wand") != -1)) { tap(_root.weaponCardObj); } else if ((!param1) || (subtype == param1)) { tap(_root.weaponCardObj); } } if (nameOfFunc == "untapOpWeapon") { subtype = _root.weaponCardObj.subtype.toLowerCase(); if ((param1 == "wand") && (subtype.indexOf("wand") != -1)) { untap(_root.weaponCardObj); } else if ((!param1) || (subtype == param1)) { untap(_root.weaponCardObj); } } if (nameOfFunc == "opCannotChangeClass") { _root.cannotChangeClass = Number(param1); } if (nameOfFunc == "changeOpMaxLife") { _root.maxLife = _root.maxLife + Number(param1); if (_root.myLife > _root.maxLife) { setMyLife(false, _root.maxLife); } } if (nameOfFunc == "changeMaxLife") { _root.opMaxLife = _root.opMaxLife + Number(param1); } if (nameOfFunc == "opCannotEquip") { if (param2 == "weapon") { _root.cannotEquipWeapon = Number(param1); } else if (param2 == "armor") { _root.cannotEquipArmor = Number(param1); } else if (param2 == "shield") { _root.cannotEquipShield = Number(param1); } else if (param2 == "amulet") { _root.cannotEquipAmulet = Number(param1); } else if (param2 == "item") { _root.cannotEquipItem = Number(param1); } else { _root.cannotEquipWeapon = Number(param1); _root.cannotEquipArmor = Number(param1); _root.cannotEquipShield = Number(param1); _root.cannotEquipAmulet = Number(param1); _root.cannotEquipItem = Number(param1); } } if (nameOfFunc == "opDiscardCards") { if (param2 == "random") { toDiscard = Number(param1); z = 0; while (z < toDiscard) { if (_root.myHand > 0) { cardToDiscard = new Array(_root.myHand); t = 0; while (t < _root.myHand) { cardToDiscard[t] = t; t++; } shuffle(cardToDiscard); discardCard(eval ("myCard" + handPos[cardToDiscard[0]].idCard)); delete cardToDiscard; } z++; } delete toDiscard; } else if (param2 == "select") { if (_root.myHand > 0) { _root.cardsToDiscard = _root.cardsToDiscard + Number(param1); } } } if (nameOfFunc == "opRevealHand") { if (_root.revealHand < Number(param1)) { _root.revealHand = Number(param1); } } if (nameOfFunc == "removeOpRetract") { if ((param1 == "all") || (!param1)) { if (eval ("myCard" + tablePos[2].idCard)) { delete eval ("myCard" + tablePos[2].idCard).retract; } if (eval ("myCard" + tablePos[3].idCard)) { delete eval ("myCard" + tablePos[3].idCard).retract; } if (eval ("myCard" + tablePos[4].idCard)) { delete eval ("myCard" + tablePos[4].idCard).retract; } if (eval ("myCard" + tablePos[8].idCard)) { delete eval ("myCard" + tablePos[8].idCard).retract; } } else { if (param1 == "weapon") { cardObjTemp = _root.weaponCardObj; } if (param1 == "shield") { cardObjTemp = _root.shieldCardObj; } if (param1 == "armor") { cardObjTemp = _root.armorCardObj; } if (cardObjTemp) { delete cardObjTemp.retract; } if ((param1 == "spell") && (eval ("myCard" + tablePos[6].idCard).type.indexOf("Spell") != -1)) { if (eval ("myCard" + tablePos[6].idCard).playfunc1 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc1 = ""; } if (eval ("myCard" + tablePos[6].idCard).playfunc2 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc2 = ""; } if (eval ("myCard" + tablePos[6].idCard).playfunc3 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc3 = ""; } if (eval ("myCard" + tablePos[6].idCard).playfunc4 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc4 = ""; } if (eval ("myCard" + tablePos[6].idCard).playfunc5 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc5 = ""; } if (eval ("myCard" + tablePos[6].idCard).playfunc6 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc6 = ""; } } if ((param1 == "ability") && (eval ("myCard" + tablePos[6].idCard).type == "Ability")) { if (eval ("myCard" + tablePos[6].idCard).playfunc1 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc1 = ""; } if (eval ("myCard" + tablePos[6].idCard).playfunc2 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc2 = ""; } if (eval ("myCard" + tablePos[6].idCard).playfunc3 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc3 = ""; } if (eval ("myCard" + tablePos[6].idCard).playfunc4 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc4 = ""; } if (eval ("myCard" + tablePos[6].idCard).playfunc5 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc5 = ""; } if (eval ("myCard" + tablePos[6].idCard).playfunc6 == "retract()") { eval ("myCard" + tablePos[6].idCard).playfunc6 = ""; } } if ((param1 == "bag") && (_root.itemCardObj1.subtype == "Bag")) { delete itemCardObj1.retract; } if ((param1 == "orb") && (_root.itemCardObj1.subtype == "Orb")) { delete itemCardObj1.retract; } if ((param1 == "book") && (_root.itemCardObj1.subtype == "Book")) { delete itemCardObj1.retract; } if ((param1 == "flask") && (_root.itemCardObj1.subtype == "Flask")) { delete itemCardObj1.retract; } if ((param1 == "bag") && (_root.itemCardObj2.subtype == "Bag")) { delete itemCardObj2.retract; } if ((param1 == "orb") && (_root.itemCardObj2.subtype == "Orb")) { delete itemCardObj2.retract; } if ((param1 == "book") && (_root.itemCardObj2.subtype == "Book")) { delete itemCardObj2.retract; } if ((param1 == "flask") && (_root.itemCardObj2.subtype == "Flask")) { delete itemCardObj2.retract; } } } if (nameOfFunc == "opDeckToGrave") { toGrave = Number(param1); z = 0; while (z < toGrave) { if (_root.myDeck > 0) { _root.myDeck--; _root.myDiscard++; if (param2 == "bottom") { idDraw = _root.deckOrder.shift(); _root.discardPileArray.push(idDraw); } else if ((param2 == "top") || (!param2)) { idDraw = _root.deckOrder.pop(); _root.discardPileArray.push(idDraw); } else if (param2 == "random") { deckOrderTemp = _root.deckOrder.copy(); shuffle(deckOrderTemp); idDraw = deckOrderTemp.pop(); _root.deckOrder.splice(_root.deckOrder.indexOf(idDraw), 1); _root.discardPileArray.push(idDraw); delete deckOrderTemp; } autoMsg(eval ("myCards.name" + idDraw) + " was put in the graveyard."); delete idDraw; } z++; } delete toGrave; } if (nameOfFunc == "opDrawsCards") { drawCards(Number(param1)); } if (nameOfFunc == "changeOpMaxHand") { _root.myMaxHand = _root.myMaxHand + Number(param1); } if (nameOfFunc == "setOpHandSize") { if (_root.myHand < Number(param1)) { drawCards(Number(param1) - _root.myHand); } else if (_root.myHand > Number(param1)) { toDiscard = _root.myHand - Number(param1); z = 0; while (z < toDiscard) { if (_root.myHand > 0) { cardToDiscard = new Array(_root.myHand); t = 0; while (t < _root.myHand) { cardToDiscard[t] = t; t++; } shuffle(cardToDiscard); discardCard(eval ("myCard" + handPos[cardToDiscard[0]].idCard)); delete cardToDiscard; } z++; } delete toDiscard; } } if (nameOfFunc == "opSkipDrawPhase") { if (_root.skipDrawPhase < Number(param1)) { _root.skipDrawPhase = Number(param1); } } if (nameOfFunc == "opMustAttack") { if (((_root.currentPhase == "spellPhase") || (_root.currentPhase == "attackPhase")) && (_root.currentPlayerTurn == "my")) { if (_root.mustAttack <= Number(param1)) { _root.mustAttack = Number(param1) + 1; } } else if (_root.mustAttack < Number(param1)) { _root.mustAttack = Number(param1); } } if (nameOfFunc == "opMustBlock") { if ((_root.currentPhase == "spellPhase") && (_root.currentPlayerTurn == "op")) { if (_root.mustBlock <= Number(param1)) { _root.mustBlock = Number(param1) + 1; } } else if (_root.mustBlock < Number(param1)) { _root.mustBlock = Number(param1); } } if (nameOfFunc == "opCannotBlock") { if (cardObj.subtype == "Attack") { if (_root.cannotBlock <= Number(param1)) { _root.cannotBlock = Number(param1) + 1; } } else if (_root.cannotBlock < Number(param1)) { _root.cannotBlock = Number(param1); } } if (nameOfFunc == "opCannotAttack") { if (((_root.currentPhase == "spellPhase") || (_root.currentPhase == "attackPhase")) && (_root.currentPlayerTurn == "my")) { if (_root.cannotAttack <= Number(param1)) { _root.cannotAttack = Number(param1) + 1; } } else if (_root.cannotAttack < Number(param1)) { _root.cannotAttack = Number(param1); } } if (nameOfFunc == "opCannotDefenseSpell") { if (cardObj.subtype == "Attack") { if (_root.cannotUseDefenseSpells <= Number(param1)) { _root.cannotUseDefenseSpells = Number(param1) + 1; } } else if (_root.cannotUseDefenseSpells < Number(param1)) { _root.cannotUseDefenseSpells = Number(param1); } } if (nameOfFunc == "opCannotAttackSpell") { if (_root.cannotUseAttackSpells < Number(param1)) { _root.cannotUseAttackSpells = Number(param1); } } if (nameOfFunc == "opCannotUsageSpell") { if (_root.cannotUseUsageSpells < Number(param1)) { _root.cannotUseUsageSpells = Number(param1); } } if (nameOfFunc == "opCannotDefenseAbility") { if (cardObj.subtype == "Attack") { if (_root.cannotUseDefenseAbilities <= Number(param1)) { _root.cannotUseDefenseAbilities = Number(param1) + 1; } } else if (_root.cannotUseDefenseAbilities < Number(param1)) { _root.cannotUseDefenseAbilities = Number(param1); } } if (nameOfFunc == "opCannotAttackAbility") { if (_root.cannotUseAttackAbilities < Number(param1)) { _root.cannotUseAttackAbilities = Number(param1); } } if (nameOfFunc == "opCannotUsageAbility") { if (_root.cannotUseUsageAbilities < Number(param1)) { _root.cannotUseUsageAbilities = Number(param1); } } if (nameOfFunc == "hitAllArtifacts") { if ((param2 == "op") || (!param2)) { pTemp = Number(param1); if (eval ("myCard" + tablePos[2].idCard)) { artifactBlock(eval ("myCard" + tablePos[2].idCard), pTemp); } if (eval ("myCard" + tablePos[3].idCard)) { artifactBlock(eval ("myCard" + tablePos[3].idCard), pTemp); } if (eval ("myCard" + tablePos[4].idCard)) { artifactBlock(eval ("myCard" + tablePos[4].idCard), pTemp); } if (eval ("myCard" + tablePos[8].idCard)) { artifactBlock(eval ("myCard" + tablePos[8].idCard), pTemp); } delete pTemp; } } if (nameOfFunc == "counter") { abilityCardObj = eval ("myCard" + tablePos[6].idCard); if (abilityCardObj) { if (param1 == "ability") { if (abilityCardObj.type == "Ability") { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else if (param1 == "spell") { if (abilityCardObj.type.indexOf("Spell") != -1) { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else if (param1 == "attack spell") { if ((abilityCardObj.type.indexOf("Spell") != -1) && (abilityCardObj.subtype == "Attack")) { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else if (param1 == "usage spell") { if ((abilityCardObj.type.indexOf("Spell") != -1) && (abilityCardObj.subtype == "Usage")) { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else if (param1 == "attack ability") { if ((abilityCardObj.type == "Ability") && (abilityCardObj.subtype == "Attack")) { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else if (param1 == "usage ability") { if ((abilityCardObj.type == "Ability") && (abilityCardObj.subtype == "Usage")) { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } else { abilityCardObj.playfunc1 = ""; abilityCardObj.playfunc2 = ""; abilityCardObj.playfunc3 = ""; abilityCardObj.playfunc4 = ""; abilityCardObj.playfunc5 = ""; abilityCardObj.playfunc6 = ""; } } delete abilityCardObj; } _root.modPicDisplay = cardObj.picture; checkModifiers(); delete cardObjTemp; delete damage; delete nameOfFunc; delete param1; delete param2; } myLifeObj.gotoAndStop(1); opLifeObj.gotoAndStop(1); myPhases.drawPhase.gotoAndStop(1); myPhases.equipPhase.gotoAndStop(1); myPhases.spellPhase.gotoAndStop(1); myPhases.attackPhase.gotoAndStop(1); myPhases.endPhase.gotoAndStop(1); opPhases.drawPhase.gotoAndStop(1); opPhases.equipPhase.gotoAndStop(1); opPhases.spellPhase.gotoAndStop(1); opPhases.attackPhase.gotoAndStop(1); opPhases.endPhase.gotoAndStop(1); tableIcon4.gotoAndStop(1); if (autoHelp) { helpButton.gotoAndStop(1); } else { helpButton.gotoAndStop(2); } ToolTip.install(graveyard, "This is your Graveyard. If you want to remove an item from play during your <b>Equip Phase</b>, drag it here. Same goes for cards in your hand during <b>Discard Phase</b>.", 1); ToolTip.install(classDock, "This is your Class Dock. You may drag a class card to your playfield or retrieve it by dragging it back. You can only have one class card at the time.", 250); ToolTip.install(myPlayfield, "This is your playfield. You may drag cards here when able. Remember to always drag a class card first.", 250); ToolTip.install(myPhases.drawPhase, "Draw Phase: Draw one card from your deck.", 1); ToolTip.install(myPhases.equipPhase, "Equip Phase: You may play an item, usage ability or simply skip it by clicking here.", 1); ToolTip.install(myPhases.attackPhase, "Attack Phase: You may choose to attack your opponent with a weapon in your playfield if there is one.", 1); ToolTip.install(myPhases.spellPhase, "Spell/Ability Phase: You may play a attack/usage spell or ability, or simply skip it by clicking here.", 1); ToolTip.install(myPhases.endPhase, "Discard Phase: If you have more then 6 cards in your hand, you must discard them until so.", 1); resetAndStopTimer(); autoMsg("Loading cards..."); myCards.load((((((_root.webpage + "/managerFiles/loadDefaultDeck.asp?u=") + _root.myName) + "&p=") + _root.password) + "&rn=") + random(10000)); Selection.setFocus(msgBox);
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Frame 9
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Frame 10
function selectADeck(deckID) { uncolorize(deckList.loadDeckButton); deckList.loadDeckButton.enabled = true; deckList.deckNameListTemp = deckList.deckListString.split("<br>"); deckList.selectedLine = deckList.deckNameListTemp.lastIndexOf((">" + deckID) + "<"); deckList.deckNameListTemp[deckList.selectedLine] = ((("<a href='asfunction:_root.selectADeck," + deckID) + "'><font color='#66FF99'>") + deckID) + "</font></a>"; if ((deckList.selectedDeck != "") && (deckList.selectedDeck != deckID)) { deckList.oldSelection = deckList.deckNameListTemp.lastIndexOf((">" + deckList.selectedDeck) + "<"); if (deckList.selectedDeck == _root.defaultDeck) { deckList.deckNameListTemp[deckList.oldSelection] = ((("<a href='asfunction:_root.selectADeck," + deckList.selectedDeck) + "'><font color='#FFCC66'>") + deckList.selectedDeck) + "</font></a>"; } else { deckList.deckNameListTemp[deckList.oldSelection] = ((("<a href='asfunction:_root.selectADeck," + deckList.selectedDeck) + "'><font color='#FFFFFF'>") + deckList.selectedDeck) + "</font></a>"; } } deckList.deckListString = deckList.deckNameListTemp.join("<br>"); deckList.selectedDeck = deckID; deckList.deckListTextField.htmlText = deckList.deckListString; } saveDeck.onRelease = function () { if (cardsInDeck < 40) { warning = "You can't have less then 40 cards in your deck."; warningText.play(); } else if (_root.deckName) { _root.attachMovie("saveDeckBox", "saveDeckBox", _root.confirmBoxDepth + 1); saveDeckBox._x = 320; saveDeckBox._y = 220; 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 = 176; saveNewDeckBox._y = 167; saveNewDeckBox.saveNewDeckButton.onRelease = function () { if (_root.deckNameList.indexOf(_root.saveNewDeckBox.deckNameInput.text) != -1) { warning = "Deck name already taken. Please choose another name."; warningText.play(); } else if ((_root.saveNewDeckBox.deckNameInput.text == "") || (!validateString(_root.saveNewDeckBox.deckNameInput.text))) { warning = "Invalid deck name."; warningText.play(); } else { _root.deckName = _root.saveNewDeckBox.deckNameInput.text; _root.attachMovie("saveDeckBox", "saveDeckBox", _root.confirmBoxDepth + 1); saveDeckBox._x = 319; saveDeckBox._y = 210; sendDeck.idUser = _root.idUser; sendDeck.deckName = _root.deckName; sendDeck.sendAndLoad(webpage + "/managerFiles/saveDeck.asp", saveDeckURL, "POST"); } }; saveNewDeckBox.cancelButton.onRelease = function () { this._parent.removeMovieClip(); }; } }; loadDeck.onRelease = function () { if (((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) && (!_root.deckList)) { _root.attachMovie("deckList", "deckList", _root.confirmBoxDepth + 1); deckList._x = 130; deckList._y = 84; deckList.swapDepths(5001); deckList.deckListString = ""; deckList.selectedDeck = _root.loadedDeck; i = 0; while (i < deckNameList.length) { if (_root.loadedDeck == deckNameList[i]) { deckList.deckListString = deckList.deckListString + (((("<a href='asfunction:_root.selectADeck," + deckNameList[i]) + "'><font color='#66FF99'>") + deckNameList[i]) + "</font></a><br>"); } else if (_root.defaultDeck == deckNameList[i]) { deckList.deckListString = deckList.deckListString + (((("<a href='asfunction:_root.selectADeck," + deckNameList[i]) + "'><font color='#FFCC66'>") + deckNameList[i]) + "</font></a><br>"); } else { deckList.deckListString = deckList.deckListString + (((("<a href='asfunction:_root.selectADeck," + deckNameList[i]) + "'><font color='#FFFFFF'>") + deckNameList[i]) + "</font></a><br>"); } i++; } deckList.deckListTextField.htmlText = deckList.deckListString; deckList.loadDeckButton.onRelease = function () { _root.loadedDeck = deckList.selectedDeck; okCancelResponseBlackBox("loadFromManager"); this._parent.removeMovieClip(); }; deckList.cancelButton.onRelease = function () { this._parent.removeMovieClip(); }; colorize(deckList.loadDeckButton, disabledColor); deckList.loadDeckButton.enabled = false; } }; newDeck.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { okCancelResponseBlackBox("newFromManager"); } }; deleteDeck.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { if (deckName) { okCancelResponseBlackBox("deleteFromManager"); } } }; mainMenuManager.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { okCancelResponseBlackBox("menuFromManager"); } }; backToLobby.onRelease = function () { if ((loadingMsg == "") || (loadingMsg == "Server Unavaliable")) { if (_root.defaultDeck == "") { warning = "You don't have a default deck yet!"; warningText.play(); } else { okCancelResponseBlackBox("lobbyFromManager"); } } }; if (playMusic) { soundButton.gotoAndStop(1); } else { soundButton.gotoAndStop(2); } soundButton.onRelease = function () { if (!playMusic) { this.gotoAndStop(1); playMusic = true; loadedSong.start(); intervalVal = setInterval(loopSong, 1); autoMsg("Music On."); localSaves.data.musicOff = false; localSaves.flush(); } else { this.gotoAndStop(2); playMusic = false; loadedSong.stop(); if (intervalVal) { clearInterval(intervalVal); } autoMsg("Music Off."); localSaves.data.musicOff = true; localSaves.flush(); } }; delete inLobby; antiSpam = false; inManager = true; tradeChatTab._alpha = 0; tradeChatTab.enabled = false; _root.selectedRoom = tradeRoomID; i = 0; h = 1; w = 1; currentPage = 0; loop = 0; cardNum = 0; totalCards = 0; cardsInDeck = 0; classesInDeck = 0; numCardsLoaded = 0; imagesLoaded = 0; deckName = ""; loadedDeck = ""; filterString = ""; pageTabsDepth = 15000; if (loadString) { delete loadString; } if (myManagerCards) { delete myManagerCards; } if (mclistener) { delete mclistener; } loadingMsg = "Loading cards..."; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(filterButton, disabledColor); filterButton.enabled = false; colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; var myManagerCards = new LoadVars(); myManagerCards.onLoad = function (success) { if (success) { h = 1; w = 1; imagesLoaded = 0; currentPage = 0; numCardsLoaded = 0; loop = 0; cardNum = this.cardNum; lastPageCards = cardNum % 24; if (lastPageCards == 0) { lastPageCards = 24; } totalPages = ((cardNum - lastPageCards) / 24) + 1; z = 1; while (z <= totalPages) { _root.attachMovie("pageTab", "pageTab" + z, pageTabsDepth - z); if (z <= 27) { eval ("pageTab" + z)._x = 597; eval ("pageTab" + z)._y = 19 + (z * 14); } else { eval ("pageTab" + z)._x = 617; eval ("pageTab" + z)._y = 22 + ((z - 27) * 14); } eval ("pageTab" + z).pageNum.text = z; eval ("pageTab" + z).onRelease = gotoPage; ToolTip.install(eval ("pageTab" + z), "Jump to page " + z, 250); z++; } uncolorize(filterButton); filterButton.enabled = true; if (!_root.filterLoad) { avFilter._alpha = 100; avFilter.active = true; sendDeck.avFilter = true; hFilter._alpha = 100; hFilter.active = true; sendDeck.hFilter = true; aFilter._alpha = 100; aFilter.active = true; sendDeck.aFilter = true; pFilter._alpha = 100; pFilter.active = true; sendDeck.pFilter = true; mFilter._alpha = 100; mFilter.active = true; sendDeck.mFilter = true; sFilter._alpha = 100; sFilter.active = true; sendDeck.sFilter = true; wFilter._alpha = 100; wFilter.active = true; sendDeck.wFilter = true; kFilter._alpha = 100; kFilter.active = true; sendDeck.kFilter = true; gFilter._alpha = 100; gFilter.active = true; sendDeck.gFilter = true; totalCards = this.totalCards; cardsInDeck = this.cardsInDeck; classesInDeck = this.classesInDeck; deckName = this.deckName; loadedDeck = this.deckName; deckNameList = this.deckNameList.split(","); cardListBox.removeAll(); sendDeck.deckArray = Array(); if (deckName) { sendDeck.deckArray = this.deckIds.split(","); sendDeck.deckCardsArray = this.deckCards.split(","); i = 0; while (i < sendDeck.deckArray.length) { cardListBox.addItem({data:sendDeck.deckArray[i], label:sendDeck.deckCardsArray[i]}); i++; } cardListBox.selectedIndex = 0; uncolorize(removeCardButton); removeCardButton.enabled = true; deckNameInput.text = deckName; deckNameInput.type = "input"; deckNameInput.selectable = true; uncolorize(renameButton); renameButton.enabled = true; deckNameBG._alpha = 100; if (myManagerCards.defaultDeck) { _root.defaultDeck = deckName; deckNameInput.textColor = 16764006 /* 0xFFCC66 */; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; } else { deckNameInput.textColor = 16777215 /* 0xFFFFFF */; uncolorize(setDefaultButton); setDefaultButton.enabled = true; } } else { cardListBox.addItem("[None]"); deckNameInput.text = ""; deckNameInput.type = "dynamic"; deckNameInput.selectable = false; colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; deckNameBG._alpha = 0; } } else { if (cardListBox.selectedItem.label != "[None]") { uncolorize(removeCardButton); removeCardButton.enabled = true; } delete _root.filterLoad; } if (cardNum < 24) { loop = cardNum; } else { loop = 24; } i = 1; while (i <= loop) { columLimit = i % 3; createCard(myManagerCards["idCard" + i], myManagerCards["picture" + i], myManagerCards["model" + i], myManagerCards["quantity" + i], myManagerCards["deck" + i], myManagerCards["idMyCards" + i], i, w, h, i); if ((columLimit == 0) && (w < 4)) { h++; w = 0; } if (h == 5) { h = 1; w = 4; } if ((columLimit == 0) && (w > 4)) { h++; w = 4; } w++; i++; } h = 1; w = 1; } else { delete _root.filterLoad; _root.loadingMsg = "Server Unavaliable"; } }; var sendDeck = new LoadVars(); var saveDeckURL = new LoadVars(); saveDeckURL.onLoad = function (success) { if (success) { _root.deckNameInput.text = _root.deckName; _root.loadedDeck = _root.deckName; if (_root.deckNameList.indexOf(_root.deckName) == -1) { _root.deckNameList.push(_root.deckName); } deckNameInput.type = "input"; deckNameInput.selectable = true; uncolorize(renameButton); renameButton.enabled = true; uncolorize(filterButton); filterButton.enabled = true; if (this.defaultDeck) { myManagerCards.defaultDeck = true; } if (!myManagerCards.defaultDeck) { uncolorize(setDefaultButton); setDefaultButton.enabled = true; deckNameInput.textColor = 16777215 /* 0xFFFFFF */; } else { _root.defaultDeck = deckName; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; deckNameInput.textColor = 16764006 /* 0xFFCC66 */; } deckNameBG._alpha = 100; removeMovieClip(saveDeckBox); } else { saveDeckBox.savingTxt.text = "Server Unavaliable"; startTime = getTimer() / 1000; saveDeckBox.onEnterFrame = function () { delay = getTimer() / 1000; if (startTime <= (delay - 3)) { removeMovieClip(saveDeckBox); } }; } }; var renameDeckURL = new LoadVars(); renameDeckURL.onLoad = function (success) { if (success) { if (!myManagerCards.defaultDeck) { uncolorize(setDefaultButton); setDefaultButton.enabled = true; } uncolorize(renameButton); renameButton.enabled = true; uncolorize(filterButton); filterButton.enabled = true; uncolorize(removeCardButton); removeCardButton.enabled = true; _root.deckNameList[deckNameList.indexOf(_root.loadedDeck)] = deckNameInput.text; _root.deckName = deckNameInput.text; _root.loadedDeck = _root.deckName; } }; var setDefaultURL = new LoadVars(); setDefaultURL.onLoad = function (success) { if (success) { myManagerCards.defaultDeck = true; _root.defaultDeck = _root.deckName; deckNameInput.textColor = 16764006 /* 0xFFCC66 */; uncolorize(renameButton); renameButton.enabled = true; uncolorize(filterButton); filterButton.enabled = true; } }; var deleteDeckURL = new LoadVars(); deleteDeckURL.onLoad = function (success) { if (success) { if (myManagerCards.defaultDeck) { _root.defaultDeck = ""; } _root.loadedDeck = ""; _root.deckName = ""; deleteDeckBox.removeMovieClip(); reloadCardManager("new"); } }; if (!loadString) { myManagerCards.load((((((webpage + "/managerFiles/loadManager.asp?u=") + _root.myName) + "&p=") + _root.password) + "&loadedDeck=default&rn=") + random(10000)); } function colorizeCard(obj, color) { if ((((((_root.imagesLoaded >= (loop - 1)) && (!_root.saveDeckBox)) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { colorBg = new Color(obj); colorBg.setTransform(color); if (obj.idCard > 9) { _root.createEmptyMovieClip("cardInfo", 5000); cardInfo._x = 256; cardInfo._y = 160; cardInfo.createEmptyMovieClip("shadow", 1); cardInfo.createEmptyMovieClip("bg", 2); cardInfo.createTextField("label", 3, 5, 0, 112, 160); cardInfo.label.autoSize = "left"; cardInfo.label.html = true; cardInfo.label.selectable = false; cardInfo.label.multiline = true; cardInfo.label.wordWrap = true; cardInfo.powAndRes = ((obj.powAndRes == "0/0") ? "" : (("<b>Pow/Res:</b> " + obj.powAndRes) + "<br>")); cardInfo.handle = ((obj.handle == 0) ? "" : ("<b>Handle:</b> " + obj.handle)); cardInfo.textFunc = ((obj.textFunc.substring(0, 3) == "[9]") ? (obj.textFunc.substr(3) + "<br>") : (obj.textFunc + "<br>")); cardInfo.label.htmlText = ((((((("<br><br><b>" + obj.cardName) + "</b><br>") + obj.typeAndSub) + "<br>") + cardInfo.textFunc) + "<br>") + cardInfo.powAndRes) + cardInfo.handle; var _local5 = new TextFormat(); _local5.font = "Verdana"; _local5.size = 10; cardInfo.label.setTextFormat(_local5); var _local4 = ((cardInfo.label.textWidth < 112) ? 124 : (cardInfo.label.textWidth + 12)); var _local3 = ((cardInfo.label.textHeight < 160) ? 164 : (cardInfo.label.textHeight + 4)); cardInfo.bg.clear(); cardInfo.bg.lineStyle(0, 3355443, 80); cardInfo.bg.beginFill(16777164, 80); cardInfo.bg.moveTo(0, 0); cardInfo.bg.lineTo(0, _local3); cardInfo.bg.lineTo(_local4, _local3); cardInfo.bg.lineTo(_local4, 0); cardInfo.bg.lineTo(0, 0); cardInfo.bg.endFill(); cardInfo.shadow.clear(); cardInfo.shadow.beginFill(3355443, 60); cardInfo.shadow.moveTo(2, 2); cardInfo.shadow.lineTo(2, _local3 + 2); cardInfo.shadow.lineTo(_local4 + 2, _local3 + 2); cardInfo.shadow.lineTo(_local4 + 2, 2); cardInfo.shadow.lineTo(2, 2); cardInfo.shadow.endFill(); actualLoc = 1; location_x = 3; location_y = 16; if ((((((((obj.classAverage && (obj.classHunter)) && (obj.classSorcerer)) && (obj.classPaladin)) && (obj.classKnight)) && (obj.subClassAssassin)) && (obj.subClassWizard)) && (obj.subClassMonk)) && (obj.subClassGladiator)) { cardInfo.attachMovie("e", "everyone", cardInfo.getNextHighestDepth()); cardInfo.everyone._x = location_x + (actualLoc * 12); cardInfo.everyone._y = location_y; } else if ((type != "Class") && (type != "Subclass")) { if (obj.classAverage) { cardInfo.attachMovie("av", "classAverage", cardInfo.getNextHighestDepth()); cardInfo.classAverage._x = location_x + (actualLoc * 12); cardInfo.classAverage._y = location_y; actualLoc++; } if (obj.classHunter) { cardInfo.attachMovie("h", "classHunter", cardInfo.getNextHighestDepth()); cardInfo.classHunter._x = location_x + (actualLoc * 12); cardInfo.classHunter._y = location_y; actualLoc++; } if (obj.subClassAssassin) { cardInfo.attachMovie("a", "subClassAssassin", cardInfo.getNextHighestDepth()); cardInfo.subClassAssassin._x = location_x + (actualLoc * 12); cardInfo.subClassAssassin._y = location_y; actualLoc++; } if (obj.classSorcerer) { cardInfo.attachMovie("s", "classSorcerer", cardInfo.getNextHighestDepth()); cardInfo.classSorcerer._x = location_x + (actualLoc * 12); cardInfo.classSorcerer._y = location_y; actualLoc++; } if (obj.subClassWizard) { cardInfo.attachMovie("w", "subClassWizard", cardInfo.getNextHighestDepth()); cardInfo.subClassWizard._x = location_x + (actualLoc * 12); cardInfo.subClassWizard._y = location_y; actualLoc++; } if (obj.classPaladin) { cardInfo.attachMovie("p", "classPaladin", cardInfo.getNextHighestDepth()); cardInfo.classPaladin._x = location_x + (actualLoc * 12); cardInfo.classPaladin._y = location_y; actualLoc++; } if (obj.subClassMonk) { cardInfo.attachMovie("m", "subClassMonk", cardInfo.getNextHighestDepth()); cardInfo.subClassMonk._x = location_x + (actualLoc * 12); cardInfo.subClassMonk._y = location_y; actualLoc++; } if (obj.classKnight) { cardInfo.attachMovie("k", "classKnight", cardInfo.getNextHighestDepth()); cardInfo.classKnight._x = location_x + (actualLoc * 12); cardInfo.classKnight._y = location_y; actualLoc++; } if (obj.subClassGladiator) { cardInfo.attachMovie("g", "subClassGladiator", cardInfo.getNextHighestDepth()); cardInfo.subClassGladiator._x = location_x + (actualLoc * 12); cardInfo.subClassGladiator._y = location_y; actualLoc++; } } } } } function uncolorizeCard(obj) { if (_root.imagesLoaded >= (loop - 1)) { colorBg = new Color(obj); colorBg.setTransform(uncolor); if (cardInfo) { cardInfo.removeMovieClip(); } } } function createCard(idCard, picture, model, quantity, deck, idMyCards, cardPos, wPos, hPos, idMyCard) { _root.attachMovie("cardManager", "card" + cardPos, cardPos + 100); eval ("card" + cardPos)._x = (wPos * 70) + 14; eval ("card" + cardPos)._y = (hPos * 80) - 15; eval ("card" + cardPos).idCard = idCard; eval ("card" + cardPos).idPos = idMyCard; eval ("card" + cardPos).idMyCards = idMyCards.split(","); eval ("card" + cardPos).cardName = myManagerCards["cardName" + idMyCard]; eval ("card" + cardPos).classes = myManagerCards["classes" + idMyCard]; eval ("card" + cardPos).powAndRes = myManagerCards["powAndRes" + idMyCard]; eval ("card" + cardPos).typeAndSub = myManagerCards["typeAndSub" + idMyCard]; eval ("card" + cardPos).textFunc = myManagerCards["textFunc" + idMyCard]; eval ("card" + cardPos).handle = myManagerCards["handle" + idMyCard]; eval ("card" + cardPos).classAverage = myManagerCards["classAverage" + idMyCard]; eval ("card" + cardPos).classHunter = myManagerCards["classHunter" + idMyCard]; eval ("card" + cardPos).subClassAssassin = myManagerCards["subclassAssassin" + idMyCard]; eval ("card" + cardPos).classSorcerer = myManagerCards["classSorcerer" + idMyCard]; eval ("card" + cardPos).subClassWizard = myManagerCards["subclassWizard" + idMyCard]; eval ("card" + cardPos).classPaladin = myManagerCards["classPaladin" + idMyCard]; eval ("card" + cardPos).subClassMonk = myManagerCards["subclassMonk" + idMyCard]; eval ("card" + cardPos).classKnight = myManagerCards["classKnight" + idMyCard]; eval ("card" + cardPos).subClassGladiator = myManagerCards["subclassGladiator" + idMyCard]; eval ("card" + cardPos).tempQuant = ((quantity > 99) ? 99 : (quantity)); eval ("card" + cardPos).tempDeck = deck; eval ("card" + cardPos).gotoAndStop(model.substring(0, model.length - 4)); eval ("card" + cardPos).hit.onRelease = releaseCard; eval ("card" + cardPos).hit.onReleaseOutside = releaseCard; eval ("card" + cardPos).hit.onDragOut = function () { uncolorizeCard(this._parent); }; eval ("card" + cardPos).hit.onDragOver = function () { colorizeCard(this._parent, overCardColor); }; eval ("card" + cardPos).hit.onRollOver = function () { colorizeCard(this._parent, overCardColor); }; eval ("card" + cardPos).hit.onRollOut = function () { uncolorizeCard(this._parent); }; eval ("card" + cardPos).addCard.onRelease = function () { addDeckCard(this._parent); }; eval ("card" + cardPos).removeCard.onRelease = function () { removeDeckCard(this._parent); }; eval ("card" + cardPos)._alpha = 0; eval ("card" + cardPos).hit.enabled = false; eval ("card" + cardPos).addCard.enabled = false; eval ("card" + cardPos).removeCard.enabled = false; if (idCard > 9) { eval ("card" + cardPos).createEmptyMovieClip("pictureClip", eval ("card" + cardPos).getNextHighestDepth()); eval ("card" + cardPos).circle.swapDepths(eval ("card" + cardPos).pictureClip); eval ("card" + cardPos).circle.swapDepths(eval ("card" + cardPos).quantity); movieLoader.loadClip((webpage + "/images/game_elements/cards/small_pictures/") + picture, eval ("card" + cardPos).pictureClip); movieLoader.addListener(mclistener); eval ("card" + cardPos).pictureClip._x = 6; eval ("card" + cardPos).pictureClip._y = 8; } else { _root.imagesLoaded++; } } function addDeckCard(cardObj) { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { deck = Number(cardObj.deck.text); if ((classesInDeck >= 3) && (cardObj.idCard <= 9)) { warning = "You can only have up to 3 different class cards in your deck."; warningText.play(); } else if ((cardObj.idCard <= 9) && (deck == 1)) { warning = "You can only have 1 class card of each in your deck."; warningText.play(); } else if ((cardsInDeck >= 60) && (cardObj.idCard > 9)) { warning = "You can only have up to 60 cards in your deck."; warningText.play(); } else if (deck >= Number(cardObj.quantity.text)) { warning = "You can only add the amount of cards you have."; warningText.play(); } else if (deck >= 4) { warning = "You can only have up to 4 of the same card in your deck."; warningText.play(); } else { i = cardObj.idMyCards.length - 1; while (i >= 0) { if (sendDeck.deckArray.indexOf(cardObj.idMyCards[i]) == -1) { sendDeck.deckArray.push(cardObj.idMyCards[i]); if (cardListBox.getItemAt(0).data == undefined) { cardListBox.removeItemAt(0); } cardListBox.addItem({data:cardObj.idMyCards[i], label:cardObj.cardName}); cardListBox.selectedIndex = cardListBox.length - 1; cardListBox.sortItemsBy("label", "ASC"); break; } i--; } cardObj.deck.text = deck + 1; myManagerCards["deck" + cardObj.idPos] = deck + 1; if (cardObj.idCard <= 9) { classesInDeck++; } else { cardsInDeck++; } } } } function removeDeckCard(cardObj) { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { deck = Number(cardObj.deck.text); if (deck > 0) { cardObj.deck.text = deck - 1; myManagerCards["deck" + cardObj.idPos] = deck - 1; if (cardObj.idCard <= 9) { classesInDeck--; } else { cardsInDeck--; } i = cardObj.idMyCards.length - 1; while (i >= 0) { if (sendDeck.deckArray.indexOf(cardObj.idMyCards[i]) != -1) { removedCardArray = sendDeck.deckArray.splice(sendDeck.deckArray.indexOf(cardObj.idMyCards[i]), 1); removedCard = removedCardArray.toString(); z = 0; while (z < cardListBox.length) { if (cardListBox.getItemAt(z).data == Number(removedCard)) { cardListBox.removeItemAt(z); if (cardListBox.length == 0) { cardListBox.addItem("[None]"); } cardListBox.selectedIndex = z - 1; break; } z++; } break; } i--; } } } } function deleteDeckLoaded() { _root.attachMovie("deleteDeckBox", "deleteDeckBox", _root.confirmBoxDepth + 1); deleteDeckBox._x = 319; deleteDeckBox._y = 210; colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(filterButton, disabledColor); filterButton.enabled = false; colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; deleteDeckURL.load((((((((webpage + "/managerFiles/deleteDeck.asp?idUser=") + idUser) + "&deckName=") + _root.deckName) + "&defaultDeck=") + myManagerCards.defaultDeck) + "&rn=") + random(10000)); } function releaseCard() { var _local2 = ((("window.open('" + webpage) + "/cardPopup.html?idCard=") + this._parent.idCard) + "','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"; getURL (("javascript:" + _local2) + " void(0);"); } function reloadCardManager(deck, filter) { if (filter) { filterString = (((((((((((((((("&filter=true&av=" + avFilter.active) + "&h=") + hFilter.active) + "&a=") + aFilter.active) + "&p=") + pFilter.active) + "&m=") + mFilter.active) + "&s=") + sFilter.active) + "&w=") + wFilter.active) + "&k=") + kFilter.active) + "&g=") + gFilter.active; } else { filterString = ""; } if (deck == "new") { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } _root.loadString = ((((((webpage + "/managerFiles/loadManager.asp?u=") + _root.myName) + "&p=") + _root.password) + filterString) + "&rn=") + random(10000); } else if (deck == "load") { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } _root.loadString = ((((((((webpage + "/managerFiles/loadManager.asp?u=") + _root.myName) + "&p=") + _root.password) + "&loadedDeck=") + _root.loadedDeck) + filterString) + "&rn=") + random(10000); } z = 1; while (z <= totalPages) { eval ("pageTab" + z).removeMovieClip(); z++; } for (var dataLoaded in myManagerCards) { if (dataLoaded != "onLoad") { delete myManagerCards[dataLoaded]; } } for (var dataLoaded in sendDeck) { if (dataLoaded != "onLoad") { delete sendDeck[dataLoaded]; } } colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(filterButton, disabledColor); filterButton.enabled = false; colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; myManagerCards.load(loadString); loadingMsg = "Loading cards..."; } function gotoPage() { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { if (playSounds) { cardflip.start(); } _root.imagesLoaded = 0; loadingMsg = "Loading cards..."; i = 1; while (i <= 24) { eval ("card" + i).removeMovieClip(); i++; } _root.oldPage = _root.currentPage; _root.currentPage = Number(this.pageNum.text) - 1; if (oldPage > currentPage) { numCardsLoaded = 24; } _root.cardPage = _root.currentPage * 24; i = 1; while (i <= numCardsLoaded) { columLimit = i % 3; createCard(myManagerCards["idCard" + (cardPage + i)], myManagerCards["picture" + (cardPage + i)], myManagerCards["model" + (cardPage + i)], myManagerCards["quantity" + (cardPage + i)], myManagerCards["deck" + (cardPage + i)], myManagerCards["idMyCards" + (cardPage + i)], i, w, h, cardPage + i); if ((columLimit == 0) && (w < 4)) { h++; w = 0; } if (h == 5) { h = 1; w = 4; } if ((columLimit == 0) && (w > 4)) { h++; w = 4; } w++; i++; } h = 1; w = 1; z = 1; while (z <= totalPages) { eval ("pageTab" + z).enabled = false; z++; } buttonPrevious.enabled = false; buttonNext.enabled = false; } } function classFilterTrigger() { if (this.active) { this._alpha = 40; this.active = false; sendDeck[this._name] = false; } else { this._alpha = 100; this.active = true; sendDeck[this._name] = true; } } var mclistener = new Object(); mclistener.onLoadComplete = function (pic) { if ((pic._name = "pictureClip")) { _root.imagesLoaded++; if (_root.imagesLoaded >= (loop - 1)) { pageDisplay.text = "Page " + (_root.currentPage + 1); _root.loadingMsg = ""; if (_root.cardNum <= 24) { buttonPrevious.enabled = false; buttonNext.enabled = false; _root.numCardsLoaded = _root.cardNum; } else { z = 1; while (z <= totalPages) { eval ("pageTab" + z).enabled = true; z++; } if (_root.currentPage >= 1) { buttonPrevious.enabled = true; buttonPrevious._visible = true; } else { buttonPrevious._visible = false; } if ((_root.cardNum - (_root.currentPage * 24)) <= 24) { buttonNext._visible = false; _root.numCardsLoaded = _root.lastPageCards; } else { buttonNext.enabled = true; buttonNext._visible = true; _root.numCardsLoaded = 24; } } z = 1; while (z <= numCardsLoaded) { eval ("card" + z)._alpha = 100; eval ("card" + z).quantity.text = eval ("card" + z).tempQuant; eval ("card" + z).deck.text = eval ("card" + z).tempDeck; eval ("card" + z).hit.enabled = true; eval ("card" + z).addCard.enabled = true; eval ("card" + z).removeCard.enabled = true; z++; } movieLoader.removeListener(mclistener); } } }; removeCardButton.onRelease = function () { if (cardListBox.selectedItem.label != "[None]") { if (playSounds) { cardflip.start(); } i = 1; while (i < cardNum) { if (eval ("card" + i).cardName == cardListBox.selectedItem.label) { deck = Number(eval ("card" + i).deck.text); eval ("card" + i).deck.text = deck - 1; myManagerCards["deck" + eval ("card" + i).idPos] = deck - 1; if (eval ("card" + i).idCard <= 9) { classesInDeck--; } else { cardsInDeck--; } break; } if (myManagerCards["cardName" + i] == cardListBox.selectedItem.label) { deck = Number(myManagerCards["deck" + i]); myManagerCards["deck" + i] = deck - 1; if (Number(myManagerCards["idCard" + i]) <= 9) { classesInDeck--; } else { cardsInDeck--; } break; } i++; } if (sendDeck.deckArray.indexOf(cardListBox.selectedItem.data) != -1) { sendDeck.deckArray.splice(sendDeck.deckArray.indexOf(cardListBox.selectedItem.data), 1); } if (cardListBox.selectedIndex == (cardListBox.length - 1)) { newIndex = cardListBox.selectedIndex - 1; } else { newIndex = cardListBox.selectedIndex; } _root.attachMovie("removeCardAnimation", "removeCardAnimation", 999); removeCardAnimation._x = 39; removeCardAnimation._y = 456; removeCardAnimation.removedCard.text = cardListBox.selectedItem.label; removeCardAnimation.onEnterFrame = function () { if (this._currentframe == 20) { this.stop(); this.removeMovieClip(); } }; cardListBox.removeItemAt(cardListBox.selectedIndex); cardListBox.selectedIndex = newIndex; if (cardListBox.length == 0) { cardListBox.addItem("[None]"); } } else { colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; } }; ToolTip.install(_root.removeCardButton, "Click here to remove this card from your deck.", 250); buttonNext.onRelease = function () { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { if (playSounds) { cardflip.start(); } _root.imagesLoaded = 0; loadingMsg = "Loading cards..."; i = 1; while (i <= 24) { eval ("card" + i).removeMovieClip(); i++; } _root.currentPage++; _root.cardPage = _root.currentPage * 24; i = 1; while (i <= numCardsLoaded) { columLimit = i % 3; createCard(myManagerCards["idCard" + (cardPage + i)], myManagerCards["picture" + (cardPage + i)], myManagerCards["model" + (cardPage + i)], myManagerCards["quantity" + (cardPage + i)], myManagerCards["deck" + (cardPage + i)], myManagerCards["idMyCards" + (cardPage + i)], i, w, h, cardPage + i); if ((columLimit == 0) && (w < 4)) { h++; w = 0; } if (h == 5) { h = 1; w = 4; } if ((columLimit == 0) && (w > 4)) { h++; w = 4; } w++; i++; } h = 1; w = 1; z = 1; while (z <= totalPages) { eval ("pageTab" + z).enabled = false; z++; } buttonPrevious.enabled = false; buttonNext.enabled = false; } }; buttonPrevious.onRelease = function () { if (((((!_root.saveDeckBox) && (!_root.saveNewDeckBox)) && (!_root.deckList)) && (!_root.okResponse2)) && (!_root.okCancelResponse)) { if (playSounds) { cardflip.start(); } _root.imagesLoaded = 0; loadingMsg = "Loading cards..."; i = 1; while (i <= 24) { eval ("card" + i).removeMovieClip(); i++; } _root.currentPage--; _root.cardPage = _root.currentPage * 24; i = 1; while (i <= 24) { columLimit = i % 3; createCard(myManagerCards["idCard" + (cardPage + i)], myManagerCards["picture" + (cardPage + i)], myManagerCards["model" + (cardPage + i)], myManagerCards["quantity" + (cardPage + i)], myManagerCards["deck" + (cardPage + i)], myManagerCards["idMyCards" + (cardPage + i)], i, w, h, cardPage + i); if ((columLimit == 0) && (w < 4)) { h++; w = 0; } if (h == 5) { h = 1; w = 4; } if ((columLimit == 0) && (w > 4)) { h++; w = 4; } w++; i++; } h = 1; w = 1; z = 1; while (z <= totalPages) { eval ("pageTab" + z).enabled = false; z++; } buttonPrevious.enabled = false; buttonNext.enabled = false; } }; renameButton.onRelease = function () { if (_root.deckNameList.indexOf(deckNameInput.text) != -1) { warning = "Deck name already taken. Please choose another name."; warningText.play(); } else if ((deckNameInput.text == "") || (!validateString(deckNameInput.text))) { warning = "Invalid deck name."; warningText.play(); } else if (loadingMsg == "") { colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(filterButton, disabledColor); colorize(removeCardButton, disabledColor); filterButton.enabled = false; renameDeckURL.load((((((((((webpage + "/managerFiles/renameDeck.asp?idUser=") + idUser) + "&oldName=") + _root.deckName) + "&newName=") + deckNameInput.text) + "&defaultDeck=") + myManagerCards.defaultDeck) + "&rn=") + random(10000)); } }; ToolTip.install(_root.renameButton, "Type a new deck name in the box above and click here.", 250); setDefaultButton.onRelease = function () { if (loadingMsg == "") { colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(filterButton, disabledColor); filterButton.enabled = false; setDefaultURL.load((((((webpage + "/managerFiles/defaultDeck.asp?idUser=") + idUser) + "&deckName=") + _root.deckName) + "&rn=") + random(10000)); } }; ToolTip.install(_root.setDefaultButton, "Click here to set this deck as your default deck.", 250); avFilter.onRelease = classFilterTrigger; hFilter.onRelease = classFilterTrigger; aFilter.onRelease = classFilterTrigger; pFilter.onRelease = classFilterTrigger; mFilter.onRelease = classFilterTrigger; sFilter.onRelease = classFilterTrigger; wFilter.onRelease = classFilterTrigger; kFilter.onRelease = classFilterTrigger; gFilter.onRelease = classFilterTrigger; filterButton.onRelease = function () { z = 1; while (z <= numCardsLoaded) { eval ("card" + z).removeMovieClip(); z++; } z = 1; while (z <= totalPages) { eval ("pageTab" + z).removeMovieClip(); z++; } for (var dataLoaded in myManagerCards) { if ((dataLoaded != "onLoad") && (dataLoaded != "defaultDeck")) { delete myManagerCards[dataLoaded]; } } colorize(renameButton, disabledColor); renameButton.enabled = false; colorize(setDefaultButton, disabledColor); setDefaultButton.enabled = false; colorize(filterButton, disabledColor); filterButton.enabled = false; colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; _root.filterLoad = true; sendDeck.idUser = _root.idUser; sendDeck.loadedDeck = _root.deckName; sendDeck.sendAndLoad(webpage + "/managerFiles/loadFilterCards.asp", myManagerCards, "POST"); loadingMsg = "Loading cards..."; }; ToolTip.install(_root.filterButton, "Select the classes you would like to see on your left and click here.", 250); tradeChatTab.tradeTabBtn.onRelease = function () { _root.tradeChatTab.play(); }; tradeChatTab.sendButton.onRelease = function () { if (!antiSpam) { sendChatMsg(tradeChatTab.msgBox); antiSpam = true; antiSpamTimer = getTimer() / 1000; _root.tradeChatTab.onEnterFrame = function () { delay = getTimer() / 1000; if (antiSpamTimer <= (delay - 4)) { antiSpam = false; delete this.onEnterFrame; } }; } }; cardListBox.setStyle("backgroundColor", 0); cardListBox.setStyle("borderStyle", "none"); cardListBox.setStyle("color", 16777215); cardListBox.setStyle("fontSize", 10); cardListBox.setStyle("fontFamily", "Verdana"); cardListBox.setStyle("selectionColor", "none"); cardListBox.setStyle("rollOverColor", "none"); cardListBox.setStyle("textRollOverColor", 16763904); cardListBox.setStyle("textSelectedColor", 16763904); var cbListener = new Object(); cbListener.change = function (evt_obj) { var _local1 = evt_obj.target.selectedItem; if (_local1.label != "[None]") { uncolorize(removeCardButton); removeCardButton.enabled = true; } else { colorize(removeCardButton, disabledColor); removeCardButton.enabled = false; } }; cardListBox.addEventListener("change", cbListener); cardListBox.onMouseDown = function () { a = _root.getNextHighestDepth(); cardListBox.__dropdown.swapDepths(a); }; buttonPrevious.enabled = false; buttonNext.enabled = false; warningText.stop(); onEnterFrame = function () { if (loadedSong.getVolume() > 0) { loadedSong.setVolume(loadedSong.getVolume() - 5); } else if (playMusic) { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = manager_music; loadedSong.start(); intervalVal = setInterval(loopSong, 1); delete this.onEnterFrame; } else { if (intervalVal) { clearInterval(intervalVal); } loadedSong.stop(); loadedSong.setVolume(100); loadedSong = manager_music; delete this.onEnterFrame; } }; var uVars = new Object(); uVars.chatRoom = 0; uVars.inGame = 0; smartfox.setUserVariables(uVars, mainRoomID); delete uVars; var bVars = new Object(); bVars.chatRoom = 0; smartfox.setBuddyVariables(bVars); delete bVars; if (clanRoomID) { smartfox.leaveRoom(clanRoomID); delete clanRoomID; } if (gameRoomID) { smartfox.leaveRoom(gameRoomID); delete gameRoomID; } if (leaveLobby) { delete leaveLobby; } else { smartfox.joinRoom(tradeRoomID, "", false, true); } publicChat[lobbyRoomID] = ""; publicChat[tradeRoomID] = ""; publicChat[gameRoomID] = ""; privateChat[0] = ""; privateChat[1] = ""; privateChat[2] = ""; privateChat[3] = ""; privateChat[4] = ""; privateChat[5] = ""; privateChat[6] = ""; privateChat[7] = ""; privateChat[8] = "";
Instance of Symbol 1134 MovieClip [ComboBox] "cardListBox" in Frame 10
//component parameters onClipEvent (construct) { editable = false; rowCount = 8; restrict = ""; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 63 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 70 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 93 MovieClip [BtnDownArrow] Frame 1
#initclip 57 Object.registerClass("BtnDownArrow", mx.controls.SimpleButton); #endinitclip
Symbol 94 MovieClip [BtnUpArrow] Frame 1
#initclip 55 Object.registerClass("BtnUpArrow", mx.controls.SimpleButton); #endinitclip
Symbol 99 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 56 Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton); #endinitclip
Symbol 102 MovieClip [ComboAssets] Frame 1
#initclip 58 mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp"; mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown"; mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver"; mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled"; mx.controls.ComboBox.prototype.wrapDownArrowButton = false; mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid"; mx.controls.ComboBox.prototype.adjustFocusRect = function () { var _local2 = this.getStyle("themeColor"); if (_local2 == undefined) { _local2 = 8453965 /* 0x80FF4D */; } var _local3 = this._parent.focus_mc; _local3.setSize(this.width + 4, this.height + 4, {bl:0, tl:0, tr:5, br:5}, 100, _local2); _local3.move(this.x - 2, this.y - 2); }; #endinitclip
Symbol 160 MovieClip [viewCard] Frame 1
stop();
Symbol 233 MovieClip Frame 1
i = 1; alpha = 1; maxlight = 15; while (i <= maxlight) { duplicateMovieClip ("ray0", "ray" + i, 800 - i); Set(undefined, undefined); setProperty("ray" + i, _xscale , getProperty("ray" + (i - 1), _xscale) + (i * alpha)); setProperty("ray" + i, _yscale , getProperty("ray" + (i - 1), _yscale) + (i * alpha)); setProperty("ray" + i, _alpha , 10 - (i * 0.01)); i = i + 1; } setProperty("ray0", _visible , "0"); stop();
Instance of Symbol 232 MovieClip "ray0" in Symbol 233 MovieClip Frame 1
onClipEvent (enterFrame) { mov = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if ((this._currentframe < (mov * 2)) && (!playRay)) { playRay = true; this.play(); } else if ((this._currentframe >= (mov * 2)) || (this._currentframe == 200)) { playRay = false; this.stop(); } if ((mov == 100) && (this._currentframe == 200)) { delete this.onEnterFrame; _root.play(); } }
Symbol 471 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 422 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.127"; static var textColorList = {color:1, disabledColor:1}; var invalidateFlag = false; var lineWidth = 1; var lineColor = 0; var tabEnabled = false; var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1}; }
Symbol 459 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 460 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 462 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 461 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 423 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.127"; static var kStretch = 5000; var focusEnabled = true; var tabEnabled = true; var origBorderStyles = {themeColor:16711680}; var clipParameters = {}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); }
Symbol 463 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.127"; var className = "SimpleButton"; var style3dInset = 4; var btnOffset = 1; var __toggle = false; var __state = false; var __emphasized = false; var __emphatic = false; static var falseUp = 0; static var falseDown = 1; static var falseOver = 2; static var falseDisabled = 3; static var trueUp = 4; static var trueDown = 5; static var trueOver = 6; static var trueDisabled = 7; var falseUpSkin = "SimpleButtonUp"; var falseDownSkin = "SimpleButtonIn"; var falseOverSkin = ""; var falseDisabledSkin = "SimpleButtonUp"; var trueUpSkin = "SimpleButtonIn"; var trueDownSkin = ""; var trueOverSkin = ""; var trueDisabledSkin = "SimpleButtonIn"; var falseUpIcon = ""; var falseDownIcon = ""; var falseOverIcon = ""; var falseDisabledIcon = ""; var trueUpIcon = ""; var trueDownIcon = ""; var trueOverIcon = ""; var trueDisabledIcon = ""; var phase = "up"; var fui = "falseUpIcon"; var fus = "falseUpSkin"; var fdi = "falseDownIcon"; var fds = "falseDownSkin"; var frs = "falseOverSkin"; var fri = "falseOverIcon"; var dfi = "falseDisabledIcon"; var dfs = "falseDisabledSkin"; var tui = "trueUpIcon"; var tus = "trueUpSkin"; var tdi = "trueDownIcon"; var tds = "trueDownSkin"; var trs = "trueOverSkin"; var tri = "trueOverIcon"; var dts = "trueDisabledSkin"; var dti = "trueDisabledIcon"; var rolloverSkin = mx.controls.SimpleButton.prototype.frs; var rolloverIcon = mx.controls.SimpleButton.prototype.fri; var upSkin = mx.controls.SimpleButton.prototype.fus; var downSkin = mx.controls.SimpleButton.prototype.fds; var disabledSkin = mx.controls.SimpleButton.prototype.dfs; var upIcon = mx.controls.SimpleButton.prototype.fui; var downIcon = mx.controls.SimpleButton.prototype.fdi; var disabledIcon = mx.controls.SimpleButton.prototype.dfi; var initializing = true; var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"]; var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"]; var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"]; var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7}; }
Symbol 1120 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 _local3 = function (Void) { return(this["get" + p]()); }; if (setter) { _local2 = function (val) { this["set" + p](val); }; } obj.addProperty(propName, _local3, _local2); } function setDataProvider(dP) { if (__vPosition != 0) { setVPosition(0); } clearSelected(); __dataProvider.removeEventListener(this); __dataProvider = dP; dP.addEventListener("modelChanged", this); dP.addView(this); modelChanged({eventName:"updateAll"}); } function getDataProvider(Void) { return(__dataProvider); } function addItemAt(index, label, data) { if ((index < 0) || (!enabled)) { return(undefined); } var _local2 = __dataProvider; if (_local2 == undefined) { _local2 = (__dataProvider = new Array()); _local2.addEventListener("modelChanged", this); index = 0; } if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) { _local2.addItemAt(index, label); } else { _local2.addItemAt(index, {label:label, data:data}); } } function addItem(label, data) { addItemAt(__dataProvider.length, label, data); } function removeItemAt(index) { return(__dataProvider.removeItemAt(index)); } function removeAll(Void) { __dataProvider.removeAll(); } function replaceItemAt(index, newLabel, newData) { if (typeof(newLabel) == "object") { __dataProvider.replaceItemAt(index, newLabel); } else { __dataProvider.replaceItemAt(index, {label:newLabel, data:newData}); } } function sortItemsBy(fieldName, order) { lastSelID = __dataProvider.getItemID(lastSelected); __dataProvider.sortItemsBy(fieldName, order); } function sortItems(compareFunc, order) { lastSelID = __dataProvider.getItemID(lastSelected); __dataProvider.sortItems(compareFunc, order); } function getLength(Void) { return(__dataProvider.length); } function getItemAt(index) { return(__dataProvider.getItemAt(index)); } function modelChanged(eventObj) { var _local3 = eventObj.firstItem; var _local6 = eventObj.lastItem; var _local7 = eventObj.eventName; if (_local7 == undefined) { _local7 = eventObj.event; _local3 = eventObj.firstRow; _local6 = eventObj.lastRow; if (_local7 == "addRows") { _local7 = (eventObj.eventName = "addItems"); } else if (_local7 == "deleteRows") { _local7 = (eventObj.eventName = "removeItems"); } else if (_local7 == "updateRows") { _local7 = (eventObj.eventName = "updateItems"); } } if (_local7 == "addItems") { for (var _local2 in selected) { var _local5 = selected[_local2]; if ((_local5 != undefined) && (_local5 >= _local3)) { selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1); } } } else if (_local7 == "removeItems") { if (__dataProvider.length == 0) { delete selected; } else { var _local9 = eventObj.removedIDs; var _local10 = _local9.length; var _local2 = 0; while (_local2 < _local10) { var _local4 = _local9[_local2]; if (selected[_local4] != undefined) { delete selected[_local4]; } _local2++; } for (_local2 in selected) { if (selected[_local2] >= _local3) { selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1); } } } } else if (_local7 == "sort") { if (typeof(__dataProvider.getItemAt(0)) != "object") { delete selected; } else { var _local10 = __dataProvider.length; var _local2 = 0; while (_local2 < _local10) { if (isSelected(_local2)) { var _local4 = __dataProvider.getItemID(_local2); if (_local4 == lastSelID) { lastSelected = _local2; } selected[_local4] = _local2; } _local2++; } } } else if (_local7 == "filterModel") { setVPosition(0); } invUpdateControl = true; invalidate(); } function getValue(Void) { var _local2 = getSelectedItem(); if (typeof(_local2) != "object") { return(_local2); } return(((_local2.data == undefined) ? (_local2.label) : (_local2.data))); } function getSelectedIndex(Void) { for (var _local3 in selected) { var _local2 = selected[_local3]; if (_local2 != undefined) { return(_local2); } } } function setSelectedIndex(index) { if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) { delete selected; selectItem(index, true); lastSelected = index; invUpdateControl = true; invalidate(); } else if (index == undefined) { clearSelected(); } } function getSelectedIndices(Void) { var _local2 = new Array(); for (var _local3 in selected) { _local2.push(selected[_local3]); } _local2.reverse(); return(((_local2.length > 0) ? (_local2) : undefined)); } function setSelectedIndices(indexArray) { if (multipleSelection != true) { return(undefined); } delete selected; var _local3 = 0; while (_local3 < indexArray.length) { var _local2 = indexArray[_local3]; if ((_local2 >= 0) && (_local2 < __dataProvider.length)) { selectItem(_local2, true); } _local3++; } invUpdateControl = true; updateControl(); } function getSelectedItems(Void) { var _local3 = getSelectedIndices(); var _local4 = new Array(); var _local2 = 0; while (_local2 < _local3.length) { _local4.push(getItemAt(_local3[_local2])); _local2++; } return(((_local4.length > 0) ? (_local4) : undefined)); } function getSelectedItem(Void) { return(__dataProvider.getItemAt(getSelectedIndex())); } function selectItem(index, selectedFlag) { if (selected == undefined) { selected = new Object(); } var _local2 = __dataProvider.getItemID(index); if (_local2 == undefined) { return(undefined); } if (selectedFlag && (!isSelected(index))) { selected[_local2] = index; } else if (!selectedFlag) { delete selected[_local2]; } } function isSelected(index) { var _local2 = __dataProvider.getItemID(index); if (_local2 == undefined) { return(false); } return(selected[_local2] != undefined); } function clearSelected(transition) { var _local3 = 0; for (var _local4 in selected) { var _local2 = selected[_local4]; if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) { rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0)); } _local3++; } delete selected; } static var mixins = new mx.controls.listclasses.DataSelector(); static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"]; }
Symbol 1121 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.127"; var _editable = false; var downArrowUpName = "ScrollDownArrowUp"; var downArrowDownName = "ScrollDownArrowDown"; var downArrowOverName = "ScrollDownArrowOver"; var downArrowDisabledName = "ScrollDownArrowDisabled"; var wrapDownArrowButton = true; var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue; var multipleSelection = false; }
Symbol 464 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 481 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.127"; var className = "RectBorder"; var borderStyleName = "borderStyle"; var borderColorName = "borderColor"; var shadowColorName = "shadowColor"; var highlightColorName = "highlightColor"; var buttonColorName = "buttonColor"; var backgroundColorName = "backgroundColor"; }
Symbol 1135 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.127"; var className = "TextInput"; var initializing = true; var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); var _maxWidth = mx.core.UIComponent.kStretch; var __editable = true; var initText = ""; }
Symbol 1122 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.127"; var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters); var className = "ComboBox"; var _showingDropdown = false; var __rowCount = 5; var dropdownBorderStyle = undefined; var initializing = true; var __labelField = "label"; var bInKeyDown = false; }
Symbol 1136 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.127"; static var mixins = undefined; }
Symbol 474 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 _local5 = "down"; if (depthFlag == kBottom) { _local5 = "up"; } var _local6; if (_local3[_local2] != undefined) { _local6 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local5); } var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj); if (_local6 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local6, _local3, _local5); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function createChildAtDepth(linkageName, depthFlag, initObj) { if (_childCounter == undefined) { _childCounter = 0; } var _local3 = buildDepthTable(); var _local2 = getDepthByFlag(depthFlag, _local3); var _local5 = "down"; if (depthFlag == kBottom) { _local5 = "up"; } var _local6; if (_local3[_local2] != undefined) { _local6 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local5); } var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj); if (_local6 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local6, _local3, _local5); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function setDepthTo(depthFlag) { var _local2 = _parent.buildDepthTable(); var _local3 = _parent.getDepthByFlag(depthFlag, _local2); if (_local2[_local3] != undefined) { shuffleDepths(MovieClip(this), _local3, _local2, undefined); } else { swapDepths(_local3); } if (depthFlag == kTopmost) { _topmost = true; } else { delete _topmost; } } function setDepthAbove(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local2 = targetInstance.getDepth() + 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local2] != undefined) && (getDepth() < _local2)) { _local2 = _local2 - 1; } if (_local2 > highestDepth) { _local2 = highestDepth; } if (_local2 == highestDepth) { _parent.shuffleDepths(this, _local2, _local3, "down"); } else if (_local3[_local2] != undefined) { _parent.shuffleDepths(this, _local2, _local3, undefined); } else { swapDepths(_local2); } } function setDepthBelow(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local6 = targetInstance.getDepth() - 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local6] != undefined) && (getDepth() > _local6)) { _local6 = _local6 + 1; } var _local4 = lowestDepth + numberOfAuthortimeLayers; var _local5; for (_local5 in _local3) { var _local2 = _local3[_local5]; if (_local2._parent != undefined) { _local4 = Math.min(_local4, _local2.getDepth()); } } if (_local6 < _local4) { _local6 = _local4; } if (_local6 == _local4) { _parent.shuffleDepths(this, _local6, _local3, "up"); } else if (_local3[_local6] != undefined) { _parent.shuffleDepths(this, _local6, _local3, undefined); } else { swapDepths(_local6); } } function findNextAvailableDepth(targetDepth, depthTable, direction) { var _local5 = lowestDepth + numberOfAuthortimeLayers; if (targetDepth < _local5) { targetDepth = _local5; } if (depthTable[targetDepth] == undefined) { return(targetDepth); } var _local1 = targetDepth; var _local2 = targetDepth; if (direction == "down") { while (depthTable[_local2] != undefined) { _local2--; } return(_local2); } while (depthTable[_local1] != undefined) { _local1++; } return(_local1); } function shuffleDepths(subject, targetDepth, depthTable, direction) { var _local9 = lowestDepth + numberOfAuthortimeLayers; var _local8 = _local9; var _local5; for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local9 = Math.min(_local9, _local7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = "up"; } else { direction = "down"; } } var _local1 = new Array(); for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local1.push(_local7); } } _local1.sort(sortFunction); if (direction == "up") { var _local3; var _local11; do { if (_local1.length <= 0) { break; } _local3 = _local1.pop(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } _local11 = subject.getDepth(); _local3 = _local1.pop(); var _local4 = _local3.getDepth(); if (_local11 > (_local4 + 1)) { if (_local4 >= 0) { subject.swapDepths(_local4 + 1); } else if ((_local11 > _local8) && (_local4 < _local8)) { subject.swapDepths(_local8); } } subject.swapDepths(_local3); } while (_local4 != targetDepth); } else if (direction == "down") { var _local3; do { if (_local1.length <= 0) { break; } _local3 = _local1.shift(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } var _local11 = _local3.getDepth(); _local3 = _local1.shift(); var _local4 = _local3.getDepth(); if ((_local11 < (_local4 - 1)) && (_local4 > 0)) { subject.swapDepths(_local4 - 1); } subject.swapDepths(_local3); } while (_local4 != targetDepth); } } function getDepthByFlag(depthFlag, depthTable) { var _local2 = 0; if ((depthFlag == kTop) || (depthFlag == kNotopmost)) { var _local5 = 0; var _local7 = false; var _local8; for (_local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { if (!_local9._topmost) { _local2 = Math.max(_local2, _local9.getDepth()); } else if (!_local7) { _local5 = _local9.getDepth(); _local7 = true; } else { _local5 = Math.min(_local5, _local9.getDepth()); } } } } _local2 = _local2 + 20; if (_local7) { if (_local2 >= _local5) { _local2 = _local5 - 1; } } } else if (depthFlag == kBottom) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.min(_local2, _local9.getDepth()); } } } _local2 = _local2 - 20; } else if (depthFlag == kTopmost) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.max(_local2, _local9.getDepth()); } } } _local2 = _local2 + 100; } if (_local2 >= highestDepth) { _local2 = highestDepth; } var _local6 = lowestDepth + numberOfAuthortimeLayers; for (var _local9 in depthTable) { var _local4 = depthTable[_local9]; if (_local4._parent != undefined) { _local6 = Math.min(_local6, _local4.getDepth()); } } if (_local2 <= _local6) { _local2 = _local6; } return(_local2); } function buildDepthTable(Void) { var _local5 = new Array(); var _local4; for (_local4 in this) { var _local2 = this[_local4]; var _local3 = typeof(_local2); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) { if (_local2._parent == this) { _local5[_local2.getDepth()] = _local2; } } } return(_local5); } static var reservedDepth = 1048575; static var highestDepth = 1048574; static var lowestDepth = -16383; static var numberOfAuthortimeLayers = 383; static var kCursor = 101; static var kTooltip = 102; static var kTop = 201; static var kBottom = 202; static var kTopmost = 203; static var kNotopmost = 204; static var holder = _root.createEmptyMovieClip("reserved", reservedDepth); static var __depthManager = new mx.managers.DepthManager(); }
Symbol 475 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 469 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 1137 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 set tabIndex(n) { __tabIndex = n; //return(tabIndex); } function addLayoutObject(object) { } function createChild(className, instanceName, initProps) { if (depth == undefined) { depth = 1; } var _local2; if (typeof(className) == "string") { _local2 = createObject(className, instanceName, depth++, initProps); } else { _local2 = createClassObject(className, instanceName, depth++, initProps); } if (_local2 == undefined) { _local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps); } else { this[childNameBase + numChildren] = _local2; _local2._complete = true; childLoaded(_local2); } addLayoutObject(_local2); return(_local2); } function getChildAt(childIndex) { return(this[childNameBase + childIndex]); } function destroyChildAt(childIndex) { if (!((childIndex >= 0) && (childIndex < numChildren))) { return(undefined); } var _local4 = childNameBase + childIndex; var _local6 = numChildren; var _local3; for (_local3 in this) { if (_local3 == _local4) { _local4 = ""; destroyObject(_local3); break; } } var _local2 = Number(childIndex); while (_local2 < (_local6 - 1)) { this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)]; _local2++; } delete this[childNameBase + (_local6 - 1)]; depth--; } function initLayout() { if (!hasBeenLayedOut) { doLayout(); } } function doLayout() { hasBeenLayedOut = true; } function createChildren() { if (border_mc == undefined) { border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this}); } doLater(this, "initLayout"); } function convertToUIObject(obj) { } function childLoaded(obj) { convertToUIObject(obj); } static function extension() { mx.core.ExternalContent.enableExternalContent(); } static var symbolName = "View"; static var symbolOwner = mx.core.View; static var version = "2.0.2.127"; var className = "View"; static var childNameBase = "_child"; var hasBeenLayedOut = false; var _loadExternalClass = "UIComponent"; }
Symbol 1138 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 470 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 1139 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 _local4 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth); if ((__hScrollPolicy == "on") || ((_local4 < colCount) && (__hScrollPolicy == "auto"))) { if ((hScroller == undefined) || (specialHScrollCase)) { delete specialHScrollCase; hScroller = mx.controls.scrollClasses.ScrollBar(createObject("HScrollBar", "hSB", 1001)); hScroller.__set__lineScrollSize(20); hScroller.scrollHandler = scrollProxy; hScroller.__set__scrollPosition(__hPosition); scrollAreaChanged = true; } if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local4)) || (scrollAreaChanged)) { hScroller.setScrollProperties(_local4, 0, colCount - _local4); viewableColumns = _local4; numberOfCols = colCount; columnWidth = colWidth; } } else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) { hScroller.removeMovieClip(); delete hScroller; scrollAreaChanged = true; } if (heightPadding == undefined) { heightPadding = 0; } var _local5 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight); var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0; if ((__vScrollPolicy == "on") || ((_local5 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) { if (vScroller == undefined) { vScroller = mx.controls.scrollClasses.ScrollBar(createObject("VScrollBar", "vSB", 1002)); vScroller.scrollHandler = scrollProxy; vScroller.__set__scrollPosition(__vPosition); scrollAreaChanged = true; rowH = 0; } if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local5 + oldRndUp))) || (scrollAreaChanged)) { vScroller.setScrollProperties(_local5, 0, (rwCount - _local5) + _local8); viewableRows = _local5; rowC = rwCount; rowH = rwHeight; oldRndUp = _local8; } } else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) { vScroller.removeMovieClip(); delete vScroller; scrollAreaChanged = true; } numberOfCols = colCount; columnWidth = colWidth; if (scrollAreaChanged) { doLayout(); var _local2 = __viewMetrics; var _local12 = ((owner != undefined) ? (owner) : this); _local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom); } if (!enabled) { setEnabled(false); } } function getViewMetrics(Void) { var _local2 = __viewMetrics; var _local3 = border_mc.__get__borderMetrics(); _local2.left = _local3.left; _local2.right = _local3.right; if (vScroller != undefined) { _local2.right = _local2.right + vScroller.minWidth; } _local2.top = _local3.top; if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) { hScroller = mx.controls.scrollClasses.ScrollBar(createObject("FHScrollBar", "hSB", 1001)); specialHScrollCase = true; } _local2.bottom = _local3.bottom; if (hScroller != undefined) { _local2.bottom = _local2.bottom + hScroller.minHeight; } return(_local2); } function doLayout(Void) { var _local10 = __get__width(); var _local8 = __get__height(); delete invLayout; var _local3 = (__viewMetrics = getViewMetrics()); var _local2 = _local3.left; var _local9 = _local3.right; var _local5 = _local3.top; var _local11 = _local3.bottom; var _local7 = hScroller; var _local6 = vScroller; _local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0); _local7.move(_local2, _local8 - _local11); _local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11); _local6.move(_local10 - _local9, _local5); var _local4 = mask_mc; _local4._width = (_local10 - _local2) - _local9; _local4._height = (_local8 - _local5) - _local11; _local4._x = _local2; _local4._y = _local5; } function createChild(id, name, props) { var _local2 = super.createChild(id, name, props); return(_local2); } function init(Void) { super.init(); __viewMetrics = new Object(); if (_global.__SVMouseWheelManager == undefined) { var _local4 = (_global.__SVMouseWheelManager = new Object()); _local4.onMouseWheel = __onMouseWheel; Mouse.addListener(_local4); } } function __onMouseWheel(delta, scrollTarget) { var _local4 = scrollTarget; var _local1; while (_local4 != undefined) { if (_local4 instanceof mx.core.ScrollView) { _local1 = _local4; } _local4 = _local4._parent; } if (_local1 != undefined) { _local4 = ((delta <= 0) ? 1 : -1); var _local2 = _local1.vScroller.lineScrollSize; if (_local2 == undefined) { _local2 = 0; } _local2 = Math.max(Math.abs(delta), _local2); var _local3 = _local1.vPosition + (_local2 * _local4); _local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition)); _local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition}); } } function createChildren(Void) { super.createChildren(); if (mask_mc == undefined) { mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH); } mask_mc._visible = false; } function invalidate(Void) { super.invalidate(); } function draw(Void) { size(); } function size(Void) { super.size(); } function scrollProxy(docObj) { _parent.onScroll(docObj); } function onScroll(docObj) { var _local3 = docObj.target; var _local2 = _local3.scrollPosition; if (_local3 == vScroller) { var _local4 = "vertical"; var _local5 = "__vPosition"; } else { var _local4 = "horizontal"; var _local5 = "__hPosition"; } this[_local5] = _local2; dispatchEvent({type:"scroll", direction:_local4, position:_local2}); } function setEnabled(v) { vScroller.enabled = (hScroller.enabled = v); } function childLoaded(obj) { super.childLoaded(obj); obj.setMask(mask_mc); } static var symbolName = "ScrollView"; static var symbolOwner = mx.core.ScrollView; static var version = "2.0.2.127"; var className = "ScrollView"; var __vScrollPolicy = "auto"; var __hScrollPolicy = "off"; var __vPosition = 0; var __hPosition = 0; var numberOfCols = 0; var rowC = 0; var columnWidth = 1; var rowH = 0; var heightPadding = 0; var widthPadding = 0; var MASK_DEPTH = 10000; }
Symbol 424 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 465 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.127"; var className = "CustomBorder"; static var tagL = 0; static var tagM = 1; static var tagR = 2; var idNames = new Array("l_mc", "m_mc", "r_mc"); var leftSkin = "F3PieceLeft"; var middleSkin = "F3PieceMiddle"; var rightSkin = "F3PieceRight"; var horizontal = true; }
Symbol 466 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 1140 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 1141 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 1142 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(MovieClip(mask_mc)); border_mc.move(0, 0); border_mc.setSize(__width, __height); } function getRowCount(Void) { var _local2 = getViewMetrics(); return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount))); } function size(Void) { super.size(); configureScrolling(); var _local3 = getViewMetrics(); layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom); } function draw(Void) { if (invRowHeight) { invScrollProps = true; super.draw(); listContent.setMask(MovieClip(mask_mc)); invLayoutContent = true; } if (invScrollProps) { configureScrolling(); delete invScrollProps; } if (invLayoutContent) { var _local3 = getViewMetrics(); layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom); } super.draw(); } function configureScrolling(Void) { var _local2 = __dataProvider.length; if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) { setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition))); } var _local3 = getViewMetrics(); var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right)); if (_local2 == undefined) { _local2 = 0; } setScrollProperties(_local4, 1, _local2, __rowHeight); if (oldVWidth != _local4) { invLayoutContent = true; } oldVWidth = _local4; } static var symbolOwner = mx.controls.List; static var symbolName = "List"; var className = "List"; static var version = "2.0.2.127"; var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1}; var scrollDepth = 1; var __vScrollPolicy = "on"; var autoHScrollAble = false; }
Symbol 1143 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 1158 MovieClip [__Packages.it.gotoandplay.smartfoxserver.SmartFoxClient] Frame 0
class it.gotoandplay.smartfoxserver.SmartFoxClient extends XMLSocket { var objRef, os, isConnected, debug, arrayTags, messageHandlers, httpConnection, onConnect, onData, onXML, onClose, fpMajorVersion, pollingDelayFn, roomList, buddyList, myBuddyVars, activeRoomId, myUserId, myUserName, playerId, changingRoom, amIModerator, configLoader, onConfigLoadFailure, ipAddress, blueBoxIpAddress, port, onConfigLoadSuccess, onBuddyListUpdate, onBuddyList, t1, socketConnectionTimeoutThread, onConnection, onConnectionLost, close; function SmartFoxClient (objRef) { super(); this.objRef = objRef; os = it.gotoandplay.smartfoxserver.ObjectSerializer.getInstance(); isConnected = false; debug = false; initialize(); arrayTags = {uLs:true, rmList:true, vars:true, bList:true, vs:true, mv:true}; messageHandlers = new Object(); httpConnection = new it.gotoandplay.smartfoxserver.http.HttpConnection(mx.utils.Delegate.create(this, handleHttpConnect), mx.utils.Delegate.create(this, handleHttpClose), mx.utils.Delegate.create(this, handleHttpData), mx.utils.Delegate.create(this, handleHttpError)); onConnect = connectionEstablished; onData = gotData; onXML = xmlReceived; onClose = connectionClosed; fpMajorVersion = getFpMajorVersion(); if (fpMajorVersion < 8) { pollingDelayFn = _global.setInterval; } else { pollingDelayFn = _global.setTimeout; } setupMessageHandlers(); } function get httpPollSpeed() { return(_httpPollSpeed); } function set httpPollSpeed(sp) { if ((sp >= MIN_POLL_SPEED) && (sp <= MAX_POLL_SPEED)) { _httpPollSpeed = sp; } //return(httpPollSpeed); } function getFpMajorVersion() { var _local1 = System.capabilities.version.indexOf(","); return(Number(System.capabilities.version.substr(_local1 - 1, 1))); } function initialize(isLogout) { if (isLogout == undefined) { isLogout = false; } roomList = {}; buddyList = []; myBuddyVars = []; activeRoomId = -1; myUserId = null; myUserName = ""; playerId = null; changingRoom = false; amIModerator = false; if (!isLogout) { isConnected = false; isHttpMode = false; preConnection = true; } } function loadConfig(configFile, autoConnect) { if (configFile == undefined) { configFile = DEFAULT_CONFIG_FILE; } if (autoConnect == undefined) { autoConnectOnConfigSuccess = DEFAULT_AUTO_CONNECT; } else { autoConnectOnConfigSuccess = autoConnect; } configLoader = new XML(); configLoader.ignoreWhite = true; configLoader.onLoad = mx.utils.Delegate.create(this, onConfigLoadSucceeded); configLoader.load(configFile); } function onConfigLoadSucceeded(ok) { if (!ok) { onConfigLoadFailure("Could not load config file!"); return(undefined); } var _local6 = configLoader.childNodes[0].childNodes; var _local4 = 0; while (_local4 < _local6.length) { var _local5 = _local6[_local4]; var _local2 = _local5.nodeName.toLowerCase(); var _local3 = _local5.firstChild.nodeValue; if (_local2 == "ip") { ipAddress = (blueBoxIpAddress = _local3); } else if (_local2 == "port") { port = Number(_local3); } else if (_local2 == "zone") { defaultZone = _local3; } else if (_local2 == "smartconnect") { smartConnect = ((_local3 == "true") ? true : false); } else if (_local2 == "blueboxipaddress") { blueBoxIpAddress = _local3; } else if (_local2 == "blueboxport") { blueBoxPort = _local3; } else if (_local2 == "debug") { debug = ((_local3 == "true") ? true : false); } else if (_local2 == "httpport") { httpPort = Number(_local3); } else if (_local2 == "httppollspeed") { httpPollSpeed = (Number(_local3)); } else if (_local2 == "socketconnectiontimeout") { socketConnectionTimeout = Number(_local3); } else if (_local2 == "rawprotocolseparator") { rawProtocolSeparator = _local3; } _local4++; } if (autoConnectOnConfigSuccess) { connect(ipAddress, port); } else { onConfigLoadSuccess(); } } function onConfigLoadFailed(code) { if (code == 404) { onConfigLoadFailure("Could not find configuration file."); } else { onConfigLoadFailure("Could not load configuration file. Http status = " + code); } } function getVersion() { return((((majVersion + ".") + minVersion) + ".") + subVersion); } function connected() { return(isConnected); } function getConnectionMode() { var _local2 = CONNECTION_MODE_DISCONNECTED; if (isConnected) { if (isHttpMode) { _local2 = CONNECTION_MODE_HTTP; } else { _local2 = CONNECTION_MODE_SOCKET; } } return(_local2); } function setupMessageHandlers() { addMessageHandler("sys", handleSysMessages); addMessageHandler("xt", handleExtensionMessages); } function addMessageHandler(handlerId, handlerMethod) { if (messageHandlers[handlerId] == undefined) { messageHandlers[handlerId] = new Object(); messageHandlers[handlerId].handleMessage = handlerMethod; } 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 _local8 = xmlObj.attributes.action; var _local19 = xmlObj.attributes.r; if (_local8 == "apiOK") { scope.isConnected = true; scope.onConnection(true); } else if (_local8 == "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 (_local8 == "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 (_local8 == "logKO") { var _local62 = xmlObj.login.attributes.e; scope.onLogin({success:false, name:"", error:_local62}); } else if (_local8 == "logout") { scope.initialize(true); scope.onLogout(); } else if (_local8 == "rmList") { var _local9 = xmlObj.rmList.rmList; scope.roomList = new Array(); for (var _local43 in _local9) { var _local5 = _local9[_local43].attributes.id; var _local2 = _local9[_local43].attributes; var _local24 = _local2.id; var _local21 = _local9[_local43].n.value; var _local22 = Number(_local2.maxu); var _local23 = Number(_local2.maxs); var _local66 = (_local2.temp ? true : false); var _local54 = (_local2.game ? true : false); var _local31 = (_local2.priv ? true : false); var _local32 = Number(_local2.ucnt); var _local25 = Number(_local2.scnt); var _local71 = (_local2.lmb ? true : false); scope.roomList[_local5] = new it.gotoandplay.smartfoxserver.Room(_local24, _local21, _local22, _local23, _local66, _local54, _local31); scope.roomList[_local5].userCount = _local32; scope.roomList[_local5].specCount = _local25; scope.roomList[_local5].setIsLimbo(_local71); var _local3 = _local9[_local43].vars.vars; var _local37 = 0; while (_local37 < _local3.length) { var _local29 = _local3[_local37].attributes.n; var _local11 = _local3[_local37].attributes.t; var _local10 = _local3[_local37].value; var _local12; if (_local11 == "b") { _local12 = Boolean; _local10 = Number(_local10); } else if (_local11 == "n") { _local12 = Number; } else if (_local11 == "s") { _local12 = String; } else if (_local11 == "x") { _local12 = function (x) { return(null); }; } scope.roomList[_local5].variables[_local29] = _local12(_local10); _local37++; } } scope.onRoomListUpdate(scope.roomList); } else if (_local8 == "joinOK") { var _local49 = xmlObj.uLs.attributes.r; var _local6 = xmlObj.uLs.uLs; var _local15 = xmlObj.vars.vars; scope.activeRoomId = Number(_local49); var _local50 = scope.roomList[_local49]; _local50.userList = new Object(); scope.playerId = xmlObj.pid.attributes.id; _local50.setMyPlayerIndex(xmlObj.pid.attributes.id); _local50.variables = new Object(); var _local37 = 0; while (_local37 < _local15.length) { var _local29 = _local15[_local37].attributes.n; var _local11 = _local15[_local37].attributes.t; var _local10 = _local15[_local37].value; if (_local11 == "b") { var _local12 = Boolean; _local10 = Number(_local10); } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } else if (_local11 == "x") { var _local12 = function (x) { return(null); }; } _local50.variables[_local29] = _local12(_local10); _local37++; } var _local72 = 0; var _local59 = 0; var _local43 = 0; while (_local43 < _local6.length) { var _local63 = _local6[_local43].n.value; var _local69 = _local6[_local43].attributes.i; var _local64 = _local6[_local43].attributes.m; var _local75 = _local6[_local43].attributes.s; var _local51 = _local6[_local43].attributes.p; var _local38 = new it.gotoandplay.smartfoxserver.User(_local69, _local63); _local50.userList[_local69] = _local38; _local38.isMod = ((_local64 == "1") ? true : false); _local38.isSpec = ((_local75 == "1") ? true : false); _local38.pid = ((_local51 == undefined) ? -1 : _local51); if (_local50.isGame() && (_local75 == "1")) { _local59++; } else { _local72++; } var _local13 = _local6[_local43].vars.vars; _local50.userList[_local69].variables = {}; _local37 = 0; while (_local37 < _local13.length) { var _local29 = _local13[_local37].attributes.n; var _local11 = _local13[_local37].attributes.t; var _local10 = _local13[_local37].value; if (_local11 == "b") { var _local12 = Boolean; _local10 = Number(_local10); } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } else if (_local11 == "x") { var _local12 = function (x) { return(null); }; } _local38.variables[_local29] = _local12(_local10); _local37++; } _local43++; } _local50.userCount = _local72; _local50.specCount = _local59; scope.changingRoom = false; scope.onJoinRoom(scope.roomList[_local49]); } else if (_local8 == "joinKO") { scope.changingRoom = false; var _local65 = xmlObj.error.attributes.msg; scope.onJoinRoomError(_local65); } else if (_local8 == "uER") { var _local69 = xmlObj.u.attributes.i; var _local63 = xmlObj.u.n.value; var _local64 = xmlObj.u.attributes.m; var _local75 = xmlObj.u.attributes.s; var _local51 = xmlObj.u.attributes.p; var _local50 = scope.roomList[_local19]; var _local38 = new it.gotoandplay.smartfoxserver.User(_local69, _local63); _local50.userList[_local69] = _local38; _local38.isMod = ((_local64 == "1") ? true : false); _local38.isSpec = ((_local75 == "1") ? true : false); _local38.pid = ((_local51 == undefined) ? -1 : _local51); if (_local50.isGame() && (_local75 == "1")) { _local50.specCount++; } else { _local50.userCount++; } var _local13 = xmlObj.u.vars.vars; _local50.userList[_local69].variables = {}; var _local37 = 0; while (_local37 < _local13.length) { var _local29 = _local13[_local37].attributes.n; var _local11 = _local13[_local37].attributes.t; var _local10 = _local13[_local37].value; if (_local11 == "b") { var _local12 = Boolean; _local10 = Number(_local10); } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } else if (_local11 == "x") { var _local12 = function (x) { return(null); }; } _local38.variables[_local29] = _local12(_local10); _local37++; } scope.onUserEnterRoom(_local19, _local50.userList[_local69]); } else if (_local8 == "userGone") { var _local69 = xmlObj.user.attributes.id; var _local50 = scope.roomList[_local19]; var _local63 = _local50.userList[_local69].name; var _local75 = _local50.userList[_local69].isSpec; delete _local50.userList[_local69]; if (_local50.isGame() && _local75) { _local50.specCount--; } else { _local50.userCount--; } scope.onUserLeaveRoom(_local19, _local69, _local63); } else if (_local8 == "pubMsg") { var _local69 = xmlObj.user.attributes.id; var _local47 = xmlObj.txt.value; _local47 = scope.os.decodeEntities(_local47.toString()); scope.onPublicMessage(_local47.toString(), scope.roomList[_local19].userList[_local69], _local19); } else if (_local8 == "prvMsg") { var _local69 = xmlObj.user.attributes.id; var _local47 = xmlObj.txt.value; _local47 = scope.os.decodeEntities(_local47); scope.onPrivateMessage(_local47.toString(), scope.roomList[_local19].userList[_local69], _local69, _local19); } else if (_local8 == "dmnMsg") { var _local69 = xmlObj.user.attributes.id; var _local47 = xmlObj.txt.value; _local47 = scope.os.decodeEntities(_local47); scope.onAdminMessage(_local47.toString(), scope.roomList[_local19].userList[_local69]); } else if (_local8 == "modMsg") { var _local69 = xmlObj.user.attributes.id; var _local47 = xmlObj.txt.value; _local47 = scope.os.decodeEntities(_local47); scope.onModeratorMessage(_local47.toString(), scope.roomList[_local19].userList[_local69]); } else if (_local8 == "dataObj") { var _local73 = xmlObj.user.attributes.id; var _local60 = xmlObj.dataObj.value; var _local61 = scope.os.deserialize(_local60); scope.onObjectReceived(_local61, scope.roomList[_local19].userList[_local73]); } else if (_local8 == "uVarsUpdate") { var _local69 = xmlObj.user.attributes.id; var _local14 = xmlObj.vars.vars; var _local26 = scope.roomList[_local19].userList[_local69]; if (_local26.variables == undefined) { _local26.variables = {}; } var _local34 = []; var _local37 = 0; while (_local37 < _local14.length) { var _local29 = _local14[_local37].attributes.n; var _local11 = _local14[_local37].attributes.t; var _local10 = _local14[_local37].value; _local34.push(_local29); _local34[_local29] = true; if (_local11 == "x") { delete _local26.variables[_local29]; } else { if (_local11 == "b") { var _local12 = Boolean; _local10 = Number(_local10); } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } _local26.variables[_local29] = _local12(_local10); } _local37++; } scope.globalUserVariableUpdate(_local26); scope.onUserVariablesUpdate(_local26, _local34); } else if (_local8 == "rVarsUpdate") { var _local14 = xmlObj.vars.vars; var _local50 = scope.roomList[_local19]; var _local34 = []; if (_local50.variables == undefined) { _local50.variables = new Object(); } var _local37 = 0; while (_local37 < _local14.length) { var _local29 = _local14[_local37].attributes.n; var _local11 = _local14[_local37].attributes.t; var _local10 = _local14[_local37].value; _local34.push(_local29); _local34[_local29] = true; if (_local11 == "x") { delete _local50.variables[_local29]; } else { if (_local11 == "b") { var _local12 = Boolean; _local10 = Number(_local10); } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } _local50.variables[_local29] = _local12(_local10); } _local37++; } scope.onRoomVariablesUpdate(_local50, _local34); } else if (_local8 == "createRmKO") { var _local62 = xmlObj.room.attributes.e; scope.onCreateRoomError(_local62); } else if (_local8 == "uCount") { var _local72 = xmlObj.attributes.u; var _local59 = xmlObj.attributes.s; var _local44 = scope.roomList[_local19]; _local44.userCount = Number(_local72); _local44.specCount = Number(_local59); scope.onUserCountChange(_local44); } else if (_local8 == "roomAdd") { var _local39 = xmlObj.rm.attributes; var _local52 = _local39.id; var _local67 = xmlObj.rm.name.value; var _local74 = Number(_local39.max); var _local58 = Number(_local39.spec); var _local66 = (_local39.temp ? true : false); var _local54 = (_local39.game ? true : false); var _local68 = (_local39.priv ? true : false); var _local71 = (_local39.limbo ? true : false); var _local36 = new it.gotoandplay.smartfoxserver.Room(_local52, _local67, _local74, _local58, _local66, _local54, _local68); _local36.setIsLimbo(_local71); scope.roomList[_local52] = _local36; var _local14 = xmlObj.rm.vars.vars; _local36.variables = new Object(); var _local37 = 0; while (_local37 < _local14.length) { var _local29 = _local14[_local37].attributes.n; var _local11 = _local14[_local37].attributes.t; var _local10 = _local14[_local37].value; if (_local11 == "b") { var _local12 = Boolean; _local10 = Number(_local10); } else if (_local11 == "n") { var _local12 = Number; } else if (_local11 == "s") { var _local12 = String; } _local36.variables[_local29] = _local12(_local10); _local37++; } scope.onRoomAdded(_local36); } else if (_local8 == "roomDel") { var _local53 = xmlObj.rm.attributes.id; var _local55 = scope.roomList[_local53]; delete scope.roomList[_local53]; scope.onRoomDeleted(_local55); } else if (_local8 == "leaveRoom") { var _local76 = xmlObj.rm.attributes.id; scope.onRoomLeft(_local76); } else if (_local8 == "roundTripRes") { scope.t2 = getTimer(); scope.onRoundTripResponse(scope.t2 - scope.t1); } else if (_local8 == "swSpec") { var _local46 = Number(xmlObj.pid.attributes.id); var _local48 = Number(xmlObj.pid.attributes.u); if (_local46 > 0) { scope.roomList[_local19].userCount++; scope.roomList[_local19].specCount--; } if (!isNaN(_local48)) { var _local50 = scope.roomList[_local19]; _local50.userList[_local48].pid = _local46; _local50.userList[_local48].isSpec = false; } else { scope.playerId = _local46; scope.onSpectatorSwitched(scope.playerId > 0, scope.playerId, scope.roomList[_local19]); } } else if (_local8 == "bList") { var _local7 = xmlObj.bList.bList; if (_local7 == undefined) { scope.onBuddyListError(xmlObj.err.value); return(undefined); } var _local17 = xmlObj.mv.mv; if (_local17 != undefined) { for (var it in _local17) { var _local33 = _local17[it].attributes.n; var _local28 = _local17[it].value; scope.myBuddyVars[_local33] = _local28; } } var _local43 = 0; while (_local43 < _local7.length) { var _local35 = {}; _local35.isOnline = ((_local7[_local43].attributes.s == "1") ? true : false); _local35.name = _local7[_local43].n.value; _local35.id = _local7[_local43].attributes.i; _local35.isBlocked = ((_local7[_local43].attributes.x == "1") ? true : false); _local35.variables = {}; var _local20 = _local7[_local43].vs.vs; for (var _local37 in _local20) { var _local30 = _local20[_local37].attributes.n; var _local27 = _local20[_local37].value; _local35.variables[_local30] = _local27; } scope.buddyList.push(_local35); _local43++; } scope.onBuddyList(scope.buddyList); } else if (_local8 == "bUpd") { var _local40 = false; var _local42 = xmlObj.b; if (_local42 == undefined) { scope.onBuddyListError(xmlObj.err.value); return(undefined); } var _local35 = {}; _local35.name = _local42.n.value; _local35.id = _local42.attributes.i; _local35.isOnline = ((_local42.attributes.s == "1") ? true : false); _local35.isBlocked = ((_local42.attributes.x == "1") ? true : false); var _local20 = _local42.vs.vs; var _local16 = null; for (var it in scope.buddyList) { _local16 = scope.buddyList[it]; if (_local16.name == _local35.name) { scope.buddyList[it] = _local35; _local35.isBlocked = _local16.isBlocked; _local35.variables = _local16.variables; for (var _local43 in _local20) { var _local30 = _local20[_local43].attributes.n; var _local27 = _local20[_local43].value; _local35.variables[_local30] = _local27; } _local40 = true; break; } } if (_local40) { scope.onBuddyListUpdate(_local35); } } else if (_local8 == "bAdd") { var _local42 = xmlObj.b; var _local35 = {}; _local35.name = _local42.n.value; _local35.id = _local42.attributes.i; _local35.isOnline = ((_local42.attributes.s == "1") ? true : false); _local35.isBlocked = ((_local42.attributes.x == "1") ? true : false); _local35.variables = {}; var _local20 = _local42.vs.vs; for (var _local43 in _local20) { var _local30 = _local20[_local43].attributes.n; var _local27 = _local20[_local43].value; _local35.variables[_local30] = _local27; } scope.buddyList.push(_local35); scope.onBuddyList(scope.buddyList); } else if (_local8 == "remB") { var _local41 = xmlObj.n.value; var _local35 = null; for (var it in scope.buddyList) { _local35 = scope.buddyList[it]; if (_local35.name == _local41) { delete scope.buddyList[it]; scope.onBuddyList(scope.buddyList); break; } } } else if (_local8 == "bPrm") { var _local56 = xmlObj.n.value; var _local45 = ""; if (xmlObj.txt != undefined) { _local45 = scope.os.decodeEntities(_local45); } scope.onBuddyPermissionRequest(_local56, _local45); } else if (_local8 == "roomB") { var _local70 = xmlObj.br.attributes.r; var _local18 = _local70.toString().split(","); for (var _local43 in _local18) { _local18[_local43] = Number(_local18[_local43]); } scope.onBuddyRoom(_local18); } else if (_local8 == "rndK") { var _local57 = xmlObj.k.value; scope.onRandomKey(_local57); } } function handleExtensionMessages(dataObj, scope, type) { if (type == undefined) { type = "xml"; } if (type == "xml") { var _local6 = dataObj.attributes.action; var _local7 = dataObj.attributes.r; if (_local6 == "xtRes") { var _local4 = dataObj.value; var _local5 = scope.os.deserialize(_local4); scope.onExtensionResponse(_local5, type); } } else if (type == "str") { scope.onExtensionResponse(dataObj, type); } else if (type == "json") { scope.onExtensionResponse(dataObj.o, type); } } function sendXtMessage(xtName, cmdName, paramObj, type, roomId) { if (!checkRoomList()) { return(undefined); } 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, name, pass) { var _local3 = {t:"sys"}; var _local2 = ((((("<login z='" + zone) + "'><nick><![CDATA[") + name) + "]]></nick><pword><![CDATA[") + pass) + "]]></pword></login>"; send(_local3, "login", 0, _local2); } function logout() { var _local2 = {t:"sys"}; send(_local2, "logout", -1, ""); } function getRoomList() { var _local2 = {t:"sys"}; send(_local2, "getRmList", (activeRoomId ? (activeRoomId) : -1), ""); } function autoJoin() { if (!checkRoomList()) { return(undefined); } var _local2 = {t:"sys"}; send(_local2, "autoJoin", (activeRoomId ? (activeRoomId) : -1), ""); } function joinRoom(newRoom, pword, isSpectator, dontLeave, oldRoom) { if (!checkRoomList()) { return(undefined); } 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 sendBuddyPermissionResponse(allowBuddy, targetBuddy) { var _local2 = ((("<n res='" + (allowBuddy ? "g" : "r")) + "'><![CDATA[") + targetBuddy) + "]]></n>"; send({t:"sys"}, "bPrm", -1, _local2); } function sendPublicMessage(message, roomId) { if ((!checkRoomList()) || (!checkJoin())) { return(undefined); } if (roomId == undefined) { roomId = activeRoomId; } var _local2 = {t:"sys"}; var _local3 = ("<txt><![CDATA[" + os.encodeEntities(message)) + "]]></txt>"; send(_local2, "pubMsg", roomId, _local3); } function sendPrivateMessage(message, recipientId, roomId) { if ((!checkRoomList()) || (!checkJoin())) { return(undefined); } if (roomId == undefined) { roomId = activeRoomId; } var _local2 = {t:"sys"}; var _local3 = ((("<txt rcp='" + recipientId) + "'><![CDATA[") + os.encodeEntities(message)) + "]]></txt>"; send(_local2, "prvMsg", roomId, _local3); } function sendModeratorMessage(message, type, id) { if ((!checkRoomList()) || (!checkJoin())) { return(undefined); } var _local2 = {t:"sys"}; var _local3 = ((((("<txt t='" + type) + "' id='") + id) + "'><![CDATA[") + os.encodeEntities(message)) + "]]></txt>"; send(_local2, "modMsg", activeRoomId, _local3); } function sendObject(obj, roomId) { if ((!checkRoomList()) || (!checkJoin())) { return(undefined); } 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 ((!checkRoomList()) || (!checkJoin())) { return(undefined); } if (roomId == undefined) { roomId = activeRoomId; } var _local3 = ""; for (var _local4 in userList) { if (!isNaN(userList[_local4])) { _local3 = _local3 + (userList[_local4] + ","); } } _local3 = _local3.substr(0, _local3.length - 1); obj._$$_ = _local3; var _local5 = ("<![CDATA[" + os.serialize(obj)) + "]]>"; var _local6 = {t:"sys"}; send(_local6, "asObjG", roomId, _local5); } function setBuddyBlockStatus(buddyName, status) { var _local2 = getBuddyByName(buddyName); if (_local2 != null) { if (_local2.blocked != status) { _local2.isBlocked = status; var _local3 = ((("<n x='" + (status ? "1" : "0")) + "'><![CDATA[") + buddyName) + "]]></n>"; send({t:"sys"}, "setB", -1, _local3); onBuddyListUpdate(_local2); } } } function setUserVariables(varObj, roomId) { if ((!checkRoomList()) || (!checkJoin())) { return(undefined); } 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>"; _local4.setVariables(varObj); send(_local9, "setUvars", roomId, _local6); } function setBuddyVariables(varList) { var _local6 = {t:"sys"}; var _local4 = "<vars>"; for (var _local5 in varList) { var _local2 = varList[_local5]; if (myBuddyVars[_local5] != _local2) { myBuddyVars[_local5] = _local2; _local4 = _local4 + (((("<var n='" + _local5) + "'><![CDATA[") + _local2) + "]]></var>"); } } _local4 = _local4 + "</vars>"; send(_local6, "setBvars", -1, _local4); } function dumpRoomList() { for (var _local5 in roomList) { var _local2 = roomList[_local5]; 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, roomId) { if ((!checkRoomList()) || (!checkJoin())) { return(undefined); } if (roomId == undefined) { roomId = activeRoomId; } var _local8 = {t:"sys"}; var _local5 = (roomObj.isGame ? 1 : 0); var _local6 = 1; var _local9 = roomObj.maxSpectators; var _local7 = (roomObj.joinAsSpectator ? "1" : "0"); if (_local5 && (roomObj.exitCurrentRoom != undefined)) { _local6 = (roomObj.exitCurrentRoom ? 1 : 0); } var _local3 = ((((((("<room tmp='1' gam='" + _local5) + "' spec='") + _local9) + "' exit='") + _local6) + "' jas='") + _local7) + "'>"; _local3 = _local3 + (("<name><![CDATA[" + roomObj.name) + "]]></name>"); _local3 = _local3 + (("<pwd><![CDATA[" + ((roomObj.password == undefined) ? "" : (roomObj.password))) + "]]></pwd>"); _local3 = _local3 + (("<max>" + roomObj.maxUsers) + "</max>"); if (roomObj.uCount != undefined) { _local3 = _local3 + (("<uCnt>" + (roomObj.uCount ? "1" : "0")) + "</uCnt>"); } if (roomObj.extension != undefined) { _local3 = _local3 + ("<xt n='" + roomObj.extension.name); _local3 = _local3 + (("' s='" + roomObj.extension.script) + "' />"); } if (roomObj.vars == undefined) { _local3 = _local3 + "<vars></vars>"; } else { _local3 = _local3 + "<vars>"; for (var _local4 in roomObj.vars) { _local3 = _local3 + getXmlRoomVariable(roomObj.vars[_local4]); } _local3 = _local3 + "</vars>"; } _local3 = _local3 + "</room>"; send(_local8, "createRoom", roomId, _local3); } function leaveRoom(roomId) { if ((!checkRoomList()) || (!checkJoin())) { return(undefined); } var _local3 = {t:"sys"}; var _local2 = ("<rm id='" + roomId) + "' />"; send(_local3, "leaveRoom", roomId, _local2); } function getRoom(roomId) { if (!checkRoomList()) { return(undefined); } 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() { if ((!checkRoomList()) || (!checkJoin())) { return(null); } return(roomList[activeRoomId]); } function setRoomVariables(varList, roomId, setOwnership) { if ((!checkRoomList()) || (!checkJoin())) { return(undefined); } if (roomId == undefined) { roomId = activeRoomId; } if (setOwnership == undefined) { setOwnership = true; } var _local5 = {t:"sys"}; var _local4; if (setOwnership) { _local4 = "<vars>"; } else { _local4 = "<vars so='0'>"; } var _local2 = 0; while (_local2 < varList.length) { _local4 = _local4 + getXmlRoomVariable(varList[_local2]); _local2++; } _local4 = _local4 + "</vars>"; send(_local5, "setRvars", roomId, _local4); } function getXmlRoomVariable(rVar) { var _local5 = rVar.name; var _local1 = rVar.val; var _local6 = (rVar.priv ? "1" : "0"); var _local4 = (rVar.persistent ? "1" : "0"); var _local2 = null; if (typeof(_local1) == "boolean") { _local2 = "b"; _local1 = (_local1 ? 1 : 0); } else if (typeof(_local1) == "number") { _local2 = "n"; } else if (typeof(_local1) == "string") { _local2 = "s"; } else if (typeof(_local1) == "null") { _local2 = "x"; } if (_local2 != null) { return(((((((((("<var n='" + _local5) + "' t='") + _local2) + "' pr='") + _local6) + "' pe='") + _local4) + "'><![CDATA[") + _local1) + "]]></var>"); } return(""); } function loadBuddyList() { var _local2 = {t:"sys"}; send(_local2, "loadB", -1, ""); } function addBuddy(buddyName) { if ((buddyName != myUserName) && (!checkBuddy(buddyName))) { var _local6 = roomList[activeRoomId].getUserList().getUser(buddyName); var _local4 = {t:"sys"}; var _local3 = ("<n>" + buddyName) + "</n>"; send(_local4, "addB", -1, _local3); } } function removeBuddy(buddyName) { for (var _local3 in buddyList) { if (buddyList[_local3].name == buddyName) { delete buddyList[_local3]; break; } } var _local5 = {t:"sys"}; var _local4 = ("<n>" + buddyName) + "</n>"; send(_local5, "remB", -1, _local4); onBuddyList(buddyList); } function getBuddyByName(buddyName) { var _local2; for (var _local4 in buddyList) { _local2 = buddyList[_local4]; if (_local2.name == buddyName) { return(_local2); } } return(null); } function getBuddyById(id) { var _local2; for (var _local4 in buddyList) { _local2 = buddyList[_local4]; if (_local2.id == id) { return(_local2); } } return(null); } function getBuddyRoom(buddy) { if (buddy.id != -1) { send({t:"sys"}, "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 ((!checkRoomList()) || (!checkJoin())) { return(undefined); } 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); } if (isHttpMode) { httpConnection.send(_local3); } else { super.send(_local3); } } function uploadFile(fileRef, id, nick, port) { if (id == undefined) { id = myUserId; } if (nick == undefined) { nick = myUserName; } if (port == undefined) { port = httpPort; } fileRef.upload((((((("http://" + ipAddress) + ":") + port) + "/default/Upload.py?id=") + id) + "&nick=") + nick); if (debug) { 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); } if (isHttpMode) { httpConnection.send(message); } else { super.send(message); } } function sendJson(message) { if (debug) { trace(("[Sending - json]: " + message) + newline); } if (isHttpMode) { httpConnection.send(message); } else { super.send(message); } } function gotData(message) { if (message.charAt(0) == rawProtocolSeparator) { strReceived(message); } else if (message.charAt(0) == "<") { onXML(new XML(message)); } else if (message.charAt(0) == "{") { jsonReceived(message); } } function connectionEstablished(ok) { if (ok) { clearInterval(socketConnectionTimeoutThread); preConnection = false; var _local3 = {t:"sys"}; var _local2 = ((("<ver v='" + majVersion.toString()) + minVersion.toString()) + subVersion.toString()) + "' />"; send(_local3, "verChk", 0, _local2); } else if (smartConnect && (preConnection)) { if (debug) { trace("** Socket connection failed. Trying BlueBox **"); } isHttpMode = true; var _local4 = ((blueBoxIpAddress != null) ? (blueBoxIpAddress) : (ipAddress)); var _local5 = ((blueBoxPort != 0) ? (blueBoxPort) : (httpPort)); httpConnection.connect(_local4, _local5); } else { preConnection = false; onConnection(false); } } function connectionClosed() { isConnected = false; if (preConnection) { connectionEstablished(false); } else { initialize(); onConnectionLost(); } } function connect(ipAdr, port) { if (!isConnected) { ipAddress = ipAdr; this.port = port; super.connect(ipAdr, port); socketConnectionTimeoutThread = setInterval(mx.utils.Delegate.create(this, socketTimeoutHandler), socketConnectionTimeout); } else { trace((("WARNING! You're already connected to -> " + ipAddress) + ":") + this.port); } } function disconnect() { close(); isConnected = false; if (isHttpMode) { httpConnection.close(); } initialize(); 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 socketTimeoutHandler() { clearInterval(socketConnectionTimeoutThread); close(); } function globalUserVariableUpdate(user) { var _local5 = user.getId(); for (var _local6 in roomList) { var _local3 = roomList[_local6]; var _local2 = _local3.getUser(_local5); if ((_local2 != undefined) && (_local2 != user)) { _local2.variables = user.variables; } } } function checkRoomList() { var _local4 = true; var _local2 = 0; for (var _local3 in roomList) { _local2++; break; } if (_local2 == 0) { _local4 = false; errorTrace("The room list is empty!\nThe client API cannot function properly until the room list is populated.\nPlease consult the documentation for more infos."); } return(_local4); } function checkJoin() { var _local2 = true; if (activeRoomId < 0) { _local2 = false; errorTrace("You haven't joined any rooms!\nIn order to interact with the server you should join at least one room.\nPlease consult the documentation for more infos."); } return(_local2); } function errorTrace(msg) { trace("\n****************************************************************"); trace("Internal error:"); trace(msg); trace("****************************************************************"); } 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")) && (_local4.nodeName != "var")) { _local6 = Number(_local6); } _local3.value = _local6; } _local8++; } } function makeHeader(headerObj) { var _local2 = "<msg"; for (var _local3 in headerObj) { _local2 = _local2 + ((((" " + _local3) + "='") + headerObj[_local3]) + "'"); } _local2 = _local2 + ">"; return(_local2); } function closeHeader() { return("</msg>"); } function handleDelayedPoll() { httpConnection.send(HTTP_POLL_REQUEST); if (fpMajorVersion < 8) { clearInterval(pollingThread); } } function handleHttpConnect(params) { isConnected = true; preConnection = false; connectionEstablished(true); httpConnection.send(HTTP_POLL_REQUEST); } function handleHttpClose(params) { initialize(); onConnectionLost(); } function handleHttpData(params) { var _local5 = params.data; var _local4 = _local5.split(newline); var _local3; var _local2 = 0; while (_local2 < (_local4.length - 1)) { _local3 = _local4[_local2]; if (_local3.length > 0) { gotData(_local3); } _local2++; } if (_httpPollSpeed > 0) { pollingThread = pollingDelayFn(mx.utils.Delegate.create(this, handleDelayedPoll), _httpPollSpeed); } else { httpConnection.send(HTTP_POLL_REQUEST); } } function handleHttpError(params) { if (!isConnected) { onConnection(false); } else { connectionClosed(); } } static var MIN_POLL_SPEED = 0; static var DEFAULT_POLL_SPEED = 750; static var MAX_POLL_SPEED = 10000; static var HTTP_POLL_REQUEST = "poll"; static var MODMSG_TO_USER = "u"; static var MODMSG_TO_ROOM = "r"; static var MODMSG_TO_ZONE = "z"; static var PROTOCOL_XML = "xml"; static var PROTOCOL_STR = "str"; static var PROTOCOL_JSON = "json"; static var CONNECTION_MODE_DISCONNECTED = "disconnected"; static var CONNECTION_MODE_SOCKET = "socket"; static var CONNECTION_MODE_HTTP = "http"; var DEFAULT_CONFIG_FILE = "config.xml"; var DEFAULT_AUTO_CONNECT = true; var majVersion = 1; var minVersion = 5; var subVersion = 6; var autoConnectOnConfigSuccess = true; var defaultZone = ""; var httpPort = 8080; var rawProtocolSeparator = "%"; var blueBoxPort = 0; var smartConnect = true; var socketConnectionTimeout = 5000; var isHttpMode = false; var _httpPollSpeed = DEFAULT_POLL_SPEED; var pollingThread = -1; var preConnection = true; }
Symbol 1159 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 _local6; var _local5; var _local3; var _local8; var _local2 = 0; _local7 = ""; while (_local2 < st.length) { _local6 = st.charAt(_local2); if (_local6 == "&") { _local5 = _local6; do { _local2++; _local3 = st.charAt(_local2); _local5 = _local5 + _local3; } while ((_local3 != ";") && (_local2 < st.length)); _local8 = ascTabRev[_local5]; if (_local8 != undefined) { _local7 = _local7 + _local8; } else { _local7 = _local7 + String.fromCharCode(getCharCode(_local5)); } } else { _local7 = _local7 + _local6; } _local2++; } return(_local7); } function getCharCode(ent) { var _local1 = ent.substr(3, ent.length); _local1 = _local1.substr(0, _local1.length - 1); return(Number("0x" + _local1)); } }
Symbol 1160 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.HttpConnection] Frame 0
class it.gotoandplay.smartfoxserver.http.HttpConnection { var codec, handlers, sessionId, ipAddr, port, webUrl, loaderFactory, _classRef; function HttpConnection (httpConnectHandler, httpCloseHandler, httpDataHandler, httpErrorHandler) { codec = new it.gotoandplay.smartfoxserver.http.RawProtocolCodec(); handlers = []; handlers[onHttpConnect] = httpConnectHandler; handlers[onHttpClose] = httpCloseHandler; handlers[onHttpData] = httpDataHandler; handlers[onHttpError] = httpErrorHandler; } function getSessionId() { return(sessionId); } function isConnected() { return(connected); } function connect(addr, port) { if (port == undefined) { port = 8080; } ipAddr = addr; this.port = port; webUrl = (((("http://" + ipAddr) + ":") + this.port) + "/") + servletUrl; sessionId = null; loaderFactory = new it.gotoandplay.smartfoxserver.http.LoaderFactory(this, handleResponse, webUrl, paramName); send(HANDSHAKE); } function close() { send(DISCONNECT); } function send(message) { if ((connected || ((!connected) && (message == HANDSHAKE))) || ((!connected) && (message == "poll"))) { if (message != "poll") { trace("[ Send ]: " + codec.encode(sessionId, message)); } loaderFactory.sendAndLoad(codec.encode(sessionId, message)); } } function handleResponse(data) { var _local2 = _classRef; if (data != undefined) { var _local3 = {}; if (data.charAt(0) == HANDSHAKE_TOKEN) { if (_local2.sessionId == null) { _local2.sessionId = _local2.codec.decode(data); _local2.connected = true; _local3.sessionId = _local2.sessionId; _local3.success = true; _local2.dispatchEvent(onHttpConnect, _local3); } else { trace("**ERROR** SessionId is being rewritten"); } } else if (data.indexOf(CONN_LOST) == 0) { _local3.data = {}; _local2.dispatchEvent(onHttpClose, _local3); } else { _local3.data = data; _local2.dispatchEvent(onHttpData, _local3); } } else if (!_local2.connected) { _local2.handleIOError("I/O error: null response from server"); } } function handleIOError(error) { var _local2 = {}; _local2.message = error; dispatchEvent(onHttpError, _local2); } function dispatchEvent(type, params) { handlers[type](params); } static var HANDSHAKE = "connect"; static var DISCONNECT = "disconnect"; static var CONN_LOST = "ERR#01"; static var HANDSHAKE_TOKEN = "#"; static var servletUrl = "BlueBox/HttpBox.do"; static var paramName = "sfsHttp"; static var onHttpData = "onHttpData"; static var onHttpError = "onHttpError"; static var onHttpConnect = "onHttpConnect"; static var onHttpClose = "onHttpClose"; var connected = false; }
Symbol 1161 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.LoaderFactory] Frame 0
class it.gotoandplay.smartfoxserver.http.LoaderFactory { var poolSize, webUrl, loaderParamName, sendersPool, loadersPool, currentIndex; function LoaderFactory (httpConnection, responseHandler, _webUrl, _loaderParamName, _poolSize) { if (_poolSize > 0) { poolSize = _poolSize; } else { poolSize = DEFAULT_POOL_SIZE; } webUrl = _webUrl; loaderParamName = _loaderParamName; sendersPool = []; loadersPool = []; var _local3 = 0; while (_local3 < poolSize) { var _local4 = new LoadVars(); var _local2 = new LoadVars(); _local2._classRef = httpConnection; _local2.onData = responseHandler; sendersPool.push(_local4); loadersPool.push(_local2); _local3++; } currentIndex = 0; } function sendAndLoad(message) { var _local2 = sendersPool[currentIndex]; var _local3 = loadersPool[currentIndex]; _local2[loaderParamName] = message; _local2.sendAndLoad(webUrl, _local3); currentIndex++; if (currentIndex >= poolSize) { currentIndex = 0; } } function handleHTTPStatus(status) { trace("---> Status received: " + status); } static var DEFAULT_POOL_SIZE = 8; }
Symbol 1162 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec] Frame 0
interface it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec { }
Symbol 1163 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.RawProtocolCodec] Frame 0
class it.gotoandplay.smartfoxserver.http.RawProtocolCodec implements it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec { function RawProtocolCodec () { } function encode(sessionId, message) { return(((sessionId == null) ? "" : (sessionId)) + message); } function decode(message) { var _local1; if (message.charAt(0) == it.gotoandplay.smartfoxserver.http.HttpConnection.HANDSHAKE_TOKEN) { _local1 = message.substr(1, SESSION_ID_LEN); } return(_local1); } static var SESSION_ID_LEN = 32; }
Symbol 1164 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object { var func; function Delegate (f) { super(); func = f; } static function create(obj, func) { var _local2 = function () { var _local2 = arguments.callee.target; var _local3 = arguments.callee.func; return(_local3.apply(_local2, arguments)); }; _local2.target = obj; _local2.func = func; return(_local2); } function createDelegate(obj) { return(create(obj, func)); } }
Symbol 1165 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 1166 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; } function setVariables(o) { for (var _local4 in o) { var _local2 = o[_local4]; if (_local2 != null) { variables[_local4] = _local2; } else { delete variables[_local4]; } } } }
Symbol 1167 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 1168 MovieClip [__Packages.ToolTip] Frame 0
class ToolTip { static var _text, label, _cont, _caller, _mouseListener, toolTipintervalID, shadow, bg; function ToolTip () { } static function set text(_t) { _text = _t; //return(text); } static function get text() { return(label.text); } static function get active() { return(_cont._visible); } static function set caller(_c) { _caller = _c; //return(caller); } static function get caller() { return(_caller); } static function show(_t, time) { if ((time && (time > 0)) && (_t != "")) { setText((_t ? (_t) : (_text))); _mouseListener.show = mx.utils.Delegate.create(getInstance(), show); clearInterval(toolTipintervalID); toolTipintervalID = setInterval(_mouseListener, "show", time); return(undefined); } clearInterval(toolTipintervalID); Mouse.addListener(_mouseListener); _mouseListener.onMouseMove = mx.utils.Delegate.create(getInstance(), setToolTipToMouse); setToolTipToMouse(); _cont._visible = true; } static function hide() { Mouse.removeListener(_mouseListener); delete _mouseListener.onMouseMove; _cont._visible = false; clearInterval(toolTipintervalID); } static function getInstance() { if (_instance == undefined) { _instance = new ToolTip(); init(); } return(_instance); } static function init() { _cont = _root.createEmptyMovieClip("__tooltip_mc", 35000); shadow = _cont.createEmptyMovieClip("shadow", 1); bg = _cont.createEmptyMovieClip("bg", 2); _cont.createTextField("label", 3, 5, 0, 120, 20); label = _cont.label; label.autoSize = "left"; label.wordWrap = true; label.html = true; label.selectable = false; label.multiline = true; _mouseListener = new Object(); hide(); } static function setText(_t) { label.htmlText = ("<font face=\"Verdana\" size=\"10\">" + _t) + "</font>"; resetBG(); } static function setToolTipToMouse(Void) { _cont._x = _root._xmouse + 15; _cont._y = _root._ymouse; if ((_cont._x + _cont._width) > Stage.width) { _cont._x = (_root._xmouse - _cont._width) - 5; if (_cont._x < 0) { _cont._x = Stage.width - _cont._width; } } if ((_cont._y + _cont._height) > Stage.height) { _cont._y = (_root._ymouse - _cont._height) - 5; } updateAfterEvent(); } static function resetBG(Void) { var _local2 = label.textWidth + 12; var _local1 = label.textHeight + 4; bg.clear(); bg.lineStyle(0, 3355443, 80); bg.beginFill(16777164, 80); bg.moveTo(0, 0); bg.lineTo(0, _local1); bg.lineTo(_local2, _local1); bg.lineTo(_local2, 0); bg.lineTo(0, 0); bg.endFill(); shadow.clear(); shadow.beginFill(3355443, 60); shadow.moveTo(2, 2); shadow.lineTo(2, _local1 + 2); shadow.lineTo(_local2 + 2, _local1 + 2); shadow.lineTo(_local2 + 2, 2); shadow.lineTo(2, 2); shadow.endFill(); } static function install(mc, text, delay) { mc.toolTipText = (text ? (text) : ""); mc.toolTipDelay = (delay ? (delay) : 500); mc.oldOnRollOver = mc.onRollOver; mc.onRollOver = function () { if (this.enabled && (_root.autoHelp || (this.fixedToolTip))) { if (this.oldOnRollOver) { this.oldOnRollOver(); } if (this.toolTipText != "") { ToolTip.show(this.toolTipText, this.toolTipDelay); } } }; mc.oldOnRollOut = mc.onRollOut; mc.onRollOut = function () { if (this.oldOnRollOut) { this.oldOnRollOut(); } ToolTip.hide(); }; mc.onPress = function () { if (this.oldOnRollOut) { this.oldOnRollOut(); } ToolTip.hide(); }; } static var _instance = getInstance(); }
Symbol 425 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 467 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 468 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 472 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 473 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 476 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 477 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 478 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 479 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 480 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 482 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 483 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 484 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 1144 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 240 MovieClip Frame 20
stop();
Symbol 241 MovieClip Frame 25
stop();
Symbol 278 MovieClip Frame 1
_root.stop();
Symbol 278 MovieClip Frame 265
_root.play();
Symbol 429 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 431 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 434 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 436 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 439 MovieClip [Defaults] Frame 1
#initclip 59 Object.registerClass("Defaults", mx.skins.halo.Defaults); #endinitclip
Symbol 440 MovieClip [UIObjectExtensions] Frame 1
#initclip 60 Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions); #endinitclip
Symbol 441 MovieClip [UIObject] Frame 1
#initclip 61 Object.registerClass("UIObject", mx.core.UIObject); #endinitclip stop();
Symbol 444 Button
on (keyPress "<Tab>") { this.tabHandler(); }
Symbol 445 MovieClip Frame 1
#initclip 62 Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } #endinitclip
Symbol 446 MovieClip [FocusRect] Frame 1
#initclip 63 Object.registerClass("FocusRect", mx.skins.halo.FocusRect); #endinitclip
Symbol 447 MovieClip [FocusManager] Frame 1
#initclip 64 Object.registerClass("FocusManager", mx.managers.FocusManager); #endinitclip stop();
Symbol 448 MovieClip [UIComponentExtensions] Frame 1
#initclip 65 Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions); #endinitclip
Symbol 449 MovieClip [UIComponent] Frame 1
#initclip 66 Object.registerClass("UIComponent", mx.core.UIComponent); #endinitclip stop();
Symbol 450 MovieClip [SimpleButton] Frame 1
#initclip 67 Object.registerClass("SimpleButton", mx.controls.SimpleButton); #endinitclip stop();
Symbol 451 MovieClip [Border] Frame 1
#initclip 68 Object.registerClass("Border", mx.skins.Border); #endinitclip stop();
Symbol 452 MovieClip [RectBorder] Frame 1
#initclip 69 mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass("RectBorder", mx.skins.halo.RectBorder); #endinitclip stop();
Symbol 453 MovieClip [ButtonSkin] Frame 1
#initclip 70 Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin); #endinitclip
Symbol 454 MovieClip [Button] Frame 1
#initclip 71 Object.registerClass("Button", mx.controls.Button); #endinitclip stop();
Instance of Symbol 450 MovieClip [SimpleButton] in Symbol 454 MovieClip [Button] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 455 MovieClip [CustomBorder] Frame 1
#initclip 72 Object.registerClass("CustomBorder", mx.skins.CustomBorder); mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder); #endinitclip
Symbol 456 MovieClip [VScrollBar] Frame 1
#initclip 73 Object.registerClass("VScrollBar", mx.controls.VScrollBar); #endinitclip stop();
Instance of Symbol 454 MovieClip [Button] in Symbol 456 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 450 MovieClip [SimpleButton] in Symbol 456 MovieClip [VScrollBar] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 457 MovieClip [HScrollBar] Frame 1
#initclip 74 Object.registerClass("HScrollBar", mx.controls.HScrollBar); #endinitclip stop();
Instance of Symbol 454 MovieClip [Button] in Symbol 457 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 450 MovieClip [SimpleButton] in Symbol 457 MovieClip [HScrollBar] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 458 MovieClip [UIScrollBar] Frame 1
#initclip 75 Object.registerClass("UIScrollBar", mx.controls.UIScrollBar); #endinitclip stop();
Instance of Symbol 456 MovieClip [VScrollBar] in Symbol 458 MovieClip [UIScrollBar] Frame 2
//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 457 MovieClip [HScrollBar] in Symbol 458 MovieClip [UIScrollBar] Frame 2
//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "chatboxSb5" in Symbol 493 MovieClip [deckList] Frame 1
//component parameters onClipEvent (construct) { _targetInstanceName = "deckListTextField"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 544 MovieClip Frame 1
stop();
Symbol 567 MovieClip [achievMedal] Frame 1
stop();
Symbol 593 MovieClip Frame 10
stop();
Symbol 614 MovieClip Frame 14
stop(); loginInfoEffect.nameBox.selectable = true; loginInfoEffect.passBox.selectable = true; Selection.setFocus(loginInfoEffect.nameBox);
Symbol 721 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/game/viewGuideBookImage.html?image=lobby_example','_blank','width=640,height=495,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 725 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/game/viewGuideBookImage.html?image=game_example1','_blank','width=640,height=495,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 729 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/game/viewGuideBookImage.html?image=game_details','_blank','width=640,height=495,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 736 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=2','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 741 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=48','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 746 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=82','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 751 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=201','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 756 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=227','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 761 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=185','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 766 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=288','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 771 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=389','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 776 Button
on (release) { var jscommand = (("window.open('" + _root.webpage) + "/cardPopup.html?idCard=174','cardWindow','height=246,width=176,toolbar=no,status=no,resizable=no,scrollbars=no');"); getURL (("javascript:" + jscommand) + " void(0);"); }
Symbol 1083 MovieClip Frame 60
_root.warning = ""; stop();
Symbol 1125 MovieClip [TextInput] Frame 1
#initclip 76 Object.registerClass("TextInput", mx.controls.TextInput); #endinitclip stop();
Symbol 1126 MovieClip [ComboBase] Frame 1
#initclip 77 mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype); Object.registerClass("ComboBase", mx.controls.ComboBase); #endinitclip stop();
Instance of Symbol 450 MovieClip [SimpleButton] in Symbol 1126 MovieClip [ComboBase] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 1125 MovieClip [TextInput] in Symbol 1126 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 1127 MovieClip [DataProvider] Frame 1
#initclip 78 Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider); #endinitclip stop();
Symbol 1128 MovieClip [DataSelector] Frame 1
#initclip 79 Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector); #endinitclip stop();
Symbol 1129 MovieClip [SelectableRow] Frame 1
#initclip 80 Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow); #endinitclip stop();
Symbol 1130 MovieClip [View] Frame 1
#initclip 81 Object.registerClass("View", mx.core.View); #endinitclip stop();
Symbol 1131 MovieClip [ScrollView] Frame 1
#initclip 82 Object.registerClass("ScrollView", mx.core.ScrollView); #endinitclip stop();
Instance of Symbol 457 MovieClip [HScrollBar] in Symbol 1131 MovieClip [ScrollView] Frame 2
//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 456 MovieClip [VScrollBar] in Symbol 1131 MovieClip [ScrollView] Frame 2
//component parameters onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 1132 MovieClip [ScrollSelectList] Frame 1
#initclip 83 Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList); #endinitclip stop();
Symbol 1133 MovieClip [List] Frame 1
#initclip 84 Object.registerClass("List", mx.controls.List); #endinitclip stop();
Symbol 1134 MovieClip [ComboBox] Frame 1
#initclip 85 Object.registerClass("ComboBox", mx.controls.ComboBox); #endinitclip stop();
Instance of Symbol 1133 MovieClip [List] in Symbol 1134 MovieClip [ComboBox] Frame 2
//component parameters onClipEvent (initialize) { multipleSelection = false; rowHeight = 20; }
Symbol 1157 MovieClip Frame 1
stop();
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 1
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 2
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 3
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 4
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 5
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 6
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 7
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 8
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 9
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 1157 MovieClip Frame 10
stop();
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 10
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 11
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 12
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 13
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 14
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 15
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 16
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 17
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 18
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 19
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Instance of Symbol 458 MovieClip [UIScrollBar] "gameChatSb4" in Symbol 1157 MovieClip Frame 20
//component parameters onClipEvent (construct) { _targetInstanceName = "gameChat"; horizontal = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }

Library Items

Symbol 1 Sound [privateMessage.mp3]Used by:544
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:4
Symbol 4 MovieClipUses:3Used by:11
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:7
Symbol 7 MovieClipUses:6Used by:11
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:10
Symbol 10 MovieClipUses:9Used by:11
Symbol 11 MovieClip [sparkle_mc]Uses:4 7 10
Symbol 12 FontUsed by:13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 103 104 105 108 109 114 133 335 336 343 344 385 388 392 396 397 399 402 404 409 411 498 499 515 937 1113
Symbol 13 EditableTextUses:12Used by:14
Symbol 14 Button [morphIntoToolTip]Uses:13
Symbol 15 EditableTextUses:12Used by:16
Symbol 16 Button [untappableToolTip]Uses:15
Symbol 17 EditableTextUses:12Used by:18
Symbol 18 Button [unblockableToolTip]Uses:17
Symbol 19 EditableTextUses:12Used by:20
Symbol 20 Button [rebuildToolTip]Uses:19
Symbol 21 EditableTextUses:12Used by:22
Symbol 22 Button [legacyToolTip]Uses:21
Symbol 23 EditableTextUses:12Used by:24
Symbol 24 Button [shatteringToolTip]Uses:23
Symbol 25 EditableTextUses:12Used by:26
Symbol 26 Button [conjoinedToolTip]Uses:25
Symbol 27 EditableTextUses:12Used by:28
Symbol 28 Button [retractToolTip]Uses:27
Symbol 29 EditableTextUses:12Used by:30
Symbol 30 Button [removeToolTip]Uses:29
Symbol 31 EditableTextUses:12Used by:32
Symbol 32 Button [instantEquipToolTip]Uses:31
Symbol 33 EditableTextUses:12Used by:34
Symbol 34 Button [instantEffectToolTip]Uses:33
Symbol 35 EditableTextUses:12Used by:36
Symbol 36 Button [fastStrikeToolTip]Uses:35
Symbol 37 EditableTextUses:12Used by:38
Symbol 38 Button [doubleSpellToolTip]Uses:37
Symbol 39 EditableTextUses:12Used by:40
Symbol 40 Button [doubleAbilityToolTip]Uses:39
Symbol 41 EditableTextUses:12Used by:42
Symbol 42 Button [attackEffectToolTip]Uses:41
Symbol 43 EditableTextUses:12Used by:44
Symbol 44 Button [attackCountsToolTip]Uses:43
Symbol 45 EditableTextUses:12Used by:46
Symbol 46 Button [rangedToolTip]Uses:45
Symbol 47 GraphicUsed by:49 75 76 77 80 83 88
Symbol 48 GraphicUsed by:49 75 76 80 83 88
Symbol 49 MovieClip [ScrollTrack]Uses:47 48Used by:52 53 54 55 89 90 91 92 93 94
Symbol 50 BitmapUsed by:51
Symbol 51 GraphicUses:50Used by:52 53 54 55 89 90 91 92 98 100 101
Symbol 52 MovieClip [ScrollDownArrowDisabled]Uses:49 51Used by:95 96 97
Symbol 53 MovieClip [ScrollDownArrowDown]Uses:49 51Used by:95 96 97
Symbol 54 MovieClip [ScrollDownArrowOver]Uses:49 51Used by:95 96 97
Symbol 55 MovieClip [ScrollDownArrowUp]Uses:49 51Used by:95 96 97
Symbol 56 GraphicUsed by:61 64 65 66 84 85 86 87
Symbol 57 GraphicUsed by:61 64 65 66 84 85 86 87
Symbol 58 GraphicUsed by:61 64 65 66 84 85 86 87
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:61 64 65 66 84 85 86 87
Symbol 61 MovieClip [ScrollThumbBottomDisabled]Uses:56 57 58 60Used by:95 96 97
Symbol 62 GraphicUsed by:63
Symbol 63 MovieClip [ThumbThemeColor1]Uses:62Used by:64 65 85 86
Symbol 64 MovieClip [ScrollThumbBottomDown]Uses:56 63 57 58 60Used by:95 96 97
Symbol 65 MovieClip [ScrollThumbBottomOver]Uses:56 63 57 58 60Used by:95 96 97
Symbol 66 MovieClip [ScrollThumbBottomUp]Uses:56 57 58 60Used by:95 96 97
Symbol 67 GraphicUsed by:68 71 72 73
Symbol 68 MovieClip [ScrollThumbGripDisabled]Uses:67Used by:95 96 97
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClip [ThumbThemeColor2]Uses:69Used by:71 72 75 76 80
Symbol 71 MovieClip [ScrollThumbGripDown]Uses:70 67Used by:95 96 97
Symbol 72 MovieClip [ScrollThumbGripOver]Uses:70 67Used by:95 96 97
Symbol 73 MovieClip [ScrollThumbGripUp]Uses:67Used by:95 96 97
Symbol 74 GraphicUsed by:75 76 80 83
Symbol 75 MovieClip [ScrollThumbMiddleDisabled]Uses:47 74 70 48Used by:95 96 97
Symbol 76 MovieClip [ScrollThumbMiddleDown]Uses:47 70 74 48Used by:95 96 97
Symbol 77 MovieClipUses:47Used by:80
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClipUses:78Used by:80
Symbol 80 MovieClip [ScrollThumbMiddleOver]Uses:47 70 74 77 79 48Used by:95 96 97
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:81Used by:83
Symbol 83 MovieClip [ScrollThumbMiddleUp]Uses:47 74 48 82Used by:95 96 97
Symbol 84 MovieClip [ScrollThumbTopDisabled]Uses:56 57 58 60Used by:95 96 97
Symbol 85 MovieClip [ScrollThumbTopDown]Uses:56 63 57 58 60Used by:95 96 97
Symbol 86 MovieClip [ScrollThumbTopOver]Uses:56 63 57 58 60Used by:95 96 97
Symbol 87 MovieClip [ScrollThumbTopUp]Uses:56 57 58 60Used by:95 96 97
Symbol 88 MovieClip [ScrollTrackDisabled]Uses:47 48Used by:95 96 97
Symbol 89 MovieClip [ScrollUpArrowDisabled]Uses:49 51Used by:95 96 97
Symbol 90 MovieClip [ScrollUpArrowDown]Uses:49 51Used by:95 96 97
Symbol 91 MovieClip [ScrollUpArrowOver]Uses:49 51Used by:95 96 97
Symbol 92 MovieClip [ScrollUpArrowUp]Uses:49 51Used by:95 96 97
Symbol 93 MovieClip [BtnDownArrow]Uses:49Used by:95 96 97
Symbol 94 MovieClip [BtnUpArrow]Uses:49Used by:95 96 97
Symbol 95 MovieClip [VScrollBarAssets]Uses:52 53 54 55 61 64 65 66 68 71 72 73 75 76 80 83 84 85 86 87 88 89 90 91 92 93 94
Symbol 96 MovieClip [ScrollBarAssets]Uses:52 53 54 55 61 64 65 66 68 71 72 73 75 76 80 83 84 85 86 87 88 89 90 91 92 93 94Used by:456 457
Symbol 97 MovieClip [HScrollBarAssets]Uses:52 53 54 55 61 64 65 66 68 71 72 73 75 76 80 83 84 85 86 87 88 89 90 91 92 94 93
Symbol 98 MovieClip [ComboDownArrowUp]Uses:51Used by:99 102
Symbol 99 MovieClip [ComboDownArrowDisabled]Uses:98Used by:102
Symbol 100 MovieClip [ComboDownArrowDown]Uses:51Used by:102
Symbol 101 MovieClip [ComboDownArrowOver]Uses:51Used by:102
Symbol 102 MovieClip [ComboAssets]Uses:99 100 101 98Used by:1134
Symbol 103 EditableTextUses:12Used by:110
Symbol 104 EditableTextUses:12Used by:110
Symbol 105 EditableTextUses:12Used by:110
Symbol 106 FontUsed by:107 223 339 340 341 351 413 416 486 501 507 508 551 578 579 604 605 606 653 654 706 928 1082 1104 1105 1106 1112
Symbol 107 EditableTextUses:106Used by:110
Symbol 108 EditableTextUses:12Used by:110
Symbol 109 EditableTextUses:12Used by:110
Symbol 110 MovieClip [textFields]Uses:103 104 105 107 108 109
Symbol 111 GraphicUsed by:160 326 418
Symbol 112 BitmapUsed by:113
Symbol 113 GraphicUses:112Used by:160
Symbol 114 EditableTextUses:12Used by:160
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:160
Symbol 117 BitmapUsed by:118
Symbol 118 GraphicUses:117Used by:160
Symbol 119 BitmapUsed by:120
Symbol 120 GraphicUses:119Used by:160
Symbol 121 BitmapUsed by:122
Symbol 122 GraphicUses:121Used by:160
Symbol 123 BitmapUsed by:124
Symbol 124 GraphicUses:123Used by:160
Symbol 125 BitmapUsed by:126
Symbol 126 GraphicUses:125Used by:160
Symbol 127 BitmapUsed by:128
Symbol 128 GraphicUses:127Used by:160
Symbol 129 BitmapUsed by:130
Symbol 130 GraphicUses:129Used by:160
Symbol 131 BitmapUsed by:132
Symbol 132 GraphicUses:131Used by:160
Symbol 133 EditableTextUses:12Used by:160
Symbol 134 BitmapUsed by:135
Symbol 135 GraphicUses:134Used by:160
Symbol 136 BitmapUsed by:137
Symbol 137 GraphicUses:136Used by:160
Symbol 138 BitmapUsed by:139
Symbol 139 GraphicUses:138Used by:160
Symbol 140 BitmapUsed by:141
Symbol 141 GraphicUses:140Used by:160
Symbol 142 BitmapUsed by:143
Symbol 143 GraphicUses:142Used by:160
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:160
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:160
Symbol 148 BitmapUsed by:149
Symbol 149 GraphicUses:148Used by:160
Symbol 150 BitmapUsed by:151
Symbol 151 GraphicUses:150Used by:160
Symbol 152 BitmapUsed by:153
Symbol 153 GraphicUses:152Used by:160
Symbol 154 BitmapUsed by:155
Symbol 155 GraphicUses:154Used by:160
Symbol 156 BitmapUsed by:157
Symbol 157 GraphicUses:156Used by:160
Symbol 158 BitmapUsed by:159
Symbol 159 GraphicUses:158Used by:160
Symbol 160 MovieClip [viewCard]Uses:111 113 114 116 118 120 122 124 126 128 130 132 133 135 137 139 141 143 145 147 149 151 153 155 157 159
Symbol 161 GraphicUsed by:162
Symbol 162 ButtonUses:161Used by:169 514
Symbol 163 GraphicUsed by:169 510
Symbol 164 FontUsed by:165 167 285 485 496 512 513 577 591 592 595 597 609 660 662 663 665 666 669 670 672 702 703 705 715 726 728 730 731 777 789 790 793 794 796 798 800 801 804 812 816 819 821 823 824 825 826 829 830 835 836 838 840 841 842 848 853 854 860 874 875 897 948 971 972 974 978 980 985 1018 1042 1077 1152 1153
Symbol 165 EditableTextUses:164Used by:169
Symbol 166 GraphicUsed by:168 511
Symbol 167 TextUses:164Used by:168 514
Symbol 168 ButtonUses:166 167Used by:169
Symbol 169 MovieClip [warningBox]Uses:162 163 165 168
Symbol 170 BitmapUsed by:171
Symbol 171 GraphicUses:170Used by:194
Symbol 172 BitmapUsed by:173
Symbol 173 GraphicUses:172Used by:194
Symbol 174 BitmapUsed by:175
Symbol 175 GraphicUses:174Used by:194
Symbol 176 BitmapUsed by:177
Symbol 177 GraphicUses:176Used by:194
Symbol 178 BitmapUsed by:179
Symbol 179 GraphicUses:178Used by:194
Symbol 180 BitmapUsed by:181
Symbol 181 GraphicUses:180Used by:194
Symbol 182 BitmapUsed by:183
Symbol 183 GraphicUses:182Used by:194
Symbol 184 BitmapUsed by:185
Symbol 185 GraphicUses:184Used by:194
Symbol 186 BitmapUsed by:187
Symbol 187 GraphicUses:186Used by:194
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:194
Symbol 190 BitmapUsed by:191
Symbol 191 GraphicUses:190Used by:194
Symbol 192 BitmapUsed by:193
Symbol 193 GraphicUses:192Used by:194
Symbol 194 MovieClip [rarityClip]Uses:171 173 175 177 179 181 183 185 187 189 191 193
Symbol 195 BitmapUsed by:196
Symbol 196 GraphicUses:195Used by:199
Symbol 197 BitmapUsed by:198
Symbol 198 GraphicUses:197Used by:199
Symbol 199 MovieClip [boxClip]Uses:196 198
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:202
Symbol 202 MovieClip [chatIcon]Uses:201
Symbol 203 BitmapUsed by:204
Symbol 204 GraphicUses:203Used by:205
Symbol 205 MovieClip [battleIcon]Uses:204
Symbol 206 BitmapUsed by:207
Symbol 207 GraphicUses:206Used by:208
Symbol 208 MovieClip [offlineIcon]Uses:207
Symbol 209 BitmapUsed by:210
Symbol 210 GraphicUses:209Used by:211
Symbol 211 MovieClip [blockIcon]Uses:210
Symbol 212 BitmapUsed by:213
Symbol 213 GraphicUses:212Used by:214
Symbol 214 MovieClip [managerIcon]Uses:213
Symbol 215 BitmapUsed by:216
Symbol 216 GraphicUses:215Used by:217
Symbol 217 MovieClip [graveyard]Uses:216Used by:Timeline
Symbol 218 BitmapUsed by:219
Symbol 219 GraphicUses:218Used by:220
Symbol 220 MovieClip [closeTab]Uses:219Used by:Timeline
Symbol 221 BitmapUsed by:222
Symbol 222 GraphicUses:221Used by:224 929
Symbol 223 EditableTextUses:106Used by:224
Symbol 224 MovieClip [friendTab]Uses:222 223Used by:Timeline
Symbol 225 GraphicUsed by:226
Symbol 226 MovieClip [flames]Uses:225Used by:Timeline
Symbol 227 BitmapUsed by:228
Symbol 228 GraphicUses:227Used by:232 233
Symbol 229 GraphicUsed by:232 245
Symbol 230 ShapeTweeningUsed by:232
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClipUses:229 228 230 231Used by:233
Symbol 233 MovieClipUses:228 232Used by:Timeline
Symbol 234 FontUsed by:235 587 615
Symbol 235 TextUses:234Used by:Timeline
Symbol 471 MovieClip [__Packages.mx.skins.ColoredSkinElement]
Symbol 422 MovieClip [__Packages.mx.core.UIObject]
Symbol 459 MovieClip [__Packages.mx.skins.SkinElement]
Symbol 460 MovieClip [__Packages.mx.styles.CSSTextStyles]
Symbol 462 MovieClip [__Packages.mx.styles.CSSStyleDeclaration]
Symbol 461 MovieClip [__Packages.mx.styles.StyleManager]
Symbol 423 MovieClip [__Packages.mx.core.UIComponent]
Symbol 463 MovieClip [__Packages.mx.controls.SimpleButton]
Symbol 1120 MovieClip [__Packages.mx.controls.listclasses.DataSelector]
Symbol 1121 MovieClip [__Packages.mx.controls.ComboBase]
Symbol 464 MovieClip [__Packages.mx.skins.Border]
Symbol 481 MovieClip [__Packages.mx.skins.RectBorder]
Symbol 1135 MovieClip [__Packages.mx.controls.TextInput]
Symbol 1122 MovieClip [__Packages.mx.controls.ComboBox]
Symbol 1136 MovieClip [__Packages.mx.managers.PopUpManager]
Symbol 474 MovieClip [__Packages.mx.managers.DepthManager]
Symbol 475 MovieClip [__Packages.mx.managers.SystemManager]
Symbol 469 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 1137 MovieClip [__Packages.mx.core.View]
Symbol 1138 MovieClip [__Packages.mx.core.ExternalContent]
Symbol 470 MovieClip [__Packages.mx.events.UIEventDispatcher]
Symbol 1139 MovieClip [__Packages.mx.core.ScrollView]
Symbol 424 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar]
Symbol 465 MovieClip [__Packages.mx.skins.CustomBorder]
Symbol 466 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb]
Symbol 1140 MovieClip [__Packages.mx.controls.listclasses.DataProvider]
Symbol 1141 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList]
Symbol 1142 MovieClip [__Packages.mx.controls.List]
Symbol 1143 MovieClip [__Packages.mx.effects.Tween]
Symbol 1158 MovieClip [__Packages.it.gotoandplay.smartfoxserver.SmartFoxClient]
Symbol 1159 MovieClip [__Packages.it.gotoandplay.smartfoxserver.ObjectSerializer]
Symbol 1160 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.HttpConnection]
Symbol 1161 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.LoaderFactory]
Symbol 1162 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec]
Symbol 1163 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.RawProtocolCodec]
Symbol 1164 MovieClip [__Packages.mx.utils.Delegate]
Symbol 1165 MovieClip [__Packages.it.gotoandplay.smartfoxserver.Room]
Symbol 1166 MovieClip [__Packages.it.gotoandplay.smartfoxserver.User]
Symbol 1167 MovieClip [__Packages.it.gotoandplay.smartfoxserver.JSON]
Symbol 1168 MovieClip [__Packages.ToolTip]
Symbol 425 MovieClip [__Packages.mx.controls.UIScrollBar]
Symbol 467 MovieClip [__Packages.mx.controls.VScrollBar]
Symbol 468 MovieClip [__Packages.mx.controls.Button]
Symbol 472 MovieClip [__Packages.mx.core.ext.UIObjectExtensions]
Symbol 473 MovieClip [__Packages.mx.skins.halo.Defaults]
Symbol 476 MovieClip [__Packages.mx.managers.FocusManager]
Symbol 477 MovieClip [__Packages.mx.skins.halo.FocusRect]
Symbol 478 MovieClip [__Packages.mx.managers.OverlappedWindows]
Symbol 479 MovieClip [__Packages.mx.styles.CSSSetStyle]
Symbol 480 MovieClip [__Packages.mx.core.ext.UIComponentExtensions]
Symbol 482 MovieClip [__Packages.mx.skins.halo.RectBorder]
Symbol 483 MovieClip [__Packages.mx.skins.halo.ButtonSkin]
Symbol 484 MovieClip [__Packages.mx.controls.HScrollBar]
Symbol 1144 MovieClip [__Packages.mx.controls.listclasses.SelectableRow]
Symbol 236 GraphicUsed by:237
Symbol 237 ButtonUses:236Used by:278
Symbol 238 ShapeTweeningUsed by:240
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClipUses:238 239Used by:241
Symbol 241 MovieClipUses:240Used by:244 278
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClipUses:242Used by:244 278
Symbol 244 MovieClipUses:241 243Used by:278
Symbol 245 MovieClipUses:229Used by:278
Symbol 246 GraphicUsed by:278
Symbol 247 GraphicUsed by:278
Symbol 248 GraphicUsed by:278
Symbol 249 GraphicUsed by:278
Symbol 250 GraphicUsed by:278
Symbol 251 GraphicUsed by:278
Symbol 252 GraphicUsed by:278
Symbol 253 GraphicUsed by:278
Symbol 254 GraphicUsed by:278
Symbol 255 GraphicUsed by:278
Symbol 256 GraphicUsed by:278
Symbol 257 GraphicUsed by:278
Symbol 258 GraphicUsed by:278
Symbol 259 GraphicUsed by:278
Symbol 260 GraphicUsed by:278
Symbol 261 GraphicUsed by:278
Symbol 262 GraphicUsed by:278
Symbol 263 GraphicUsed by:278
Symbol 264 GraphicUsed by:278
Symbol 265 GraphicUsed by:278
Symbol 266 GraphicUsed by:278
Symbol 267 GraphicUsed by:278
Symbol 268 GraphicUsed by:269
Symbol 269 MovieClipUses:268Used by:278
Symbol 270 GraphicUsed by:271
Symbol 271 MovieClipUses:270Used by:278
Symbol 272 GraphicUsed by:273
Symbol 273 MovieClipUses:272Used by:278
Symbol 274 GraphicUsed by:275
Symbol 275 MovieClipUses:274Used by:278
Symbol 276 GraphicUsed by:277
Symbol 277 MovieClipUses:276Used by:278
Symbol 278 MovieClipUses:237 244 241 243 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 269 271 273 275 277 SS1Used by:Timeline
Symbol 279 BitmapUsed by:280
Symbol 280 GraphicUses:279Used by:330
Symbol 281 GraphicUsed by:282
Symbol 282 ButtonUses:281Used by:330 390 393 401 403 405
Symbol 283 FontUsed by:284 328 667 716 720 727 730 731 732 735 740 745 750 755 760 765 770 775 778 781 783 784 785 786 787 788 791 792 795 797 799 801 804 809 817 822 823 824 825 831 832 835 836 837 838 839 842 843 846 848 900 901 902 903 920 930 931 932 973 975 976 977 979 981 982 983 984 1067 1150
Symbol 284 TextUses:283Used by:330
Symbol 285 TextUses:164Used by:330
Symbol 286 GraphicUsed by:287
Symbol 287 MovieClip [cardSelected]Uses:286Used by:326  Timeline
Symbol 288 BitmapUsed by:289 733 734
Symbol 289 GraphicUses:288Used by:326 418
Symbol 290 BitmapUsed by:291
Symbol 291 GraphicUses:290Used by:326 418
Symbol 292 BitmapUsed by:293
Symbol 293 GraphicUses:292Used by:326 418
Symbol 294 BitmapUsed by:295
Symbol 295 GraphicUses:294Used by:326 418
Symbol 296 BitmapUsed by:297
Symbol 297 GraphicUses:296Used by:326 418
Symbol 298 BitmapUsed by:299
Symbol 299 GraphicUses:298Used by:326 418
Symbol 300 BitmapUsed by:301
Symbol 301 GraphicUses:300Used by:326 418
Symbol 302 BitmapUsed by:303
Symbol 303 GraphicUses:302Used by:326 418
Symbol 304 BitmapUsed by:305
Symbol 305 GraphicUses:304Used by:326 418
Symbol 306 BitmapUsed by:307
Symbol 307 GraphicUses:306Used by:326 418
Symbol 308 BitmapUsed by:309
Symbol 309 GraphicUses:308Used by:326 418
Symbol 310 BitmapUsed by:311
Symbol 311 GraphicUses:310Used by:326 418
Symbol 312 BitmapUsed by:313
Symbol 313 GraphicUses:312Used by:326 418
Symbol 314 BitmapUsed by:315
Symbol 315 GraphicUses:314Used by:326 418
Symbol 316 BitmapUsed by:317
Symbol 317 GraphicUses:316Used by:326 418
Symbol 318 BitmapUsed by:319
Symbol 319 GraphicUses:318Used by:326 418
Symbol 320 BitmapUsed by:321
Symbol 321 GraphicUses:320Used by:326 418
Symbol 322 BitmapUsed by:323
Symbol 323 GraphicUses:322Used by:326 418
Symbol 324 BitmapUsed by:325 417
Symbol 325 GraphicUses:324Used by:326
Symbol 326 MovieClip [card]Uses:287 111 289 291 293 295 297 299 301 303 305 307 309 311 313 315 317 319 321 323 325Used by:330  Timeline
Symbol 327 GraphicUsed by:329
Symbol 328 TextUses:283Used by:329
Symbol 329 ButtonUses:327 328Used by:330
Symbol 330 MovieClip [bonusCards]Uses:280 282 284 285 326 329Used by:Timeline
Symbol 331 ShapeTweeningUsed by:334
Symbol 332 ShapeTweeningUsed by:334
Symbol 333 GraphicUsed by:334
Symbol 334 MovieClip [glowEffect]Uses:331 332 333Used by:Timeline
Symbol 335 EditableTextUses:12Used by:337
Symbol 336 EditableTextUses:12Used by:337
Symbol 337 MovieClip [lose_animation]Uses:335 336Used by:Timeline
Symbol 338 GraphicUsed by:342
Symbol 339 TextUses:106Used by:342
Symbol 340 EditableTextUses:106Used by:342
Symbol 341 EditableTextUses:106Used by:342
Symbol 342 MovieClip [infoBox]Uses:338 339 340 341Used by:Timeline
Symbol 343 EditableTextUses:12Used by:345
Symbol 344 EditableTextUses:12Used by:345
Symbol 345 MovieClip [gain_animation]Uses:343 344Used by:Timeline
Symbol 346 GraphicUsed by:349
Symbol 347 ShapeTweeningUsed by:349
Symbol 348 GraphicUsed by:349
Symbol 349 MovieClip [fade_control]Uses:346 347 348Used by:Timeline
Symbol 350 GraphicUsed by:352
Symbol 351 EditableTextUses:106Used by:352
Symbol 352 MovieClip [countsBox]Uses:350 351Used by:Timeline
Symbol 353 BitmapUsed by:354 820
Symbol 354 GraphicUses:353Used by:355
Symbol 355 MovieClip [a]Uses:354Used by:Timeline
Symbol 356 BitmapUsed by:357 820
Symbol 357 GraphicUses:356Used by:358
Symbol 358 MovieClip [av]Uses:357Used by:Timeline
Symbol 359 BitmapUsed by:360 820
Symbol 360 GraphicUses:359Used by:361
Symbol 361 MovieClip [e]Uses:360Used by:Timeline
Symbol 362 BitmapUsed by:363 820
Symbol 363 GraphicUses:362Used by:364
Symbol 364 MovieClip [g]Uses:363Used by:Timeline
Symbol 365 BitmapUsed by:366 820
Symbol 366 GraphicUses:365Used by:367
Symbol 367 MovieClip [h]Uses:366Used by:Timeline
Symbol 368 BitmapUsed by:369 820
Symbol 369 GraphicUses:368Used by:370
Symbol 370 MovieClip [k]Uses:369Used by:Timeline
Symbol 371 BitmapUsed by:372 820
Symbol 372 GraphicUses:371Used by:373
Symbol 373 MovieClip [m]Uses:372Used by:Timeline
Symbol 374 BitmapUsed by:375 820
Symbol 375 GraphicUses:374Used by:376
Symbol 376 MovieClip [p]Uses:375Used by:Timeline
Symbol 377 BitmapUsed by:378 820
Symbol 378 GraphicUses:377Used by:379
Symbol 379 MovieClip [s]Uses:378Used by:Timeline
Symbol 380 BitmapUsed by:381 820
Symbol 381 GraphicUses:380Used by:382
Symbol 382 MovieClip [w]Uses:381Used by:Timeline
Symbol 383 BitmapUsed by:384 391
Symbol 384 GraphicUses:383Used by:390 401 403 405
Symbol 385 TextUses:12Used by:390
Symbol 386 BitmapUsed by:387 398
Symbol 387 GraphicUses:386Used by:389
Symbol 388 EditableTextUses:12Used by:389
Symbol 389 MovieClipUses:387 388Used by:390 393 403
Symbol 390 MovieClip [attackResponse]Uses:384 282 385 389Used by:Timeline
Symbol 391 GraphicUses:383Used by:393
Symbol 392 TextUses:12Used by:393
Symbol 393 MovieClip [defenseResponse]Uses:391 282 392 389Used by:Timeline
Symbol 394 VideoUsed by:395
Symbol 395 MovieClipUses:394Used by:Timeline
Symbol 396 TextUses:12Used by:401 403 405
Symbol 397 EditableTextUses:12Used by:401
Symbol 398 GraphicUses:386Used by:400
Symbol 399 EditableTextUses:12Used by:400
Symbol 400 MovieClipUses:398 399Used by:401
Symbol 401 MovieClip [okCancelResponse]Uses:384 282 396 397 400Used by:Timeline
Symbol 402 EditableTextUses:12Used by:403
Symbol 403 MovieClip [okResponse]Uses:384 282 396 389 402Used by:Timeline
Symbol 404 EditableTextUses:12Used by:405
Symbol 405 MovieClip [waitingResponse]Uses:384 282 396 404Used by:Timeline
Symbol 406 GraphicUsed by:407
Symbol 407 MovieClipUses:406Used by:418
Symbol 408 GraphicUsed by:410 412 418
Symbol 409 TextUses:12Used by:410
Symbol 410 MovieClipUses:408 409Used by:418
Symbol 411 TextUses:12Used by:412
Symbol 412 ButtonUses:408 411Used by:418
Symbol 413 EditableTextUses:106Used by:418
Symbol 414 GraphicUsed by:415
Symbol 415 MovieClipUses:414Used by:418
Symbol 416 EditableTextUses:106Used by:418
Symbol 417 GraphicUses:324Used by:418
Symbol 418 MovieClip [cardManager]Uses:111 289 407 408 410 412 413 415 416 291 293 295 297 299 301 303 305 307 309 311 313 315 317 319 321 323 417Used by:Timeline
Symbol 419 GraphicUsed by:420
Symbol 420 ButtonUses:419Used by:493 502 509
Symbol 421 GraphicUsed by:493
Symbol 426 GraphicUsed by:427
Symbol 427 MovieClip [BoundingBox]Uses:426Used by:446 450 454 456 457 458 1126 1129 1130 1131 1132 1133 1134
Symbol 428 GraphicUsed by:429
Symbol 429 MovieClip [BrdrShdw]Uses:428Used by:432 437 438
Symbol 430 GraphicUsed by:431
Symbol 431 MovieClip [BrdrFace]Uses:430Used by:432 437 438
Symbol 432 MovieClip [SimpleButtonDown]Uses:429 431Used by:450
Symbol 433 GraphicUsed by:434
Symbol 434 MovieClip [BrdrBlk]Uses:433Used by:437 438
Symbol 435 GraphicUsed by:436
Symbol 436 MovieClip [BrdrHilght]Uses:435Used by:437 438
Symbol 437 MovieClip [SimpleButtonIn]Uses:434 436 429 431Used by:450
Symbol 438 MovieClip [SimpleButtonUp]Uses:434 431 429 436Used by:450
Symbol 439 MovieClip [Defaults]Used by:441
Symbol 440 MovieClip [UIObjectExtensions]Used by:441
Symbol 441 MovieClip [UIObject]Uses:439 440Used by:447 449 451
Symbol 442 GraphicUsed by:444
Symbol 443 GraphicUsed by:444
Symbol 444 ButtonUses:442 443Used by:447
Symbol 445 MovieClipUsed by:447
Symbol 446 MovieClip [FocusRect]Uses:427Used by:447
Symbol 447 MovieClip [FocusManager]Uses:444 445 446 441Used by:449
Symbol 448 MovieClip [UIComponentExtensions]Used by:449
Symbol 449 MovieClip [UIComponent]Uses:441 447 448Used by:450 1125 1126 1129 1130
Symbol 450 MovieClip [SimpleButton]Uses:427 432 437 438 449Used by:454 456 457 1126
Symbol 451 MovieClip [Border]Uses:441Used by:452 454
Symbol 452 MovieClip [RectBorder]Uses:451Used by:454 1125 1130
Symbol 453 MovieClip [ButtonSkin]Used by:454
Symbol 454 MovieClip [Button]Uses:427 450 451 452 453Used by:456 457
Symbol 455 MovieClip [CustomBorder]Used by:456 457
Symbol 456 MovieClip [VScrollBar]Uses:427 454 450 455 96Used by:458 1131
Symbol 457 MovieClip [HScrollBar]Uses:427 454 450 455 96Used by:458 1131
Symbol 458 MovieClip [UIScrollBar]Uses:427 456 457Used by:493 1157  Timeline
Symbol 485 EditableTextUses:164Used by:493
Symbol 486 TextUses:106Used by:493
Symbol 487 BitmapUsed by:488
Symbol 488 GraphicUses:487Used by:489
Symbol 489 ButtonUses:488Used by:493
Symbol 490 BitmapUsed by:491
Symbol 491 GraphicUses:490Used by:492 861
Symbol 492 ButtonUses:491Used by:493 509
Symbol 493 MovieClip [deckList]Uses:420 421 458 485 486 489 492Used by:Timeline
Symbol 494 BitmapUsed by:495
Symbol 495 GraphicUses:494Used by:497
Symbol 496 EditableTextUses:164Used by:497
Symbol 497 MovieClip [pageTab]Uses:495 496Used by:Timeline
Symbol 498 EditableTextUses:12Used by:500
Symbol 499 EditableTextUses:12Used by:500
Symbol 500 MovieClip [removeCardAnimation]Uses:498 499Used by:Timeline
Symbol 501 EditableTextUses:106Used by:502
Symbol 502 MovieClip [saveDeckBox]Uses:420 501Used by:Timeline
Symbol 503 BitmapUsed by:504
Symbol 504 GraphicUses:503Used by:505
Symbol 505 ButtonUses:504Used by:509
Symbol 506 GraphicUsed by:509
Symbol 507 EditableTextUses:106Used by:509
Symbol 508 TextUses:106Used by:509
Symbol 509 MovieClip [saveNewDeckBox]Uses:420 505 492 506 507 508Used by:Timeline
Symbol 510 ButtonUses:163Used by:514
Symbol 511 ButtonUses:166Used by:514
Symbol 512 TextUses:164Used by:514
Symbol 513 EditableTextUses:164Used by:514
Symbol 514 MovieClip [okCancelResponseBlack]Uses:162 510 511 167 512 513Used by:Timeline
Symbol 515 EditableTextUses:12Used by:516
Symbol 516 MovieClip [phaseAnnounce]Uses:515Used by:Timeline
Symbol 517 GraphicUsed by:518
Symbol 518 MovieClip [posModIcon]Uses:517Used by:Timeline
Symbol 519 GraphicUsed by:520
Symbol 520 MovieClip [negModIcon]Uses:519Used by:Timeline
Symbol 521 GraphicUsed by:526
Symbol 522 GraphicUsed by:523
Symbol 523 MovieClipUses:522Used by:526
Symbol 524 GraphicUsed by:525
Symbol 525 MovieClipUses:524Used by:526
Symbol 526 MovieClipUses:521 523 525Used by:527
Symbol 527 MovieClip [helpArrow]Uses:526Used by:Timeline
Symbol 528 Sound [battle.mp3]Used by:544
Symbol 529 Sound [battlestart.au]Used by:544
Symbol 530 Sound [cardflip.wav]Used by:544
Symbol 531 Sound [challenge.wav]Used by:544
Symbol 532 Sound [levelup.wav]Used by:544
Symbol 533 Sound [lobby.mp3]Used by:544
Symbol 534 Sound [login.mp3]Used by:544
Symbol 535 Sound [lose.au]Used by:544
Symbol 536 Sound [manager.mp3]Used by:544
Symbol 537 Sound [mouseover.au]Used by:544
Symbol 538 Sound [myturn.au]Used by:544
Symbol 539 Sound [opaction.au]Used by:544
Symbol 540 Sound [phase.au]Used by:544
Symbol 541 Sound [win.au]Used by:544
Symbol 542 Sound [battle2.mp3]Used by:544
Symbol 543 Sound [achiev.mp3]Used by:544
Symbol 544 MovieClipUses:528 529 530 531 532 533 534 535 536 537 538 539 540 541 1 542 543Used by:Timeline
Symbol 545 ShapeTweeningUsed by:548
Symbol 546 ShapeTweeningUsed by:548
Symbol 547 GraphicUsed by:548
Symbol 548 MovieClip [damageColorEffect]Uses:545 546 547Used by:Timeline
Symbol 549 GraphicUsed by:561
Symbol 550 GraphicUsed by:561
Symbol 551 EditableTextUses:106Used by:561
Symbol 552 GraphicUsed by:561
Symbol 553 GraphicUsed by:561
Symbol 554 GraphicUsed by:561
Symbol 555 GraphicUsed by:561
Symbol 556 GraphicUsed by:561
Symbol 557 GraphicUsed by:561
Symbol 558 GraphicUsed by:561
Symbol 559 GraphicUsed by:561
Symbol 560 GraphicUsed by:561 851
Symbol 561 MovieClipUses:549 550 551 552 553 554 555 556 557 558 559 560Used by:562
Symbol 562 MovieClip [achievementPopUp]Uses:561Used by:Timeline
Symbol 563 BitmapUsed by:564
Symbol 564 GraphicUses:563Used by:567
Symbol 565 BitmapUsed by:566
Symbol 566 GraphicUses:565Used by:567
Symbol 567 MovieClip [achievMedal]Uses:564 566Used by:Timeline
Symbol 568 BitmapUsed by:569
Symbol 569 GraphicUses:568Used by:576 658
Symbol 570 FontUsed by:571 896 933 960 962
Symbol 571 TextUses:570Used by:576
Symbol 572 FontUsed by:573 596 610 656
Symbol 573 TextUses:572Used by:575
Symbol 574 GraphicUsed by:575
Symbol 575 ButtonUses:573 574Used by:576
Symbol 576 MovieClip [achievList]Uses:569 571 575Used by:Timeline
Symbol 577 EditableTextUses:164Used by:Timeline
Symbol 578 TextUses:106Used by:581
Symbol 579 TextUses:106Used by:581
Symbol 580 GraphicUsed by:581 622 627 632 637 642 647 652 961 963 967 969
Symbol 581 ButtonUses:578 579 580Used by:Timeline
Symbol 582 GraphicUsed by:585
Symbol 583 ShapeTweeningUsed by:585
Symbol 584 ShapeTweeningUsed by:585
Symbol 585 MovieClipUses:582 583 584Used by:Timeline
Symbol 586 FontUsed by:587 615 675 676 678 679
Symbol 587 EditableTextUses:234 586Used by:Timeline
Symbol 588 BitmapUsed by:589 704
Symbol 589 GraphicUses:588Used by:590
Symbol 590 MovieClipUses:589Used by:593
Symbol 591 EditableTextUses:164Used by:593
Symbol 592 EditableTextUses:164Used by:593
Symbol 593 MovieClipUses:590 591 592Used by:Timeline
Symbol 594 GraphicUsed by:613
Symbol 595 EditableTextUses:164Used by:613
Symbol 596 TextUses:572Used by:613
Symbol 597 EditableTextUses:164Used by:613
Symbol 598 BitmapUsed by:599
Symbol 599 GraphicUses:598Used by:600
Symbol 600 ButtonUses:599Used by:613
Symbol 601 BitmapUsed by:602
Symbol 602 GraphicUses:601Used by:603
Symbol 603 ButtonUses:602Used by:613
Symbol 604 TextUses:106Used by:608
Symbol 605 TextUses:106Used by:608
Symbol 606 TextUses:106Used by:608
Symbol 607 GraphicUsed by:608
Symbol 608 ButtonUses:604 605 606 607Used by:613
Symbol 609 EditableTextUses:164Used by:613
Symbol 610 TextUses:572Used by:613
Symbol 611 GraphicUsed by:612
Symbol 612 MovieClipUses:611Used by:613
Symbol 613 MovieClipUses:594 595 596 597 600 603 608 609 610 612Used by:614
Symbol 614 MovieClipUses:613Used by:Timeline
Symbol 615 EditableTextUses:234 586Used by:Timeline
Symbol 616 BitmapUsed by:617
Symbol 617 GraphicUses:616Used by:Timeline
Symbol 618 BitmapUsed by:619
Symbol 619 GraphicUses:618Used by:622
Symbol 620 BitmapUsed by:621
Symbol 621 GraphicUses:620Used by:622
Symbol 622 ButtonUses:619 621 580Used by:658
Symbol 623 BitmapUsed by:624
Symbol 624 GraphicUses:623Used by:627
Symbol 625 BitmapUsed by:626
Symbol 626 GraphicUses:625Used by:627
Symbol 627 ButtonUses:624 626 580Used by:658
Symbol 628 BitmapUsed by:629
Symbol 629 GraphicUses:628Used by:632
Symbol 630 BitmapUsed by:631
Symbol 631 GraphicUses:630Used by:632
Symbol 632 ButtonUses:629 631 580Used by:658
Symbol 633 BitmapUsed by:634
Symbol 634 GraphicUses:633Used by:637
Symbol 635 BitmapUsed by:636
Symbol 636 GraphicUses:635Used by:637
Symbol 637 ButtonUses:634 636 580Used by:658
Symbol 638 BitmapUsed by:639
Symbol 639 GraphicUses:638Used by:642
Symbol 640 BitmapUsed by:641
Symbol 641 GraphicUses:640Used by:642
Symbol 642 ButtonUses:639 641 580Used by:658
Symbol 643 BitmapUsed by:644
Symbol 644 GraphicUses:643Used by:647
Symbol 645 BitmapUsed by:646
Symbol 646 GraphicUses:645Used by:647
Symbol 647 ButtonUses:644 646 580Used by:658
Symbol 648 BitmapUsed by:649
Symbol 649 GraphicUses:648Used by:652
Symbol 650 BitmapUsed by:651
Symbol 651 GraphicUses:650Used by:652
Symbol 652 ButtonUses:649 651 580Used by:658
Symbol 653 EditableTextUses:106Used by:658
Symbol 654 EditableTextUses:106Used by:658
Symbol 655 MovieClipUsed by:658 921  Timeline
Symbol 656 TextUses:572Used by:658
Symbol 657 GraphicUsed by:658
Symbol 658 MovieClipUses:569 622 627 632 637 642 647 652 653 654 655 656 657Used by:659
Symbol 659 MovieClipUses:658Used by:Timeline
Symbol 660 EditableTextUses:164Used by:Timeline
Symbol 661 GraphicUsed by:Timeline
Symbol 662 EditableTextUses:164Used by:Timeline
Symbol 663 EditableTextUses:164Used by:Timeline
Symbol 664 GraphicUsed by:Timeline
Symbol 665 TextUses:164Used by:Timeline
Symbol 666 EditableTextUses:164Used by:Timeline
Symbol 667 TextUses:283Used by:Timeline
Symbol 668 GraphicUsed by:Timeline
Symbol 669 TextUses:164Used by:Timeline
Symbol 670 EditableTextUses:164Used by:Timeline
Symbol 671 GraphicUsed by:Timeline
Symbol 672 EditableTextUses:164Used by:Timeline
Symbol 673 GraphicUsed by:Timeline
Symbol 674 GraphicUsed by:677 680
Symbol 675 TextUses:586Used by:677
Symbol 676 TextUses:586Used by:677
Symbol 677 MovieClipUses:674 675 676Used by:Timeline
Symbol 678 TextUses:586Used by:680
Symbol 679 TextUses:586Used by:680
Symbol 680 MovieClipUses:674 678 679Used by:851  Timeline
Symbol 681 BitmapUsed by:682
Symbol 682 GraphicUses:681Used by:701
Symbol 683 BitmapUsed by:684
Symbol 684 GraphicUses:683Used by:701
Symbol 685 BitmapUsed by:686
Symbol 686 GraphicUses:685Used by:701
Symbol 687 BitmapUsed by:688
Symbol 688 GraphicUses:687Used by:701
Symbol 689 BitmapUsed by:690
Symbol 690 GraphicUses:689Used by:701
Symbol 691 BitmapUsed by:692
Symbol 692 GraphicUses:691Used by:701
Symbol 693 BitmapUsed by:694
Symbol 694 GraphicUses:693Used by:701
Symbol 695 BitmapUsed by:696
Symbol 696 GraphicUses:695Used by:701
Symbol 697 BitmapUsed by:698
Symbol 698 GraphicUses:697Used by:701
Symbol 699 BitmapUsed by:700
Symbol 700 GraphicUses:699Used by:701
Symbol 701 MovieClipUses:682 684 686 688 690 692 694 696 698 700Used by:Timeline
Symbol 702 EditableTextUses:164Used by:Timeline
Symbol 703 EditableTextUses:164Used by:Timeline
Symbol 704 GraphicUses:588Used by:Timeline
Symbol 705 EditableTextUses:164Used by:Timeline
Symbol 706 EditableTextUses:106Used by:Timeline
Symbol 707 BitmapUsed by:708
Symbol 708 GraphicUses:707Used by:851
Symbol 709 BitmapUsed by:710
Symbol 710 GraphicUses:709Used by:711
Symbol 711 ButtonUses:710Used by:851  Timeline
Symbol 712 BitmapUsed by:713
Symbol 713 GraphicUses:712Used by:714
Symbol 714 ButtonUses:713Used by:851  Timeline
Symbol 715 TextUses:164Used by:851
Symbol 716 TextUses:283Used by:851
Symbol 717 BitmapUsed by:718 719
Symbol 718 GraphicUses:717Used by:721
Symbol 719 GraphicUses:717Used by:721
Symbol 720 TextUses:283Used by:721 725 729
Symbol 721 ButtonUses:718 719 720Used by:851
Symbol 722 BitmapUsed by:723 724
Symbol 723 GraphicUses:722Used by:725 729
Symbol 724 GraphicUses:722Used by:725 729
Symbol 725 ButtonUses:723 724 720Used by:851
Symbol 726 TextUses:164Used by:851
Symbol 727 TextUses:283Used by:851
Symbol 728 TextUses:164Used by:851
Symbol 729 ButtonUses:723 724 720Used by:851
Symbol 730 TextUses:164 283Used by:851
Symbol 731 TextUses:283 164Used by:851
Symbol 732 TextUses:283Used by:851
Symbol 733 GraphicUses:288Used by:736
Symbol 734 GraphicUses:288Used by:736
Symbol 735 TextUses:283Used by:736
Symbol 736 ButtonUses:733 734 735Used by:851
Symbol 737 BitmapUsed by:738 739
Symbol 738 GraphicUses:737Used by:741
Symbol 739 GraphicUses:737Used by:741
Symbol 740 TextUses:283Used by:741
Symbol 741 ButtonUses:738 739 740Used by:851
Symbol 742 BitmapUsed by:743 744
Symbol 743 GraphicUses:742Used by:746
Symbol 744 GraphicUses:742Used by:746
Symbol 745 TextUses:283Used by:746
Symbol 746 ButtonUses:743 744 745Used by:851
Symbol 747 BitmapUsed by:748 749
Symbol 748 GraphicUses:747Used by:751
Symbol 749 GraphicUses:747Used by:751
Symbol 750 TextUses:283Used by:751
Symbol 751 ButtonUses:748 749 750Used by:851
Symbol 752 BitmapUsed by:753 754
Symbol 753 GraphicUses:752Used by:756
Symbol 754 GraphicUses:752Used by:756
Symbol 755 TextUses:283Used by:756
Symbol 756 ButtonUses:753 754 755Used by:851
Symbol 757 BitmapUsed by:758 759
Symbol 758 GraphicUses:757Used by:761
Symbol 759 GraphicUses:757Used by:761
Symbol 760 TextUses:283Used by:761
Symbol 761 ButtonUses:758 759 760Used by:851
Symbol 762 BitmapUsed by:763 764
Symbol 763 GraphicUses:762Used by:766
Symbol 764 GraphicUses:762Used by:766
Symbol 765 TextUses:283Used by:766
Symbol 766 ButtonUses:763 764 765Used by:851
Symbol 767 BitmapUsed by:768 769
Symbol 768 GraphicUses:767Used by:771
Symbol 769 GraphicUses:767Used by:771
Symbol 770 TextUses:283Used by:771
Symbol 771 ButtonUses:768 769 770Used by:851
Symbol 772 BitmapUsed by:773 774
Symbol 773 GraphicUses:772Used by:776
Symbol 774 GraphicUses:772Used by:776
Symbol 775 TextUses:283Used by:776
Symbol 776 ButtonUses:773 774 775Used by:851
Symbol 777 TextUses:164Used by:851
Symbol 778 TextUses:283Used by:851
Symbol 779 BitmapUsed by:780
Symbol 780 GraphicUses:779Used by:851
Symbol 781 TextUses:283Used by:851
Symbol 782 GraphicUsed by:851
Symbol 783 TextUses:283Used by:851
Symbol 784 TextUses:283Used by:851
Symbol 785 TextUses:283Used by:851
Symbol 786 TextUses:283Used by:851
Symbol 787 TextUses:283Used by:851
Symbol 788 TextUses:283Used by:851
Symbol 789 TextUses:164Used by:851
Symbol 790 TextUses:164Used by:851
Symbol 791 TextUses:283Used by:851
Symbol 792 TextUses:283Used by:851
Symbol 793 TextUses:164Used by:851
Symbol 794 TextUses:164Used by:851
Symbol 795 TextUses:283Used by:851
Symbol 796 TextUses:164Used by:851
Symbol 797 TextUses:283Used by:851
Symbol 798 TextUses:164Used by:851
Symbol 799 TextUses:283Used by:851
Symbol 800 TextUses:164Used by:851
Symbol 801 TextUses:164 283Used by:851
Symbol 802 BitmapUsed by:803
Symbol 803 GraphicUses:802Used by:851
Symbol 804 TextUses:283 164Used by:851
Symbol 805 BitmapUsed by:808
Symbol 806 BitmapUsed by:808
Symbol 807 BitmapUsed by:808
Symbol 808 GraphicUses:805 806 807Used by:851
Symbol 809 TextUses:283Used by:851
Symbol 810 BitmapUsed by:811
Symbol 811 GraphicUses:810Used by:851
Symbol 812 TextUses:164Used by:851
Symbol 813 BitmapUsed by:815
Symbol 814 BitmapUsed by:815
Symbol 815 GraphicUses:813 814Used by:851
Symbol 816 TextUses:164Used by:851
Symbol 817 TextUses:283Used by:851
Symbol 818 GraphicUsed by:851
Symbol 819 TextUses:164Used by:851
Symbol 820 GraphicUses:359 356 380 377 371 374 362 368 353 365Used by:851
Symbol 821 TextUses:164Used by:851
Symbol 822 TextUses:283Used by:851
Symbol 823 TextUses:164 283Used by:851
Symbol 824 TextUses:283 164Used by:851
Symbol 825 TextUses:283 164Used by:851
Symbol 826 TextUses:164Used by:851
Symbol 827 BitmapUsed by:828
Symbol 828 GraphicUses:827Used by:851
Symbol 829 TextUses:164Used by:851
Symbol 830 TextUses:164Used by:851
Symbol 831 TextUses:283Used by:851
Symbol 832 TextUses:283Used by:851
Symbol 833 BitmapUsed by:834
Symbol 834 GraphicUses:833Used by:851
Symbol 835 TextUses:283 164Used by:851
Symbol 836 TextUses:283 164Used by:851
Symbol 837 TextUses:283Used by:851
Symbol 838 TextUses:164 283Used by:851
Symbol 839 TextUses:283Used by:851
Symbol 840 EditableTextUses:164Used by:851
Symbol 841 TextUses:164Used by:851
Symbol 842 TextUses:164 283Used by:851
Symbol 843 TextUses:283Used by:851
Symbol 844 GraphicUsed by:845
Symbol 845 MovieClipUses:844Used by:851
Symbol 846 TextUses:283Used by:851
Symbol 847 FontUsed by:848
Symbol 848 TextUses:283 164 847Used by:851
Symbol 849 BitmapUsed by:850
Symbol 850 GraphicUses:849Used by:851 1051
Symbol 851 MovieClipUses:708 680 711 714 715 716 721 725 726 727 728 729 730 731 732 736 741 746 751 756 761 766 771 776 777 778 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 803 804 808 809 811 812 815 816 817 818 819 820 821 822 823 824 825 826 828 829 830 831 832 834 835 836 837 838 839 840 841 842 843 845 560 846 848 850Used by:Timeline
Symbol 852 GraphicUsed by:Timeline
Symbol 853 TextUses:164Used by:Timeline
Symbol 854 TextUses:164Used by:Timeline
Symbol 855 GraphicUsed by:Timeline
Symbol 856 BitmapUsed by:857
Symbol 857 GraphicUses:856Used by:Timeline
Symbol 858 BitmapUsed by:859
Symbol 859 GraphicUses:858Used by:873
Symbol 860 EditableTextUses:164Used by:873
Symbol 861 ButtonUses:491Used by:873
Symbol 862 GraphicUsed by:872
Symbol 863 GraphicUsed by:872
Symbol 864 GraphicUsed by:872
Symbol 865 GraphicUsed by:872
Symbol 866 GraphicUsed by:872
Symbol 867 GraphicUsed by:872
Symbol 868 GraphicUsed by:872
Symbol 869 GraphicUsed by:872
Symbol 870 GraphicUsed by:872
Symbol 871 GraphicUsed by:872
Symbol 872 MovieClipUses:862 863 864 865 866 867 868 869 870 871Used by:873
Symbol 873 MovieClipUses:859 860 861 872Used by:Timeline
Symbol 874 EditableTextUses:164Used by:Timeline
Symbol 875 EditableTextUses:164Used by:Timeline
Symbol 876 BitmapUsed by:877
Symbol 877 GraphicUses:876Used by:880
Symbol 878 BitmapUsed by:879
Symbol 879 GraphicUses:878Used by:880
Symbol 880 ButtonUses:877 879Used by:Timeline
Symbol 881 BitmapUsed by:882
Symbol 882 GraphicUses:881Used by:885
Symbol 883 BitmapUsed by:884
Symbol 884 GraphicUses:883Used by:885
Symbol 885 ButtonUses:882 884Used by:Timeline
Symbol 886 BitmapUsed by:887
Symbol 887 GraphicUses:886Used by:890
Symbol 888 BitmapUsed by:889
Symbol 889 GraphicUses:888Used by:890
Symbol 890 ButtonUses:887 889Used by:Timeline
Symbol 891 BitmapUsed by:892
Symbol 892 GraphicUses:891Used by:895
Symbol 893 BitmapUsed by:894
Symbol 894 GraphicUses:893Used by:895
Symbol 895 ButtonUses:892 894Used by:Timeline
Symbol 896 EditableTextUses:570Used by:Timeline
Symbol 897 EditableTextUses:164Used by:Timeline
Symbol 898 BitmapUsed by:899
Symbol 899 GraphicUses:898Used by:921
Symbol 900 EditableTextUses:283Used by:921
Symbol 901 EditableTextUses:283Used by:921
Symbol 902 EditableTextUses:283Used by:921
Symbol 903 EditableTextUses:283Used by:921
Symbol 904 BitmapUsed by:905
Symbol 905 GraphicUses:904Used by:908
Symbol 906 BitmapUsed by:907
Symbol 907 GraphicUses:906Used by:908
Symbol 908 MovieClipUses:905 907Used by:921
Symbol 909 BitmapUsed by:910
Symbol 910 GraphicUses:909Used by:911
Symbol 911 MovieClipUses:910Used by:921
Symbol 912 BitmapUsed by:913
Symbol 913 GraphicUses:912Used by:916
Symbol 914 BitmapUsed by:915
Symbol 915 GraphicUses:914Used by:916
Symbol 916 MovieClipUses:913 915Used by:921
Symbol 917 BitmapUsed by:918
Symbol 918 GraphicUses:917Used by:919
Symbol 919 MovieClipUses:918Used by:921
Symbol 920 EditableTextUses:283Used by:921
Symbol 921 MovieClipUses:899 900 901 655 902 903 908 911 916 919 920Used by:Timeline
Symbol 922 BitmapUsed by:923
Symbol 923 GraphicUses:922Used by:924
Symbol 924 MovieClipUses:923Used by:Timeline
Symbol 925 BitmapUsed by:926
Symbol 926 GraphicUses:925Used by:927
Symbol 927 MovieClipUses:926Used by:1157  Timeline
Symbol 928 EditableTextUses:106Used by:929
Symbol 929 MovieClipUses:222 928Used by:Timeline
Symbol 930 EditableTextUses:283Used by:Timeline
Symbol 931 EditableTextUses:283Used by:Timeline
Symbol 932 EditableTextUses:283Used by:Timeline
Symbol 933 EditableTextUses:570Used by:Timeline
Symbol 934 ShapeTweeningUsed by:936
Symbol 935 GraphicUsed by:936
Symbol 936 MovieClipUses:934 935Used by:Timeline
Symbol 937 EditableTextUses:12Used by:Timeline
Symbol 938 BitmapUsed by:939
Symbol 939 GraphicUses:938Used by:942
Symbol 940 BitmapUsed by:941
Symbol 941 GraphicUses:940Used by:942
Symbol 942 ButtonUses:939 941Used by:Timeline
Symbol 943 BitmapUsed by:944
Symbol 944 GraphicUses:943Used by:947
Symbol 945 BitmapUsed by:946
Symbol 946 GraphicUses:945Used by:947
Symbol 947 ButtonUses:944 946Used by:Timeline
Symbol 948 EditableTextUses:164Used by:Timeline
Symbol 949 BitmapUsed by:950
Symbol 950 GraphicUses:949Used by:951
Symbol 951 MovieClipUses:950Used by:Timeline
Symbol 952 BitmapUsed by:953
Symbol 953 GraphicUses:952Used by:954
Symbol 954 MovieClipUses:953Used by:Timeline
Symbol 955 BitmapUsed by:956
Symbol 956 GraphicUses:955Used by:959
Symbol 957 BitmapUsed by:958
Symbol 958 GraphicUses:957Used by:959
Symbol 959 MovieClipUses:956 958Used by:Timeline
Symbol 960 TextUses:570Used by:961
Symbol 961 ButtonUses:960 580Used by:Timeline
Symbol 962 TextUses:570Used by:963
Symbol 963 ButtonUses:962 580Used by:Timeline
Symbol 964 BitmapUsed by:965
Symbol 965 GraphicUses:964Used by:Timeline
Symbol 966 MovieClipUsed by:Timeline
Symbol 967 MovieClipUses:580Used by:Timeline
Symbol 968 MovieClipUsed by:Timeline
Symbol 969 MovieClipUses:580Used by:Timeline
Symbol 970 GraphicUsed by:Timeline
Symbol 971 EditableTextUses:164Used by:Timeline
Symbol 972 EditableTextUses:164Used by:Timeline
Symbol 973 TextUses:283Used by:Timeline
Symbol 974 TextUses:164Used by:Timeline
Symbol 975 EditableTextUses:283Used by:Timeline
Symbol 976 EditableTextUses:283Used by:Timeline
Symbol 977 EditableTextUses:283Used by:Timeline
Symbol 978 EditableTextUses:164Used by:Timeline
Symbol 979 EditableTextUses:283Used by:Timeline
Symbol 980 TextUses:164Used by:Timeline
Symbol 981 EditableTextUses:283Used by:Timeline
Symbol 982 EditableTextUses:283Used by:Timeline
Symbol 983 EditableTextUses:283Used by:Timeline
Symbol 984 EditableTextUses:283Used by:Timeline
Symbol 985 EditableTextUses:164Used by:Timeline
Symbol 986 BitmapUsed by:987
Symbol 987 GraphicUses:986Used by:990 1012
Symbol 988 BitmapUsed by:989
Symbol 989 GraphicUses:988Used by:990 1012
Symbol 990 MovieClipUses:987 989Used by:1011
Symbol 991 BitmapUsed by:992
Symbol 992 GraphicUses:991Used by:995 1013
Symbol 993 BitmapUsed by:994
Symbol 994 GraphicUses:993Used by:995 1013
Symbol 995 MovieClipUses:992 994Used by:1011
Symbol 996 BitmapUsed by:997
Symbol 997 GraphicUses:996Used by:1000 1014
Symbol 998 BitmapUsed by:999
Symbol 999 GraphicUses:998Used by:1000 1014
Symbol 1000 MovieClipUses:997 999Used by:1011
Symbol 1001 BitmapUsed by:1002
Symbol 1002 GraphicUses:1001Used by:1005 1015
Symbol 1003 BitmapUsed by:1004
Symbol 1004 GraphicUses:1003Used by:1005 1015
Symbol 1005 MovieClipUses:1002 1004Used by:1011
Symbol 1006 BitmapUsed by:1007
Symbol 1007 GraphicUses:1006Used by:1010 1016
Symbol 1008 BitmapUsed by:1009
Symbol 1009 GraphicUses:1008Used by:1010 1016
Symbol 1010 MovieClipUses:1007 1009Used by:1011
Symbol 1011 MovieClipUses:990 995 1000 1005 1010Used by:Timeline
Symbol 1012 MovieClipUses:987 989Used by:1017
Symbol 1013 MovieClipUses:992 994Used by:1017
Symbol 1014 MovieClipUses:997 999Used by:1017
Symbol 1015 MovieClipUses:1002 1004Used by:1017
Symbol 1016 MovieClipUses:1007 1009Used by:1017
Symbol 1017 MovieClipUses:1012 1013 1014 1015 1016Used by:Timeline
Symbol 1018 EditableTextUses:164Used by:Timeline
Symbol 1019 ShapeTweeningUsed by:1023
Symbol 1020 FontUsed by:1021
Symbol 1021 TextUses:1020Used by:1023
Symbol 1022 GraphicUsed by:1023
Symbol 1023 MovieClipUses:1019 1021 1022Used by:Timeline
Symbol 1024 BitmapUsed by:1025
Symbol 1025 GraphicUses:1024Used by:1036
Symbol 1026 BitmapUsed by:1027
Symbol 1027 GraphicUses:1026Used by:1036
Symbol 1028 BitmapUsed by:1029
Symbol 1029 GraphicUses:1028Used by:1036
Symbol 1030 BitmapUsed by:1031
Symbol 1031 GraphicUses:1030Used by:1036
Symbol 1032 BitmapUsed by:1033
Symbol 1033 GraphicUses:1032Used by:1036
Symbol 1034 BitmapUsed by:1035
Symbol 1035 GraphicUses:1034Used by:1036
Symbol 1036 MovieClipUses:1025 1027 1029 1031 1033 1035Used by:Timeline
Symbol 1037 BitmapUsed by:1038
Symbol 1038 GraphicUses:1037Used by:1041
Symbol 1039 BitmapUsed by:1040
Symbol 1040 GraphicUses:1039Used by:1041
Symbol 1041 ButtonUses:1038 1040Used by:Timeline
Symbol 1042 EditableTextUses:164Used by:Timeline
Symbol 1043 BitmapUsed by:1044 1045 1046 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065
Symbol 1044 GraphicUses:1043Used by:1047 1066
Symbol 1045 GraphicUses:1043Used by:1047
Symbol 1046 GraphicUses:1043Used by:1047
Symbol 1047 MovieClipUses:1044 1045 1046Used by:Timeline
Symbol 1048 GraphicUsed by:Timeline
Symbol 1049 BitmapUsed by:1050
Symbol 1050 GraphicUses:1049Used by:1051
Symbol 1051 MovieClipUses:850 1050Used by:Timeline
Symbol 1052 GraphicUses:1043Used by:Timeline
Symbol 1053 GraphicUses:1043Used by:1066
Symbol 1054 GraphicUses:1043Used by:1066
Symbol 1055 GraphicUses:1043Used by:1066
Symbol 1056 GraphicUses:1043Used by:1066
Symbol 1057 GraphicUses:1043Used by:1066
Symbol 1058 GraphicUses:1043Used by:1066
Symbol 1059 GraphicUses:1043Used by:1066
Symbol 1060 GraphicUses:1043Used by:1066
Symbol 1061 GraphicUses:1043Used by:1066
Symbol 1062 GraphicUses:1043Used by:1066
Symbol 1063 GraphicUses:1043Used by:1066
Symbol 1064 GraphicUses:1043Used by:1066
Symbol 1065 GraphicUses:1043Used by:1066
Symbol 1066 MovieClipUses:1044 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065Used by:Timeline
Symbol 1067 EditableTextUses:283Used by:Timeline
Symbol 1068 GraphicUsed by:Timeline
Symbol 1069 GraphicUsed by:1071
Symbol 1070 GraphicUsed by:1071
Symbol 1071 MovieClipUses:1069 1070Used by:Timeline
Symbol 1072 GraphicUsed by:1073
Symbol 1073 MovieClipUses:1072Used by:Timeline
Symbol 1074 GraphicUsed by:1075
Symbol 1075 MovieClipUses:1074Used by:Timeline
Symbol 1076 GraphicUsed by:1078
Symbol 1077 TextUses:164Used by:1078
Symbol 1078 MovieClipUses:1076 1077Used by:Timeline
Symbol 1079 BitmapUsed by:1080
Symbol 1080 GraphicUses:1079Used by:Timeline
Symbol 1081 GraphicUsed by:1083
Symbol 1082 EditableTextUses:106Used by:1083
Symbol 1083 MovieClipUses:1081 1082Used by:Timeline
Symbol 1084 BitmapUsed by:1085
Symbol 1085 GraphicUses:1084Used by:1088
Symbol 1086 BitmapUsed by:1087
Symbol 1087 GraphicUses:1086Used by:1088
Symbol 1088 ButtonUses:1085 1087Used by:Timeline
Symbol 1089 BitmapUsed by:1090
Symbol 1090 GraphicUses:1089Used by:1093
Symbol 1091 BitmapUsed by:1092
Symbol 1092 GraphicUses:1091Used by:1093
Symbol 1093 ButtonUses:1090 1092Used by:Timeline
Symbol 1094 BitmapUsed by:1095
Symbol 1095 GraphicUses:1094Used by:1098
Symbol 1096 BitmapUsed by:1097
Symbol 1097 GraphicUses:1096Used by:1098
Symbol 1098 ButtonUses:1095 1097Used by:Timeline
Symbol 1099 BitmapUsed by:1100
Symbol 1100 GraphicUses:1099Used by:1103
Symbol 1101 BitmapUsed by:1102
Symbol 1102 GraphicUses:1101Used by:1103
Symbol 1103 ButtonUses:1100 1102Used by:Timeline
Symbol 1104 EditableTextUses:106Used by:Timeline
Symbol 1105 EditableTextUses:106Used by:Timeline
Symbol 1106 EditableTextUses:106Used by:Timeline
Symbol 1107 BitmapUsed by:1108
Symbol 1108 GraphicUses:1107Used by:1109
Symbol 1109 MovieClipUses:1108Used by:Timeline
Symbol 1110 GraphicUsed by:1111
Symbol 1111 MovieClipUses:1110Used by:Timeline
Symbol 1112 EditableTextUses:106Used by:Timeline
Symbol 1113 EditableTextUses:12Used by:Timeline
Symbol 1114 BitmapUsed by:1115
Symbol 1115 GraphicUses:1114Used by:1116
Symbol 1116 MovieClipUses:1115Used by:Timeline
Symbol 1117 BitmapUsed by:1118
Symbol 1118 GraphicUses:1117Used by:1119
Symbol 1119 MovieClipUses:1118Used by:Timeline
Symbol 1123 FontUsed by:1124
Symbol 1124 EditableTextUses:1123Used by:1125
Symbol 1125 MovieClip [TextInput]Uses:1124 452 449Used by:1126
Symbol 1126 MovieClip [ComboBase]Uses:427 449 450 1125Used by:1134
Symbol 1127 MovieClip [DataProvider]Used by:1132
Symbol 1128 MovieClip [DataSelector]Used by:1132
Symbol 1129 MovieClip [SelectableRow]Uses:449 427Used by:1132
Symbol 1130 MovieClip [View]Uses:427 449 452Used by:1131
Symbol 1131 MovieClip [ScrollView]Uses:427 457 456 1130Used by:1132
Symbol 1132 MovieClip [ScrollSelectList]Uses:427 1127 1128 1129 1131Used by:1133
Symbol 1133 MovieClip [List]Uses:427 1132Used by:1134
Symbol 1134 MovieClip [ComboBox]Uses:427 1126 1133 102Used by:Timeline
Symbol 1145 BitmapUsed by:1146
Symbol 1146 GraphicUses:1145Used by:1149
Symbol 1147 BitmapUsed by:1148
Symbol 1148 GraphicUses:1147Used by:1149
Symbol 1149 ButtonUses:1146 1148Used by:Timeline
Symbol 1150 EditableTextUses:283Used by:Timeline
Symbol 1151 GraphicUsed by:1157
Symbol 1152 EditableTextUses:164Used by:1157
Symbol 1153 EditableTextUses:164Used by:1157
Symbol 1154 BitmapUsed by:1155
Symbol 1155 GraphicUses:1154Used by:1156
Symbol 1156 ButtonUses:1155Used by:1157
Symbol 1157 MovieClipUses:1151 1152 1153 458 1156 927Used by:Timeline
Streaming Sound 1Used by:Symbol 278 MovieClip

Instance Names

"rayEffect"Frame 1Symbol 233 MovieClip
"horse_eye"Frame 4Symbol 585 MovieClip
"newsDisplay"Frame 4Symbol 593 MovieClip
"loginInfo"Frame 4Symbol 614 MovieClip
"menuBox"Frame 5Symbol 659 MovieClip
"submit"Frame 6Symbol 677 MovieClip
"back"Frame 6Symbol 680 MovieClip
"deckPicture"Frame 6Symbol 701 MovieClip
"username"Frame 6Symbol 702 EditableText
"pass"Frame 6Symbol 703 EditableText
"descriptionTextField"Frame 6Symbol 705 EditableText
"deckListTextField"Frame 6Symbol 706 EditableText
"howToPlay"Frame 7Symbol 851 MovieClip
"waitingBattle"Frame 8Symbol 873 MovieClip
"privateChatTab8"Frame 8Symbol 224 MovieClip [friendTab]
"privateChatTab7"Frame 8Symbol 224 MovieClip [friendTab]
"msgBox"Frame 8Symbol 874 EditableText
"gameChat"Frame 8Symbol 875 EditableText
"chatboxSb"Frame 8Symbol 458 MovieClip [UIScrollBar]
"mainMenuLobby"Frame 8Symbol 880 Button
"accountSetup"Frame 8Symbol 885 Button
"tradeCards"Frame 8Symbol 890 Button
"logout"Frame 8Symbol 895 Button
"playersList"Frame 8Symbol 897 EditableText
"chatboxSb2"Frame 8Symbol 458 MovieClip [UIScrollBar]
"clanListTab"Frame 8Symbol 224 MovieClip [friendTab]
"viewMyPicture"Frame 8Symbol 655 MovieClip
"playerViewer"Frame 8Symbol 921 MovieClip
"randomMatch"Frame 8Symbol 924 MovieClip
"sendButton"Frame 8Symbol 927 MovieClip
"privateChatTab6"Frame 8Symbol 224 MovieClip [friendTab]
"privateChatTab5"Frame 8Symbol 224 MovieClip [friendTab]
"privateChatTab4"Frame 8Symbol 224 MovieClip [friendTab]
"privateChatTab3"Frame 8Symbol 224 MovieClip [friendTab]
"privateChatTab2"Frame 8Symbol 224 MovieClip [friendTab]
"privateChatTab1"Frame 8Symbol 224 MovieClip [friendTab]
"privateChatTab0"Frame 8Symbol 224 MovieClip [friendTab]
"tradeChatTab"Frame 8Symbol 224 MovieClip [friendTab]
"lobbyChatTab"Frame 8Symbol 929 MovieClip
"friendsListTab"Frame 8Symbol 224 MovieClip [friendTab]
"lobbyListTab"Frame 8Symbol 929 MovieClip
"closeTab"Frame 8Symbol 220 MovieClip [closeTab]
"deckCardsListTab"Frame 8Symbol 224 MovieClip [friendTab]
"decksListTab"Frame 8Symbol 929 MovieClip
"displayClan"Frame 8Symbol 930 EditableText
"displayAccType"Frame 8Symbol 932 EditableText
"experienceBar"Frame 8Symbol 936 MovieClip
"clanList"Frame 8Symbol 942 Button
"tournaments"Frame 8Symbol 947 Button
"chatboxSb3"Frame 8Symbol 458 MovieClip [UIScrollBar]
"cardsList"Frame 8Symbol 948 EditableText
"setAsDefault"Frame 8Symbol 951 MovieClip
"cardManager"Frame 8Symbol 954 MovieClip
"soundButton"Frame 8Symbol 959 MovieClip
"lobbyNextPage"Frame 8Symbol 961 Button
"lobbyPrevPage"Frame 8Symbol 963 Button
"myBackground"Frame 9Symbol 966 MovieClip
"myPlayfield"Frame 9Symbol 967 MovieClip
"opBackground"Frame 9Symbol 968 MovieClip
"classDock"Frame 9Symbol 969 MovieClip
"gameChatSb4"Frame 9Symbol 458 MovieClip [UIScrollBar]
"msgBox"Frame 9Symbol 985 EditableText
"myPhases"Frame 9Symbol 1011 MovieClip
"opPhases"Frame 9Symbol 1017 MovieClip
"timer"Frame 9Symbol 1023 MovieClip
"myLifeObj"Frame 9Symbol 1036 MovieClip
"opLifeObj"Frame 9Symbol 1036 MovieClip
"surrender"Frame 9Symbol 1041 Button
"logout"Frame 9Symbol 895 Button
"accountSetup"Frame 9Symbol 885 Button
"viewMyPicture"Frame 9Symbol 655 MovieClip
"viewOpPicture"Frame 9Symbol 655 MovieClip
"gameChat"Frame 9Symbol 1042 EditableText
"opClassDock"Frame 9Symbol 1047 MovieClip
"graveyard"Frame 9Symbol 217 MovieClip [graveyard]
"helpButton"Frame 9Symbol 1051 MovieClip
"opHandViewer"Frame 9Symbol 1066 MovieClip
"loadingCardText"Frame 9Symbol 1067 EditableText
"soundButton"Frame 9Symbol 959 MovieClip
"tableIcon4"Frame 9Symbol 1071 MovieClip
"tableIcon3"Frame 9Symbol 1073 MovieClip
"tableIcon2"Frame 9Symbol 1075 MovieClip
"tradeCards"Frame 9Symbol 890 Button
"gameChatTab"Frame 9Symbol 929 MovieClip
"warningText"Frame 10Symbol 1083 MovieClip
"newDeck"Frame 10Symbol 1088 Button
"loadDeck"Frame 10Symbol 1093 Button
"saveDeck"Frame 10Symbol 1098 Button
"deleteDeck"Frame 10Symbol 1103 Button
"renameButton"Frame 10Symbol 1109 MovieClip
"setDefaultButton"Frame 10Symbol 951 MovieClip
"deckNameBG"Frame 10Symbol 1111 MovieClip
"deckNameInput"Frame 10Symbol 1112 EditableText
"buttonPrevious"Frame 10Symbol 714 Button
"buttonNext"Frame 10Symbol 711 Button
"mainMenuManager"Frame 10Symbol 880 Button
"hFilter"Frame 10Symbol 367 MovieClip [h]
"avFilter"Frame 10Symbol 358 MovieClip [av]
"aFilter"Frame 10Symbol 355 MovieClip [a]
"pFilter"Frame 10Symbol 376 MovieClip [p]
"mFilter"Frame 10Symbol 373 MovieClip [m]
"sFilter"Frame 10Symbol 379 MovieClip [s]
"wFilter"Frame 10Symbol 382 MovieClip [w]
"kFilter"Frame 10Symbol 370 MovieClip [k]
"gFilter"Frame 10Symbol 364 MovieClip [g]
"filterButton"Frame 10Symbol 1116 MovieClip
"removeCardButton"Frame 10Symbol 1119 MovieClip
"cardListBox"Frame 10Symbol 1134 MovieClip [ComboBox]
"backToLobby"Frame 10Symbol 1149 Button
"pageDisplay"Frame 10Symbol 1150 EditableText
"tradeChatTab"Frame 10Symbol 1157 MovieClip
"dfs"Symbol 93 MovieClip [BtnDownArrow] Frame 1Symbol 49 MovieClip [ScrollTrack]
"dfs"Symbol 94 MovieClip [BtnUpArrow] Frame 1Symbol 49 MovieClip [ScrollTrack]
"dfs"Symbol 99 MovieClip [ComboDownArrowDisabled] Frame 1Symbol 98 MovieClip [ComboDownArrowUp]
"nameShad"Symbol 110 MovieClip [textFields] Frame 1Symbol 103 EditableText
"name"Symbol 110 MovieClip [textFields] Frame 1Symbol 104 EditableText
"textAndStory"Symbol 110 MovieClip [textFields] Frame 1Symbol 105 EditableText
"typeAndSub"Symbol 110 MovieClip [textFields] Frame 1Symbol 107 EditableText
"powerAndResist"Symbol 110 MovieClip [textFields] Frame 1Symbol 108 EditableText
"artist"Symbol 110 MovieClip [textFields] Frame 1Symbol 109 EditableText
"loadingMsg"Symbol 160 MovieClip [viewCard] Frame 1Symbol 114 EditableText
"loadingMsg"Symbol 160 MovieClip [viewCard] Frame 10Symbol 133 EditableText
"warningTxt"Symbol 169 MovieClip [warningBox] Frame 1Symbol 165 EditableText
"warningOk"Symbol 169 MovieClip [warningBox] Frame 1Symbol 168 Button
"tabName"Symbol 224 MovieClip [friendTab] Frame 1Symbol 223 EditableText
"ray0"Symbol 233 MovieClip Frame 1Symbol 232 MovieClip
"cardSelected"Symbol 326 MovieClip [card] Frame 1Symbol 287 MovieClip [cardSelected]
"dragBox"Symbol 330 MovieClip [bonusCards] Frame 1Symbol 282 Button
"pickCard1"Symbol 330 MovieClip [bonusCards] Frame 1Symbol 326 MovieClip [card]
"pickCard2"Symbol 330 MovieClip [bonusCards] Frame 1Symbol 326 MovieClip [card]
"pickCard3"Symbol 330 MovieClip [bonusCards] Frame 1Symbol 326 MovieClip [card]
"pickCard4"Symbol 330 MovieClip [bonusCards] Frame 1Symbol 326 MovieClip [card]
"pickCard5"Symbol 330 MovieClip [bonusCards] Frame 1Symbol 326 MovieClip [card]
"saveBonus"Symbol 330 MovieClip [bonusCards] Frame 1Symbol 329 Button
"textBox"Symbol 389 MovieClip Frame 1Symbol 388 EditableText
"dragBox"Symbol 390 MovieClip [attackResponse] Frame 7Symbol 282 Button
"cancel"Symbol 390 MovieClip [attackResponse] Frame 7Symbol 389 MovieClip
"attack"Symbol 390 MovieClip [attackResponse] Frame 7Symbol 389 MovieClip
"dragBox"Symbol 393 MovieClip [defenseResponse] Frame 7Symbol 282 Button
"cancel"Symbol 393 MovieClip [defenseResponse] Frame 7Symbol 389 MovieClip
"ability"Symbol 393 MovieClip [defenseResponse] Frame 7Symbol 389 MovieClip
"counterAttack"Symbol 393 MovieClip [defenseResponse] Frame 7Symbol 389 MovieClip
"blockAttack"Symbol 393 MovieClip [defenseResponse] Frame 7Symbol 389 MovieClip
"textBox"Symbol 400 MovieClip Frame 1Symbol 399 EditableText
"dragBox"Symbol 401 MovieClip [okCancelResponse] Frame 7Symbol 282 Button
"ok"Symbol 401 MovieClip [okCancelResponse] Frame 7Symbol 400 MovieClip
"cancel"Symbol 401 MovieClip [okCancelResponse] Frame 7Symbol 400 MovieClip
"dragBox"Symbol 403 MovieClip [okResponse] Frame 7Symbol 282 Button
"cancel"Symbol 403 MovieClip [okResponse] Frame 7Symbol 389 MovieClip
"dragBox"Symbol 405 MovieClip [waitingResponse] Frame 7Symbol 282 Button
"hit"Symbol 418 MovieClip [cardManager] Frame 1Symbol 407 MovieClip
"addCard"Symbol 418 MovieClip [cardManager] Frame 1Symbol 410 MovieClip
"removeCard"Symbol 418 MovieClip [cardManager] Frame 1Symbol 412 Button
"deck"Symbol 418 MovieClip [cardManager] Frame 1Symbol 413 EditableText
"circle"Symbol 418 MovieClip [cardManager] Frame 1Symbol 415 MovieClip
"quantity"Symbol 418 MovieClip [cardManager] Frame 1Symbol 416 EditableText
"b"Symbol 432 MovieClip [SimpleButtonDown] Frame 1Symbol 429 MovieClip [BrdrShdw]
"face"Symbol 432 MovieClip [SimpleButtonDown] Frame 1Symbol 431 MovieClip [BrdrFace]
"b"Symbol 437 MovieClip [SimpleButtonIn] Frame 1Symbol 434 MovieClip [BrdrBlk]
"it"Symbol 437 MovieClip [SimpleButtonIn] Frame 1Symbol 436 MovieClip [BrdrHilght]
"g"Symbol 437 MovieClip [SimpleButtonIn] Frame 1Symbol 429 MovieClip [BrdrShdw]
"face"Symbol 437 MovieClip [SimpleButtonIn] Frame 1Symbol 431 MovieClip [BrdrFace]
"ob"Symbol 438 MovieClip [SimpleButtonUp] Frame 1Symbol 434 MovieClip [BrdrBlk]
"ol"Symbol 438 MovieClip [SimpleButtonUp] Frame 1Symbol 431 MovieClip [BrdrFace]
"ib"Symbol 438 MovieClip [SimpleButtonUp] Frame 1Symbol 429 MovieClip [BrdrShdw]
"il"Symbol 438 MovieClip [SimpleButtonUp] Frame 1Symbol 436 MovieClip [BrdrHilght]
"face"Symbol 438 MovieClip [SimpleButtonUp] Frame 1Symbol 431 MovieClip [BrdrFace]
"boundingBox_mc"Symbol 446 MovieClip [FocusRect] Frame 1Symbol 427 MovieClip [BoundingBox]
"tabCapture"Symbol 447 MovieClip [FocusManager] Frame 1Symbol 444 Button
"boundingBox_mc"Symbol 450 MovieClip [SimpleButton] Frame 1Symbol 427 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 454 MovieClip [Button] Frame 1Symbol 427 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 456 MovieClip [VScrollBar] Frame 1Symbol 427 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 457 MovieClip [HScrollBar] Frame 1Symbol 427 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 458 MovieClip [UIScrollBar] Frame 1Symbol 427 MovieClip [BoundingBox]
"chatboxSb5"Symbol 493 MovieClip [deckList] Frame 1Symbol 458 MovieClip [UIScrollBar]
"deckListTextField"Symbol 493 MovieClip [deckList] Frame 1Symbol 485 EditableText
"loadDeckButton"Symbol 493 MovieClip [deckList] Frame 1Symbol 489 Button
"cancelButton"Symbol 493 MovieClip [deckList] Frame 1Symbol 492 Button
"pageNum"Symbol 497 MovieClip [pageTab] Frame 1Symbol 496 EditableText
"removedCard"Symbol 500 MovieClip [removeCardAnimation] Frame 1Symbol 498 EditableText
"removedCard"Symbol 500 MovieClip [removeCardAnimation] Frame 20Symbol 499 EditableText
"savingTxt"Symbol 502 MovieClip [saveDeckBox] Frame 1Symbol 501 EditableText
"saveNewDeckButton"Symbol 509 MovieClip [saveNewDeckBox] Frame 1Symbol 505 Button
"cancelButton"Symbol 509 MovieClip [saveNewDeckBox] Frame 1Symbol 492 Button
"deckNameInput"Symbol 509 MovieClip [saveNewDeckBox] Frame 1Symbol 507 EditableText
"ok"Symbol 514 MovieClip [okCancelResponseBlack] Frame 1Symbol 511 Button
"cancel"Symbol 514 MovieClip [okCancelResponseBlack] Frame 1Symbol 511 Button
"windowText"Symbol 514 MovieClip [okCancelResponseBlack] Frame 1Symbol 513 EditableText
"phaseText"Symbol 516 MovieClip [phaseAnnounce] Frame 1Symbol 515 EditableText
"achievementPopUpGFX"Symbol 562 MovieClip [achievementPopUp] Frame 1Symbol 561 MovieClip
"backFromAchiev"Symbol 576 MovieClip [achievList] Frame 1Symbol 575 Button
"nameBox"Symbol 613 MovieClip Frame 1Symbol 595 EditableText
"passBox"Symbol 613 MovieClip Frame 1Symbol 597 EditableText
"enterBtn"Symbol 613 MovieClip Frame 1Symbol 600 Button
"newaccBtn"Symbol 613 MovieClip Frame 1Symbol 603 Button
"forgotpass"Symbol 613 MovieClip Frame 1Symbol 608 Button
"cover"Symbol 613 MovieClip Frame 1Symbol 612 MovieClip
"loginInfoEffect"Symbol 614 MovieClip Frame 1Symbol 613 MovieClip
"cardList"Symbol 658 MovieClip Frame 1Symbol 622 Button
"tradeLogin"Symbol 658 MovieClip Frame 1Symbol 627 Button
"guideBook"Symbol 658 MovieClip Frame 1Symbol 632 Button
"managerLogin"Symbol 658 MovieClip Frame 1Symbol 637 Button
"lobbyLogin"Symbol 658 MovieClip Frame 1Symbol 642 Button
"logoutLogin"Symbol 658 MovieClip Frame 1Symbol 647 Button
"achievementsLogin"Symbol 658 MovieClip Frame 1Symbol 652 Button
"profile"Symbol 658 MovieClip Frame 1Symbol 653 EditableText
"errorMsg"Symbol 658 MovieClip Frame 1Symbol 654 EditableText
"viewMyPicture"Symbol 658 MovieClip Frame 1Symbol 655 MovieClip
"menuBoxAnimation"Symbol 659 MovieClip Frame 1Symbol 658 MovieClip
"backGuideBook"Symbol 851 MovieClip Frame 1Symbol 680 MovieClip
"nextBook"Symbol 851 MovieClip Frame 1Symbol 711 Button
"prevBook"Symbol 851 MovieClip Frame 1Symbol 714 Button
"loadingCardText"Symbol 851 MovieClip Frame 10Symbol 840 EditableText
"displayText"Symbol 873 MovieClip Frame 1Symbol 860 EditableText
"cancelBtn"Symbol 873 MovieClip Frame 1Symbol 861 Button
"waitingBattleAnimation"Symbol 873 MovieClip Frame 1Symbol 872 MovieClip
"viewPlayerName"Symbol 921 MovieClip Frame 1Symbol 900 EditableText
"viewPlayerLevel"Symbol 921 MovieClip Frame 1Symbol 901 EditableText
"viewPlayerPicture"Symbol 921 MovieClip Frame 1Symbol 655 MovieClip
"viewPlayerClan"Symbol 921 MovieClip Frame 1Symbol 902 EditableText
"viewPlayerAcc"Symbol 921 MovieClip Frame 1Symbol 903 EditableText
"addToFriends"Symbol 921 MovieClip Frame 1Symbol 908 MovieClip
"chat"Symbol 921 MovieClip Frame 1Symbol 911 MovieClip
"block"Symbol 921 MovieClip Frame 1Symbol 916 MovieClip
"challengePlayer"Symbol 921 MovieClip Frame 1Symbol 919 MovieClip
"viewPlayerRanking"Symbol 921 MovieClip Frame 1Symbol 920 EditableText
"tabName"Symbol 929 MovieClip Frame 1Symbol 928 EditableText
"drawPhase"Symbol 1011 MovieClip Frame 1Symbol 990 MovieClip
"equipPhase"Symbol 1011 MovieClip Frame 1Symbol 995 MovieClip
"spellPhase"Symbol 1011 MovieClip Frame 1Symbol 1000 MovieClip
"attackPhase"Symbol 1011 MovieClip Frame 1Symbol 1005 MovieClip
"endPhase"Symbol 1011 MovieClip Frame 1Symbol 1010 MovieClip
"drawPhase"Symbol 1017 MovieClip Frame 1Symbol 1012 MovieClip
"equipPhase"Symbol 1017 MovieClip Frame 1Symbol 1013 MovieClip
"spellPhase"Symbol 1017 MovieClip Frame 1Symbol 1014 MovieClip
"attackPhase"Symbol 1017 MovieClip Frame 1Symbol 1015 MovieClip
"endPhase"Symbol 1017 MovieClip Frame 1Symbol 1016 MovieClip
"label"Symbol 1125 MovieClip [TextInput] Frame 1Symbol 1124 EditableText
"boundingBox_mc"Symbol 1126 MovieClip [ComboBase] Frame 1Symbol 427 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 1130 MovieClip [View] Frame 1Symbol 427 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 1131 MovieClip [ScrollView] Frame 1Symbol 427 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 1133 MovieClip [List] Frame 1Symbol 427 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 1134 MovieClip [ComboBox] Frame 1Symbol 427 MovieClip [BoundingBox]
"msgBox"Symbol 1157 MovieClip Frame 1Symbol 1152 EditableText
"gameChat"Symbol 1157 MovieClip Frame 1Symbol 1153 EditableText
"gameChatSb4"Symbol 1157 MovieClip Frame 1Symbol 458 MovieClip [UIScrollBar]
"tradeTabBtn"Symbol 1157 MovieClip Frame 1Symbol 1156 Button
"sendButton"Symbol 1157 MovieClip Frame 1Symbol 927 MovieClip
"gameChatSb4"Symbol 1157 MovieClip Frame 2Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 3Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 4Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 5Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 6Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 7Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 8Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 9Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 10Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 11Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 12Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 13Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 14Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 15Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 16Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 17Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 18Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 19Symbol 458 MovieClip [UIScrollBar]
"gameChatSb4"Symbol 1157 MovieClip Frame 20Symbol 458 MovieClip [UIScrollBar]

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS1/AS2.
Protect (24)Timeline Frame 131 bytes "..$1$B5$Ktr254eFtTE5RDaGf0k2f/."
ExportAssets (56)Timeline Frame 1Symbol 1 as "privateMessage.mp3"
ExportAssets (56)Timeline Frame 1Symbol 11 as "sparkle_mc"
ExportAssets (56)Timeline Frame 1Symbol 14 as "morphIntoToolTip"
ExportAssets (56)Timeline Frame 1Symbol 16 as "untappableToolTip"
ExportAssets (56)Timeline Frame 1Symbol 18 as "unblockableToolTip"
ExportAssets (56)Timeline Frame 1Symbol 20 as "rebuildToolTip"
ExportAssets (56)Timeline Frame 1Symbol 22 as "legacyToolTip"
ExportAssets (56)Timeline Frame 1Symbol 24 as "shatteringToolTip"
ExportAssets (56)Timeline Frame 1Symbol 26 as "conjoinedToolTip"
ExportAssets (56)Timeline Frame 1Symbol 28 as "retractToolTip"
ExportAssets (56)Timeline Frame 1Symbol 30 as "removeToolTip"
ExportAssets (56)Timeline Frame 1Symbol 32 as "instantEquipToolTip"
ExportAssets (56)Timeline Frame 1Symbol 34 as "instantEffectToolTip"
ExportAssets (56)Timeline Frame 1Symbol 36 as "fastStrikeToolTip"
ExportAssets (56)Timeline Frame 1Symbol 38 as "doubleSpellToolTip"
ExportAssets (56)Timeline Frame 1Symbol 40 as "doubleAbilityToolTip"
ExportAssets (56)Timeline Frame 1Symbol 42 as "attackEffectToolTip"
ExportAssets (56)Timeline Frame 1Symbol 44 as "attackCountsToolTip"
ExportAssets (56)Timeline Frame 1Symbol 46 as "rangedToolTip"
ExportAssets (56)Timeline Frame 1Symbol 49 as "ScrollTrack"
ExportAssets (56)Timeline Frame 1Symbol 52 as "ScrollDownArrowDisabled"
ExportAssets (56)Timeline Frame 1Symbol 53 as "ScrollDownArrowDown"
ExportAssets (56)Timeline Frame 1Symbol 54 as "ScrollDownArrowOver"
ExportAssets (56)Timeline Frame 1Symbol 55 as "ScrollDownArrowUp"
ExportAssets (56)Timeline Frame 1Symbol 61 as "ScrollThumbBottomDisabled"
ExportAssets (56)Timeline Frame 1Symbol 63 as "ThumbThemeColor1"
ExportAssets (56)Timeline Frame 1Symbol 64 as "ScrollThumbBottomDown"
ExportAssets (56)Timeline Frame 1Symbol 65 as "ScrollThumbBottomOver"
ExportAssets (56)Timeline Frame 1Symbol 66 as "ScrollThumbBottomUp"
ExportAssets (56)Timeline Frame 1Symbol 68 as "ScrollThumbGripDisabled"
ExportAssets (56)Timeline Frame 1Symbol 70 as "ThumbThemeColor2"
ExportAssets (56)Timeline Frame 1Symbol 71 as "ScrollThumbGripDown"
ExportAssets (56)Timeline Frame 1Symbol 72 as "ScrollThumbGripOver"
ExportAssets (56)Timeline Frame 1Symbol 73 as "ScrollThumbGripUp"
ExportAssets (56)Timeline Frame 1Symbol 75 as "ScrollThumbMiddleDisabled"
ExportAssets (56)Timeline Frame 1Symbol 76 as "ScrollThumbMiddleDown"
ExportAssets (56)Timeline Frame 1Symbol 80 as "ScrollThumbMiddleOver"
ExportAssets (56)Timeline Frame 1Symbol 83 as "ScrollThumbMiddleUp"
ExportAssets (56)Timeline Frame 1Symbol 84 as "ScrollThumbTopDisabled"
ExportAssets (56)Timeline Frame 1Symbol 85 as "ScrollThumbTopDown"
ExportAssets (56)Timeline Frame 1Symbol 86 as "ScrollThumbTopOver"
ExportAssets (56)Timeline Frame 1Symbol 87 as "ScrollThumbTopUp"
ExportAssets (56)Timeline Frame 1Symbol 88 as "ScrollTrackDisabled"
ExportAssets (56)Timeline Frame 1Symbol 89 as "ScrollUpArrowDisabled"
ExportAssets (56)Timeline Frame 1Symbol 90 as "ScrollUpArrowDown"
ExportAssets (56)Timeline Frame 1Symbol 91 as "ScrollUpArrowOver"
ExportAssets (56)Timeline Frame 1Symbol 92 as "ScrollUpArrowUp"
ExportAssets (56)Timeline Frame 1Symbol 93 as "BtnDownArrow"
ExportAssets (56)Timeline Frame 1Symbol 94 as "BtnUpArrow"
ExportAssets (56)Timeline Frame 1Symbol 95 as "VScrollBarAssets"
ExportAssets (56)Timeline Frame 1Symbol 96 as "ScrollBarAssets"
ExportAssets (56)Timeline Frame 1Symbol 97 as "HScrollBarAssets"
ExportAssets (56)Timeline Frame 1Symbol 98 as "ComboDownArrowUp"
ExportAssets (56)Timeline Frame 1Symbol 99 as "ComboDownArrowDisabled"
ExportAssets (56)Timeline Frame 1Symbol 100 as "ComboDownArrowDown"
ExportAssets (56)Timeline Frame 1Symbol 101 as "ComboDownArrowOver"
ExportAssets (56)Timeline Frame 1Symbol 102 as "ComboAssets"
ExportAssets (56)Timeline Frame 1Symbol 110 as "textFields"
ExportAssets (56)Timeline Frame 1Symbol 160 as "viewCard"
ExportAssets (56)Timeline Frame 1Symbol 169 as "warningBox"
ExportAssets (56)Timeline Frame 1Symbol 194 as "rarityClip"
ExportAssets (56)Timeline Frame 1Symbol 199 as "boxClip"
ExportAssets (56)Timeline Frame 1Symbol 202 as "chatIcon"
ExportAssets (56)Timeline Frame 1Symbol 205 as "battleIcon"
ExportAssets (56)Timeline Frame 1Symbol 208 as "offlineIcon"
ExportAssets (56)Timeline Frame 1Symbol 211 as "blockIcon"
ExportAssets (56)Timeline Frame 1Symbol 214 as "managerIcon"
ExportAssets (56)Timeline Frame 1Symbol 217 as "graveyard"
ExportAssets (56)Timeline Frame 1Symbol 220 as "closeTab"
ExportAssets (56)Timeline Frame 1Symbol 224 as "friendTab"
ExportAssets (56)Timeline Frame 1Symbol 226 as "flames"
ExportAssets (56)Timeline Frame 1Symbol 471 as "__Packages.mx.skins.ColoredSkinElement"
ExportAssets (56)Timeline Frame 1Symbol 422 as "__Packages.mx.core.UIObject"
ExportAssets (56)Timeline Frame 1Symbol 459 as "__Packages.mx.skins.SkinElement"
ExportAssets (56)Timeline Frame 1Symbol 460 as "__Packages.mx.styles.CSSTextStyles"
ExportAssets (56)Timeline Frame 1Symbol 462 as "__Packages.mx.styles.CSSStyleDeclaration"
ExportAssets (56)Timeline Frame 1Symbol 461 as "__Packages.mx.styles.StyleManager"
ExportAssets (56)Timeline Frame 1Symbol 423 as "__Packages.mx.core.UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 463 as "__Packages.mx.controls.SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 1120 as "__Packages.mx.controls.listclasses.DataSelector"
ExportAssets (56)Timeline Frame 1Symbol 1121 as "__Packages.mx.controls.ComboBase"
ExportAssets (56)Timeline Frame 1Symbol 464 as "__Packages.mx.skins.Border"
ExportAssets (56)Timeline Frame 1Symbol 481 as "__Packages.mx.skins.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 1135 as "__Packages.mx.controls.TextInput"
ExportAssets (56)Timeline Frame 1Symbol 1122 as "__Packages.mx.controls.ComboBox"
ExportAssets (56)Timeline Frame 1Symbol 1136 as "__Packages.mx.managers.PopUpManager"
ExportAssets (56)Timeline Frame 1Symbol 474 as "__Packages.mx.managers.DepthManager"
ExportAssets (56)Timeline Frame 1Symbol 475 as "__Packages.mx.managers.SystemManager"
ExportAssets (56)Timeline Frame 1Symbol 469 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 1137 as "__Packages.mx.core.View"
ExportAssets (56)Timeline Frame 1Symbol 1138 as "__Packages.mx.core.ExternalContent"
ExportAssets (56)Timeline Frame 1Symbol 470 as "__Packages.mx.events.UIEventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 1139 as "__Packages.mx.core.ScrollView"
ExportAssets (56)Timeline Frame 1Symbol 424 as "__Packages.mx.controls.scrollClasses.ScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 465 as "__Packages.mx.skins.CustomBorder"
ExportAssets (56)Timeline Frame 1Symbol 466 as "__Packages.mx.controls.scrollClasses.ScrollThumb"
ExportAssets (56)Timeline Frame 1Symbol 1140 as "__Packages.mx.controls.listclasses.DataProvider"
ExportAssets (56)Timeline Frame 1Symbol 1141 as "__Packages.mx.controls.listclasses.ScrollSelectList"
ExportAssets (56)Timeline Frame 1Symbol 1142 as "__Packages.mx.controls.List"
ExportAssets (56)Timeline Frame 1Symbol 1143 as "__Packages.mx.effects.Tween"
ExportAssets (56)Timeline Frame 1Symbol 1158 as "__Packages.it.gotoandplay.smartfoxserver.SmartFoxClient"
ExportAssets (56)Timeline Frame 1Symbol 1159 as "__Packages.it.gotoandplay.smartfoxserver.ObjectSerializer"
ExportAssets (56)Timeline Frame 1Symbol 1160 as "__Packages.it.gotoandplay.smartfoxserver.http.HttpConnection"
ExportAssets (56)Timeline Frame 1Symbol 1161 as "__Packages.it.gotoandplay.smartfoxserver.http.LoaderFactory"
ExportAssets (56)Timeline Frame 1Symbol 1162 as "__Packages.it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec"
ExportAssets (56)Timeline Frame 1Symbol 1163 as "__Packages.it.gotoandplay.smartfoxserver.http.RawProtocolCodec"
ExportAssets (56)Timeline Frame 1Symbol 1164 as "__Packages.mx.utils.Delegate"
ExportAssets (56)Timeline Frame 1Symbol 1165 as "__Packages.it.gotoandplay.smartfoxserver.Room"
ExportAssets (56)Timeline Frame 1Symbol 1166 as "__Packages.it.gotoandplay.smartfoxserver.User"
ExportAssets (56)Timeline Frame 1Symbol 1167 as "__Packages.it.gotoandplay.smartfoxserver.JSON"
ExportAssets (56)Timeline Frame 1Symbol 1168 as "__Packages.ToolTip"
ExportAssets (56)Timeline Frame 1Symbol 425 as "__Packages.mx.controls.UIScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 467 as "__Packages.mx.controls.VScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 468 as "__Packages.mx.controls.Button"
ExportAssets (56)Timeline Frame 1Symbol 472 as "__Packages.mx.core.ext.UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 473 as "__Packages.mx.skins.halo.Defaults"
ExportAssets (56)Timeline Frame 1Symbol 476 as "__Packages.mx.managers.FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 477 as "__Packages.mx.skins.halo.FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 478 as "__Packages.mx.managers.OverlappedWindows"
ExportAssets (56)Timeline Frame 1Symbol 479 as "__Packages.mx.styles.CSSSetStyle"
ExportAssets (56)Timeline Frame 1Symbol 480 as "__Packages.mx.core.ext.UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 482 as "__Packages.mx.skins.halo.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 483 as "__Packages.mx.skins.halo.ButtonSkin"
ExportAssets (56)Timeline Frame 1Symbol 484 as "__Packages.mx.controls.HScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 1144 as "__Packages.mx.controls.listclasses.SelectableRow"
ExportAssets (56)Timeline Frame 3Symbol 287 as "cardSelected"
ExportAssets (56)Timeline Frame 3Symbol 326 as "card"
ExportAssets (56)Timeline Frame 3Symbol 330 as "bonusCards"
ExportAssets (56)Timeline Frame 3Symbol 334 as "glowEffect"
ExportAssets (56)Timeline Frame 3Symbol 337 as "lose_animation"
ExportAssets (56)Timeline Frame 3Symbol 342 as "infoBox"
ExportAssets (56)Timeline Frame 3Symbol 345 as "gain_animation"
ExportAssets (56)Timeline Frame 3Symbol 349 as "fade_control"
ExportAssets (56)Timeline Frame 3Symbol 352 as "countsBox"
ExportAssets (56)Timeline Frame 3Symbol 355 as "a"
ExportAssets (56)Timeline Frame 3Symbol 358 as "av"
ExportAssets (56)Timeline Frame 3Symbol 361 as "e"
ExportAssets (56)Timeline Frame 3Symbol 364 as "g"
ExportAssets (56)Timeline Frame 3Symbol 367 as "h"
ExportAssets (56)Timeline Frame 3Symbol 370 as "k"
ExportAssets (56)Timeline Frame 3Symbol 373 as "m"
ExportAssets (56)Timeline Frame 3Symbol 376 as "p"
ExportAssets (56)Timeline Frame 3Symbol 379 as "s"
ExportAssets (56)Timeline Frame 3Symbol 382 as "w"
ExportAssets (56)Timeline Frame 3Symbol 390 as "attackResponse"
ExportAssets (56)Timeline Frame 3Symbol 393 as "defenseResponse"
ExportAssets (56)Timeline Frame 3Symbol 401 as "okCancelResponse"
ExportAssets (56)Timeline Frame 3Symbol 403 as "okResponse"
ExportAssets (56)Timeline Frame 3Symbol 405 as "waitingResponse"
ExportAssets (56)Timeline Frame 3Symbol 418 as "cardManager"
ExportAssets (56)Timeline Frame 3Symbol 427 as "BoundingBox"
ExportAssets (56)Timeline Frame 3Symbol 429 as "BrdrShdw"
ExportAssets (56)Timeline Frame 3Symbol 431 as "BrdrFace"
ExportAssets (56)Timeline Frame 3Symbol 432 as "SimpleButtonDown"
ExportAssets (56)Timeline Frame 3Symbol 434 as "BrdrBlk"
ExportAssets (56)Timeline Frame 3Symbol 436 as "BrdrHilght"
ExportAssets (56)Timeline Frame 3Symbol 437 as "SimpleButtonIn"
ExportAssets (56)Timeline Frame 3Symbol 438 as "SimpleButtonUp"
ExportAssets (56)Timeline Frame 3Symbol 439 as "Defaults"
ExportAssets (56)Timeline Frame 3Symbol 440 as "UIObjectExtensions"
ExportAssets (56)Timeline Frame 3Symbol 441 as "UIObject"
ExportAssets (56)Timeline Frame 3Symbol 446 as "FocusRect"
ExportAssets (56)Timeline Frame 3Symbol 447 as "FocusManager"
ExportAssets (56)Timeline Frame 3Symbol 448 as "UIComponentExtensions"
ExportAssets (56)Timeline Frame 3Symbol 449 as "UIComponent"
ExportAssets (56)Timeline Frame 3Symbol 450 as "SimpleButton"
ExportAssets (56)Timeline Frame 3Symbol 451 as "Border"
ExportAssets (56)Timeline Frame 3Symbol 452 as "RectBorder"
ExportAssets (56)Timeline Frame 3Symbol 453 as "ButtonSkin"
ExportAssets (56)Timeline Frame 3Symbol 454 as "Button"
ExportAssets (56)Timeline Frame 3Symbol 455 as "CustomBorder"
ExportAssets (56)Timeline Frame 3Symbol 456 as "VScrollBar"
ExportAssets (56)Timeline Frame 3Symbol 457 as "HScrollBar"
ExportAssets (56)Timeline Frame 3Symbol 458 as "UIScrollBar"
ExportAssets (56)Timeline Frame 3Symbol 493 as "deckList"
ExportAssets (56)Timeline Frame 3Symbol 497 as "pageTab"
ExportAssets (56)Timeline Frame 3Symbol 500 as "removeCardAnimation"
ExportAssets (56)Timeline Frame 3Symbol 502 as "saveDeckBox"
ExportAssets (56)Timeline Frame 3Symbol 509 as "saveNewDeckBox"
ExportAssets (56)Timeline Frame 3Symbol 514 as "okCancelResponseBlack"
ExportAssets (56)Timeline Frame 3Symbol 516 as "phaseAnnounce"
ExportAssets (56)Timeline Frame 3Symbol 518 as "posModIcon"
ExportAssets (56)Timeline Frame 3Symbol 520 as "negModIcon"
ExportAssets (56)Timeline Frame 3Symbol 527 as "helpArrow"
ExportAssets (56)Timeline Frame 3Symbol 528 as "battle.mp3"
ExportAssets (56)Timeline Frame 3Symbol 529 as "battlestart.au"
ExportAssets (56)Timeline Frame 3Symbol 530 as "cardflip.wav"
ExportAssets (56)Timeline Frame 3Symbol 531 as "challenge.wav"
ExportAssets (56)Timeline Frame 3Symbol 532 as "levelup.wav"
ExportAssets (56)Timeline Frame 3Symbol 533 as "lobby.mp3"
ExportAssets (56)Timeline Frame 3Symbol 534 as "login.mp3"
ExportAssets (56)Timeline Frame 3Symbol 535 as "lose.au"
ExportAssets (56)Timeline Frame 3Symbol 536 as "manager.mp3"
ExportAssets (56)Timeline Frame 3Symbol 537 as "mouseover.au"
ExportAssets (56)Timeline Frame 3Symbol 538 as "myturn.au"
ExportAssets (56)Timeline Frame 3Symbol 539 as "opaction.au"
ExportAssets (56)Timeline Frame 3Symbol 540 as "phase.au"
ExportAssets (56)Timeline Frame 3Symbol 541 as "win.au"
ExportAssets (56)Timeline Frame 3Symbol 542 as "battle2.mp3"
ExportAssets (56)Timeline Frame 3Symbol 543 as "achiev.mp3"
ExportAssets (56)Timeline Frame 3Symbol 548 as "damageColorEffect"
ExportAssets (56)Timeline Frame 3Symbol 562 as "achievementPopUp"
ExportAssets (56)Timeline Frame 3Symbol 567 as "achievMedal"
ExportAssets (56)Timeline Frame 3Symbol 576 as "achievList"
ExportAssets (56)Timeline Frame 10Symbol 1125 as "TextInput"
ExportAssets (56)Timeline Frame 10Symbol 1126 as "ComboBase"
ExportAssets (56)Timeline Frame 10Symbol 1127 as "DataProvider"
ExportAssets (56)Timeline Frame 10Symbol 1128 as "DataSelector"
ExportAssets (56)Timeline Frame 10Symbol 1129 as "SelectableRow"
ExportAssets (56)Timeline Frame 10Symbol 1130 as "View"
ExportAssets (56)Timeline Frame 10Symbol 1131 as "ScrollView"
ExportAssets (56)Timeline Frame 10Symbol 1132 as "ScrollSelectList"
ExportAssets (56)Timeline Frame 10Symbol 1133 as "List"
ExportAssets (56)Timeline Frame 10Symbol 1134 as "ComboBox"
Tag 0x0FF (255)Timeline Frame 11 bytes "."

Labels

"loading"Frame 1
"global_conn"Frame 3
"global_funcs"Frame 3
"objects"Frame 3
"login"Frame 4
"profile"Frame 5
"signin"Frame 6
"guidebook"Frame 7
"lobby_menu"Frame 8
"lobby_conn"Frame 8
"card_core"Frame 8
"lobby"Frame 8
"game_menu"Frame 9
"game_conn"Frame 9
"game_core"Frame 9
"game"Frame 9
"manager_menu"Frame 10
"manager_conn"Frame 10
"manager"Frame 10
"_classhunter"Symbol 160 MovieClip [viewCard] Frame 2
"_classknight"Symbol 160 MovieClip [viewCard] Frame 3
"_classpaladin"Symbol 160 MovieClip [viewCard] Frame 4
"_classsorcerer"Symbol 160 MovieClip [viewCard] Frame 5
"_subclassassassin"Symbol 160 MovieClip [viewCard] Frame 6
"_subclassgladiator"Symbol 160 MovieClip [viewCard] Frame 7
"_subclassmonk"Symbol 160 MovieClip [viewCard] Frame 8
"_subclasswizard"Symbol 160 MovieClip [viewCard] Frame 9
"ability_attack"Symbol 160 MovieClip [viewCard] Frame 10
"ability_defense"Symbol 160 MovieClip [viewCard] Frame 11
"ability_usage"Symbol 160 MovieClip [viewCard] Frame 12
"armor"Symbol 160 MovieClip [viewCard] Frame 13
"artifact_amulet"Symbol 160 MovieClip [viewCard] Frame 14
"artifact_item"Symbol 160 MovieClip [viewCard] Frame 15
"artifact_item2"Symbol 160 MovieClip [viewCard] Frame 16
"artifact_shield"Symbol 160 MovieClip [viewCard] Frame 17
"artifact_shield2"Symbol 160 MovieClip [viewCard] Frame 18
"artifact_weapon"Symbol 160 MovieClip [viewCard] Frame 19
"artifact_weapon2"Symbol 160 MovieClip [viewCard] Frame 20
"spell_attack"Symbol 160 MovieClip [viewCard] Frame 21
"spell_defense"Symbol 160 MovieClip [viewCard] Frame 22
"spell_usage"Symbol 160 MovieClip [viewCard] Frame 23
"_classhunter"Symbol 326 MovieClip [card] Frame 1
"_classknight"Symbol 326 MovieClip [card] Frame 2
"_classpaladin"Symbol 326 MovieClip [card] Frame 3
"_classsorcerer"Symbol 326 MovieClip [card] Frame 4
"_subclassassassin"Symbol 326 MovieClip [card] Frame 5
"_subclassgladiator"Symbol 326 MovieClip [card] Frame 6
"_subclassmonk"Symbol 326 MovieClip [card] Frame 7
"_subclasswizard"Symbol 326 MovieClip [card] Frame 8
"ability_attack"Symbol 326 MovieClip [card] Frame 9
"ability_defense"Symbol 326 MovieClip [card] Frame 10
"ability_usage"Symbol 326 MovieClip [card] Frame 11
"armor"Symbol 326 MovieClip [card] Frame 12
"artifact_item"Symbol 326 MovieClip [card] Frame 13
"artifact_shield"Symbol 326 MovieClip [card] Frame 14
"artifact_weapon"Symbol 326 MovieClip [card] Frame 15
"spell_attack"Symbol 326 MovieClip [card] Frame 16
"spell_defense"Symbol 326 MovieClip [card] Frame 17
"spell_usage"Symbol 326 MovieClip [card] Frame 18
"artifact_amulet"Symbol 326 MovieClip [card] Frame 19
"_classhunter"Symbol 418 MovieClip [cardManager] Frame 1
"_classknight"Symbol 418 MovieClip [cardManager] Frame 2
"_classpaladin"Symbol 418 MovieClip [cardManager] Frame 3
"_classsorcerer"Symbol 418 MovieClip [cardManager] Frame 4
"_subclassassassin"Symbol 418 MovieClip [cardManager] Frame 5
"_subclassgladiator"Symbol 418 MovieClip [cardManager] Frame 6
"_subclassmonk"Symbol 418 MovieClip [cardManager] Frame 7
"_subclasswizard"Symbol 418 MovieClip [cardManager] Frame 8
"ability_attack"Symbol 418 MovieClip [cardManager] Frame 9
"ability_defense"Symbol 418 MovieClip [cardManager] Frame 10
"ability_usage"Symbol 418 MovieClip [cardManager] Frame 11
"armor"Symbol 418 MovieClip [cardManager] Frame 12
"artifact_item"Symbol 418 MovieClip [cardManager] Frame 13
"artifact_shield"Symbol 418 MovieClip [cardManager] Frame 14
"artifact_weapon"Symbol 418 MovieClip [cardManager] Frame 15
"spell_attack"Symbol 418 MovieClip [cardManager] Frame 16
"spell_defense"Symbol 418 MovieClip [cardManager] Frame 17
"spell_usage"Symbol 418 MovieClip [cardManager] Frame 18
"artifact_amulet"Symbol 418 MovieClip [cardManager] Frame 19

Dynamic Text Variables

pointsSymbol 335 EditableText""
pointsSymbol 336 EditableText""
_parent.powerCountSymbol 340 EditableText""
_parent.resistenceCountSymbol 341 EditableText""
pointsSymbol 343 EditableText""
pointsSymbol 344 EditableText""
_parent.attackCountsSymbol 351 EditableText""
windowTextSymbol 397 EditableText""
windowTextSymbol 402 EditableText""
windowTextSymbol 404 EditableText""
achievTextSymbol 551 EditableText"<p align="right"></p>"
versionDisplaySymbol 577 EditableText""
_root.newsDataSymbol 591 EditableText"<p align="left"><font face="Arial" size="10" color="#000000" letterSpacing="0.000000" kerning="0">Loading news...</font></p>"
_root.newsDataSymbol 592 EditableText"<p align="left"><font face="Arial" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading news...</font></p>"
_root.myNameSymbol 595 EditableText""
_root.passwordSymbol 597 EditableText""
_root.loginMsgSymbol 609 EditableText""
versionDisplaySymbol 660 EditableText""
_root.myLevelSymbol 896 EditableText""
_root.myNameSymbol 931 EditableText""
_root.rankingSymbol 933 EditableText""
_root.totalXpSymbol 937 EditableText"<p align="center"></p>"
_root.myNameSymbol 971 EditableText""
_root.myLevelSymbol 972 EditableText""
_root.myLifeSymbol 975 EditableText""
_root.myDeckSymbol 976 EditableText""
_root.myDiscardSymbol 977 EditableText""
_root.opLevelSymbol 978 EditableText""
_root.myHandSymbol 979 EditableText""
_root.opLifeSymbol 981 EditableText""
_root.opDeckSymbol 982 EditableText""
_root.opDiscardSymbol 983 EditableText""
_root.opHandSymbol 984 EditableText""
_root.opNameSymbol 1018 EditableText""
_root.warningSymbol 1082 EditableText""
totalCardsSymbol 1104 EditableText""
cardsInDeckSymbol 1105 EditableText""
classesInDeckSymbol 1106 EditableText""
loadingMsgSymbol 1113 EditableText""




http://swfchan.com/13/61977/info.shtml
Created: 15/4 -2019 01:48:06 Last modified: 15/4 -2019 01:48:06 Server time: 22/12 -2024 21:56:51