I learnt how to make a component in a separate file e.g. component.mxml, but I am having problem with passing variables back to the main.mxml.
If I have a login TitleWindow for the component.mxml, once the user input userID password, how do I pass this back to the main.mxml? I tried using "public var userInput;" in the main.mxml but I could not use this inside component.mxml because it got an error of undefined. Any help would be appreciated. Thx.
