473,807 Members | 2,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Flash Actionscript sending XML to Perl

1 New Member
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 2191
KevinADC
4,059 Recognized Expert Specialist
if this is the same as the action= attribute of a cgi/html form:

myXML.send("tes t.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
4349
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 Remoting servers. There are open-source alternatives for php, java, and perl. But alas, no Python. Does anyone have any interest in a project like this? It would be port for the most part; the AMF format is already well known. In
0
1965
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 C++ source with its prototype UI/demo to be built in Flash). Can anyone provide examples or guidance for such an effort? More details:
4
2594
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 know ActionScript (only basic animation). Any other ideas or links or feedbacking the 3 above technologies are so welcome... Thank you.
3
1612
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 integrate with server side scripts? Thanks Burnsy
3
8634
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 information from my database) is the following: <?php include_once '../library/config.php'; include_once '../library/opendb.php'; $query =mysql_query("SELECT * FROM `$table` ORDER BY(`title`DESC ");
13
16108
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 http://www.flashkit.com http://www.senocular.com http://www.echoecho.com/flash.htm http://www.tutorialized.com/tutorials/Flash/1 http://www.video-animation.com/flash8_001.shtml
5
5952
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 say "Hello World" in a Flash enabled web page rendered via ASP.NET. Can any one let me get started? ---
0
2973
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 not getting the emails through with the data that is being selected in the combo box. I've attempted to create the code I think would extract this information but I'm not having much look? Also I've attempted to add in a carboncopy email address...
1
1671
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
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10628
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10373
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9195
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5547
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.