We are close, hopefully.  I still get an error on the lines inside the
sendMyData function.  It is giving me an error that says, 
Error: Access to undefined property Name,
Error: Access to undefined property Email,
Error: Access to undefined property Message,

It should be noted that I have the component, named FormComponent in a
subfolder form the source root, in a file called FormComponent.mxml,
of course. That file just has the Form and the FormItem tags, with
InputText fields with id of Name, Email, Message.
I instantiate the Form component into the application called ContactForm.

So, I uploaded the project to the web on the server I use.  It seems
like this would be the best way to see what I am missing or doing
wrong.  So, please check it out here:
http://fwweb.biz/ContactForm.zip
thanks,
Bruce



--- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote:
>
> There are a few things wrong with your form...
> 
> You have the id="Email" on the FormItem - it should be on the TextInput.
> 
> The name of your form component is ContactForms.mxml but you try to
> instantiate it with <forms:ContactForm id="myContactForm"/> (Note
> ContactForms and ContactForm is different).
> 
> You cannot set properties of a variable inside a CDATA block. You must
> do it in a function (Which is inside the CDATA block). eg.
> 
> private function sendMyData():void
> {
> var obj:Object = new Object();
> obj.Name = Name.text;
> obj.Email = Email.text;
> obj.Message = Message.text;
> myContactService.send(obj);
> }
> 
> and change the button mxml to
> 
> <mx:Button label="Contact Us" fontSize="16" click="sendMyData()"/>
> 


Reply via email to