For LoadVars the text file would be one line just as it appears for a URL
query string. A generic layout example (it is one continuous line):
var1=ABC&var2=123&var3=Hello World&var4=<b>blah blah blah</b><br>Yadda yadda
Where you would substitute var1, var2 with meaningful names that LoadVars
will automatically parse into Flash variables for you to use. Ex:
price=123&name=ABC
For XML again on one line a generic layout example (it is one continuous
line):
<?xml version="1.0"
encoding="iso-8859-1"?><datapacket><nodeName1>ABC</nodeName1><nodeName2>123</nodeName2><nodeName3>Hello
World</nodeName3><nodeName4><b>blah blah blah</b><br>Yadda
yadda</nodeName4></datapacket>
Again your nodeNames would be more meaningful to you ex:
<price>123</price><name>ABC</name>. Flash XML then provides XML methods to
parse out the data into Flash variables -- you need to do that.
In both cases no whitespace (tabs, spaces and returns) other than in the
data values such as the space in Hello World.
Normally yu use word wrap in editor to help in editing.
If you use server scripting then you can use separate lines in the script
code and it will not add whitespace unless you add it.
Although I do not have a simple example with a plain text file, here is a
simple LoadVars example with PHP. The Flash side is the same.
http://www.hosfordusa.com/ClickSystems/courses/flash/examples/LoadVars/LoadVarsEx01.php And this one before you hit the register button that demonstrates the
LoadVars populating Flash UI components. Again it is using PHP but you can
use a plain text file instead with the above format.
--
Lon Hosford
www.lonhosford.com May many happy bits flow your way!
[quoted text, click to view] "CobraC081375" <webforumsuser@macromedia.com> wrote in message
news:dpjvei$t15$1@forums.macromedia.com...
so if i use those and can get it to connect via a txt file how do i format
the txt file and can i have a function to search that txt file?...dont
forget i am noobish when it comes to all this.