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 gets a couple of new methods a some bug fixes.
Let’s get started with a live example.
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.
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.
This is the best method I found so far to check is an xml attribute exists and have some value set.
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.
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.
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….
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….
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…
Comments