Your custom component should dispatch its events. The parent application
which should be listening for them. 

Something like this might work:

<comp:MyComp itemClicked="popUpWindow(event)"/>

Jeff

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Megan
Sent: Wednesday, August 23, 2006 1:15 PM
To: [email protected]
Subject: [flexcoders] Functionality Between Components and the Main
Application


Hi! I've been trying to figure out how to do this sort of thing, and
thought I'd ask before messing with it anymore.

I have a toolbar that's in its own component, and it has some buttons on
it that will open new windows/popups. What I need to have happen is,
when one of the buttons gets clicked, the window pops up inside a
container that's on the main application. Right now they show up at the
top corner of the toolbar.

I gave the VBox in the middle of the main application an ID, but when I
try to tell the toolbar to open the window there, it gives me an error
because that ID doesn't exist inside the toolbar...

I've also tried telling the button to run a function in the main
application to open the popup but it tells me that I'm "calling a
possibly undefined method through a reference with static type Class".

I hope that makes sense. Any ideas?

Thank you!






--
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



 



--
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/

<*> 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