Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import text from XML vs Text file question? 2

Status
Not open for further replies.

KattyKatty

Programmer
Nov 10, 2003
91
TH
Hello,

1. Which way I should use to import text file into Flash between XML and Text file?

2. I am used to with Text file, is it work properly with any platform?

Regards,
Kathryn
 
Thank you kb244.

I still would like to know from other developers' experience about loading text from text file, because I know that XML work well with any platform, but I am not sure about Text file that I am familiar with.

Thank you,
Kathryn
 
Ahh text from a text file.

Well theres two whats I know of , one is from a extension such as from here:



The other is loading from a text file via actionscripts.

if you have a text file with this in it. (using & to make new variable)
Code:
myItemsVar=one,two,three,four,five,six

Then in actionscript if thats test.txt you can load the variables as such.
Code:
loadVariables ("test.txt","variablename")


Karl Blessing
PHP/MySQL Developer
 
I mean if you think about it both XML and TXT files are text files, or more correctly ASCII files rather than binary. So far as #2 really no problems as you can load either.

Also your original question at the top (#1) isnt very clear to understand, nor was number two due to the gramatical way of saying it but I kind of got the idea.

Karl Blessing
PHP/MySQL Developer
 
Thank you Karl, and sorry for my English, I am not a native English speaking, but I am trying to communicate.

I am only curious the way I used to import text file into Flash, after I found out XML is the way to solve problem about platform, so I suddently would like to know about text file,is it work properly with any platform?

Thank you again,
Kathryn
 
Sorry if I caused fustration/irritation. But yes a text files should be platform independant, like XML files they are in ASCII format, and are not binary dependant. Meaning a .txt file on linux/unix, on windows, or even on macintosh computer should all be readible just fine, and flash should be able to access the same to my knowledge.

Karl Blessing
PHP/MySQL Developer
 
Thank you Karl, I was not fustrate, but appriciate your help, and also you inspire me to learn PHP/MySQL next. :)

Thank you,
Kathryn
 
Just to confirm (again) there aren't any problems with text files importing text on any platform.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top