Actionscript 3 Designer Toolkit

More design, less programming

Actionscript 3 Designer Toolkit header image 4

Entries Tagged as 'xml'

Saving XML to disk using ByteArray and FileReference

February 18th, 2010 · 1 Comment · Tutorials

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.

[Read more →]

Tags:···

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.

[Read more →]

Tags:····

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.

[Read more →]

Tags:··

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.

[Read more →]

Tags:··

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.

[Read more →]

Tags:·

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.

[Read more →]

Tags:··

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 [...]

[Read more →]

Tags:·····

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.

[Read more →]

Tags:····

Loading the ThumbnailScroller from XML: ThumbnailScrollerXML Class

October 7th, 2009 · No Comments · AS3 Custom Classes

In this latest variation of the ThumbnailScroller class a XML file is used to supply the class with its requisite parameters. In place of the three arrays used previously, a single parameter – the path to the XML file – is required.  A sample file is shown below    

[Read more →]

Tags:·····

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 [...]

[Read more →]

Tags:···