breaking down flash project with xml

I'm currently working on a flash gallery site for a photographer. A simple project that I could create using one flash movie, but I decided to try out something different.

The original/current site is using one xml file for the content of this site and everything else reside within the swf, except for the images that are placed inside a separate image folder. 

For the new site, I'm trying to break down this site into smaller independent pieces that I can reuse for future projects.

So far the structure of this site is as follow:

  1. Main SWF that contains the basic site template.
  2. XML file for layout (page element name, position and name of configuration xml file) that is loaded by 1
  3. Individual swf movies that function as the elements specificied in 2
  4. XML file that defines the data and formatting for each element specified in 3
  5. external .as files that define effects and objects that elements share (i.e. movieClipLoader)

Hopefully by doing this, I will be able to maintain the site easily (by editing xml or separate fla files for each element) and start building library of various elements to be used in future projects. 

Comments are closed.