This post examines a method for saving a modified XML file to disk. To accomplish this task, the XML is first converted to binary data using byteArray – and then saving the byteArray to disk using fileReference.
Entries Tagged as 'xml'
Modifying XML files
February 16th, 2010 · No Comments · Tutorials
In earlier posts, I discussed various methods to read XML data (here, here). In this post we’ll look at various means of modifying existing XML files.
Tags:appendchild·edit·insertchildafter·insertchildbefore·xml
Repackaging the RSS feed program: The RSSFeed Class
December 16th, 2009 · No Comments · AS3 Custom Classes
The RSSFeed Class presented in this post was derived directly from the code in the previous post. Parameters passed to the class include the address of the feed and the range of displayed items. The class returns an array of the requested rss data.
Parsing and Displaying a RSS feed in Actionscript 3
December 13th, 2009 · 3 Comments · Tutorials
This post decribes the code required to download a RSS feed and display the reformatted XML data onscreen. The code relies on the HTMLTextMultiline class to display the processed data.
Traversing XML and the for each.. Loop
November 12th, 2009 · 2 Comments · Tutorials
This post is an expansion of the November 8 post on getting data stored in a XML file into Actionscript 3 based on the ECMAScript E4X standards.
Tags:for each..·xml
Transferring Data from XML to Actionscript 3
November 8th, 2009 · 4 Comments · Tutorials
In this post, I’ll cover the transfer of data stored in an external XML file into a Flash Actionscript 3 application. In Actionscript 3, handling XML files has been vastly improved – and simplified – with two new classes: the XML and the XMLList classes.
Using the GridLoader Class with Paging: PageManager Class
November 3rd, 2009 · 1 Comment · AS3 Custom Classes
In the last post, I introduced the GridLoader class which loads a grid of thumbnail images. The settings defining the grid and list of thumbnails are defined in a XML file. In this posting, the PageManager class is used to add a paging function to the grid. The number of pages and [...]
Shifting Thumbnails with Tweened Movement: ThumbnailShifter Class
October 13th, 2009 · No Comments · AS3 Custom Classes
The ThumbnailShifter class, like previous variations, displays a limited number of thumbnails through a mask and uses a pair of buttons to move hidden thumbnails into view. The class relies on a XML file for all user-defined settings and list of thumbnails.
Loading images from a XML list: ImageViewer Class Part I
September 21st, 2009 · No Comments · AS3 Custom Classes
The ImageViewer class displays a series of images, one at a time, in the same frame and, when the image is clicked, loads the next image in a XML list.
Unlike the ImageLoader class which is passed the url of an image to load, the ImageViewer class is passed the url of a XML file [...]