You nee to put { } around the variables ie:

<mx:request xmlns="">
<first>{modelName.name.first}</first>
<last>{modelName.name.last}</last>
<email>{modelName.email}</email>
</mx:request>



Paul

On 28/02/2009, at 2:09 PM, fprihoda wrote:

The following code is not working as I would expect it to.

<mx:HTTPService id="srv2" url="http://localhost/flex_web/addform.php";
resultFormat="object" showBusyCursor="true"
result="resultHandler(event)" method="POST">
<mx:request xmlns="">
<first>modelName.name.first</first>
<last>modelName.name.last</last>
<email>modelName.email</email>
</mx:request>
</mx:HTTPService>

modelName is an object. I would like to send the POST variables to the
php script using dot notation as shown above. The problem I am having
is that it sends the entire string "modelName.xxx.xxx" instead of the
actual object field. I think this is a dereferencing issue, but I do
not know how to fix it.

Can someone help?



Reply via email to