Flex 2 Example (admin for news ticker) - Editing XML and saving it back to the server
In this example we pull some XML data into Flex and keep it as an XML object. We then edit the data with a Flex GUI and save it back to the server. To make things more interesting I created a simple “News Ticker” in Flash 8 that is built from the same XML. You get a semi-automatic preview of the ticker directly within the GUI.
I can see a real use for these simple Flex apps to easily allow people to manage all sorts of configurations settings without having to actually look at the XML (or other underlining data).
The ticker (4kb) is shown at the end of this post. Everyone can modify the data using the admin control… so I don’t know how the ticker will look when you view it at this point in time.
There is nothing “fancy” in the Flex code just a lot of semi-manual binding of various data elements to the nodes and attributes in the XML file. The source code is commented and it shouldn’t be hard to understand what is happening. If you have any questions post them below and I’ll answer them.
Files:
Admin For Ticker (requires Flash 8.5 player)
Project File
MXML File
Linked Actionscript in MXML
Current XML
Ticker: