
Originally Posted by
blanius
yes I do this all the time.
The way I do it is just a simple text file. lets say it's aboutus.txt for an about us page
then when I want to load that into say a content pane I use LoadVars
content=new LoadVars();
then using the onData function I get the raw file contents
content.onData=function(src){
contentpane1.setContent(0,src,1,2);
}
Thank you ... but I don't know what I'm doing wrong. My text file is welcome.txt. On my first frame I have a contentpanel object. I put your code in the first frame replacing src with welcome.txt. Like this:
Code:
content=new LoadVars();
content.onData=function(welcome){
contentpane1.setContent(0,welcome,1,2);
}