PDA

View Full Version : loadVariables()



dominus
May 11th, 2004, 06:31 AM
how can i load variables from a matrix within a text file?

for example the text file is copy.txt with the following text:
&p[13][14]=12

pls help me.. i can't find a way to work this out.. thx a lot
the fla file is attached to this post.. thanks again

pom
May 11th, 2004, 10:27 AM
You can't do it that way (actually you can but you'd have to parse the '[]' symbols). XML might be a good solution for that kind of things.

dominus
May 11th, 2004, 10:37 AM
You can't do it that way (actually you can but you'd have to parse the '[]' symbols). XML might be a good solution for that kind of things.


found a very interesting tutorial for this.. it's not on kirupa.. can i post it?

ehman
May 11th, 2004, 05:29 PM
sure. why not ?

dominus
May 11th, 2004, 05:31 PM
well, i'll post it anyway:

http://www.virtual-fx.net/tutorials/html/multid-textfile.html

and if this doesn't work try the cached html from google:

http://www.google.ro/search?q=cache:6VVn6fUGY7kJ:www.virtual-fx.net/tutorials/html/multid-textfile.html+%22multidimensional+array%22+loadvar iablesnum+flash&hl=ro