I have a titlewindow cc.
I intend to load sqlite data into a list and add data to the table through this cc.
Can I access all the controls of this cc from my main.mxml file? Even if I add my own button? Because it seemed like my own button added to the window threw an error. Well, what I mean is, I could not access the button through the popup.button.addeventlistener("click", someFunction); method. That threw the error.
How would I do this?
I currently have code in the titlewindow.mxml component, but I view that as being a bit messy. I could associate it with an actionscript file, but I don't know if that's sufficient.