You can access the public members of a component instantiated with an
mxml tag by using the "id" property, which the compiler turns into an
instance variable containing a reference to the component:

 

myComponentId.GetUserDataRequest.send();

 

Also you might want to look into using AsyncToken to associate a result
with its send() call.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of timgerr
Sent: Monday, May 19, 2008 12:58 PM
To: [email protected]
Subject: [flexcoders] Access Child Document Flex Components

 

Hello all,
Thanks for all the help That I have recieved, I am learning alot.

Main Application that has many Flex Components. I want to call a 
HTTPService from the main app page, I am not sure how to do this. 

I have tried GetUserDataRequest.send() but to no avail. 
<mx:HTTPService id="GetUserDataRequest"
url="{getURL.PerformaGetUserData()}" />

I know that there is a way to call parent items parentDocument.xxxx
but not sure of a way to call childDocuments.

Again Thanks for all the help.

Timgerr

 

Reply via email to