XML Flash Templates - Maintaining your Flash website made simple!
| by Dave Collado | November 29, 2007
On September 18th, 2007 templatemonster.com, announced that it now offers XML Flash Site templates a new product category with a unique feature allowing content to be loaded onto Flash via an XML file, no doubt aimed at lessening the convoluted task of running and maintaining Flash Sites.
One of the claims made on the templatemonster web page is:
XML Flash Site templates are equipped with the system that will simplify your work with the Flash website by giving you the opportunity to edit it without having to use the special Flash software for that (you only work with the XML file)
What their basically saying is that I can get the functionality and simplicity of editing my templates content from a text editor, and still get to keep the performance and beauty of a premium Flash website.
So I decided to put this to the test, using a free sample XML Flash site, a copy of which I have taken the liberty to make available to you here. Dont mention it! Besides as a developer youre expected to be somewhat comfortable around XML. So if you arent, this free XML Flash Site template is just what you need to start getting your hands dirty.
Once I extracted the files I opened the site_flash directory, located the tfile_main.xml file and in just a few key strokes same as Im doing right now I was literally changing menu items, adding more links, and even editing the content throughout the entire Flash template instantly requiring no prior knowledge of Flash whatsoever (I only worked with the XML file). What I liked best of all is not having to buy some hyphy Flash software in fact I did all my editing in Notepad. I simply edited all my stuff from the text file, changed whatever I wanted, and still kept the efficiency and beauty of Flash totally intact. Seriously, its unbelievable!
One neat thing XML Flash Site templates allow me to do is add as many read-more pages as I want or, for that matter, any page. Heres what you do. I wont go into too many details-this is already beyond the scope of this article, and youre darn smart.
Copy (Ctrl+C) an existing code for a read-more button, find an area where you want the button to be, paste (Ctrl+V) and give it a unique identifier (e.g. change function from asfunction:_root.more_click_func,0 to asfunction:_root.more_click_func,1). The same if you were to add a 3rd button youd change this function to a 2 the 4th would be 3 etc Mi conprende? Oh yeah! I almost forgot, in addition to that little tidbit youll need to copy the existing code for a read-more page and paste (Ctrl+V); then replace the old text with new text and give it title. See? That wasnt too bad.
The greatest gain for web site owners is they wont have to hire someone each time they have to make a change on their website. XML Flash site templates will let you circumvent the need to modify FLA source files whenever you need to change some text or move some pictures around. And its not just for beginners either, just think of the time well save, I cant tell you the number of times Ive been coding away the hours seemingly making huge progress, when out of nowhere Ive got one of these Flash has encountered a problem and needs to close Dam!
Lastly, heres the basic information you need to edit XML Flash site templates.
Open the tfile_main.xml file in the text editor (e.g. Notepad ). DO NOT rename this file. Otherwise youre screwed. Find the text you need and type in your new text. Upload all files to your public_html folder. All files should be placed in one folder. Also there are a number of free XML text editors that offer some really neat features such as color-coded text and section highlighting which can be very helpful. If you would like to find a text editor that provides this feature, try searching Google for a free XML editor or if you like you can contact the Foamers.net Web Team for our recommendations.
One of the claims made on the templatemonster web page is:
XML Flash Site templates are equipped with the system that will simplify your work with the Flash website by giving you the opportunity to edit it without having to use the special Flash software for that (you only work with the XML file)
What their basically saying is that I can get the functionality and simplicity of editing my templates content from a text editor, and still get to keep the performance and beauty of a premium Flash website.
So I decided to put this to the test, using a free sample XML Flash site, a copy of which I have taken the liberty to make available to you here. Dont mention it! Besides as a developer youre expected to be somewhat comfortable around XML. So if you arent, this free XML Flash Site template is just what you need to start getting your hands dirty.
Once I extracted the files I opened the site_flash directory, located the tfile_main.xml file and in just a few key strokes same as Im doing right now I was literally changing menu items, adding more links, and even editing the content throughout the entire Flash template instantly requiring no prior knowledge of Flash whatsoever (I only worked with the XML file). What I liked best of all is not having to buy some hyphy Flash software in fact I did all my editing in Notepad. I simply edited all my stuff from the text file, changed whatever I wanted, and still kept the efficiency and beauty of Flash totally intact. Seriously, its unbelievable!
One neat thing XML Flash Site templates allow me to do is add as many read-more pages as I want or, for that matter, any page. Heres what you do. I wont go into too many details-this is already beyond the scope of this article, and youre darn smart.
Copy (Ctrl+C) an existing code for a read-more button, find an area where you want the button to be, paste (Ctrl+V) and give it a unique identifier (e.g. change function from asfunction:_root.more_click_func,0 to asfunction:_root.more_click_func,1). The same if you were to add a 3rd button youd change this function to a 2 the 4th would be 3 etc Mi conprende? Oh yeah! I almost forgot, in addition to that little tidbit youll need to copy the existing code for a read-more page and paste (Ctrl+V); then replace the old text with new text and give it title. See? That wasnt too bad.
The greatest gain for web site owners is they wont have to hire someone each time they have to make a change on their website. XML Flash site templates will let you circumvent the need to modify FLA source files whenever you need to change some text or move some pictures around. And its not just for beginners either, just think of the time well save, I cant tell you the number of times Ive been coding away the hours seemingly making huge progress, when out of nowhere Ive got one of these Flash has encountered a problem and needs to close Dam!
Lastly, heres the basic information you need to edit XML Flash site templates.
Open the tfile_main.xml file in the text editor (e.g. Notepad ). DO NOT rename this file. Otherwise youre screwed. Find the text you need and type in your new text. Upload all files to your public_html folder. All files should be placed in one folder. Also there are a number of free XML text editors that offer some really neat features such as color-coded text and section highlighting which can be very helpful. If you would like to find a text editor that provides this feature, try searching Google for a free XML editor or if you like you can contact the Foamers.net Web Team for our recommendations.
Article Source: http://www.articleset.com

You are welcome to publish or reprint this article free of charge, provided:
- you include the entire article, unchanged, including the "About The Author" box
- all hyperlinks remain active, including the bottom ArticleSet.com link (does not apply to print publications)
- you agree not to hold the authors nor ArticleSet.com liable for any loss profits, expenses, or any other damages resulting from the use or misuse of articles published on this website