Hi all,

I'm new to Flex but used OpenLaszlo before. I must now build an 
application to use with Zinc for my studies and as OpenLaszlo is not 
supported by Zinc, I decided to use Flex 2.

I have several components and would like to call some methods in other 
components.

Here's my application structure:

main Application

<component: login> which is a panel
<component: filenet> which is a canvas
 
within the filenet component I have several different components:

<component: sidebar> which is a accordion.

within the sidebar, there is a component called:
<component: addressBookTab> which is a canvas
and in this component there is an other component called:
<component: addressBook> which is a canvas

in the addressBook component, I want to call a HTTPService, but I must 
call it, after the user has authenticated himself (using the login 
component). I use the getAddressBookEntries() Function to call the 
HTTPService.

I therefore have a function, that handles the login. If the server gives 
back a true, then I would like to call the HTTPService and load the user 
specific data.

I use the following command:

parentDocument.filenet.sidebar.addressbookTab.addressBook.getAddressBookEntries();

I use the parentDocument property to get out of the login component and 
then try to go all the way down to the addressBook component and call 
the appropriate function.

Unfortunately, I don't have any success, as the method doesn't get 
called. Am I doing something wrong?

There must be some way to call a method from a component within an other 
component. Perhaps I use to many components, and this causes the error? 
I have ensured, that all id's assigned are unique within the whole 
application.

I hope you can help me solve this problem. If it is useful to post the 
source code, just let me know.

Thanks a lot for your help.

Best regards,


Pascal



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to