A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: sending XML file size limits?

  1. #1
    Member
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    62

    sending XML file size limits?

    I am currently working on contructing an small intranet system for one of my clients. Before I get started I wanted to know, if there are limits to how much data the XML.send() can handle? The XML database could potentially become very big over time. I am planning on doing all parsing of the XML file through actionscript, both statically and dynamically. Then passing the XML to a tiny ASP.net file which will resave the XML to the server. Any help would be great,

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    The biggest challenge is how quickly flash can parse the file, also you will have an issue with multiple users changing and saving the file (eg Client 1 and 2 read the file, 1 changes and saves, then 2 changes and saves, 1 changes will be lost.
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  3. #3
    Member
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    62
    Thanks Tupps,
    yeah I got thinking about that and realized that I should have a server side script do that, and just pass the individual nodes back and forth.

  4. #4
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Thats the way I do it usually, it takes a bit more work but it is definately worth it when you have multiple users online.

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  5. #5
    Member
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    62
    Hey Tupps,

    I am starting to work on doing a query through my XML on the serverside, and then posting the results to flash. How should I pass a dynamically generated XML file from ASP.NET back to flash? I was thinking something like
    Response.Write(xmlnew);
    Where xmlnew is the dynamically created file handle for the XML file containing the query results. Also is there a limit to how much data flash can accept. Thanks again

    Paul

  6. #6
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Flash can pretty much accept any amount of data. FlashMX has a quick flash parser so it can handle a fair bit, if you have Flash 5 Clients then you might have a problem.

    As for how to output the file, just push it out of ASP much like you would HTML code.
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  7. #7
    Member
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    62
    That is where the trouble lies. I am trying to use the following line to send my XML from ASP.NET to flash
    Response.Write(xmldoc);
    xmldoc is the file handle for my XML document. I can't figure out what is the correct way to pass it back to flash. I have been searching the web for 5 hours now trying to find answers. HELP!!!

  8. #8
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Sorry not great on ASP (or ASP.Net) most of my web stuff is either PHP or Java

    From memory don't you have to read the data from the file into a string and then response.write(newString)

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center