Hi ptolemy,
Provided your sites not going to get multiple hits per second loading from text files works great, its always a good idea to prevent the file from caching tho.
Here's a well used function for loading external file content into Flash without it caching.
Frame 3
PHP Code:
function noCache (url, targetstring) {
if (url.indexOf("?") == -1) {
eval(targetstring).loadVariables(url add "?time=" add getTimer(), "");
} else {
eval(targetstring).loadVariables(url add "&ztime=" add getTimer(), "");
}
}
_level0.noCache("pathToYour/textFile.txt", "_level0");
Frame 5
PHP Code:
if (page1 == null){
_root.gotoAndPlay(4);
}
else {
_root.play();
}
textFile contents
<snip>
page1=Blah Blah Blah Blah....
</snip>
Bookmarks