• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 429
  • Last Modified:

Looking Adobe Flex Post that works

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
yahoolane
Asked:
yahoolane
1 Solution
 
deepanjandasCommented:
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
 
yahoolaneAuthor Commented:
Yep by adding this Line
I can make pass any Key pair


parameter[eventTXT]=eventVal;

Now to test event/error  Handeling
0

Featured Post

Enhanced Intelligibility Without Cable Clutter

Challenge: The ESA office in Brussels wanted a reliable audio conference system for video conferences. Their requirement - No participant must be left out from the conference and the audio quality must not be compromised.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now