Solved

Looking Adobe Flex  Post that works

Posted on 2011-02-18
2
418 Views
Last Modified: 2012-05-11
Here is the example I am trying to use.
The varables I am passing will change with every call, so a fixed form will not work.

This is what I tried, it calls the page but does not pass the data.
I have done post data in many other langues but can not see why this is so much trouble.

parameters = "command=save&text=Text&comment=none"

service = new HTTPService();
service.url = "http://domain.com/index.php";
service.method = "POST";
service.send(parameters);
0
Comment
Question by:yahoolane
2 Comments
 
LVL 17

Accepted Solution

by:
deepanjandas earned 500 total points
Comment Utility
parameters should be an object instead of string:

var parameter:Object = {};
parameter.command="save";
parameter.text="Text";
parameter.comment="none";
service.send(parameter);

Warm Regards
Deepanjan Das
0
 
LVL 1

Author Closing Comment

by:yahoolane
Comment Utility
Yep by adding this Line
I can make pass any Key pair


parameter[eventTXT]=eventVal;

Now to test event/error  Handeling
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now