PDA

View Full Version : One flash file, several xml files?



sofus
July 13th, 2009, 09:07 AM
Hi,
I was wondering if it is possible to have one flash file using several different xml files? Only one at the time of course, but with different information’s, organist in the same way.
Say I would use one photo gallery and have it to show different pictures when the flash file is loaded from different pages. If you visit my hollyday.html, you get the holydays pictures, and if you visit my christmas.html, you get my Christmas pictures. Is that possible, or is it easier to have the flash file reading information from different part of the xml file?

a tadster
July 13th, 2009, 11:23 AM
yes you can do that, but it would be better to just use one xml file. or have the same flash load from different xmls based on values past to it via javascript.

Because if your using the same flash, it would have to reload with each new page (holiday, Christmas, ect)
so using one flash file to load a different XML based on the hash value is what you want.
(site.com/#holiday , /#Christmas) (your going to use swfaddress)
that way any animation in the flash can remain fluid and the file would not have to keep reloading.