HI there,
Can anyone let me know kindly,
How to display a .txt file in flash and also to display an xml file in flash.
Thanks,
HI there,
Can anyone let me know kindly,
How to display a .txt file in flash and also to display an xml file in flash.
Thanks,
kind voice well, there are a few tutorials about this on this site (the text thing, I mean).
Concerning XML, here is a tute: TUTE
pom :crazy:
Thanks pom…
that was very kind of you…
Many thanks,
rosh
Just FYI, there is an undocumented method in Flash MX that allows you to work with raw data from text files. This would be useful if, for example, you didn’t want to add variable names (like “mytext=blah blah blah”) to your text files, or if you have people that are not technically inclined uploading articles as text files. LoadVars has a method called onData that takes the raw text data and parses it for variable names and does its magic with it, spitting out variables full of text. All you need to do in order to access the raw data is simply override the onData method. You could, for example do something like this:
myTextThingy = new LoadVars();
// overriding the built-in method
myTextThingy.onData = function(rawData){
myDynamicTextBoxData = rawData;
}
// loading the text file
myTextThingy.load(“mytextfile.txt”);
Hope someone finds this useful.
-Al
:: Copyright KIRUPA 2024 //--