You can, but you have to use Actionscript, not declarative mxml.  Build the
request object in an AS function, something like this:

var oRequest:Object = {first:modelName.name.first, last:modelName.name.last,
email:modelName.name.email}

srv2.send(oRequest);

 

and remove the entire <mx:request/> tag.

 

This approach is generally easier to work with because you can debug the
values you are sending to the server.

 

Tracy

 

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of fprihoda
Sent: Monday, March 02, 2009 7:27 PM
To: [email protected]
Subject: [flexcoders] Re: Sending POST requests to php script??Help

 

I don't want to bind the object. The {...} was suggested in a
previous post. I don't understand why I can't reference the object's
value in the HTTPService request.

Frank
--- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"Tracy Spratt" <tspr...@...> wrote:
>
> But you are using Object, and Object is not bindable and you are
trying to
> bind:
> 
> <first>{modelName.name.first}</first>
> 
> The braces mean binding.
> 
> Tracy
> 
> 
> 
> _____ 
> 
> From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com]
On
> Behalf Of fprihoda
> Sent: Sunday, March 01, 2009 7:09 PM
> To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
> Subject: [flexcoders] Re: Sending POST requests to php script??Help
> 
> 
> 
> I CAN access the flex object at run-time. And it need not be bindable.
> For example:
> 
> Alert.show(modelName.name.first,title="modelName.name.first Value");
> 
> Correctly displays the modelName.name.first value. However, when I
> access the same object in the HTTPService request, I can not access
> the objects value. I don't know what the problem is.
> 
> This problem is driving me nuts.
> 
> Frank
>



Reply via email to