473,387 Members | 1,497 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.

Calling Perl in actionscript.

Srijith B
How can I call a perl code(say auto.pl) in actionscript ?

I have a mxml script, and when the button is clicked, I want the perl script to be called.

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Introductory Flex 3 example, DKS, TECFA, University of Geneva, nov 2010) -->
  3.  <mx:Application 
  4.      xmlns:mx="http://www.adobe.com/2006/mxml" 
  5.      horizontalAlign="center" verticalAlign="middle" 
  6.      width="1200" height="160" >
  7.  <mx:Script>
  8.         <![CDATA[
  9.             public function handleClick():void {
  10.               text1.text= "Perl code called"; 
  11.             }
  12.         ]]>
  13.     </mx:Script>
  14.  
  15.      <mx:Panel 
  16.          paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10"
  17.          title="Greetings!!!" >
  18.          <mx:Label text="WELCOME" fontWeight="bold" fontSize="24"/>
  19.                 <mx:Button id="fname" label="Run Test(s)" click="handleClick();"/>
  20.         <mx:TextArea id="text1" />
  21.  
  22.      </mx:Panel>
  23. </mx:Application>
  24.  
  25.  
This is a urgent assignment. Please help.
Feb 28 '11 #1
0 1524

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

Similar topics

0
by: Mike Bobbitt | last post by:
I've recently decided to switch from compiled Apache/PHP to RPM's of both and I'm having a problem I can't seem to solve. I have a Perl script called php_include.cgi that parses a PHP file for...
1
by: Joseph | last post by:
I was wondering if anyone can suggest a method for calling Perl functions in JSP. Thanx
6
by: Richard Trahan | last post by:
I want a js function to call a Perl script residing on a server. The Perl script will return a string, to be used by the js. Pseudo code: <script> stringvar = perlfunc_on_server(stringarg)...
1
by: Richard Trahan | last post by:
I am using the following method to call a Perl script from js: <script type="text/javascript" src="http://myserver.com/cgi-bin/x.pl?x=abc" </script> The Perl writes an application/x-javascript...
1
by: David Meier | last post by:
Hi all, I am not a very skilled C programmer yet and I need the help of the list bad. OK, here is the problem: I have written a SIEVE module coded in C for the cyrus imapd mail server. This...
6
by: Dave R | last post by:
Hello group, I had a COM dll in VC 6.0 which my Perl 5.8 modules used to call. With the .Net invent I would like to wrap up my COM functionality into C#. I wanted to know how can my Perl modules...
2
by: JS | last post by:
In other words, can I start a function that sends values to a perl script and then get the return values back to VB??
3
by: David Bear | last post by:
I have a hash function written by another organization that I need to use. It is implemented in perl. I've been attempting to decode what they are doing in their hash function and it is taking way...
5
by: rahulthathoo | last post by:
Hi. I need to develop a web based application which uses php for the front end and statistical manipulations in perl - my question is - how do i call a perl script from php - i guess the answer...
3
by: sirichennupati | last post by:
hi all, in our project we have to integrate perl and c++ program we could succesfully call the perl program from c++ but couldn pass the parameters ......... which are variables in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.