| Sample News |
| Flash MX | Flash 5 |
XML - an improved solution? Although the flash UI works as expected, the ASP solution is hard on the server - three database querries are made - to find out the total number of records, the number of pages (given a client supplied page size) then finally the articles for the client requested page. The results are encoded and sent back to the flash client with fixed variable names - not a major issue, but not the prettiest solution. Another solution could be to use the action-script xml object. This supports requesting xml data from a url, and a combined send xml/ load xml from a url. action-script / flash prepares a simple xmldoc to send to the ASP pages <news_articles> flash_news.asp parses the xml-doc to retrieve the requested page-number, and the colours to apply to the simple html when generating the articles html. The news_functions.asp builds a resulting xml doc (using a single database query, and adding properties to the result xmldoc) formatted something like this <news_articles>
Benefits
Are these changes worth the effort? |