Going to keep this short and sweet. But not to forget some huge props to flattspott, for putting mucho time into the data this DB provides and also to Blazed for hosting the videos. (of course BJ and UnleashX for enabling us, yes both dashboards will be using this.)
Maybe at a later date we can provide mini-game cover image and ESRB image? will think about that.
while not 100% complete from the web-user viewpoint. Game Preview video download is 100% ready for MXM Actionscripting adn while I was planning to do it myself, it wouldnt be right to horde the information.
First, the web-view of the games database.
http://www.xbox-skin...games/index.phpSo lets get started.
Big question---> How?
You can get the info needed two ways. And you will need to get this data either once, if using the full database, or each time for each game based on the HEXID
1. Full Database
http://www.xbox-skin...mes/gamesdb.xml2. Using the
HexID of the game to check for the single item xml and pulling only that xml data. ie
http://www.xbox-skin...b4e0002</b>.xml for Airforce Delta Storm.
Then you only need to determine if the video is available, if you want it , and how to handle it. You then send a video request to the website and work the file and possible cookie that is returned.
in the actionscripts, you send the video request using
http://www.xbox-skin...?<b>sid=135</b>XML Data:
The sid in the url is the
VidID value in the XML.
Video : 0=No Video Download, 1=WMV, 2=XMV
VC= Video Compression: 0=No Compression, 1=RAR, 2=ZIP
Retrieve the data:
Key points to check for are:
1. is the game in the DB, or single XML available?
2. is video available?
3. if video is available, how does it need to be handled? (RAR, ZIP, WMV, XMV)?
And all additinal info in the XML can be displayed, or not.
Keep in mind. Video downloads may or may-not be restricted to a certain download count. Much like the way AXS does the skins now.
When that download count is reached, a cookie will be sent so you can display that the limit has been reached, and how long before downloading can resume. (this might still need some work from BJ) Use the webdownload and click on 12 links or so)
The cookie you need to look for is named
TimeLeft and its value will read something like :
"Everyone is limited to 10 Downloads in 24 hours. You have 2 hours 34minutes and 12 seconds to wait before downloads are re-enabled"
Not too short, and hopefully not too confusing. If it is confusing, let me know and i will clarify.
------------------------------------------------------------------------------------------------
Current Working code (except i have the filefetches rem'd for now till i get the thumbs and covers uploaded and renamed.
Call from context, it makes no self references so you can name whatever you want to.
kudos to Jezz for the loaddialog from xml he used in the IPDialog script. Its awesome code and was used extensively with modification. Made the script build go extremely fast.