Im creating a flipping boook for a friend, who will occasionally need to update pages / text, but without using flash.
All of the text for the individual pages is stored in a single text file (pageText.txt) in the format:
page1=Page One's Text
page2=Page Two's Text
page3=Page Three's Text...etc
Each page is a clone of a single .swf which will simply load the relevant text.
I’ve hard coded this to get page 1’s text, which works fine:
loadData = new LoadVars();
loadData.onLoad = function()
{
page_txt.html=true;
page_txt.htmlText = this.page1;
};
loadData.load("pageText.txt");
However this would mean changing
page_txt.htmlText = this.page1
for each individual .swf. Is there any way of using the filename (page1.swf, page2.swf) to set the ‘this.pageX’ statement?
Cheers
Chris