I've shown a few examples of XML, but one of the
best is to use it to create a diary, which contains
its content in XML. For this I've designed a template
which integrates pages, such as CV pages and contact
details, into a single integrated package [Zoom].
We can then add the rings that hold the
and we can add lines to differentiate the
and with the date added:
In Flash each of the text boxes are defined as Dynamic
Text, and each is given a name (such as date_monday, date_tuesday,
and so on). This will be used later, where we can read an
XML file for the date, and add this date to the text boxes.
After this we can add some more text boxes which will contain
the diary entries. The text boxes are named Monday, Tuesday,
Wednesday, Thursday and Friday.
At this time it does not really matter about the layout,
as we can finalise that at the end. The main things are
to make sure that all the elements are lined-up properly.
We can try to program the fields with some ActionScript: