Can I use Perl with Flex?
I would like to run several Perl scripts from Flex. Following the only example I found online, I have the files/code listed below. The problem is, when I test locally, I get nothing as the message. When I upload to my server, I also get nothing as the message. Perl seems to be installed properly on the server. Other scripts in the directory run fine. Also, the Perl script below runs fine when I run it through command line. So... I'm very confused as to if this can even be done.
main.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function onResult():void
txt.htmlText = txt.htmlText + "<br/>Msg1: " + xmlService.lastResult.messages["msg1"];
txt.htmlText = txt.htmlText + "<br/>Msg2: " + xmlService.lastResult.messages["msg2"];
]]>
</mx:Script>
<mx:HTTPService id="xmlService" result="onResult();" resultFormat="e4x" url="test_IO.pl" />
<mx:Panel width="350" height="280" layout="absolute" horizontalCenter="0" verticalCenter="0" color="#000000" fontSize="12" fontFamily="Verdana">
<mx:Button x="126.5" y="10" label="Test Me" click="xmlService.send();"/>
<mx:TextArea x="10" y="42" width="310" height="188" id="txt" verticalScrollPolicy="on"/>
</mx:Panel>
</mx:Application>
test_IO.pl
#!/usr/bin/perl
use strict;
use XML::Writer;
print "Content-type: text/xml\n\n";
my $xml = new XML::Writer();
$xml->startTag("root");
$xml->startTag("messages");
$xml->dataElement(msg1=> "Hello World");
$xml->dataElement(msg2=> "Goodbye World");
$xml->endTag();
$xml->endTag();
$xml->end();
Similar Messages
-
How can I use LCCS with ActionScript 3 and Flash CS4?
Hi,
Using Stratus I was able to create an an application using Action Script 3 and Flash CS4. The sample code on the Adobe site was quite straight forward and easy to understand. I now want to switch over to LCCS but can't find anything any where on how to use Action Script 3 and Flash CS4 with LCCS. Do I need to know Flex to be able to use LCCS? Everything was quite simple and easy to understand with Stratus and makes complete sense. But LCCS is really confusing. Is there any sample code on how to establish a connection in Action Script 3 and then stream from a webcam to a client. There is nothing in the LCCS SDK that covers Flash and Action Script 3. Please help! I found the link below on some forum but it takes me nowhere.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=75 9&threadid=1407833&enterthread=yThanks Arun!
Date: Thu, 29 Apr 2010 11:44:10 -0600
From: [email protected]
To: [email protected]
Subject: How can I use LCCS with ActionScript 3 and Flash CS4?
Hi,
Welcome to the LCCS world.
Please refer to the SDK's sampleApps folder. There would be an app called FlashUserList. The app demonstrates how LCCS can be used with Flash CS4. Its a pretty basic app, but should help you moving.
We are trying to improve our efforts to help developers in understanding our samples. Please do let us know if we can add something that would help others.
Thanks
Arun
> -
'Using ColdFusion with Flex – sample does not work
Hi, I am having problems with Tom Jordahl's article on 'Using
ColdFusion with Flex – Part 1: Creating and running a contact
manager application' found on link '
http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1_02.html'
I do not understand his instruction. In step 4, it states:
"Copy the channel definition from the example Flex
configuration files found in resources/config (default location:
C:\fds2\resources\config\). "
In that folder, I have the following files:
data-management-config.xml, messaging-config.xml, proxy-config.xml,
remoting-config.xml. So which file in this folder am I supposed to
copy from. And where am I supposed to paste it to? Is it into
WEB-INF/services-config.xml file ?
When I ran the test,
http://localhost:8700/samples/dataservice/cfcontact/contactmgr.mxml,
I get the following errors:
4 Errors found.
Error /dataservice/cfcontact/contactmgr.mxml:31
Definition samples.contact could not be found.
30: import mx.rpc.events.*;
31: import samples.contact.*;
32:
I am very new at Flex and trying hard to understand this sw.
Can someone pse help. Thanks a million.What he means is to copy the channel section from the
C:\fds2\resources\config\services-config.xml file:
<!-- ColdFusion specific RTMP channel -->
<channel-definition id="cf-dataservice-rtmp"
class="mx.messaging.channels.RTMPChannel">
<endpoint uri="rtmp://{server.name}:2048"
class="flex.messaging.endpoints.RTMPEndpoint"/>
<properties>
<idle-timeout-minutes>20</idle-timeout-minutes>
<serialization>
<!-- This must be turned off for any CF channel -->
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>
<!-- ColdFusion specific HTTP channel -->
<channel-definition id="cf-polling-amf"
class="mx.messaging.channels.AMFChannel">
<endpoint
uri="
http://{server.name}:{server.port}/{context.root}/messagebroker/cfamfpolling"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<serialization>
<!-- This must be turned off for any CF channel -->
<instantiate-types>false</instantiate-types>
</serialization>
<polling-enabled>true</polling-enabled>
<polling-interval-seconds>8</polling-interval-seconds>
</properties>
</channel-definition>
To the file
C:\fds2\jrun4\servers\default\samples\WEB-INF\flex\services-config.xml.
The resources directory contains just templates for
development, the samples
directory is a fully-deployed flex app.
Jorge Hernandez
"watsonValu" <[email protected]> wrote in
message
news:[email protected]...
> Hi, I am having problems with Tom Jordahl's article on
'Using ColdFusion
> with
> Flex ? Part 1: Creating and running a contact manager
application' found
> on
> link
> '
http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1_02.html'
> I do not understand his instruction. In step 4, it
states:
> "Copy the channel definition from the example Flex
configuration files
> found
> in resources/config (default location:
C:\fds2\resources\config\). "
> In that folder, I have the following files:
data-management-config.xml,
> messaging-config.xml, proxy-config.xml,
remoting-config.xml. So which file
> in
> this folder am I supposed to copy from. And where am I
supposed to paste
> it to?
> Is it into WEB-INF/services-config.xml file ?
> When I ran the test,
>
http://localhost:8700/samples/dataservice/cfcontact/contactmgr.mxml,
I get
> the
> following errors:
> 4 Errors found.
> Error /dataservice/cfcontact/contactmgr.mxml:31
> Definition samples.contact could not be found.
> 30: import mx.rpc.events.*;
> 31: import samples.contact.*;
> 32:
>
> I am very new at Flex and trying hard to understand this
sw. Can someone
> pse
> help. Thanks a million.
>
> -
Hi All
can i use PERL language in APEX? is it gud practice to use PERL in APEX?
ThanxsYou can use PERL, in so much that you can forward on the user to a PERL application and have that PERL application take in the session + cookie and check it for validity in Oracle, but as far as interactivity between PERL and APEX, it would be either on the level of Web Services style access (one calling the other through web services type Http calls) or possibly running PERL code at system level with something like dbms_scheduler, were it to be for a background database task of some sort.
My question would be what exactly do you need to do in PERL w/ APEX?
-Richard -
I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way? I appreciate that it is a different computer but I am now the end user of both devices and I was just wondering if it was possible.
Thanks,
SeanThe answer would be in your software license agreement for Aperture. However if you cannot locate it you can ask in the Aperture forum, the link for that is:
https://discussions.apple.com/community/professional_applications/aperture
However I believe you can have Aperture installed on two machines however only one may be using it at a time.
On the new iMac launch the Mac App Store - Purchased - look for Aperture and download to your new machine. -
I installed 5 but now I can't use it with Mac osx - how do I go back to my old version?!
I was prompted to install Firefox 5 on my Mac. Now when I try to open it says I can't use Firefox with osx. How do I go back to using the previous version - has it been written over? My previous version was fine!
Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
Mozilla are working to prevent Mac users with non-compatible systems from getting the notification about Firefox 4, and also not displaying the "Download Firefox 4" button on http://www.mozilla.com -
I gave my old iPad to my daughter without restoring it to original configuration, how can she use it with her iTunes?
try
http://support.apple.com/kb/ht2589 -
How can I use Bluetooth with another devices?
How can I use Bluetooth with another devices?
You can set up your FaceTime account in Settings > FaceTime.
-
How can i use ipad with apple tv
How can i use ipad with appletv
Assuming both devices are on the same network and that AirPlay is not turned off on the Apple TV, then simply tap on the screen when you are watching content you wish to stream to your Apple TV, then tap the airplay icon that appears in the control bar, choose the Apple TV from the menu that appears.
When displaying the content you wish to mirror on the iPad 2 (or better), iPad Mini, iPhone 4S (or better), double tap the home button (quickly) and swipe the bottom row of apps to the right to reveal the playback controls, tap the AirPlay icon and select your Apple TV from the list of available devices. -
How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices? Mountain Lion is not an option for my older model and Lion is no longer available at App store.
Call Apple's online store's telesales agents: 1-800-MY-APPLE (1-800-692-7753) or Customer Service and Sales Support at 1-800-676-2775. For Lion you'll get a redemptions code via e-mail and need to DL from the Mac Apple Store (requires SL 10.6.6+).
-
Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive
You cannot use pendriver.
Have a look at the following:
http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1 -
my iPhoto icon has a cross over it, when i open it, it You have “iPhoto” 9.2.1. you can't use this with this version of OSX? it used to work ?what's gone wrong?
iPhoto 9.2.3 is incompatible with MacOS 10.9.3 Mavericks. If you are running Mavericks on your system you need to update iPhoto to 9.5.1. Only, the problem is, that this version is no longer available at the App Store.
The easiest way to get a compatible iPhoto version in that case would be to upgrade to Yosemite, MacOS X 10.10, and then download the most recent iPhoto version from the AppStore, iiPhoto 9.6, like LarryHN suggested.
If you cannot download iPhoto after upgrading to iPhoto 9.6 post back. -
HT2499 Can I use Airplay with dvd to watch dvd on my tv via AppleTV 3?
Can I use Airplay with dvd to watch dvd on my tv via AppleTV 3?
Welcome to Apple Support Communities
Of course. If your Mac is compatible with AirPlay Mirroring, you can watch your DVD in your TV with the Apple TV. Read > http://support.apple.com/kb/HT5404 You just have to play the DVD on your MacBook and turn on AirPlay Mirroring.
If your Mac isn't compatible with AirPlay Mirroring, you can use a third-party app like Beamer -
I can't use Quicken with Lion. Now what?
I can't use Quicken with Lion. Now what?
Peter,
Another solution, though not particularly convinient, would be to create a Snow Leopard boot drive on a external drive that you can switch to when you want to run Quicken.
Matt -
Can I use Ping with Russian App store account?
I have a russian App Store account. Can I use Ping with it?
And if I can't, Can I make an USA App Store account without a card?Put a credit card in the payment methods. The credit balance will be used first and the remainder charged to the card.
Maybe you are looking for
-
Cannot open Robohelp 8 project in Robohelp 9
I cannot open my old Robohelp 8 projects from Robohelp 9. When I open it, it shows me a prompt to make a backup and upgrade the project. Then I click Upgrade, it returns an error: "open project was cancelled or the application was unable tp load the
-
How to change login account in icloud
How to change login account in iCloud on my iPad? Appreciate your help. Thanks
-
I am giving away my old iPhone 4 with IOS.7 installed. I have deleted all my photos taken with this iPhone, however, I cannot delete a photo album I had downloaded from my computer to my iPhone 4. I've tried via iTunes and I've tried to delete them
-
How do I get rid of this?
Specifically, this: I tried looking through the Menu settings but I can't for the life of me find this there. I don't want to color-code my layers and create 3D extrusions, whatever that is. How do I get rid of this stuff that's useless to me and tha
-
IWeb Photo Page Troubles....
Hi, I've created a page photo page with iWeb, and published it to a folder. I copied the html file and the associated folder to mt server, however,b The pictures wont enlarge when clicked, and the sideshow function wont work, due to javascript proble