Okay, I've been up all night nickel-diming my way through the Flash chatposter... presently it reads a file from the MZDM server and tells you who you're logged in as. Big whoop, eh?
Well. It's seventy-five lines of code inside one object that allows it to contact MZDM, read an XML file, check for errors, report a problem if it can't locate the server, return an Avatar Number to "something else", and also allow something "else" to get a URL. When all is said and done, getting the URL is the "simple" one... just slap up a string, and add the Avatar Number to the end ;)
Eh... of course it also listens to the stage to check for a resize event... so it knows where to put itself (the upper right corner)...
Learned a lot about OOP in Flash. And just how many corners you can round off. Also noticed some places where the internal docs aren't quite right... and commented my code accordingly.
Lesse... stuff I added... the "AvatarManagerClass"... okay, that's about all I've done for tonight. Here's what its prototype is doing:
( Boring Stuff. )Also, of course, have been pondering how to lay out the XML data for this... think I have a suitable solution:
<player>
<avatar number="
membernumber">
Avatar Name
<card type="
cardseries">
cardnumber</card>
...
</avatar>
...
</player>
So... this is looking forward... the flash program will never care if you've got more than one card, or about any series other than the PA series. But the xml's schema should allow for people to both have multiple cards in the same series *cough*Oralee*cough*, and have multiple series.
So, for an example (down the line):
<player>
<avatar number="2173">
Krinele Fullin
<card type="pa">411</card>
<card type="elt">3</card>
</avatar>
<avatar number="632">
Datallon Implaro
<card type="pa">312</card>
<card type="nc4">1</card>
</avatar>
<avatar number="3189">
Kivie
</avatar>
</player>
I mean, I'm not sure what we'd use such a structure for in outputting a format usable almost exclusively by programs built by the Dat... but it's something to be aware of the possibility of, and thus program for.