This content has been marked as final. Show 2 replies
I'm guessing that username, emailaddress, website and comments are all variables in your application - so they won't be in scope when you're in your MXML component.
a) make all of these properties in your component and bind them in your applciation.
b) make a single object with all these properties, make that object a public property in your component and bind the object from your application.
c) make a bindable variable in your component called myApplication = Application.application as Application, and add that to the front of your bindings.
d) make an public XML property in your component and define the XML literal in your application.
e) put the HTTPService in your application.
I actually have a Datagrid container in the MXML component that references these elements and I thought that it would be sufficient. Anyway, just to test it out I added the form container (the same one that was in the application) that references these same elements (for input) and, voila, no more compile errors!
I thought that was totally unexpected. I merely wanted to be able to populate the datagrid container via the httpservice ... I guess I need to read up some more on these topics.
Anyway, thanks for your suggestions. I would try it out when I get a chance. I'm a flex newbie so I'm still learning the ropes :)