Hi, thanks for the help.  I did what you mention below.  Someone else
posted somethingsimilar about putting the Object property into the
function.  

It still doesn't like that yet.  It gives me an error on the line in
the function where I am assigning values to the Object properties...
Specifically it doesn't like:
obj.Name = Name.text;
it says: Access to undefined property Name

Now, one problem might be that I am not passing any parameters to the
function.
I'll see about the way you specified the function and see if that
fixes things.  

To see more specifically what I did, please click on this to download
the zip archive file of my Flex Project:
http://fwweb.biz/ContactForm.zip

thanks,
Bruce


--- In [email protected], "Haykel BEN JEMIA" <[EMAIL PROTECTED]>
wrote:
>
> First forget what I said about the result handler because I thought you
> should receive the data from the service while in reality you want
to send
> it!
> 
> Now back to the code in the CDATA block. It must be clear that the CDATA
> block is not a function!! It is like writing code for a class but
without
> the class block delimiters, I mean without "public class ClassName
{" and
> the closing "}".
> 
> So this code is illegal in a CDATA block (more specifically the second
> line):
> 
> var obj:Object = new Object();
> obj.Name = Name.text;
> 
> The second line must live in a function. In your case put the code
in the
> click event handler of the send button:
> 
> private function sendButtonClickHandler(event:MouseEvent):void
> {
>   var obj:Object = new Object();
>   obj.Name = Name.text;
>   myContactService.send(obj);
> }
> 
> 
> 
> On Thu, Oct 16, 2008 at 7:49 AM, brucewhealton


Reply via email to