Actionscript 3 Designer Toolkit

More design, less programming

Actionscript 3 Designer Toolkit header image 4

Entries Tagged as 'array'

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 Arrays in Actionscript 3: Part 2 – Associative Arrays

November 7th, 2009 · 2 Comments · Tutorials

Associative arrays are the more sophisticated sibling of integer-indexed arrays. Associative arrays, in addition to having integer-indexed elements, also have named data defined within each indexed element. So that the first element, at index=0, might contain data such as firstname: “Joseph”, lastname: “Jones” and employeeID: 345421. Associative arrays serve as extremely [...]

[Read more →]

Tags:····

Using Arrays in Actionscript 3: Part 1 – Integer-Indexed Arrays

November 5th, 2009 · 3 Comments · Tutorials

An array in Actionscript 3 – as well as in other programming languages – is a named collection of elements or variables with each element identified by a specific index. For example, if we have an array named ‘languages’ with elements ‘english’, ‘french’, ’spanish’, ‘russian’ and ‘chinese’ then the value at 0 index – [...]

[Read more →]

Tags:·····

Building a slideshow: ThumbnailLoaderFromArray Class

September 23rd, 2009 · No Comments · AS3 Custom Classes

This post combines the ThumbnailLoaderFromArray class with the ImageViewerFromArray class to construct a slideshow.
Two arrays are created, the first thumbsArray, is created defining the urls of the thumbnails displayed, their widths and heights; the second array, imagesArray, holds the same data for the larger images.

[Read more →]

Tags:·····