RE: [Flashcoders] How to read variables from file into an array.

2007-03-09 Thread Merrill, Jason
Why not using JSON? I haven't used it yet but this seems like a good opportunity from the examples I've studied. Because JSON is Javascript and more suited for AJAX applications - IMO it would take a lot more work using JSON in Flash than XML to get it working in Flash while achieving the same

Re: [Flashcoders] How to read variables from file into an array.

2007-03-09 Thread eka
Hello :) false ... JSON is more fast than XML in ActionScript ;) You can use JSON or EDEN : In my OpenSource framework (VEGAS) you can find JSON and EDEN implementation ... more speed, and keep the type of the properties (in xml you must check the string and transform the type after the

RE: [Flashcoders] How to read variables from file into an array.

2007-03-09 Thread Merrill, Jason
false ... JSON is more fast than XML in ActionScript ;) I didn't say ANYTHING about speed did I? IMO it would take a lot more work using JSON in Flash than XML - I discussed ease of implementation/use. The links you sent me only confirm my argument that XML is much easier to setup and use

RE: [Flashcoders] How to read variables from file into an array.

2007-03-09 Thread Merrill, Jason
The links you sent me only confirm my argument that XML is much easier to setup and use than XML in Flash. Ooops. What I meant to type was: The links you sent me only confirm my argument that XML is much easier to setup and use than JSON in Flash. Jason Merrill Bank of America Global

Re: [Flashcoders] How to read variables from file into an array.

2007-03-07 Thread Ian Thomas
Steve, Take a look at the LoadVars.onData() function. Essentially it gets called with the raw string of the text file before LoadVars.onLoad is called. onData's default behaviour is to do exactly what you discuss - splitting it up using the ampersands and URL encoding. Instead, you can make

RE: [Flashcoders] How to read variables from file into an array.

2007-03-07 Thread Hairy Dog Digital
Why TEXT and not XML? -Original Message- From: Steve Abaffy [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 10:42 AM To: Flash Subject: [Flashcoders] How to read variables from file into an array. Hello, All the information I have found on this seems to indicate

Re: [Flashcoders] How to read variables from file into an array.

2007-03-07 Thread Ron Wheeler
You should be using XML for this. It will handle larger more complex data structures. Ron Steve Abaffy wrote: Hello, All the information I have found on this seems to indicate that the file is read as one big chunk into variable pairs. So if the file contains Var1=Something1 and

Re: [Flashcoders] How to read variables from file into an array.

2007-03-07 Thread robert
I don't mean to derail this topic, but I have read about JSON so would this be an ideal spot for it? On Mar 7, 2007, at 7:50 AM, Hairy Dog Digital wrote: Why TEXT and not XML? -Original Message- From: Steve Abaffy [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 10:42 AM

Re: [Flashcoders] How to read variables from file into an array.

2007-03-07 Thread Antonio Estevez
in around flash 4 you would have used a combination of string parsing functions like my_string.split() but an xml file is the answer now. i do understand that text parsing is still something you have to do sometimes, especially when integrating flash with older content delivery systems.