ViNc3
1
Which is a more easier/simpler/preferred/more control way of dynamically loading a text from a txt file?
- Put a dynamic text Var as: text
loadVariablesNum ("text.txt", 0);
- A dynamic text instance as: text
loadVariables("text.txt", _root.text);
And why…
system
2
None of them.
LoadVars is much better.
system
3
Preferably you use XML, since .txt files are unhandy, clumsy and alltogether useless in my opinion
system
4
ill use XML, much more control and browseable in flash
let me explain why:
<data>
<holder text="Some text in here you want to load" />
</data>
you can easily get that with:
Xml.load(‘file.xml’)
textdata = Xml.firstChild.Childnodes[0].attributes.text
and you have it
(didn’t test it, but its hell easy :D)
system
5
i don’t know how to use XML…not even sure what it is
system
6
it can be used as an small database…
it runs on like every type of server, no extra features needed (no php and stuff)…
system
8
i tihnk i gotta go n read XML basics
system
9