Need help passing xml object from javascript to flash

A brief overview:

  1. I am working on a project in ASP and I am making queries to a SQL db that returns data back in the form of xml. I am not in control of the db or how it returns data.

  2. I process the XML within the ASP page and then I also process the data from within flash. I am therefore making two database calls for one page view.

  3. I am trying to figure out if I can in anyway, pass an XML list from the page to flash so that I am making only one database call. The site is heavily hit and I am practically doubling the server load. Need help!

Basically, the only way I think that may be possible is through javascript but not sure where to begin… if there are any other ways to do this please help… thanks!!!