Forum Moderators: open

Message Too Old, No Replies

using same external .txt file for flash & html

is this possible

         

munkmedia

5:25 am on Sep 3, 2002 (gmt 0)



hi,

we have developed a flashmx site and are using a content management system which changes the appropraite text in the .txt file for the flash movie.. It all works fine in flash but we are wondering if it is possible to target the same text fields within that text file for the html version of the site...

The text file we are using for flash is pretty strait forward.. say.
text 1 = "this is text field one"
&rtext2 = "this is text field two"
etc..

does this make sense, is this possible to target these tags from a html page. & if so, what is the easiest way to do it.. your help is much appreciated...

cheers
mark

Filipe

7:49 pm on Sep 3, 2002 (gmt 0)

10+ Year Member



First of all, that's a good idea, separating content and code.

Personally, I recommend using XML for content management, as that is what it is particularly structured for, and it's already been standardized by the W3C (thus making it a portable solution).

For what you're doing, you'd either want to use either a server-side language for your website (look into PHP, ColdFusion, or ASP) that loads up the content from file onto your page (though I would recommend using a database rather than a flatfile), or you could have a regularly running script (say by using a crontab on a Unix server for PHP, or by running scheduled tasks in ColdFusion or ASP on Windows servers) checks the flatfile with the content and rewrites the .HTM(L) files whenever the content changes.

I recommend XML and a database for overall portability, but if that's not a concern, use either of the last two methods (the first of which I recommend most).

Filipe

7:50 pm on Sep 3, 2002 (gmt 0)

10+ Year Member



Of course, I might have misunderstood you. Do you mean using .HTM(L) files as the content source? Or did you mean changing .HTM(L) files based on the content in the .txt file?

munkmedia

12:59 am on Sep 4, 2002 (gmt 0)



we are changing the content of the htm(l) files by taking information from the .txt file... we have decided to give .asp a try & it seems to be an option which should work.