473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Flash Actionscript sending XML to Perl

I am using the xml object in flash actionscript to create an xml file. it reads and parses xml from a text file, and adds to that xml file. then using the XML.send(); I want to send it to a perl file, and have the perl script write to text file. in perl, how do I set it up so that it will read accept the xml sent from the actionscript?

should it be a .pl or .cgi file?


example:
Expand|Select|Wrap|Line Numbers
  1.  
  2. newElement = myXML.createElement(player1);
  3. myXML.appendChild(newElement);
  4. newElement = myXML.createElement(Name);
  5. myXML.firstChild.nextSibling.appendChild(newElement);
  6. newElement = myXML.createElement(lv);
  7. myXMl.firstChild.nextSibling.appendChild(newElement);
  8. myXML.send("test.pl");
  9.  
  10.  
Jul 20 '07 #1
1 2170
KevinADC
4,059 Expert 2GB
if this is the same as the action= attribute of a cgi/html form:

myXML.send("test.pl");

then point the actionscript to the url of your perl script and use the CGI.pm module to get the data from the script and then do whatever you need to do with it.
Jul 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Randy | last post by:
Flash Remoting is a way for Flash applications to make "native" method calls in Action Script to a server side program, using the AMF binary format. Flash has commercial versions of a Flash...
0
by: Matt | last post by:
Hello, I am attempting to get a software prototype UI/demo built in Flash to talk with existing C++ (so I can exchange data and commands between the application-software already developed in the...
4
by: vunet.us | last post by:
I would like to create web charts. My site is using AJAX, so I thought of VML and SVG for chart graphics. But there is a browser compatibility issue. Flash would be a good solution but I do not...
3
by: bizt | last post by:
Hi, I have just started learning AJAX and need to learn a method where I can do the same to what AJAX does for HTML to Flash. Can this be done? Is there maybe a better way of allowing Flash to...
3
by: paolazi | last post by:
Hello I have a problem: I have a database(mysql) with the following fields: test, descr, title I want to display them into a flash file. Now my php file called list.php (which collect the...
13
iam_clint
by: iam_clint | last post by:
Starting a thread for flash tutorials and such.. got a good link? pm me. http://www.kirupa.com http://www.actionscript.org/resourc...ries/Tutorials/ http://www.gotoandlearn.com ...
5
by: ASP.NET explorer | last post by:
I have been asked to create some simple animation using Adobe Flash player in ASP.NET(C#) web application. While I am fairly well versed with ASP.NET C#, I absolutely have NO IDEA about how to...
0
by: bbacarat | last post by:
Hi All, I attempting to use the following actionscript and php code to send from a flash form that I have created. However I have used a combo box from the built in flash 8 components and I'm...
1
by: deluxmilkman | last post by:
What is the major difference between Flash 5 actionscript and Flash 6 actionscript ? I am trying to downgrade Flash 6 site to Flash 5. It doesn't give me error, but it's not working. Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.