Knowing nothing about Unison and speaking of using XML in projects in
general, I find it's easier to just use the XML.
The XML has a structure and order. It has simple methods of accessing,
filtering and sorting the data. You can write to it and mark completions and
such right in the XML object in memory. How much effort can you put into
rebuilding those pieces in AS3, and what do you get out of it?
I ask myself a similar question every project and I've yet to find a good
argument for transforming the XML into Objects/Arrays, though I'm sure there
is one depending on the project.
Closest I've come is a object wrapping my XML that returns filtered, typed
properties (like a configuration file for an app).
Jer
On Mon, Dec 1, 2008 at 2:02 PM, Norman Cousineau
[EMAIL PROTECTED]wrote:
Hi Flashcoders,
I'm currently using a product called Unison for creating eLearning.
It produces an XML file that contains all info needed for the SCO:
attributes at the root level to describe preferences, and child nodes
to describe topics and pages. Each of those has its own set of
preferences defined in attributes.
The main FLA builds the table of contents and displays content using
a procedural programming approach (using 4 .as files included
on a timeline).
The XML object is manipulated as an XML object, the info is NOT
converted to any other type of AS object.
In my opinion, it would make sense to convert all the XML nodes to AS
objects. At the top level could be a Course whose members mirror
the root level attributes of the XML. Further, each Course has Topic
instances, and each Topic has Page instances.
This seems more manageable to me, but it creates a bunch of objects
in memory, rather than just working with one XML object.
I don't have a heck of a lot of experience with this kind of
architecture, so I'd like to know your opinions.
Thanks,
Norm
_
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders