K, I think I'm lost on this.
I create a popup from the main application,
I have a submit button.
That has a event etc..
To pass the data from the popup to the main app,
How do I catch that event from the main app though?
When you do it with components <custom:Component
you can just add a function handler in the mxml tag.
But when it comes from the popup, there isn't a mxml tag to add a handler to.
Popup was created in a function at the time of a button press.
So much for dispatching an event, and then handling the event/data from the main app and having proper code?
I ended up just making a public function in the main app that accepts two arguments.
Accessed that public function from the popup window and passed in the data that way.
I'm wondering if Extending Event class and doing a
type thing only for component to main app rather than for popup windows to main app.
Woot, it's actually possible!
just gotta add this in the code where you create your popup.