Topic: Action Script with XML |
|
---|---|
Author | Thread |
Obsessive-Compulsive (I) Inmate From: New Delhi |
posted 07-14-2003 16:42
Hi |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 07-14-2003 17:50
bajajvivek: Welcome. I suspect your problem is the 10k records - that is a lot of processing. I suspect Steve would be better placed to help you on this but I think it is just the amount. |
Obsessive-Compulsive (I) Inmate From: New Delhi |
posted 07-15-2003 09:59
Hi |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 07-15-2003 14:09
bajajvivek: quote:
|
Maniac (V) Inmate From: out of a sleepy funk |
posted 07-15-2003 16:13
product master is a "master list" of products that a company sells, containing part numbers, descriptions, upc codes, cost, selling prices etc etc |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 07-15-2003 18:07
JKMabry: Thanks for clearing that up - it sounded awfully like a product but that was the conclusion I was coming to after searching. |
Maniac (V) Inmate From: under the bed |
posted 07-15-2003 18:26 |
Obsessive-Compulsive (I) Inmate From: New Delhi |
posted 07-16-2003 10:39
Hi Friends, |
Maniac (V) Inmate From: Boston, MA, USA |
posted 07-16-2003 13:19
You haven't yet described what you're doing with Flash, other than to say "xmlnitro" and "looping". |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 07-16-2003 15:22
bajajvivek: So if I understand properly you have your whole product list in 26 static XML files loaded into a pocketPC and you are using Flash to actually search through them? I presume this is for some kind of stock checking? |
Maniac (V) Inmate From: Boston, MA, USA |
posted 07-16-2003 16:30
Clarify what we are dealing with here - people's first and last names, or products with item numbers. code: lastArray = new Array();
code: onRelease = function() { which would trigger a loop which would do something along the lines of: code: function findItem (searchString) {
|
Neurotic (0) Inmate Newly admitted From: |
posted 01-08-2010 04:19
I too experience problem in xml files but all of your posting helps me a lot to overcome.. |
Neurotic (0) Inmate Newly admitted From: |
posted 03-03-2010 06:42
Bit long winded, but I would use the XML to populate a database then make queries on the database for subsets of data and have it return the data in XML. Or if you try and get the data directly into your actionscript with AMF format which is more compact binary format that should be faster. I have been using AMFPHP and mysql with PHP at back end. But it is a bit more work, plus you would need a way to get the XML and pupulate the database with it. Create the tables etc. If your not a PHP person, I think there are lots of other languages you can write services in to read stuff from a database. If you want to work with just XML file, XPath http://www.w3.org/TR/xpath/ helps with extracting parts of your XML file I think. Not sure about how to use it in actionscript though, but i just did google search and found this http://www.robgonda.com/blog/index.cfm/2006/2/19/Xpath-for-ActionScript--now-documented. Finally you could also convert XML to JSON, which is a bit more compact, but probably still slow because still text format, so the parsing could be slow and all the numbers have to be converted from text to binary which obviously takes time. |