Have you declared?
You said you have a custom event, but from the code you posted it looks like you're just dispatching a regular Event.
you mean <mx:Metadata>. where i hav to decalre it?..
Flex 4 is fx
If you say mx, then you must be using 3.x
you declare it in your whatever you are popping up...so if you created a custom component the declaration would go in that component.
To retrieve the data from the popup, you first need to create a custom class which wil be
used to handle the events.
I created the class as CustomEvents.as and then pass the data to the constructor of the
class and the class look like as:
public class CustomEvents extends Event
public static const POPUPDATA:String = "popupMessage";
public var data:*;
public function CustomEvents(type:String,data:*)
this.data = data;
once this is done then suppose on close of a popup you want to send data then this would be
done by creating object of this customEvents.as Class and passing the data u want to send.
in this u can dispatch event like this:
outgoingEvent = new CustomEvents(CustomEvents.POPUPDATA,textInput.text);
Above code is in the popup class and the corresponding event listener for that is in the
main class and which is like:
Hopefully this will solve your problem and if nowt do let me know. and
if you are able to solve the problem mark it as such