all groups > flash data integration > july 2006 >
You're in the

flash data integration

group:

load/send XML data via HTML form


load/send XML data via HTML form skeeter1
7/26/2006 8:43:31 PM
flash data integration: I currently have a Flash app that gets populated by parsing data from an
external XML file. However, I need to get the XML data into a (JSP) session and
can't neccesarily have an external XML file--any suggestions? Can I put the XML
string into a hidden input field in a form on the HTML? Can Flash communicate
with that HTML? Or are one of the below methods recommended:
* FlashVars
* Flash Remoting
* Web services
* JavaScript - call JS function
* fscommand
* ExternalInterface

I've been working with Flash for years, but somewhat new to the above topics
and advanced AS....

Thanks,
-Pete
Re: load/send XML data via HTML form Motion Maker
7/28/2006 9:41:35 AM
If the XML is static, you can place the XML inside the Flash Movie versus
placing inside an HTML file. You can use the XML parse method to break it up
for use as an XML object.

However if you are communicating with a server then get the XML data from a
server script that maintains the session.

Look at XML class and the load or the sendAndLoad methods for examples.


--
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
[quoted text, click to view]

AddThis Social Bookmark Button