normally child dispatches and mainapp listens. Why don't you want this? ________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of stephen50232 Sent: Tuesday, September 25, 2007 7:58 AM To: [email protected] Subject: [flexcoders] Creating a main menu component and firing events from the menu Hi, I'm creating a main menu component, which I've populated using XML for the menu options, I then want the menu to change the main applications state, depending on which menu option has been selected, but I'm having trouble getting the events to works so I can fire an event in the main menu which will change the state in the main application. Do I need to fire an event in main menu component (mainmenu.mxml), but how do I capture that the event has been fired in the main application (main.mxml)? I know that you can use addEventListener(), but all the examples I've seen assign the addEventListener() method to a component, I don't I want my main.mxml file to register to listen for the event I fire off in the main menu? Can anyone point out what I'm missing? THanks

