Click to See Complete Forum and Search --> : Client updates flash text+help


Mazza
05-10-2006, 10:55 PM
Hi, I'm having issues sussing out a solution to the following problem and am not sure where to begin hence the question being in this category.
I have been asked to build a site in flash which requires the client to be able to update the news section of the site(purely text).
I have previously used a php news script to allow for this in html based pages, but am not sure how to achieve this in flash.
Any help would be much appreciated,

Thanks,

Matt

schizo
05-11-2006, 11:30 AM
Hey Matt. Are you familiar with XML? I'd recommend having a PHP script output your News section in XML format. Flash's xml object (http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary827.html) can read the XML output of that script (check out the xml.load method). You can then parse the XML data inside of Flash using normal DOM methods. If you need help with this, just do a simple web search... here is a decent article that google turned up: http://www.permadi.com/tutorial/flashXMLNewsExample/index.html

Most tutorials will show you how to read in a static .xml file. There is no difference between this and you loading a .php that outputs XML.

Mazza
05-11-2006, 07:55 PM
Hi Schizo,
Thanks for the awesome reply. I have read about XML but am yet to have implemented it in any work I have done. I'll go and chase up what I need to know now.
Ta,

Matt