Hi.I have a question I was hoping someone could help me with. I have created
a simple page - page1.mxml. In that page I have an unnamed HTTPService with and
id of service1 that is filled with the results of an xml document. I also
have a function like this: var popup =
mx.managers.PopUpManager.createPopUp(this, component1, true,
{theobj:service1.result}); I have a component page called component1.mxml. I
expect the service1.result object to be passed to the component1 instance as
theobj. So, in component1.mxml, I just have a var declared at the top var
theobj:Object; I also have a button and a function attached to the button that
I want to print out a field of service1. So, in the function I try: alert(
theobj.personname ); and the compiler tells me that there is no property with
the name personname. I understand the problem but I don't know how to solve it.
Do you need to declare theobj as something more specific than Object. If so
how do you do this. Thanks for any help.