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 tag.
This
But you are using Object, and Object is not bindable and you are trying to
bind:
{modelName.name.first}
The braces mean binding.
Tracy
_
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of fprihoda
Sent: Sunday, March 01, 2009 7:09 PM
To: flexcoders@yah
@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim Hayes
Sent: Sunday, March 01, 2009 1:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Sending POST requests to php script??Help
Well, I believe the syntax is correct, at least!
The warnings are telling you something, in a
Well, I believe the syntax is correct, at least!
The warnings are telling you something, in a way, which is that unless your
objects properties are bindable flex won't be able to detect changes in them at
runtime.
Hence it won't work if as you might expect you want to specify the request in
mxml
4 matches
Mail list logo