Archive

XMLDisplayManager 004

February 7, 2011 by fMajakovskij

Here a quick update of the XMLDisplayManager with the addition of a couple of useful methods.
This update could be an excuse because there is also a first draft of a front-end, which could be named XMLDisplayViewer.

XMLDisplayManager 003

February 4, 2011 by fMajakovskij

XMLDisplayManager gets a couple of new methods a some bug fixes.
Let’s get started with a live example.

XMLDisplayManager 002

February 3, 2011 by fMajakovskij

Ok, a quick update to the XMLDisplayManager class.

In the previous post I’d explained the first method, to get the xml object from a DisplayObjectContainer.

Get XML definition from DisplayObject

I always thought xml in AS3 is powerful to handle data and configuration.
But sometimes it is a pain in the ass design classes that have to be configured by xml files.

Check if an xml attribute exists

February 2, 2011 by fMajakovskij

This is the best method I found so far to check is an xml attribute exists and have some value set.

Shuffle an XMLList

If you have an XMLList object and want to shuffle its elements, simply use the following function.
This is pretty useful when you are loading an xml file and want to randomize its elements, i.e. a list of images.

Replace DisplayObject with another one

Sometimes there is the necessity to replace a DisplayObject with another one, preserving the matrix transformation. This is useful when you design some UI elements in Flash authoring as placeholder and want to replace it with another, more complex, object.

Flash XML Gallery from scratch – part 3

January 14, 2010 by fMajakovskij

Now it’s time to see something on screen.
The third part of this tutorial will cover the interface elements and the basic transition between images….

Flash XML Gallery from scratch – part 2

January 2, 2010 by fMajakovskij

Here the second part of the tutorial about the creation of an XML Flash Gallery.
Now we’ll see how to load all the images and place them on the stage….

Flash XML Gallery from scratch – part 1

December 22, 2009 by fMajakovskij

This is the first of a series of quick posts on how to create, step by step, from scratch a xml flash gallery.

The first thing you need to do is to create the xml file.
Just open a simple text editor and write down some tags…